Message ID | 20240510114747.21548-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 38CB2C25B10 for <linux-mm@archiver.kernel.org>; Fri, 10 May 2024 11:49:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C1F8E6B00C0; Fri, 10 May 2024 07:49:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BCF816B00C1; Fri, 10 May 2024 07:49:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A6EEF6B00C2; Fri, 10 May 2024 07:49:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 854D46B00C0 for <linux-mm@kvack.org>; Fri, 10 May 2024 07:49:57 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2892F140448 for <linux-mm@kvack.org>; Fri, 10 May 2024 11:49:57 +0000 (UTC) X-FDA: 82102317234.05.FDD2A4C Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by imf01.hostedemail.com (Postfix) with ESMTP id 4DE274001B for <linux-mm@kvack.org>; Fri, 10 May 2024 11:49:55 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CfeTiJ14; spf=pass (imf01.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.175 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=1715341795; 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=Ut+1/0O6XqWxmgle9+HKPSuhi0Wv9s76NfmGplJvKpLXYBo0bA8ioQ2E3sZynlj3IGV1tU rxutvzjNc2NHr+UZP8f9KXE5ePQ90H57WdNNOqlZHW3FEPD5tfSSlRSGOnNzHy2DZZAXjE okcgPtN6cXmsgHg8bwkmI+Xo98cSO4A= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CfeTiJ14; spf=pass (imf01.hostedemail.com: domain of ryncsn@gmail.com designates 209.85.214.175 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=1715341795; a=rsa-sha256; cv=none; b=UDicdUPzawiTvqY7aI5KuKmyayI2ymJRJKEJKuggM0/EmhyJylILNuQ0SPLAyyMWablFWH 7qBvwkkRCkx+Y0hLj5McgWQn9z1BV2IUnqI06FXbFQGlfMew5X0Hf+qH1k7hNdsBTcO5yF W8mKP/2pX+Pcm5aIVsfERsOKFsGnpY4= Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1ecd3867556so15623035ad.0 for <linux-mm@kvack.org>; Fri, 10 May 2024 04:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715341794; x=1715946594; 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=CfeTiJ14KPWU8S+BFL+ZDaUHaFdonLUpaurlF1o/xA9NVNMkFjjcC9h9XahJX1sZT3 RwGCe4qSbsnC55QjKEFBcNX82bpT7ZRccGM1JNKlt7VoDGvEWatfxYlCw5oMNnrCPo0B oQXnrf7fNZibn92robvvB4kJ7ucdLXf+N4FijqoyT8h62qw9lT0NoFQw6CLlwPHGscr7 CvvyiXswrS1lqCca24Dk0D1FeJh9dv/k4s0hGXb2PLS4Yw+jRnlb0Fq7PRQJvDi0yBcq titOMPwaVkpFo3LChRCLx2v8mGDK1aOpqTPyVwosVwstQ5quu5oDVieKv+Gu85vMz8bq 8q2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715341794; x=1715946594; 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=trGBVZLcHvVTzk2RI+QHTkeytx4DbD5iLD8mBfy3rpWhem1C2Q4ksLRQUasGXsWuwC rJY87Cjl5WmEsZjOiPMxksY44+KbpANKnxMvv0DPBFIMXfXnZDCZkf4QlfWdHUuCkAWm 5hBYC41Dtmf6Je6vyhNgEGZPCE1CvDBMqgSfgfUlRRBkbTxxwSFifkNxl2Bb8g7/uLb2 +AZkF01DL1uiOvdobe1iEGroxmeQh6Tp8ctbHjS+/oG+YElw/2UR3WBoCPSl9zwoWdAY JHz3eEiw6Bi9lunwrNngbbnqovetqdwiP1Au4VbuNgrHJx8toqyjweUvgmplAIjQjmlF oNNg== X-Gm-Message-State: AOJu0YweQOqrjnO0pCUVlXl/XCcE0OoPy4n8jUaR9gTI0v1KccJ//VMa cywaF3qQpXYIOVza33RbCZe9/gi27PparhBCtsxDFpMmw6gWk+9+mf/q5SPvIW2X8A== X-Google-Smtp-Source: AGHT+IFE2MX7TpHnes9SKnTNrFmEbBsmeG5v6bapWIi2SW3d+oyDfBCDoaA4IMTDGi9eLDl7rTjLlw== X-Received: by 2002:a17:902:d506:b0:1e4:24cc:e021 with SMTP id d9443c01a7336-1ef44050595mr28789215ad.50.1715341793856; Fri, 10 May 2024 04:49:53 -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.49.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 10 May 2024 04:49:53 -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 v5 01/12] f2fs: drop usage of page_index Date: Fri, 10 May 2024 19:47:36 +0800 Message-ID: <20240510114747.21548-2-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-Rspamd-Queue-Id: 4DE274001B X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: xi5xc1zan6yshsiux3h4cri4tw8ojawa X-HE-Tag: 1715341795-359528 X-HE-Meta: U2FsdGVkX18OQmfivo8l8uEUCaqh/XMrEGCH/Ax4Y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EGXK2EinE2tD8VFvd3jynV0mLmRQWgLmE9e8FpfGUzSbHe1Eg8SN9bso8ssVBIHRQY9cwPwNKqBZ+fyQ/dL0khu8wG5U1Rlg6ygooFqRysAcGnJzFwJjY03z1ik6Xru+OZxkejrG6ObemM+IF68pZoH3dD5/9KNjHASm5+BVsD7uYcdJ77ZVa0x+OnUwG6ERrwH5QRad7jUjSh3AMtkXOHmqFe88Nt+GCmfvyORYTRFLpWzJEibvo78MGh1vMJgekll5vqfjdQ00RpalIM7Dae2efS21I6gjNTRWKQzso5m+tY+opNjcE15pRWNgVjf5HztB5W0GYo65R0RmMF/Ti5rFlmnfLvQ51DmaPSXzE+Mtv14lWUZk15IAlfRFoPCaZb1+BNFB0NykaTUBuOssExPIVOeedYa9BfSZrHiZ/VZELMVoHq7loMINjeYmsoomqBlHCQPz/oUTy+9Y/mMO9/2uVTsSA/ehUphrACfsacNnmZYK0F7SuDhibSQRW5fZ8XN33Tk6OcmOXI/qkJpf4JdyBh1H64LBnwy/BgGuaMsBH1RHfejg3ZQZjtRLbstQT4XhLBjSupNyaxSsKg4Jg5JNESlH+ytp0JPWRwSoQLCvm0dByse2vVAnPNq6hx1Wp3+pSfhhwsztbMlHkKHo7UNE2JvnYO+hlbKzN3I/oTZ1J1d4BnGrDyXt6xEJwaM1NjnBPKykwnWs= 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);