convert remaining ->clear_inode() to ->evict_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -2238,7 +2238,7 @@ void ntfs_clear_extent_inode(ntfs_inode *ni)
|
||||
}
|
||||
|
||||
/**
|
||||
* ntfs_clear_big_inode - clean up the ntfs specific part of an inode
|
||||
* ntfs_evict_big_inode - clean up the ntfs specific part of an inode
|
||||
* @vi: vfs inode pending annihilation
|
||||
*
|
||||
* When the VFS is going to remove an inode from memory, ntfs_clear_big_inode()
|
||||
@@ -2247,10 +2247,13 @@ void ntfs_clear_extent_inode(ntfs_inode *ni)
|
||||
*
|
||||
* If the MFT record is dirty, we commit it before doing anything else.
|
||||
*/
|
||||
void ntfs_clear_big_inode(struct inode *vi)
|
||||
void ntfs_evict_big_inode(struct inode *vi)
|
||||
{
|
||||
ntfs_inode *ni = NTFS_I(vi);
|
||||
|
||||
truncate_inode_pages(&vi->i_data, 0);
|
||||
end_writeback(vi);
|
||||
|
||||
#ifdef NTFS_RW
|
||||
if (NInoDirty(ni)) {
|
||||
bool was_bad = (is_bad_inode(vi));
|
||||
|
@@ -279,7 +279,7 @@ extern struct inode *ntfs_index_iget(struct inode *base_vi, ntfschar *name,
|
||||
|
||||
extern struct inode *ntfs_alloc_big_inode(struct super_block *sb);
|
||||
extern void ntfs_destroy_big_inode(struct inode *inode);
|
||||
extern void ntfs_clear_big_inode(struct inode *vi);
|
||||
extern void ntfs_evict_big_inode(struct inode *vi);
|
||||
|
||||
extern void __ntfs_init_inode(struct super_block *sb, ntfs_inode *ni);
|
||||
|
||||
|
@@ -2700,7 +2700,7 @@ static const struct super_operations ntfs_sops = {
|
||||
.put_super = ntfs_put_super, /* Syscall: umount. */
|
||||
.statfs = ntfs_statfs, /* Syscall: statfs */
|
||||
.remount_fs = ntfs_remount, /* Syscall: mount -o remount. */
|
||||
.clear_inode = ntfs_clear_big_inode, /* VFS: Called when an inode is
|
||||
.evict_inode = ntfs_evict_big_inode, /* VFS: Called when an inode is
|
||||
removed from memory. */
|
||||
//.umount_begin = NULL, /* Forced umount. */
|
||||
.show_options = ntfs_show_options, /* Show mount options in
|
||||
|
Reference in New Issue
Block a user