diff options
Diffstat (limited to 'fs/ocfs2/dlmfs/dlmfs.c')
-rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index b83d6107a1f5..85e4ccaedd1f 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -214,10 +214,12 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr) | |||
214 | 214 | ||
215 | attr->ia_valid &= ~ATTR_SIZE; | 215 | attr->ia_valid &= ~ATTR_SIZE; |
216 | error = inode_change_ok(inode, attr); | 216 | error = inode_change_ok(inode, attr); |
217 | if (!error) | 217 | if (error) |
218 | error = inode_setattr(inode, attr); | 218 | return error; |
219 | 219 | ||
220 | return error; | 220 | setattr_copy(inode, attr); |
221 | mark_inode_dirty(inode); | ||
222 | return 0; | ||
221 | } | 223 | } |
222 | 224 | ||
223 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) | 225 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) |