f2fs: set GFP_NOFS when moving inline dentries
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 4 Dec 2019 03:07:53 +0000 (19:07 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 12 Dec 2019 21:24:34 +0000 (13:24 -0800)
Otherwise, it can cause circular locking dependency reported by mm.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inline.c

index 896db04..52f85ed 100644 (file)
@@ -368,7 +368,7 @@ static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage,
        struct f2fs_dentry_ptr src, dst;
        int err;
 
-       page = f2fs_grab_cache_page(dir->i_mapping, 0, false);
+       page = f2fs_grab_cache_page(dir->i_mapping, 0, true);
        if (!page) {
                f2fs_put_page(ipage, 1);
                return -ENOMEM;