f2fs: relocate f2fs_precache_extents()
PATCH 1/1 f2fs: relocate f2fs_precache_extents()
Relocate f2fs_precache_extents() in prior to check_swap_activate(), then extent cache can be enabled before its use.
Signed-off-by Chao Yu <[email protected]>
--- fs/f2fs/data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/f2fs/data.c +2 -1
@@ -4129,12 +4129,13 @@ static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file,if (!f2fs_disable_compressed_file (inode))return -EINVAL ; +f2fs_precache_extents (inode); + ret =check_swap_activate (sis, file, span);if (ret <0 )return ret;set_inode_flag (inode,FI_PIN_FILE ); -f2fs_precache_extents (inode);f2fs_update_time (F2FS_I_SB (inode),REQ_TIME );return ret; }
Signature · 8 lines
2.29.2 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel