mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Make ->drop_inode() just return whether inode needs to be dropped
... and let iput_final() do the actual eviction or retention Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
30140837f2
commit
45321ac543
10 changed files with 60 additions and 103 deletions
|
|
@ -287,7 +287,7 @@ static int logfs_write_inode(struct inode *inode, struct writeback_control *wbc)
|
|||
}
|
||||
|
||||
/* called with inode_lock held */
|
||||
static void logfs_drop_inode(struct inode *inode)
|
||||
static int logfs_drop_inode(struct inode *inode)
|
||||
{
|
||||
struct logfs_super *super = logfs_super(inode->i_sb);
|
||||
struct logfs_inode *li = logfs_inode(inode);
|
||||
|
|
@ -295,7 +295,7 @@ static void logfs_drop_inode(struct inode *inode)
|
|||
spin_lock(&logfs_inode_lock);
|
||||
list_move(&li->li_freeing_list, &super->s_freeing_list);
|
||||
spin_unlock(&logfs_inode_lock);
|
||||
generic_drop_inode(inode);
|
||||
return generic_drop_inode(inode);
|
||||
}
|
||||
|
||||
static void logfs_set_ino_generation(struct super_block *sb,
|
||||
|
|
|
|||
Loading…
Reference in a new issue