[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230106174028.151384-4-sj@kernel.org>
Date: Fri, 6 Jan 2023 17:40:28 +0000
From: SeongJae Park <sj@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: willy@...radead.org, Xiubo Li <xiubli@...hat.com>,
Ilya Dryomov <idryomov@...il.com>,
Jeff Layton <jlayton@...nel.org>, ceph-devel@...r.kernel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
SeongJae Park <sj@...nel.org>
Subject: [PATCH 3/3] fs/ceph/addr: use folio_headpage() instead of folio_page()
Using 'folio_page(folio, 0)' for getting the head page of a folios is
not the standard idiom and inefficient. Replace the call in fs/ceph/ to
'folio_headpage()'.
Signed-off-by: SeongJae Park <sj@...nel.org>
---
fs/ceph/addr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 8c74871e37c9..b76e94152b21 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -1290,7 +1290,7 @@ static int ceph_netfs_check_write_begin(struct file *file, loff_t pos, unsigned
struct ceph_inode_info *ci = ceph_inode(inode);
struct ceph_snap_context *snapc;
- snapc = ceph_find_incompatible(folio_page(*foliop, 0));
+ snapc = ceph_find_incompatible(folio_headpage(*foliop));
if (snapc) {
int r;
--
2.25.1
Powered by blists - more mailing lists