Message ID | 20240417160842.76665-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 59CD6C4345F for <linux-mm@archiver.kernel.org>; Wed, 17 Apr 2024 16:10:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E29F76B009B; Wed, 17 Apr 2024 12:10:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E00B86B009C; Wed, 17 Apr 2024 12:10:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CEFBE6B009D; Wed, 17 Apr 2024 12:10:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id AFB1A6B009B for <linux-mm@kvack.org>; Wed, 17 Apr 2024 12:10:06 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 755AD1C12A6 for <linux-mm@kvack.org>; Wed, 17 Apr 2024 16:10:06 +0000 (UTC) X-FDA: 82019510412.24.4EB6424 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by imf27.hostedemail.com (Postfix) with ESMTP id C999C40021 for <linux-mm@kvack.org>; Wed, 17 Apr 2024 16:10:04 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CT6idp01; spf=pass (imf27.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.210.169 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=1713370204; 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=QKsmOxPUvJ8jFqBm63ArqbRFjM5INLEtk88J9DbM67E=; b=DXkPE5igCtqm9RKhad3ORQUxw79shEyShX77X6jkXTck1x0StQoqvH5SU1mcS/31qcFDT0 bw9wj3vote0LeStRb6NU9jTD18RoQ1Cgnzenipotf3wscNR57lF+qEJJkRzMiQpQO+ufLy mGYOzhDc1tx7mS3KbWfvUL6yi5qRNzc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713370204; a=rsa-sha256; cv=none; b=XUqdTema+0MnPFPRqPsNSMXFL7SQ5RxwU4sTWDuwjx1q0lQ20NPNokcHbEWL8cwOnk2Age SK3cqnBxIIFwmtYivPCxjdiH7ttpNiroEiiDvDdcQUEhMgY+vdnaiQciXzQ+VpsXrFLj78 9qT2ptnN9TVH+ImJUgIk/L2QdGR1GNI= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CT6idp01; spf=pass (imf27.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.210.169 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-6ecf1bb7f38so5305799b3a.0 for <linux-mm@kvack.org>; Wed, 17 Apr 2024 09:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713370203; x=1713975003; 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=QKsmOxPUvJ8jFqBm63ArqbRFjM5INLEtk88J9DbM67E=; b=CT6idp01IrUBR6D54siLTul8TlCsJxT7E8L14gfzY9aSe3qUEV2JdMEWtKY7swcPrv 4OJxEdHEC7CxrYLEk6s+VwLPRHAH5knu8sC3gE2qFZMwronVwXDVnj+EWIYy7P7Cvmxb az+Aq10JXy2qCv4a9vBJa4IAVlv39+M9iNTixishhmfDEtFPNOyNzCwz8NB2BvvJQdzC Lrv2KWxN2ySvnUzFSam6CfPitq10o+MvAIW9t1koHnFyCFGbUHyi9KKXNjpToybtVSlY OU3Gcp3Kbhdwnp4DCiDNXfBf53Lpx8b0MS9KOSmnsySX92BQ3cJBwgB+2P9LJysE6BLN BGiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713370203; x=1713975003; 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=QKsmOxPUvJ8jFqBm63ArqbRFjM5INLEtk88J9DbM67E=; b=pqz9cR1wA/NpUN6e6jwsAHOEqRVA9Nk1tsIZxTy4LtGxbXOwVUWY+1WlM7zzyVkYyP 55iq0vl9Et3nbvjtWtC2pwc5ajUxSU22BiNirGmA7JaYgXg05b9J7BtWwLUxIuUU1K6u 62cnbsycLFs4AXzsoXw/C/qfGIZNyaEn8DRxnWDUdARnMjb0OCJuy60zYlzzwm6bLqOF ZjSK6oOOaXwQoFIA1YQbF4IuXt8v5rGv8Vj2jjoh+J9dzwsgfmoaly7ERRdE2rxkvhJe 6c905GvAOclEzcpPdtnmg6CVwqxOkBrsCG5E9C4fmqDZmsCNWy+2xx1Dja4Lvu/lKTs3 1IuQ== X-Gm-Message-State: AOJu0YwCsz2pH6k41jOoc7bQ4eUFzVoFjzaQfwZTjxu1nXXh2KyXuwE7 YLGF3rrUUbmpb5kjPFXbxYWXD9gkfaW5TD26zI2fOE4Un9pu2efeXLOhzA/xudk9kw== X-Google-Smtp-Source: AGHT+IFJeyb4K3TlyeiLY9c8kwF5soNMLS4dioE3GGli82q9k0eqDSGM6THIcyA7JEE4hz8B0VjGpg== X-Received: by 2002:a05:6a21:8189:b0:1aa:58d9:1825 with SMTP id pd9-20020a056a21818900b001aa58d91825mr83965pzb.3.1713370203077; Wed, 17 Apr 2024 09:10:03 -0700 (PDT) Received: from KASONG-MB2.tencent.com ([115.171.40.106]) by smtp.gmail.com with ESMTPSA id h189-20020a6383c6000000b005f75cf4db92sm5708366pge.82.2024.04.17.09.09.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 17 Apr 2024 09:10:01 -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>, Hugh Dickins <hughd@google.com>, David Hildenbrand <david@redhat.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 5/8] cifs: drop usage of page_file_offset Date: Thu, 18 Apr 2024 00:08:39 +0800 Message-ID: <20240417160842.76665-6-ryncsn@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240417160842.76665-1-ryncsn@gmail.com> References: <20240417160842.76665-1-ryncsn@gmail.com> Reply-To: Kairui Song <kasong@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: C999C40021 X-Stat-Signature: enekk15bsidcanutmieqc5zts19am39c X-HE-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CMHGzRR/0Yo7ZQWOQe7rDJQVxTXxkkGSkCpakzq65cTRV32iiMMrIas35tUfvenCgjXHlzJ21Ig/6s+K8IfHtfOFtGYTGiRIVhcaynHQ8Ucbg5UDyHm6oQPxnYe3whI4NNM40T/vL2S+xVpmVYdd3T1vecxleLeOdDSbO2nwxCh+9dOKyvHI/fb+w+SA+Xd7qilt3XKIFb0PLLaBWQDzIvxh4B4Y7NypJnD+8DFNUXCtRDw2mdHiTN+oQGA== 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: optimize swap cache search space
|
expand
|
On Thu, Apr 18, 2024 at 12:08:39AM +0800, Kairui Song wrote: > +++ b/fs/smb/client/file.c > @@ -4749,7 +4749,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 = page_offset(page); loff_t offset = folio_pos(folio);
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index 16aadce492b2..73bbd761bf32 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -4749,7 +4749,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 = page_offset(page); int rc = -EACCES; unsigned int xid;