Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4639670ybl; Mon, 9 Dec 2019 14:25:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwvmsBhmU0eSExHTwLKYgCYUU3ZxvJldbKVgK+rsuJei5Uctk56QglxyGVFbIxw50dVSAlC X-Received: by 2002:a05:6830:1407:: with SMTP id v7mr23864252otp.58.1575930303476; Mon, 09 Dec 2019 14:25:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575930303; cv=none; d=google.com; s=arc-20160816; b=O4SyYriuKdk4vTz+YpLDwlnFGU29R6qLgFFidWusCgo6zhLa/F6U5VXj4MonT//JSY MNXE8rrxt5eKupOD7tuQF4mOoxn4CakeY/xCavY6iOW3+xxTa8dDfR4ruH3UouRlXm+P CRlhKgYe4ZjG85uungq1OfWfvUHeayDrTju6lhekdWuOZ4iygKtzVGprrTOA5QavC1c+ Y1uGEy8LBp5CShlOC1mAkSvxngVTrLKjgRqDoeHRnbJxG7zf2l4MdpPvR9sbFJUxQIIS UTlGH66CaEt9E6/sdJZljey+pUSDohvf0FV/TvTOZQIY74jxDa2qhiKj53IpP2UkWl18 HOpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qYCFUjYwM16rzvxl0oMDkPWW1FW7U1gDaazhGoaNQKM=; b=E8ydemnTQm7IRntOEZlIqfOrW2mO3UlrN9B2kTBWVkXJRzX7DBZ9Jwo6DT9sW7Aeju xweR1z08/s+C3LV2IRI/f2MRUkoSoo0o/vLYBchr6i5YZkqHAB3jJk0Fl4T1pFwaPz3I VLtuYjsBhlqp7/QyvGYbVNAEGPNoOzdEUGu10xGMUj5xf5Qx++ulXM6Kzyk5vvy9EkQX bjtXb1WYb62eefZZ8DSseJIr+1sQ6fs9jixRj5sbeHZmbv9YisxTRcBw0mZWdrlFR/zb PTa4P5OrMYHEZyPFZCdGlG5IKdMdvnMscvlujSqEYgawEvkrjd1gwW10vFIgmKxR/mpo AcOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jZwDje6T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si796263otp.139.2019.12.09.14.24.51; Mon, 09 Dec 2019 14:25:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jZwDje6T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727049AbfLIWYD (ORCPT + 99 others); Mon, 9 Dec 2019 17:24:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:40572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726913AbfLIWXt (ORCPT ); Mon, 9 Dec 2019 17:23:49 -0500 Received: from localhost (unknown [104.132.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BC6B220726; Mon, 9 Dec 2019 22:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575930228; bh=8cR/ULUscr3UPWmG/10SoHiMq7WuYzVCxKz9deW1Qxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jZwDje6T2zUqfXoR++5dwDY3Jy/iemEyl8zsXLQjRSzKeepB83oLKKujI/9UhJCJw jhHY6bviwuR8s9KOqKersNfKXiNps9uC0ffFJG4zYLw++izJY5sER/+PvwEVgeGdvP OEp2dTo264cXQ6tGFc5wlkU4WaRDEYfVnkq/QhOs= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH 4/6] f2fs: should avoid recursive filesystem ops Date: Mon, 9 Dec 2019 14:23:43 -0800 Message-Id: <20191209222345.1078-4-jaegeuk@kernel.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog In-Reply-To: <20191209222345.1078-1-jaegeuk@kernel.org> References: <20191209222345.1078-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to use GFP_NOFS, since we did f2fs_lock_op(). Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 6cebc6681487..eb653f700ade 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1191,13 +1191,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; -- 2.19.0.605.g01d371f741-goog