btrfs: add helper folio_end()
authorDavid Sterba <dsterba@suse.com>
Tue, 10 Jun 2025 12:17:53 +0000 (14:17 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:01 +0000 (23:58 +0200)
commit89a3cc19e4e4158b3ffd746918227bc409f91e12
treebaba834a75d9283c0bc4e907851e3c255a8accef
parentd549391fc6845b701cffe870ee60916bf8b13094
btrfs: add helper folio_end()

There are several cases of folio_pos + folio_size, add a convenience
helper for that. This is a local helper and not proposed as folio API
because it does not seem to be heavily used elsewhere:

A quick grep (folio_size + folio_end) in fs/ shows

     24 btrfs
      4 iomap
      4 ext4
      2 xfs
      2 netfs
      1 gfs2
      1 f2fs
      1 bcachefs
      1 buffer.c

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/misc.h