f2fs: set GFP_NOFS when moving inline dentries
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>
This commit is contained in:
parent
4f4460c08a
commit
dd973007bf
|
@ -368,7 +368,7 @@ static int f2fs_move_inline_dirents(struct inode *dir, struct page *ipage,
|
||||||
struct f2fs_dentry_ptr src, dst;
|
struct f2fs_dentry_ptr src, dst;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
page = f2fs_grab_cache_page(dir->i_mapping, 0, false);
|
page = f2fs_grab_cache_page(dir->i_mapping, 0, true);
|
||||||
if (!page) {
|
if (!page) {
|
||||||
f2fs_put_page(ipage, 1);
|
f2fs_put_page(ipage, 1);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue