]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: use folio_next_index() helper in extent_write_cache_pages
authorMinjie Du <duminjie@vivo.com>
Mon, 17 Jul 2023 07:16:22 +0000 (15:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:52:13 +0000 (14:52 +0200)
commit7b365a2a3d31cc523ad24f2147285c3707297ce8
tree77a27f3301ece4c568e198af6b4f5026fbeff7a5
parent98efb4eb310d0d72e663924adc7b5b6e14813f9d
btrfs: use folio_next_index() helper in extent_write_cache_pages

Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using
the existing helper folio_next_index().

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Minjie Du <duminjie@vivo.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c