]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: Use folio_next_pos()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 24 Oct 2025 17:08:17 +0000 (18:08 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 31 Oct 2025 12:11:38 +0000 (13:11 +0100)
commitac0a11113de3f0007283d20f5a38615ea4c6e9fd
tree185aa74f444ee50cd2c47af3ff8986ed35141703
parent2408900d408ae55ab89861d2dd75ef6e51405dcd
xfs: Use folio_next_pos()

This is one instruction more efficient than open-coding folio_pos() +
folio_size().  It's the equivalent of (x + y) << z rather than
x << z + y << z.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://patch.msgid.link/20251024170822.1427218-10-willy@infradead.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Carlos Maiolino <cem@kernel.org>
Cc: linux-xfs@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xfs/scrub/xfarray.c
fs/xfs/xfs_aops.c