Message ID | 20240521175854.96038-2-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 6A6E2C25B74 for <linux-mm@archiver.kernel.org>; Tue, 21 May 2024 17:59:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C341C6B0085; Tue, 21 May 2024 13:59:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE29F6B0088; Tue, 21 May 2024 13:59:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A83A26B008A; Tue, 21 May 2024 13:59:09 -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 8B8B16B0085 for <linux-mm@kvack.org>; Tue, 21 May 2024 13:59:09 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 24EA2A2A62 for <linux-mm@kvack.org>; Tue, 21 May 2024 17:59:09 +0000 (UTC) X-FDA: 82143164418.14.27DCAAB Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by imf01.hostedemail.com (Postfix) with ESMTP id 4897F40008 for <linux-mm@kvack.org>; Tue, 21 May 2024 17:59:07 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QLxxOSEi; spf=pass (imf01.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.172 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=1716314347; 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=R7lhdO5v0hVN0l2qTLtMelKVtmq+aBFR854K3Ld5uQo=; b=5XnK4NBCW5atxMzK9kJO8aE0org96Kpw/+DzMpG66FLQo1MkJ0OhLnDAmyWRe4TZhytrRS QiCGCA8jTCKr7j3UkV95XFhD4t4uqC2tFlCRbdqUVCU0ZzuVcmoMJVATlwTVxYEu8sF2If zXuczn2pv1pT8X+hGrSK0p8Afmc7fig= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QLxxOSEi; spf=pass (imf01.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.172 as permitted sender) smtp.mailfrom=ryncsn@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716314347; a=rsa-sha256; cv=none; b=qU57K7iMxyVD6RxU29chf1ger9r2cspxanT2nrz0FxURykb0EPWqnZYe15Qllmyd3c9qUR s5bzsw+WhNPCfiNz4OaMmJhZaPz3oer7nf/7nf8ictiSWkb78I3mS9WACFewmWZAQG0A/Q c1dmgyjrY4diHJUYjNbJwmEvPI/75TI= Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1eeabda8590so3746785ad.0 for <linux-mm@kvack.org>; Tue, 21 May 2024 10:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716314346; x=1716919146; 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=R7lhdO5v0hVN0l2qTLtMelKVtmq+aBFR854K3Ld5uQo=; b=QLxxOSEinfqQ1AHH2Sjx3p7Kq2nGzaPgSUFBriKSMbYYX9sczeqcHKhh/21mAtF41m SBnBThjYLLH48J+3QKWlXIea8r6jMgwBuI9UXQQ19UMJL89dLStIur2RIAjOHH67dEul XHuR4kgHNLzjBK3Bogz71BE/fJ9uj967sxNOb4kP4SysJIuqwOgtKcPv+1CKeJfp369N /wYblXyzpu3OOuPPGDn8nNC6+35BF8Gk/oKuzKtIl9517J5NGAkiZ99frqhb0tts/NSv BVKj/7JyG438pCcEVfhHkKHm9Wb7mkC7jOqtbO3TW3uIV3QIWtZtZkvtX5cG5NPTmuAs Mixg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716314346; x=1716919146; 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=R7lhdO5v0hVN0l2qTLtMelKVtmq+aBFR854K3Ld5uQo=; b=uo4fk6iFfhEK+DXoZR3bWitGLeg6LP3pE8CLEycMvknlZRzYz098Ow3GJfsMhOXPik +rJUt4w1WwXp4DbYvwDzZKj/BqLHHDdw3Vm3p5K3QVg95SdmJ3+Dw2iY88ZIauE2at2Y qtreSVk0nsxIza62SnCFdxshjXFRc4tQ20qSFHbEFmeyfak8uiXxd/zIcko6rr4Q6BZB mmq8aCOkFiQ1uTBb+tvDDcD5jxs9n4+bwbs/N/blh54brcqNHE/x7Zg2hOi3FcQzl5E8 5lvMdfDKT9HLzq4jWm8nPVk6/Y5jbD3Hxbt3kw8f0tibD+L5wJK0UUDn7sLRS8K6hHew UJ8w== X-Gm-Message-State: AOJu0YxV57xMmn9JEGAWQNRb34/wmEC0q/pNrNCiYHM0aXJfwZU+i1aS 81p6DJXKn9wFfDFoqKb475PXc0Y/dVjOarg3miA9naAFW3SATYGWfFDQJlWDnFA= X-Google-Smtp-Source: AGHT+IEPpozMM0L+20HNGIEKpe29SmAQZrslVrxqPFNwn5ThpFi4hMV2N2JdR99RXw3BFqLPSnJwLg== X-Received: by 2002:a17:903:245:b0:1e4:4ade:f504 with SMTP id d9443c01a7336-1ef44161e45mr347769925ad.46.1716314345665; Tue, 21 May 2024 10:59:05 -0700 (PDT) Received: from localhost.localdomain ([101.32.222.185]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f2fcdf87besm44646935ad.105.2024.05.21.10.59.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 May 2024 10:59:05 -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>, Chao Yu <chao@kernel.org>, Jaegeuk Kim <jaegeuk@kernel.org>, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v6 01/11] f2fs: drop usage of page_index Date: Wed, 22 May 2024 01:58:43 +0800 Message-ID: <20240521175854.96038-2-ryncsn@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240521175854.96038-1-ryncsn@gmail.com> References: <20240521175854.96038-1-ryncsn@gmail.com> Reply-To: Kairui Song <kasong@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: 9rmbey3ym13zg76p5cje8peicebt9hrg X-Rspamd-Queue-Id: 4897F40008 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1716314347-923703 X-HE-Meta: U2FsdGVkX189ilZJQDg5dpt2mDCav408+TYwMFdHaeAo715HcAlfY9tFEA/XfoLxTtSl3ANL6yf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uoSl0SKsL2iWwO/y4CcWRmvL6BaMJPHJJyb5MuE4K3ErfHeoWhOUEB7Zhc1NyTT16Tr9o2XGdlQ3XbtBfnBAzQUWqaJZDy+OS6c1gPmxi+pCbjjqwTQ6qzhWCI4Uaym1SgA1eZyxEH755enkyFVnc8Rf9i8KhexDwKwB4DBglUae0cfrmMOXRrPurIPMw34P88iO5yun9Oed8UqnzvWD2dsz9GsMi6ag4ZmTQCOVxpvlb4HEJjr9Q0CtAABMYVwNz5XbA8g2O4mOoxMKad82JrYvgqa0Wt2insfAivrNpuil+jnoUlUeJEjZLHkrT8L2HvRUQOMERCKXx5oH0Faztl5A8HvcdmRTgipjRcapCEnn5saZrX2oDKZlNf/kNoI5jAA5rvx/YE35Ue8xyBEMZjb56usXO5yxI2hg0nFD14Er2OYu+2Y1ML96SR4quoAXj8OJttdhtduAl+K+EN9Bl5YodzXGikbSI0QfaGjkW48ioAN/pU0aWqnIqulpnaY2t2hA+tBctn2B8EasZCH28mxbYgGPobamSJg6mKO6gv72s+v4yOV17r0PJbvqRM3aAFwnds3cTnnSdKG31mmZP/U0IoNwiQI19ZlI33NS2u0hvh1E6rLUmhrr7wnvc3ovPM9SWXFhEXQRnaNhjAMYb+f5U7Ah+hff6IcvQZjtrCs0Pq43WsYnuWtDjpFKy2orsOJ2uUQQLVYoCNr7rz3wus/sMOttG2R+SZG8KI1in5ntdr2ZuA== 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/f2fs/data.c b/fs/f2fs/data.c index 961e6ff77c72..c0e1459702e6 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -2057,7 +2057,7 @@ static int f2fs_read_single_page(struct inode *inode, struct page *page, sector_t block_nr; int ret = 0; - block_in_file = (sector_t)page_index(page); + block_in_file = (sector_t)page->index; last_block = block_in_file + nr_pages; last_block_in_file = bytes_to_blks(inode, f2fs_readpage_limit(inode) + blocksize - 1);