Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2596397pxb; Sun, 24 Apr 2022 20:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0AWxxojNEWOQIG/+VZ54B8jE0+2KYlDHVH5oCz+N2sJmJBhCz0h4u7AbY3GIQ6bczwm/J X-Received: by 2002:a17:906:5641:b0:6da:8691:3fcc with SMTP id v1-20020a170906564100b006da86913fccmr14138320ejr.50.1650856906024; Sun, 24 Apr 2022 20:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650856906; cv=none; d=google.com; s=arc-20160816; b=Gka2qklXu0WWr4SlFcLRJugrDlheHx+FthouxrStTLPKAL+9PZLo/op4ONmuackj4W aIycgCWv4txObch8gbg7k3FOllMcyQqbfR3gfamiXrXWgJMwDs1xiP2iSh6/WE16C2ET Dt8cWegWc399PMPMaThJ2su+R/bFglsxXJcaKKBwSLQv5ai0XUn4gCfKYCkk49NDB52q 65Ou95ZniULQhtgJdfKiUXhTtjFoGwpfE/+ypK8Oy8ReeZtUoK6nIjKPyz+HadB9rYLd 0oqWHW9Vxp02ObmliSi7YkpxxNHbFrNOZz4MEvJ5mLd/vbYz88I0Xwkpqr/eOmT1VCUm ZSdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TayjnwNYA2er/S5PVYLPL5f+pgc6OxaW2PiajxG39sY=; b=Lnzao6BriuWd78SjCynH4idWBLCuWa+gsWjTM/FzIHeCQ3yDYz7e6TVnpiXFxOHfOJ zex3ZRM/3pPJGRY6mO+PkDGXwROtYvUtc01r3qQae33NKOQqXligeZyolfUG8oZzI+Yr GJuwgonNs3u24J/yeUL2/euKCgkZjhE4BerVkMnTQvyCAzqKHTwzhnuGd0so6QARDA8M 5U1lt5Y0c+memFJa9s9mLoT7NkF4Vsrn2wZ6IcgXSFpv0nZHkWVqU0GF3qUwuabep06F DXt5tB03mtVUgYoWb1sMbwRi7vp9DuMhnl5wgzDr19lAZGkGN5GyBudAwhBPHh1qyZGM 72ZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb3-20020a170906a44300b006f399066cb9si1086416ejb.863.2022.04.24.20.21.09; Sun, 24 Apr 2022 20:21:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233758AbiDXN6i (ORCPT + 99 others); Sun, 24 Apr 2022 09:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233282AbiDXN6i (ORCPT ); Sun, 24 Apr 2022 09:58:38 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E8DE140A5 for ; Sun, 24 Apr 2022 06:55:37 -0700 (PDT) Received: from canpemm500005.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KmV311QBtzGp4J; Sun, 24 Apr 2022 21:53:01 +0800 (CST) Received: from huawei.com (10.175.127.227) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sun, 24 Apr 2022 21:55:22 +0800 From: Zhang Yi To: CC: , , , , , Subject: [RFC PATCH v4 0/2] ext4: standardize the journal mode of symlink external block Date: Sun, 24 Apr 2022 22:09:34 +0800 Message-ID: <20220424140936.1898920-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500005.china.huawei.com (7.192.104.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Standardize the journal mode of symlink external block, from the essentially data=journal mode to 'standard mode' like other metadata blocks. (e.g. directory blocks and directory blocks...) Thanks, Yi. v4->v3: - Add a query cache 'no-wait' mode of ext4_getblk() and ext4_map_blocks() to fix potential sleep problem in RCU context. v3->v2: - Retry if it fail in close-to-ENOSPC conditions. - Use ext4_add_nondir() to add dir entry for no-fast symlink. - Fix RCU walking for symlinks. - Ensure nul-terminate when in ext4_get_link(). v2->v1: - Add comment to explain the credits of creating symlink. [v3]: https://lore.kernel.org/linux-ext4/20220418063735.2067766-1-yi.zhang@huawei.com/ [v2]: https://lore.kernel.org/linux-ext4/20220412083941.2242143-1-yi.zhang@huawei.com/ [v1]: https://lore.kernel.org/linux-ext4/20220406084503.1961686-1-yi.zhang@huawei.com/ Zhang Yi (2): ext4: add nowait mode for ext4_getblk() ext4: convert symlink external data block mapping to bdev fs/ext4/ext4.h | 2 + fs/ext4/inode.c | 23 ++++++--- fs/ext4/namei.c | 123 +++++++++++++++++++++------------------------- fs/ext4/symlink.c | 51 ++++++++++++++++--- 4 files changed, 116 insertions(+), 83 deletions(-) -- 2.31.1