diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-10 19:29:14 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-11-10 19:29:14 -0500 |
commit | 57e2a2c0a698406e6206ab707bd7c3dcf248c738 (patch) | |
tree | 9cd45c0028ec88958f4d38afc64188929c69069d | |
parent | b7e1d800031c827a80c9a9d03cf15e4dd5405a44 (diff) |
f2fs: reduce the number of inline_data inode before clearing it
The # of inline_data inode is decreased only when it has inline_data.
After clearing the flag, we can't decreased the number.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fs/f2fs/inline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 8b6610906ea5..231067027745 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c | |||
@@ -116,8 +116,8 @@ no_update: | |||
116 | /* clear inline data and flag after data writeback */ | 116 | /* clear inline data and flag after data writeback */ |
117 | truncate_inline_data(dn->inode_page, 0); | 117 | truncate_inline_data(dn->inode_page, 0); |
118 | clear_out: | 118 | clear_out: |
119 | f2fs_clear_inline_inode(dn->inode); | ||
120 | stat_dec_inline_inode(dn->inode); | 119 | stat_dec_inline_inode(dn->inode); |
120 | f2fs_clear_inline_inode(dn->inode); | ||
121 | sync_inode_page(dn); | 121 | sync_inode_page(dn); |
122 | f2fs_put_dnode(dn); | 122 | f2fs_put_dnode(dn); |
123 | return 0; | 123 | return 0; |