Message ID | 20240429190500.30979-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 EC02CC4345F for <linux-mm@archiver.kernel.org>; Mon, 29 Apr 2024 19:06:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 753E26B0088; Mon, 29 Apr 2024 15:06:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6B0BD6B0089; Mon, 29 Apr 2024 15:06:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 52AD76B008A; Mon, 29 Apr 2024 15:06:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 333646B0088 for <linux-mm@kvack.org>; Mon, 29 Apr 2024 15:06:55 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D64BFA0FB1 for <linux-mm@kvack.org>; Mon, 29 Apr 2024 19:06:54 +0000 (UTC) X-FDA: 82063501548.24.79AA975 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf10.hostedemail.com (Postfix) with ESMTP id 0185FC0002 for <linux-mm@kvack.org>; Mon, 29 Apr 2024 19:06:52 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=i3B045lV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf10.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=ryncsn@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714417613; 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=WSvD/YVvY3oR/SV9lrJcxmGa9WfASg1z+eMVQdwymCU=; b=yiqGRbrHVETWRaYu10ga0OW2pGQ8vpr70qPlaFnsEasVYX9HCopQkKAWio92z5Yc/FId0N YagB7UpQGpTJH7mltPP1XtaibGFrN+kKIlv/l4ux+DyQvHrbE13AKtF7x8apsVTpXlYB62 NAQCKrsP0Cth2H/gadWIbMFaF1V/zPo= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=i3B045lV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf10.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=ryncsn@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714417613; a=rsa-sha256; cv=none; b=zBbD8wD48l8rxo5edihOTJvMl0uHGhzZmBP4akgx120pG6hu580052lbc9hzWUc94FtLH/ 2B/t0BEvN0DB9EpoEfnKBt1BfDU38yR0k3dEocW38dU4/9L8FqXxmoVDU8ly/Gl3r0M81w Egx1UQE2rGEWKtDWoc7QjV7EZJluKco= Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1e5c7d087e1so42076735ad.0 for <linux-mm@kvack.org>; Mon, 29 Apr 2024 12:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714417611; x=1715022411; 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=WSvD/YVvY3oR/SV9lrJcxmGa9WfASg1z+eMVQdwymCU=; b=i3B045lVFuMfK7Cbc7XteY1mAAperUgpdnmXcQEabImQUBFv85tylFFVFugeWkQz4m Yy+Dst82q5RtgrbemhnkA+YBW/PrQGINCLe3beGGgmx4MV7ik6ZNWgkek9z93p5Yoy5S UNHJ7WiM9A7/g3zpCyeCySFoFTIlDvB3ky17n/EEtxH1pOsivgSN8edJna5UHs8Fc5OK B4uNzM4hOVo6y2b5hfeTH2nXcs3YHrlbpbeewibEhiJG+qB4rGuS1jkKA5m9T/+zQUX1 X/RkP8YPa0W1jrl+BoN1PdKNPYg18ld8GAEBW/QaV+nznnlRHbeCmb9ynTnmxawBX+zO ZuQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714417611; x=1715022411; 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=WSvD/YVvY3oR/SV9lrJcxmGa9WfASg1z+eMVQdwymCU=; b=iUM1zICAZvl3bEB8qeOcrNmPfzF1FbQL3UZfdaDHxDal3oejlNTcPi+hsgr3Stcrpu svkG/I9+cSo874KbqZRpCi82RT4erHQy0PRwqmf/9VCyMY1XIif+T3T5xKgBrbSm6E4P IwLzcRQl0f0Qo7JxsJHIATZcH4mQxz+GISMEDAI8ToPMBpnFvZ4oXLWqEsHn4MHSBPq9 yyn8vKnJ9zpIyybx5E9N60xnlL4tqV2XvdB+/04I5suhuQqIcrNvweCFRgEdpjRq+mkR GBhIAeVTxUPePulY+rE1j/GHdlzbxewN4vJgBL7RL6f5AKGzf3Rp/gzeE/Pb2U9bvIhp fH6Q== X-Gm-Message-State: AOJu0YxLT3+hNtXK8QLcghuGMGBUbTWjC7F6pdHL8J7MyoaiKa1fcdi8 2xieXWsGAv/iXq364DecdkuoM2+9KuAyEKXHfbTSX2+gCVEDZqQ/pLtkUlA1a5w= X-Google-Smtp-Source: AGHT+IEWWyXjXq5qxQK4Wj2h+dXwYC3HBxH2tY9g+B+mmj2ONuL2mZBA9D6pxjlnJqOR4++MfTCr9w== X-Received: by 2002:a17:903:1249:b0:1e4:b1eb:7dee with SMTP id u9-20020a170903124900b001e4b1eb7deemr13466540plh.47.1714417611389; Mon, 29 Apr 2024 12:06:51 -0700 (PDT) Received: from KASONG-MB2.tencent.com ([1.203.116.31]) by smtp.gmail.com with ESMTPSA id y4-20020a170902864400b001e49428f313sm20619356plt.261.2024.04.29.12.06.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 29 Apr 2024 12:06:51 -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>, Chao Yu <chao@kernel.org>, Jaegeuk Kim <jaegeuk@kernel.org>, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH v3 01/12] f2fs: drop usage of page_index Date: Tue, 30 Apr 2024 03:04:49 +0800 Message-ID: <20240429190500.30979-2-ryncsn@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240429190500.30979-1-ryncsn@gmail.com> References: <20240429190500.30979-1-ryncsn@gmail.com> Reply-To: Kairui Song <kasong@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 0185FC0002 X-Stat-Signature: kgk7nhnqyfgcm897rpomyoaf8sjh5o9u X-Rspam-User: X-HE-Tag: 1714417612-365392 X-HE-Meta: U2FsdGVkX1/P0pEqK74bAcNTB6vK7yT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Sibhz9+yFnodJw2y4BiOExMqUw2TNmf5LfNHu5OctJA3/3CFgz7O2pY51WK3yz1AP9HF+MM+a0tqWDUt4Mbrl2tbst9hCbxbBe8qFS+n1QBURnF1tedQzoMKZdnJdwL7qst+qSCmotgYVK6jEd/sfO0zcHS/cCF9ikKCcM9JMraHo8wz4yq+3fhAj8vcL542gODIKHF1KP6mgz9ZkJE8aEJ/y5G3mMTipPvrwqa5GnI8hhEGWK3CPIFtB1nyPVxE6ACgGg0eSOnh+43smUUTzdcrKNt4nFMRFog3xEJXHFMG6Wr7xbb89kuBXaGbLCy9zz8I90sQLWNJmocwqufajuUglLyJQv/sj0lJ4a4dtU7ajyMFrxxT6YA7hMyrWfYGkt8f6mCF2ZHFKP+HBv8ybGIESDossagm8r/rV7e/xWe8yLFs7C/yfQKfzgA5ZCTNg9XIFtzM/iy3bA6gdVj5f7hnm8fFnxXb8T9YlLZJqdGvYnQEgFIhTrC3B3tCbYICA8pvUJgCdPkPZU8ZbUEx6ZQnVSVzJVzZe9ejPTzoHftyo7x3X3+goveTLrNLHHLOvzExX/dSkcXdsJdUJVEoSVABa35o3ctmU4GI+cG3iRbH7yAIj4CGF3Uxnr7ttQfUmyPF1UonzMN/0IPZGsNVaRg/M 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);