Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2122627lqa; Tue, 30 Apr 2024 08:41:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXmIgm4II3rKopUsaKCUvZjcigUVt3B436YKS/Aqrk98xkpkHqMwDxUgGyNgwOEJ6Oa/PuF+VK6CYTWRNKdKVliYsIYF8V4xej9dhXvA== X-Google-Smtp-Source: AGHT+IEJMUL76zku3K+UtLA8iJipUtvgLaDgBkNM6x5A8Xhyy+aIniIhz/O0xz03K9EkRvF1fqu8 X-Received: by 2002:a25:dc8e:0:b0:dcc:588f:1523 with SMTP id y136-20020a25dc8e000000b00dcc588f1523mr13198688ybe.49.1714491704838; Tue, 30 Apr 2024 08:41:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714491704; cv=pass; d=google.com; s=arc-20160816; b=sXMuv6f7di52IKBiwoVnn+mEj+3qNltNbL+9OSOcmbvQs9j03YXaE65tlcjXCFs2b0 HSOPTWdDK86A06icZ7zx93OZT4nwMrOb3biPOnSn6dBvTpDM5RNN+/xk4MO0BW24o0AH pRGDhOq5wWbrLPrMWy8EsNcMEEVMW38z0UmqMo+7WbrE+G7rzCZbtdJKhRON69uNAjDY SdR6nNhhvsDrnjTlcUDKxbtZnZ0MEKwqWCTvKeyvbevBYe2j0KIJXQgMzCu+bOLZ0KxR dRntf3JzRkbdI2tXC4buYPhrCuQSVlxfYBQa8sho4W74SNTVf25x7OEmbsHRL6M3m2R+ mV8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=HktqAitX/MFbl8Jl2t5m5ekVWv2NVSNp30OIaNycsOg=; fh=/RKla7ktEhVynnzIRc/vSa2iGh2C9f+yL0g+AmH2yg0=; b=IYgzf6k5JpLA7N4OGCHIhMzsHU3cM3Z0Ew3ie4sv0YLNfKlj8NUKjfzs0werOgwBvY LkbqvFoMTKuNX7HUAKIUwJSS2MZVD43iZwULEzQ6gXsIBNhDx7z68Q/QymJJe5nnesxh Xz/Sc50XxFQWCEM4IP9WvwSadH6UBK85dS2WqTAgQWXM7eE1LZSwJ5Ez8XsEF6iCfaxI QLQDFiYUGBMG9KC/OOX+KkNI/PfSZbjSP8wzkDqoMBXUXgACDZzcFq9X7G1AJr7o8g5S gjxvVQH/oIvCO4pzNKDgTLtEfKUgg37PFDx95UzvZqC4aaRrw241r+QnVgrRal6PYbjv VOpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YX4MpSTm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-164297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id er15-20020a05622a5e8f00b0043784e9d69dsi21916456qtb.496.2024.04.30.08.41.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:41:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YX4MpSTm; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-164297-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164297-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C2B61C22C33 for ; Tue, 30 Apr 2024 15:41:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B65DC176FA4; Tue, 30 Apr 2024 15:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YX4MpSTm" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5541D770F5; Tue, 30 Apr 2024 15:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714491663; cv=none; b=Xluunrp/E/DpeQA1O+SPCBU5Xh1lsEiIDj4o8tTChSyP8Ngl92QCIjMk+PzTsOcMXTCOfhGk50QXbC2kWZbW+di+337dhRhnrYGf3lntSYJi62gO6NJIwqf0wmZ+A7zpBZuH6BHZjhDTOBPeKig1WS13IjTWXJKP/kjRFsu+Veo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714491663; c=relaxed/simple; bh=f6IqcFeBOCpWpa4vG7S+dRgb7PQm2Hc82dX1ztXa+5Y=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Z6XP3/yLXMEQSAw2Co8VjSKN18BYcqb6CnFjAeBRufcPKINySHtF6tX5sx9Gjv3gZJC6qoSgeciNyiEhEC9N9lnEgWES/ySbGrYf5Bf8p4aZtEDn6ix/QCmAkpAE9oupYQomoWswlV2QKgGcy4n4OzrgrbHKmYUtSCiJJFd6w3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YX4MpSTm; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2e10b6e2bacso7408371fa.0; Tue, 30 Apr 2024 08:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714491660; x=1715096460; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HktqAitX/MFbl8Jl2t5m5ekVWv2NVSNp30OIaNycsOg=; b=YX4MpSTmm/b3Up98/2cWLzaS4hN1qZ8tdHqTr6Sr9Ii/E7JlA2jWYCi5kvsOWbQS0F LUvSiZgrGWuOpEF4VDzrjHjedlENPtxCUOE6QsTPr8ian2MG/yK3CPCXPsCcnH+9AlN5 dKwEMU/rVrKSc58V7zcYftF9MGJZMhikxCwBRkUfXDGUtxzCvKnKAFnN0ZJXxFAqu08e J8t5NfAMszcRqS5hyXYMBjToEG3dGS7+q7v9eYsQNOF/vuWNtPLGhwTLTL20pLqmYNHc bjEu7+azmmDRVFiDUHiYnGZyzQXwbdLqZsz8yeZDfyYhNKhIJlTmKk90SI1ZDNfSIb0o a4cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714491660; x=1715096460; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HktqAitX/MFbl8Jl2t5m5ekVWv2NVSNp30OIaNycsOg=; b=oOemjloDRRM8THokoAC+/GtT4fMhQ+A7Escz4Cr9MZ9Z1K2mgZccW+csQ2t3Phry2W 0oCdioaWpVqQJX8opj96HKJeF9ztZGmJfTfwQBV+wcftjj8HnQFrQBrzKyfQ0gt2ikTL BqPrvCKi90jM1L0q3S3Ar1w1S7RahghzhZ4EerWyw1bmy0/OSLaMww/j8XZUWXA45PN2 bCDa2BpJik5oQ9nhGhfwZnqunCXa75V4lzk1nd/mSYqfq/87vwMUupHnxo5oOKhGMkG0 w4L9HIbh1XWquFuhtSmdc/CKdWCsop41qm4/Gk/klL3BEdlWv6zTlLgoann0yMm2Shck sKEQ== X-Forwarded-Encrypted: i=1; AJvYcCUxyy1852J9oPrygDB1OkEtos/4YBdRQre+Z9n7y9aUVfnuwKGoWiLMvavu/m9OflfRUtESf+/pAAHP6wgQtaO3nNRBpGCSeM33mAuTBeGSFe3DiP77YzmQXjEy6KoSaaTkKdVYiLtP/RviRw== X-Gm-Message-State: AOJu0Yy2yghjOMuytJ7YRQHMlLETlAOnZiLJwWJSRoaWyjbA4G4tlfNA DZmPZ22JF/3/1DNUMKPZrQaKzRNwYGb5AZ++50b/muO40pDJNLrXwmn9mIf1U7ngcEMcla+TBIu sRsOwvhenklyaKLm1dfhLf3IUJDg= X-Received: by 2002:a2e:b747:0:b0:2e0:4cbb:858a with SMTP id k7-20020a2eb747000000b002e04cbb858amr39154ljo.27.1714491660173; Tue, 30 Apr 2024 08:41:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240429190500.30979-1-ryncsn@gmail.com> <20240429190500.30979-6-ryncsn@gmail.com> In-Reply-To: From: Kairui Song Date: Tue, 30 Apr 2024 23:40:43 +0800 Message-ID: Subject: Re: [EXTERNAL] [PATCH v3 05/12] cifs: drop usage of page_file_offset To: Steven French Cc: "linux-mm@kvack.org" , Andrew Morton , "Huang, Ying" , Matthew Wilcox , Chris Li , Barry Song , Ryan Roberts , Neil Brown , Minchan Kim , Hugh Dickins , David Hildenbrand , Yosry Ahmed , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Namjae Jeon , "Paulo Alcantara (SUSE)" , Shyam Prasad , Bharath S M Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2024 at 4:19=E2=80=AFAM Steven French wrote: > > Wouldn't this make it harder to fix the regression when swap file support= was temporarily removed from cifs.ko (due to the folio migration)? I was= hoping to come back to fixing swapfile support for cifs.ko in 6.10-rc (whi= ch used to pass the various xfstests for this but code got removed with fol= ios/netfs changes). > Hi Steven, I think this won't cause any trouble for that, the new swap_rw interface should have splitted the swap cache from fs side, which made the code struct cleaner, and I think that's the right path. NFS is using that already. With this interface, .read_folio (cifs_read_folio) should never be called for swap cache folios.