Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b22f8fc9 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Jaegeuk Kim
Browse files

f2fs: should avoid recursive filesystem ops



We need to use GFP_NOFS, since we did f2fs_lock_op().

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d8df0833
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1188,13 +1188,13 @@ static int __exchange_data_block(struct inode *src_inode,

		src_blkaddr = f2fs_kvzalloc(F2FS_I_SB(src_inode),
					array_size(olen, sizeof(block_t)),
					GFP_KERNEL);
					GFP_NOFS);
		if (!src_blkaddr)
			return -ENOMEM;

		do_replace = f2fs_kvzalloc(F2FS_I_SB(src_inode),
					array_size(olen, sizeof(int)),
					GFP_KERNEL);
					GFP_NOFS);
		if (!do_replace) {
			kvfree(src_blkaddr);
			return -ENOMEM;