Message ID | 20240510114747.21548-6-ryncsn@gmail.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 4D450C25B10 for <linux-mm@archiver.kernel.org>; Fri, 10 May 2024 11:50:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D7E9C6B00C8; Fri, 10 May 2024 07:50:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D2E486B00C9; Fri, 10 May 2024 07:50:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BCEEE6B00CA; Fri, 10 May 2024 07:50:17 -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 9E9A06B00C8 for <linux-mm@kvack.org>; Fri, 10 May 2024 07:50:17 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CA93A14180E for <linux-mm@kvack.org>; Fri, 10 May 2024 11:50:16 +0000 (UTC) X-FDA: 82102318032.12.EF42988 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by imf27.hostedemail.com (Postfix) with ESMTP id F31F94000A for <linux-mm@kvack.org>; Fri, 10 May 2024 11:50:13 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EioR5OnB; spf=pass (imf27.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.181 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715341814; h=from:from:sender:reply-to: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:dkim-signature; bh=SKkpoPGaGqkRG+GvEkaimZUGHi7Z3i5I8Zq2egM0XJg=; b=XHb54HjhYT3voZRwdL90QIhrCwPTRL/y74ZLtzutv5su3aCGmt42ZWWSCCDrbMGFGl59+t ogVUjMTyxsipTdEBocSCe2h/HSQWhDNPSSnDZPhkpbfoQjZjk/k5i1Xuw7tI+/iRwCw7CG 3pCwPa+C/m7GU9Rj3HSinVvB7li0se4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715341814; a=rsa-sha256; cv=none; b=aLkeV5E+GUduNX0/GN+qaa72UhovyS4RAprkcVPM/hv7qH9R985RFVKlvBmqQ+wT9WLbyz C4YlJRjc0lnurPgRU1Vs99/nh7WrmpWBylsyHV4u2ziYMKKiA/ffjNzWYuRSp3sS9+zejc AwrHYkdHoB/tKWoO+bmaJxGcZBPjCbA= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EioR5OnB; spf=pass (imf27.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.181 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1ee38966529so21357655ad.1 for <linux-mm@kvack.org>; Fri, 10 May 2024 04:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715341812; x=1715946612; darn=kvack.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=SKkpoPGaGqkRG+GvEkaimZUGHi7Z3i5I8Zq2egM0XJg=; b=EioR5OnBxdY4Gk1jz0mRfajNzYc7Wx60Ik0JH0YcNV7azQ5UNrrkVCUbbdq1W+HWWU LCvwgqvN9DrHsw12zNVjp6IU0MiUUdzJsz2MdGgt2LatPT9Leq1WHxz1Oh0yHVeh2Nsj 9lee7llb8XCscEF15QxEDssjvurooqck0XxESewLipaBMA4TX2erjtJlNsp/OgJW2sBi y3n6NxiK95bi8VJsEnXZfch3m9gi4GjHqBzxmDJ8nW0O37B8ou5WdYFmL0yC+6dB2Esh hOnEiUOsQ29NoQDyHGo4J4fw3OmUK0XTZ9dHVumEulx22gu01g8zD3YgKSCa2+vk3d+k D62w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715341812; x=1715946612; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SKkpoPGaGqkRG+GvEkaimZUGHi7Z3i5I8Zq2egM0XJg=; b=Uf8+UBLELmRjaC73u2LYxbeqnywCwvb50b5BQqjHYoXo2lknLbd9OVTtwpCptAk7C7 k2tW1NULEcZXh1AgO2WHSMAvBCGBIlOf3v+y2Y93V6n+m3LwZPNK+99DvELSImXr39P/ C61syTFUNvAiYzw1EVvgNgYKiOe8I0eQB08DPF1zNhoaUHsvQDiyDBhxP3rTiton3mSm ETOoEO61bZ1x83yuaJ5F7wyswCvcmGpbZAJIMmPa/oDnYvS9n4S/zUfQOtBqx99Jy6yj dlXrIuMcyGgPbft3Spfo8DDRndZuqpeNN8iPwbNPTdMS27dsES8Hrcheu1icEImQoXwv MlXQ== X-Gm-Message-State: AOJu0Yz41SkQV3gDB4X/+SSNQp1epmW5KWIIewCluY0jFUu9jgF3Jigw UxDMpykikcp7LbKfJAQqVjSym7HOeBDYcGZzggbbWHRQSbDrj2OeM6nQStSLL/27Lg== X-Google-Smtp-Source: AGHT+IFQCmuUzZejhKR+NA0CyPkuBm+fZ6cTTLFHyaCrgsSueVY92V2AUpJszgttMrtwpUbv0gZENw== X-Received: by 2002:a17:902:cecc:b0:1e5:1041:7ed4 with SMTP id d9443c01a7336-1eefa12f408mr84798105ad.14.1715341812566; Fri, 10 May 2024 04:50:12 -0700 (PDT) Received: from KASONG-MC4.tencent.com ([43.132.141.20]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c134155sm30183825ad.231.2024.05.10.04.50.07 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 10 May 2024 04:50:12 -0700 (PDT) From: Kairui Song <ryncsn@gmail.com> To: linux-mm@kvack.org Cc: Andrew Morton <akpm@linux-foundation.org>, "Huang, Ying" <ying.huang@intel.com>, Matthew Wilcox <willy@infradead.org>, Chris Li <chrisl@kernel.org>, Barry Song <v-songbaohua@oppo.com>, Ryan Roberts <ryan.roberts@arm.com>, Neil Brown <neilb@suse.de>, Minchan Kim <minchan@kernel.org>, David Hildenbrand <david@redhat.com>, Hugh Dickins <hughd@google.com>, Yosry Ahmed <yosryahmed@google.com>, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Kairui Song <kasong@tencent.com>, Steve French <stfrench@microsoft.com>, Namjae Jeon <linkinjeon@kernel.org>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Bharath SM <bharathsm@microsoft.com> Subject: [PATCH v5 05/12] cifs: drop usage of page_file_offset Date: Fri, 10 May 2024 19:47:40 +0800 Message-ID: <20240510114747.21548-6-ryncsn@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240510114747.21548-1-ryncsn@gmail.com> References: <20240510114747.21548-1-ryncsn@gmail.com> Reply-To: Kairui Song <kasong@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: bit4trunsc1g1mftyamqa1p3h1urbhe8 X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: F31F94000A X-HE-Tag: 1715341813-67706 X-HE-Meta: U2FsdGVkX181y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HG2UJnSvNSv9dYFQ/27D9yyEKhEYKh0WVSkxdMrvRTOqHcpncm5mT4FhpZ32hka6CY2IXoBX4fl6kg3WQ78iyeqhp6VcE7gSwmbpS2E+KkY13FkwVGoHb+JCb9+xaisB6ywZKfNjF+JSB8mMn/y2IZBiM+4SkxUZ4CmnpsCrB7OPELhBzFsq0iRmEGJHetpJ33uCEhCC9yEh2xW4XLkNz/isE+nH8WABhE2Mp7jbdOxdjE1kKlSolC5l5a30EcPmHmXO/vozylWLPUTYzhP6KNadfuMRGb5yRDIXSDlIVZS8D/O44dLmQDfDTFlkV8UsjunEPt5bAkZ95k73e+QvE6UkxjlbIHb+KmliqOqtIXTayt2vvwpXnM0396+Nqm/PjEz5OYXLCr0O5QMsqk8K87Fp4Q9zM1OGww8+qpUuf+ME7JCpdlxfdJtiiUKL4ScGeoarugwg8K30CPLywt5+RHKr9f64dA9+RNFDnFdBKsBFawDZyxfeQmdzTnRSRXV3INWT1h962tVwSPGyIO4R28a6ju0svQ17kJaxDwcP1AAVMpTsGBg+kdm/cFaRjsIa0Uxe5ya9RKJhbyUT0gz1eOKTfsA0ivRYAV01g8Pv2PuHrBLVz5+Hl3nretMPEiKuDQ9QCwhuxNW2X5tIYnPNz98vzK2CJbRT6mb8yh2mEnoIP/6iB8Mui623oTATYewZlOnazxq6zFmWLvD4x3aBEPqtFnEuSkWias80dSqm6uyQIrsAY2owQ/JDbub+aR4iH+8ory8wEa3VwN0XBUT28E9QrMG0lfYMqRtNIrcnzAF5LBeSlEfY= 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 |
mm/swap: clean up and optimize swap cache index
|
expand
|
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index 9be37d0fe724..388343b0fceb 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -4828,7 +4828,7 @@ static int cifs_readpage_worker(struct file *file, struct page *page, static int cifs_read_folio(struct file *file, struct folio *folio) { struct page *page = &folio->page; - loff_t offset = page_file_offset(page); + loff_t offset = folio_pos(folio); int rc = -EACCES; unsigned int xid;