Commit ea544009 authored by Al Viro's avatar Al Viro

switch hpfs to ->evict_inode()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 33b0daaa
...@@ -281,7 +281,7 @@ void hpfs_write_inode(struct inode *); ...@@ -281,7 +281,7 @@ void hpfs_write_inode(struct inode *);
void hpfs_write_inode_nolock(struct inode *); void hpfs_write_inode_nolock(struct inode *);
int hpfs_setattr(struct dentry *, struct iattr *); int hpfs_setattr(struct dentry *, struct iattr *);
void hpfs_write_if_changed(struct inode *); void hpfs_write_if_changed(struct inode *);
void hpfs_delete_inode(struct inode *); void hpfs_evict_inode(struct inode *);
/* map.c */ /* map.c */
......
...@@ -302,11 +302,13 @@ void hpfs_write_if_changed(struct inode *inode) ...@@ -302,11 +302,13 @@ void hpfs_write_if_changed(struct inode *inode)
hpfs_write_inode(inode); hpfs_write_inode(inode);
} }
void hpfs_delete_inode(struct inode *inode) void hpfs_evict_inode(struct inode *inode)
{ {
truncate_inode_pages(&inode->i_data, 0); truncate_inode_pages(&inode->i_data, 0);
lock_kernel(); end_writeback(inode);
hpfs_remove_fnode(inode->i_sb, inode->i_ino); if (!inode->i_nlink) {
unlock_kernel(); lock_kernel();
clear_inode(inode); hpfs_remove_fnode(inode->i_sb, inode->i_ino);
unlock_kernel();
}
} }
...@@ -450,7 +450,7 @@ static const struct super_operations hpfs_sops = ...@@ -450,7 +450,7 @@ static const struct super_operations hpfs_sops =
{ {
.alloc_inode = hpfs_alloc_inode, .alloc_inode = hpfs_alloc_inode,
.destroy_inode = hpfs_destroy_inode, .destroy_inode = hpfs_destroy_inode,
.delete_inode = hpfs_delete_inode, .evict_inode = hpfs_evict_inode,
.put_super = hpfs_put_super, .put_super = hpfs_put_super,
.statfs = hpfs_statfs, .statfs = hpfs_statfs,
.remount_fs = hpfs_remount_fs, .remount_fs = hpfs_remount_fs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment