diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-13 18:27:02 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-07-06 10:44:07 -0700 |
commit | 67c3758d2267de589ee9a8856fe637cce85993d9 (patch) | |
tree | 472822e307b67d50f851020a8ae04118cbefcbc4 /fs/f2fs/super.c | |
parent | 3e19886eda963f0c1438b2d1a40334d421cd09a2 (diff) | |
download | talos-obmc-linux-67c3758d2267de589ee9a8856fe637cce85993d9.tar.gz talos-obmc-linux-67c3758d2267de589ee9a8856fe637cce85993d9.zip |
f2fs: call update_inode_page for orphan inodes
Let's store orphan inode pages right away.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index edc736de8ee9..41347c0829cd 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -585,8 +585,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) static int f2fs_drop_inode(struct inode *inode) { - int ret; - /* * This is to avoid a deadlock condition like below. * writeback_single_inode(inode) @@ -622,19 +620,7 @@ static int f2fs_drop_inode(struct inode *inode) return 0; } - ret = generic_drop_inode(inode); - if (is_inode_flag_set(inode, FI_DIRTY_INODE)) { - if (ret) - inode->i_state |= I_WILL_FREE; - spin_unlock(&inode->i_lock); - - update_inode_page(inode); - - spin_lock(&inode->i_lock); - if (ret) - inode->i_state &= ~I_WILL_FREE; - } - return ret; + return generic_drop_inode(inode); } /* |