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>
This commit is contained in:
Родитель
b7e1d80003
Коммит
57e2a2c0a6
|
@ -116,8 +116,8 @@ no_update:
|
||||||
/* clear inline data and flag after data writeback */
|
/* clear inline data and flag after data writeback */
|
||||||
truncate_inline_data(dn->inode_page, 0);
|
truncate_inline_data(dn->inode_page, 0);
|
||||||
clear_out:
|
clear_out:
|
||||||
f2fs_clear_inline_inode(dn->inode);
|
|
||||||
stat_dec_inline_inode(dn->inode);
|
stat_dec_inline_inode(dn->inode);
|
||||||
|
f2fs_clear_inline_inode(dn->inode);
|
||||||
sync_inode_page(dn);
|
sync_inode_page(dn);
|
||||||
f2fs_put_dnode(dn);
|
f2fs_put_dnode(dn);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче