Message ID | 20240410142948.2817554-21-yi.zhang@huaweicloud.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE36ECD128A for <linux-mm@archiver.kernel.org>; Wed, 10 Apr 2024 14:39:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 229E96B00A5; Wed, 10 Apr 2024 10:38:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0C6FE6B00A6; Wed, 10 Apr 2024 10:38:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EA9756B00A7; Wed, 10 Apr 2024 10:38:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id CACE16B00A5 for <linux-mm@kvack.org>; Wed, 10 Apr 2024 10:38:44 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9EB95A1244 for <linux-mm@kvack.org>; Wed, 10 Apr 2024 14:38:44 +0000 (UTC) X-FDA: 81993878568.01.2CC0833 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf11.hostedemail.com (Postfix) with ESMTP id 346B740007 for <linux-mm@kvack.org>; Wed, 10 Apr 2024 14:38:41 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of yi.zhang@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=yi.zhang@huaweicloud.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712759922; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=37SfuM5G3Dj7+7QLVyT1la8ndDsI8tsv6jHJ3LlC8EU=; b=pDU34vg1E7ST+FYGzYWVQyTuXBjwU3x+YBYZb2WjTOY+dExf2Wenz23LZDaAmy9+F/xhJ+ 1Dbuo2GNTk/NXuD3hCuRGFfISjKYCaIsvUWKdH/TLE5/sHpqfjGusoiesP8rH3/RI0j/Hp pmTwfMHgr54RFnmUpbU3sQvKW5xU3GI= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of yi.zhang@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=yi.zhang@huaweicloud.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712759922; a=rsa-sha256; cv=none; b=qwrHxubmyUpkhINMw9HOmGalaq5i4F9VMWN8mKoz6sT/E+LRgkOLf/T/OSx9dS1KjjBslH DDQjUgbBnWGaq3F4tpkMnkxkNBkP1meLXuqXqmNBX0AJvbpvsLtUhmzfKAUUsNptupo15F DyGu5oRvrIp9uUI7QCUKvpAChDYZqiI= Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4VF56Z0BXxz4f3lfY for <linux-mm@kvack.org>; Wed, 10 Apr 2024 22:38:30 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id AAB4B1A058D for <linux-mm@kvack.org>; Wed, 10 Apr 2024 22:38:38 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgAX6RFSpBZmcwR8Jg--.63000S24; Wed, 10 Apr 2024 22:38:38 +0800 (CST) From: Zhang Yi <yi.zhang@huaweicloud.com> To: linux-ext4@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, ritesh.list@gmail.com, hch@infradead.org, djwong@kernel.org, david@fromorbit.com, willy@infradead.org, zokeefe@google.com, yi.zhang@huawei.com, yi.zhang@huaweicloud.com, chengzhihao1@huawei.com, yukuai3@huawei.com, wangkefeng.wang@huawei.com Subject: [RFC PATCH v4 20/34] ext4: use reserved metadata blocks when splitting extent on endio Date: Wed, 10 Apr 2024 22:29:34 +0800 Message-Id: <20240410142948.2817554-21-yi.zhang@huaweicloud.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240410142948.2817554-1-yi.zhang@huaweicloud.com> References: <20240410142948.2817554-1-yi.zhang@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgAX6RFSpBZmcwR8Jg--.63000S24 X-Coremail-Antispam: 1UD129KBjvJXoW7tr1UXw4xWrW5ZFy8Ary5Jwb_yoW8Wryfpr 9rAF1xWr40v3Wj9FW8u3WUJryrC3WUWF47GrZ8t3y29ay7Jr1ruF47K3WrZFyFqrZ7Xw4j vr40qa48Zwn5Aa7anT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUHI14x267AKxVWrJVCq3wAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2048vs2IY020E87I2jVAFwI0_JF0E3s1l82xGYI kIc2x26xkF7I0E14v26ryj6s0DM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2 z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr1j6r xdM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0D M2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4 xG6I80ewAv7VC0I7IYx2IY67AKxVWUXVWUAwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCa FVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI4 02YVCY1x02628vn2kIc2xKxwCY1x0262kKe7AKxVW8ZVWrXwCF04k20xvY0x0EwIxGrwCF x2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r 1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij 64vIr41lIxAIcVC0I7IYx2IY67AKxVWDJVCq3wCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr 1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr1j6F4U JwCI42IY6I8E87Iv6xkF7I0E14v26rxl6s0DYxBIdaVFxhVjvjDU0xZFpf9x0pRDPE-UUU UU= X-CM-SenderInfo: d1lo6xhdqjqx5xdzvxpfor3voofrz/ X-Rspamd-Queue-Id: 346B740007 X-Rspam-User: X-Stat-Signature: 1jwemzcc47pgou4or5odd5qf8pqos7rr X-Rspamd-Server: rspam01 X-HE-Tag: 1712759921-63103 X-HE-Meta: U2FsdGVkX19hXh0DMuhu8bLXUfJO90dPhuW+ty1Dq50bftKQ2yvGjYrFUGLxoyO7+Djj6IlwLIvVgfS1655UGoc4Cff8J3D+aJkojTC8x0TABhXL7iSbyrVaTekf5s+F4/lRJ0WlhyHJFkuo7i+B459DI+DDX2B34W4OM5/jqAbkqyK0QSrGLzYquxCg/SWwwCRuiXZL9KVq+OHZa6qmUAT68YT2ubY1NX678QpKRPyh+37fh+esw484jhFv86Qk0c5Q3tBFgeJ/h2hLG0TfjR/tkyLMUKC5DIQMzQ4T7MNEg+CF1ecS51+2yZcZWM49522dQC2ZDbDkoZgWUclj0cS4q7mdavOoQ9XisIbC8LXWtt2W9fxSZU2tfgofsh20uEEK74FGof+R/2wiylHuZIFbahjN3zKjnaUpVUlv3pWVAMof5xvMOKFqD5Q9G6k8CCA171Ao0F3OsCjKHLenNmeHxQuE7PnJbsEB/nkO0KE/Ce80nc23cXvqeLnjMQUh2mrEOzSHGKnqP+AvjiRRF9+p3S2DAe6k+3J7VpLVOFgj0u5jDNfv1DE9G1Ot1DV0JtWhdJXgHaS1SsG0AZ1SOk7PFVVEmj/UrnZIlYovLnxCXFDveEaGKSzXP5c+MvgO0Bm0VBdRxZz/QoQz8AE6mlO2Vd7V4eEnyrL4WZq+A8qGI63qnwG+rKl1jIKt8cbgHHHZVJu8tKLsASQjut+VA3kh6CDhvWlwROJFun3GeyF6zx7woiweJqbd7dFubEoVjL6m9ZOD5u10Sq0Rmf+WRgMWYleNziUwHd6OwsycsJuX9iN+YnEj9K/W0oxiTKn9SEGG7g3mYltQTMbxU5iphXRqlzEA+h3OdJ5WmTmHGxtwAtag+n2p08TsX3/M77lS2xYedvrYz6zIGep8t2cCLMjdU7asoVmoE/Lf74rxR+bUo4o1rFX4aZ5hxJH+gY/qIwPDfC90gK8Jp3IUPc3 iHOlIL2Z qULjrufFfW8wd4UDGFhiOC8U4nsvB2OmDFKPJ190ZqTXnPlV+z2hJQmKuGYRnV4MWQ3+oZVFS6pNXObx5Iug1nFW8cBE1EbWvSwoZuK/dZQ3/O2MqxU7zXZsg1dkkvvOweHPq6XtkK5AL7zhu7FIEZ2MsFr37jJPEGtkq6IAI+Ux05o/cKOxANxRQb/OJT6d1CYVY0dJ0LCF/hd+rYZuy8yaSJeUtiJkqkj4Jbvy6H1VeoCqvf1Cgr270V9KcxTzKAXhu1NRfgI96xubYUscYXEvQaJuHBD7eyB+p X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
ext4: use iomap for regular file's buffered IO path and enable large folio
|
expand
|
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 8bc8a519f745..fcb1916a7c29 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -3722,7 +3722,8 @@ static int ext4_convert_unwritten_extents_endio(handle_t *handle, (unsigned long long)map->m_lblk, map->m_len); #endif err = ext4_split_convert_extents(handle, inode, map, ppath, - EXT4_GET_BLOCKS_CONVERT); + EXT4_GET_BLOCKS_CONVERT | + EXT4_GET_BLOCKS_METADATA_NOFAIL); if (err < 0) return err; path = ext4_find_extent(inode, map->m_lblk, ppath, 0);