From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 570A9C433EF for ; Mon, 27 Sep 2021 15:05:07 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D687D6101A for ; Mon, 27 Sep 2021 15:05:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D687D6101A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HJ5Xd48l1z2yPR for ; Tue, 28 Sep 2021 01:05:05 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=USgMLJTD; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=xiang@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=USgMLJTD; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HJ5XZ6XKMz2yHT for ; Tue, 28 Sep 2021 01:05:02 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPSA id A5F4460F39; Mon, 27 Sep 2021 15:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632755100; bh=1w1TsuyroXmZ3maoxPYqxUTXBvM2Qlfcn/0n3rSewbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=USgMLJTD7jCB+Fy0BFryvKrhTSN/sJMyZfSe/+UsLF4Luc7GyfAidMwdGEMNK34wi hFr7/RsJSdCAO4SIHF/1WJ4ys7ME2J1bsNqwkEWfnU4nutzDS07Av3R3DNFg4OjRlI 9szIA4jMVu7akUxRqzqPyNr69uoXuE6MqP+OKNNQBmtLcJAwXcnphrSrFap2fJHapJ B8JOKxZR8/DIC7a0WH+WVh71TNJgpmg6YWRqaBIQV5gjicssEWl/QsqCzki7QJSCUF gd9g3ZnQYZEBamDIPrajar3N44AYoz9rRdPprl5IilFVM/MrFnxQtzHdG5PAorJzIC T2IdMrV99kxyw== From: Gao Xiang To: linux-erofs@lists.ozlabs.org Subject: [PATCH 2/3] erofs-utils: erofs_drop_directly_bhops for blob remapping Date: Mon, 27 Sep 2021 23:04:00 +0800 Message-Id: <20210927150401.14305-2-xiang@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210927150401.14305-1-xiang@kernel.org> References: <20210927150401.14305-1-xiang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Easier to understand, no real impact. Signed-off-by: Gao Xiang --- lib/blobchunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blobchunk.c b/lib/blobchunk.c index 725b5173a598..661c5d0121a8 100644 --- a/lib/blobchunk.c +++ b/lib/blobchunk.c @@ -193,7 +193,7 @@ int erofs_blob_remap(void) remapped_base = erofs_blknr(pos_out); ret = erofs_copy_file_range(fileno(blobfile), &pos_in, erofs_devfd, &pos_out, length); - bh->op = &erofs_skip_write_bhops; + bh->op = &erofs_drop_directly_bhops; erofs_bdrop(bh, false); return ret < length ? -EIO : 0; } -- 2.20.1