diff options
Diffstat (limited to 'fs/ocfs2/dlmfs/dlmfs.c')
-rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index b83d6107a1f5..c2903b84bb7a 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -182,8 +182,7 @@ static int dlmfs_file_release(struct inode *inode, | |||
182 | { | 182 | { |
183 | int level, status; | 183 | int level, status; |
184 | struct dlmfs_inode_private *ip = DLMFS_I(inode); | 184 | struct dlmfs_inode_private *ip = DLMFS_I(inode); |
185 | struct dlmfs_filp_private *fp = | 185 | struct dlmfs_filp_private *fp = file->private_data; |
186 | (struct dlmfs_filp_private *) file->private_data; | ||
187 | 186 | ||
188 | if (S_ISDIR(inode->i_mode)) | 187 | if (S_ISDIR(inode->i_mode)) |
189 | BUG(); | 188 | BUG(); |
@@ -214,10 +213,12 @@ static int dlmfs_file_setattr(struct dentry *dentry, struct iattr *attr) | |||
214 | 213 | ||
215 | attr->ia_valid &= ~ATTR_SIZE; | 214 | attr->ia_valid &= ~ATTR_SIZE; |
216 | error = inode_change_ok(inode, attr); | 215 | error = inode_change_ok(inode, attr); |
217 | if (!error) | 216 | if (error) |
218 | error = inode_setattr(inode, attr); | 217 | return error; |
219 | 218 | ||
220 | return error; | 219 | setattr_copy(inode, attr); |
220 | mark_inode_dirty(inode); | ||
221 | return 0; | ||
221 | } | 222 | } |
222 | 223 | ||
223 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) | 224 | static unsigned int dlmfs_file_poll(struct file *file, poll_table *wait) |
@@ -355,13 +356,12 @@ static void dlmfs_destroy_inode(struct inode *inode) | |||
355 | kmem_cache_free(dlmfs_inode_cache, DLMFS_I(inode)); | 356 | kmem_cache_free(dlmfs_inode_cache, DLMFS_I(inode)); |
356 | } | 357 | } |
357 | 358 | ||
358 | static void dlmfs_clear_inode(struct inode *inode) | 359 | static void dlmfs_evict_inode(struct inode *inode) |
359 | { | 360 | { |
360 | int status; | 361 | int status; |
361 | struct dlmfs_inode_private *ip; | 362 | struct dlmfs_inode_private *ip; |
362 | 363 | ||
363 | if (!inode) | 364 | end_writeback(inode); |
364 | return; | ||
365 | 365 | ||
366 | mlog(0, "inode %lu\n", inode->i_ino); | 366 | mlog(0, "inode %lu\n", inode->i_ino); |
367 | 367 | ||
@@ -631,7 +631,7 @@ static const struct super_operations dlmfs_ops = { | |||
631 | .statfs = simple_statfs, | 631 | .statfs = simple_statfs, |
632 | .alloc_inode = dlmfs_alloc_inode, | 632 | .alloc_inode = dlmfs_alloc_inode, |
633 | .destroy_inode = dlmfs_destroy_inode, | 633 | .destroy_inode = dlmfs_destroy_inode, |
634 | .clear_inode = dlmfs_clear_inode, | 634 | .evict_inode = dlmfs_evict_inode, |
635 | .drop_inode = generic_delete_inode, | 635 | .drop_inode = generic_delete_inode, |
636 | }; | 636 | }; |
637 | 637 | ||