diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-06-07 00:18:40 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:48:17 -0400 |
commit | ea544009206baa03d606161656618900260b48e5 (patch) | |
tree | a79545189692c066db2deaebc4505168b155b3df | |
parent | 33b0daaa5557e9dadf4c27407fae7d316bab5686 (diff) |
switch hpfs to ->evict_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/hpfs/hpfs_fn.h | 2 | ||||
-rw-r--r-- | fs/hpfs/inode.c | 12 | ||||
-rw-r--r-- | fs/hpfs/super.c | 2 |
3 files changed, 9 insertions, 7 deletions
diff --git a/fs/hpfs/hpfs_fn.h b/fs/hpfs/hpfs_fn.h index 75f9d432485..b59eac0232a 100644 --- a/fs/hpfs/hpfs_fn.h +++ b/fs/hpfs/hpfs_fn.h | |||
@@ -281,7 +281,7 @@ void hpfs_write_inode(struct inode *); | |||
281 | void hpfs_write_inode_nolock(struct inode *); | 281 | void hpfs_write_inode_nolock(struct inode *); |
282 | int hpfs_setattr(struct dentry *, struct iattr *); | 282 | int hpfs_setattr(struct dentry *, struct iattr *); |
283 | void hpfs_write_if_changed(struct inode *); | 283 | void hpfs_write_if_changed(struct inode *); |
284 | void hpfs_delete_inode(struct inode *); | 284 | void hpfs_evict_inode(struct inode *); |
285 | 285 | ||
286 | /* map.c */ | 286 | /* map.c */ |
287 | 287 | ||
diff --git a/fs/hpfs/inode.c b/fs/hpfs/inode.c index 3f3b397fd4e..56f0da1cfd1 100644 --- a/fs/hpfs/inode.c +++ b/fs/hpfs/inode.c | |||
@@ -302,11 +302,13 @@ void hpfs_write_if_changed(struct inode *inode) | |||
302 | hpfs_write_inode(inode); | 302 | hpfs_write_inode(inode); |
303 | } | 303 | } |
304 | 304 | ||
305 | void hpfs_delete_inode(struct inode *inode) | 305 | void hpfs_evict_inode(struct inode *inode) |
306 | { | 306 | { |
307 | truncate_inode_pages(&inode->i_data, 0); | 307 | truncate_inode_pages(&inode->i_data, 0); |
308 | lock_kernel(); | 308 | end_writeback(inode); |
309 | hpfs_remove_fnode(inode->i_sb, inode->i_ino); | 309 | if (!inode->i_nlink) { |
310 | unlock_kernel(); | 310 | lock_kernel(); |
311 | clear_inode(inode); | 311 | hpfs_remove_fnode(inode->i_sb, inode->i_ino); |
312 | unlock_kernel(); | ||
313 | } | ||
312 | } | 314 | } |
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index aa53842c599..2607010be2f 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -450,7 +450,7 @@ static const struct super_operations hpfs_sops = | |||
450 | { | 450 | { |
451 | .alloc_inode = hpfs_alloc_inode, | 451 | .alloc_inode = hpfs_alloc_inode, |
452 | .destroy_inode = hpfs_destroy_inode, | 452 | .destroy_inode = hpfs_destroy_inode, |
453 | .delete_inode = hpfs_delete_inode, | 453 | .evict_inode = hpfs_evict_inode, |
454 | .put_super = hpfs_put_super, | 454 | .put_super = hpfs_put_super, |
455 | .statfs = hpfs_statfs, | 455 | .statfs = hpfs_statfs, |
456 | .remount_fs = hpfs_remount_fs, | 456 | .remount_fs = hpfs_remount_fs, |