|
@@ -1268,20 +1268,20 @@ bail_unlock_rw:
|
|
if (size_change)
|
|
if (size_change)
|
|
ocfs2_rw_unlock(inode, 1);
|
|
ocfs2_rw_unlock(inode, 1);
|
|
bail:
|
|
bail:
|
|
- brelse(bh);
|
|
|
|
|
|
|
|
/* Release quota pointers in case we acquired them */
|
|
/* Release quota pointers in case we acquired them */
|
|
for (qtype = 0; qtype < OCFS2_MAXQUOTAS; qtype++)
|
|
for (qtype = 0; qtype < OCFS2_MAXQUOTAS; qtype++)
|
|
dqput(transfer_to[qtype]);
|
|
dqput(transfer_to[qtype]);
|
|
|
|
|
|
if (!status && attr->ia_valid & ATTR_MODE) {
|
|
if (!status && attr->ia_valid & ATTR_MODE) {
|
|
- status = posix_acl_chmod(inode, inode->i_mode);
|
|
|
|
|
|
+ status = ocfs2_acl_chmod(inode, bh);
|
|
if (status < 0)
|
|
if (status < 0)
|
|
mlog_errno(status);
|
|
mlog_errno(status);
|
|
}
|
|
}
|
|
if (inode_locked)
|
|
if (inode_locked)
|
|
ocfs2_inode_unlock(inode, 1);
|
|
ocfs2_inode_unlock(inode, 1);
|
|
|
|
|
|
|
|
+ brelse(bh);
|
|
return status;
|
|
return status;
|
|
}
|
|
}
|
|
|
|
|