From patchwork Mon Jul 29 08:47:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yangerkun X-Patchwork-Id: 13744560 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A256FC3DA61 for ; Mon, 29 Jul 2024 08:50:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 21BAE6B0088; Mon, 29 Jul 2024 04:50:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A4906B008A; Mon, 29 Jul 2024 04:50:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 094D16B008C; Mon, 29 Jul 2024 04:50:41 -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 E59AF6B0088 for ; Mon, 29 Jul 2024 04:50:40 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8A2C7801B8 for ; Mon, 29 Jul 2024 08:50:40 +0000 (UTC) X-FDA: 82392169440.15.52C057E Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf16.hostedemail.com (Postfix) with ESMTP id 0FD01180007 for ; Mon, 29 Jul 2024 08:50:37 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; spf=pass (imf16.hostedemail.com: domain of yangerkun@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=yangerkun@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722243012; a=rsa-sha256; cv=none; b=e/KExL+yMfTgFjUmzR5M0YLaywfNmemkuuswZD+odXh0ayZWnxuzktjen4ZEIEBqQYhHw1 hk7ln34/4z3377E4o/bcudATwCHg/++xYGU+/TmgL1tP+oujaeylrmL4uBkWoT2ZyM3t/W h+I5X5zeU4Gp41w3O57gyVlIKIsak6c= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; spf=pass (imf16.hostedemail.com: domain of yangerkun@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=yangerkun@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722243012; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=4u1N3hTzRMkOZvicUr6Na9rAB41dr1u6OsJhnUYFV88=; b=HyfXmyWwzqTywumYzymoOVtAFb7lzrGIuc0jnabdvh96nlsNYg38IB3MEOBtHBN1a39AHM bXtnjng824AA7hajZhTR3lZGZbYYkI6E42ZdlJ7dSvhLbxrufOMfb3pIt4UYFcOSjIUaQL 2WtoBCYYGF+t30BFNE6K+13JGLvDWcg= Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4WXX8K6pbpz17N0R; Mon, 29 Jul 2024 16:48:49 +0800 (CST) Received: from kwepemf100006.china.huawei.com (unknown [7.202.181.220]) by mail.maildlp.com (Postfix) with ESMTPS id 2DC651A016C; Mon, 29 Jul 2024 16:50:34 +0800 (CST) Received: from localhost.localdomain (10.175.104.67) by kwepemf100006.china.huawei.com (7.202.181.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 29 Jul 2024 16:50:33 +0800 From: Yang Erkun To: , CC: , , , , , Subject: [PATCH v2 1/2] generic/732: remove unused code Date: Mon, 29 Jul 2024 16:47:14 +0800 Message-ID: <20240729084715.1736839-1-yangerkun@huawei.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Originating-IP: [10.175.104.67] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemf100006.china.huawei.com (7.202.181.220) X-Stat-Signature: 8smx9uyg3t6n9tqepe6sekzyt9m4pum5 X-Rspamd-Queue-Id: 0FD01180007 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1722243037-552952 X-HE-Meta: U2FsdGVkX19Xv2ZothIF1zDtj9oKURAXMpkPAQL+HOJuf5nm5OhxecRkrYME0KpF/zEYRmbp9k6c2bm6zaQM4N5It/bRkFUVAh1ahvFUtza9QvvNW6clpT1pjRdqqqg9q1kHuMT6H9C+zY45y/6+16U2HKJSmv3NgYKM8dLoHrPPBl9XmVPp374mAwXyyiMxHIzW4RLXTjNfoFzWKBs9OdZkPeSIV1ur0uQ1TDCLK5xZHP9xjvEJ6EhAl6G0HvpGCyYfBAb8cXahzVFpda0hcUJyXYGAgmmPTSz6+4ssryNnm5avrv1erMQon5Hc5s9209CYuJ3Ty2W3hHMNCFka6GkKv3mAit6hpRsfxn5feYH5kT4lwCA8yZvNQoWimmBAwhxXjUA6eVKoDwRY5orT8I2kFQzZISWrPc3s0MpDBCCM7j794QEK9TtwaqIKBvg2nKKNIvOeFyPcmLfTMirHSlKqWQnl6h8wrWr/A6k0Jl87tXGdjuT+FzurWpbAHg+9XLUyBwLNya0GWlHS7sCrmJAV14Sb2vhHCG8AVU3cfAKjjj9K9FZL/WPi4A7WifpaiSbFUK8sxB3abiYGgUD8O/xG06pWw2LE/tYeXKZbAOSYrcHhmk+5w7QWc8Ejwk20uAUyacZphxCEvVsCkAyC4330cJ+i5rNqJhusmz6DxUBrUX3w6U74Cnf4289lYmA6+W6xXio9v+H/WnnI45tUfBZavOtzbXpbZP698kDoQqxLmJH7Aps6wyB1CEONQ77YQQjJd5MX71P6zDBDSKRjnp3RP8y9siyWu/uDvnmdoqMG5FSfn/4Kum7afs/5wEygsFudHrbs9ZmW5YZHqTHHwL3d20CCt31UCD1r38nxGgCfZzmkbyvFBMZLgJSr8QXu5EBgd01x2ZvgIVkryvUIKxC+rj2wPWpu+z2PBj78mlwTyrQ+czSNDJoAOrFnpP0mzvty3AkYXvE8zs/q+Pq hFfJwb3w YG36xC7RxaGhXtCMTpulcIeGUnZsNQj6n8f+JcAmMG+4a23W2r31XwHeOESvZDmHFKDsOtz/VeZFp7kh41EwZQ0h9UppOnfit28cNHTlE1Zm3mA74C4U7SM4NgB2LAQ5dIm/jeGMn+mCA7bJPLAc0T1mcoIKoPxHfzVRh 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: List-Subscribe: List-Unsubscribe: After commit 4fd042e0465c("generic/732: don't run it on NFS"), we will not run this case for nfs, so remove this unused code. Signed-off-by: Yang Erkun Reviewed-by: Christoph Hellwig --- tests/generic/732 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/generic/732 b/tests/generic/732 index a571f0f5..d8475cda 100755 --- a/tests/generic/732 +++ b/tests/generic/732 @@ -34,11 +34,6 @@ testdir2=$TEST_DIR/mountpoint2-$seq rm -rf $testdir1 $testdir2 mkdir -p $testdir1 $testdir2 -# Don't share the data and attribute caches among mount points for NFS. -# This caching behavior is necessary to reproduce this issue as we're -# checking the alignment of each mount point's own unique cache. -[ "$FSTYP" = "nfs" ] && MOUNT_OPTIONS="-o nosharecache" - SCRATCH_MNT=$testdir1 _scratch_mount SCRATCH_MNT=$testdir2 _scratch_mount rm -rf $testdir1/{A,B} From patchwork Mon Jul 29 08:47:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yangerkun X-Patchwork-Id: 13744561 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09C8DC3DA4A for ; Mon, 29 Jul 2024 08:50:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 772236B008A; Mon, 29 Jul 2024 04:50:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 722A46B008C; Mon, 29 Jul 2024 04:50:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 610A86B0092; Mon, 29 Jul 2024 04:50:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 49C826B008A for ; Mon, 29 Jul 2024 04:50:41 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id DED6A1601CB for ; Mon, 29 Jul 2024 08:50:40 +0000 (UTC) X-FDA: 82392169440.26.3FF02F6 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf05.hostedemail.com (Postfix) with ESMTP id 854F610000B for ; Mon, 29 Jul 2024 08:50:38 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of yangerkun@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=yangerkun@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722242979; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pz3+O7HG8OqeCCCvw6Jw5YiTlDscVkvTxCyYUirFI7U=; b=x99i9Ptkeb8eWHBijqjithTVG2TN+Fkioly6yB9roBT78UTDdhaAfh0T2HbloLsl0CzG3T ySZ9EhUA+nlKxibi4/XfVHjT5P4x12fXJWotH4NijwqbIRMrTPl7mK3COuSwTt9BkyX7zI mWWuTjgdqVbr6vO+6pYrwUBL+ReZg8I= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722242979; a=rsa-sha256; cv=none; b=tt2o19MfjMBOmuJUO2rrj6OC7dXC+tVRGAXnDHJqtowF97j8YCoYAIDPa57CxaRs52BbGv IuW2PEqDlZZvEGbLcWwbq7fyWxUYr8J8BJy5KCZWPfF93NI8P9D2aOMBqaraEGHxSuCzxm 6RiGfm7ntcK6MHZb1EPTe6IFZ/644mU= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of yangerkun@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=yangerkun@huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4WXX8F30b4zdkPX; Mon, 29 Jul 2024 16:48:45 +0800 (CST) Received: from kwepemf100006.china.huawei.com (unknown [7.202.181.220]) by mail.maildlp.com (Postfix) with ESMTPS id E14F4140444; Mon, 29 Jul 2024 16:50:34 +0800 (CST) Received: from localhost.localdomain (10.175.104.67) by kwepemf100006.china.huawei.com (7.202.181.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 29 Jul 2024 16:50:34 +0800 From: Yang Erkun To: , CC: , , , , , Subject: [PATCH v2 2/2] generic/732: don't run it on tmpfs Date: Mon, 29 Jul 2024 16:47:15 +0800 Message-ID: <20240729084715.1736839-2-yangerkun@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240729084715.1736839-1-yangerkun@huawei.com> References: <20240729084715.1736839-1-yangerkun@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.104.67] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemf100006.china.huawei.com (7.202.181.220) X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 854F610000B X-Stat-Signature: di9rqdj8ugd636x9mquh8pq7z889x3ho X-Rspam-User: X-HE-Tag: 1722243038-361568 X-HE-Meta: U2FsdGVkX18yqv5RGH2pJS9wPHVMA3O7oUHe/b5Y364sJf+cD/p3yaA7aXFThi1fpWJBFbXPkWkdNlX8lIFStQVF08VMMLCH4Gm0jRAmV2dz46IHtfomlQwdHFCvOaFpIFFLnoNNURzsAiR71Vxq56YRW2yvMKVgQE27e53KuUSOrATGFE4ewM6IwZ9TIrBKDrxlY7YATGrXFSmp+qsMJP6amFprUpk6UAVLPVIB1mFebVUYMN8EbdkHzPjr+WZJUiXh7uh2t4YKu1OqyFNvbBAgDMPlXLlcwHdm6tu9XpB/NmzhywPl6FbuU/14mPs7W93zufvktJzih9VTsczZ9WLMiUUqmOpqa0lC9p1Jba8e7H74hfiuB5yFnIb2FFnWtWvrzRgy91wqKcLW2YJ0a9b7L8+iiRVNDQwhITH2P47vIYB47/fS0a8wOTv2kLV9A9k9TK4F0Nra3JtKO4l+ebLIo/s9vhRyxVWwXqc04Bx0tTVrOSyf6r+TDi96K+mSHaJQJ46dLNDgkZotQw5BtC7sgGPnduC2YXGqusSj7oR9f3T/zpEerXQnc4SEZEej2UAv8vjrCRliSPqLzSCkvXYUbahUYDgL944Z89bQ8WL40+ijWa1rMLX5pIvIX6F7pwPNrvikzx6ibCk43Nrz9K3fyRl5cxq69YStv8HAVSjni51dqiULDM252EOJvVXSEDFlEvGogwJICBbyod1pfEa2wvoyL7QgeXcfHPVf+7MVS5c1UZEt8rvfCfdIf5OiCd5kJJyVAAue0a/PPV7T2VQcPdkBe1hqDc7D/aW1uIfggxPbwjgXLmnJ9narfYmtlEbGGJu4edPTCOK0CFKNgjXQnXQNDdjdMNj4+WZMguUYCDDA2RAJUPfyPspiPENJ/SwzzbFNZjpzzbufF1ZV9lHhPMOTbrN9JdDBgf5ulXAj1w5RI21AovHGXdd6HDTls+lO/qvTjp7T3sLGmp8 75bJ0dSp Qigc6Bb9Eww0axQbp3Gmg7EGewpBSGowM4GmXEU7c6CHk5fX2KHxYV22/E2i1ycJoxuEB2jZ84OGNchOIxTIlpc9r8p+qd3BYHC1osYqakjEHFE0HIwl6W38AqwlJ7QGVmWeyN4LW0/CPzQoG2GpRrXjLLw== 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: List-Subscribe: List-Unsubscribe: Like what 4fd042e0465c("generic/732: don't run it on NFS") say, the same options for tmpfs won't share the same backend. Skip it for tmpfs. Besides, add some explanation for why we should skip tmpfs. Signed-off-by: Yang Erkun Reviewed-by: Christoph Hellwig --- tests/generic/732 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/generic/732 b/tests/generic/732 index d8475cda..d08028c2 100755 --- a/tests/generic/732 +++ b/tests/generic/732 @@ -21,7 +21,10 @@ _cleanup() rm -r -f $tmp.* } -_supported_fs ^nfs ^overlay +# This case give a assumption that the same mount options for +# different mount point will share the same superblock, which won't +# sucess for the follow fs. +_supported_fs ^nfs ^overlay ^tmpfs _require_test _require_scratch