|
@@ -122,7 +122,7 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags,
|
|
|
if ((oldflags & OCFS2_IMMUTABLE_FL) || ((flags ^ oldflags) &
|
|
|
(OCFS2_APPEND_FL | OCFS2_IMMUTABLE_FL))) {
|
|
|
if (!capable(CAP_LINUX_IMMUTABLE))
|
|
|
- goto bail_unlock;
|
|
|
+ goto bail_commit;
|
|
|
}
|
|
|
|
|
|
ocfs2_inode->ip_attr = flags;
|
|
@@ -132,6 +132,7 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags,
|
|
|
if (status < 0)
|
|
|
mlog_errno(status);
|
|
|
|
|
|
+bail_commit:
|
|
|
ocfs2_commit_trans(osb, handle);
|
|
|
bail_unlock:
|
|
|
ocfs2_inode_unlock(inode, 1);
|