]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: convert nilfs_find_uncommited_extent() to use filemap_get_folios_contig()
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Wed, 24 Aug 2022 00:40:21 +0000 (17:40 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:03 +0000 (20:26 -0700)
commitef4548ac9471aaf89da8a15aeb34d36d06193858
tree66ad6bd32c55ba1bdeff73f0153b733d48d102b0
parentf2ebedd95a533b149a87ab8d81f186553da5fa68
nilfs2: convert nilfs_find_uncommited_extent() to use filemap_get_folios_contig()

Convert function to use folios throughout.  This is in preparation for the
removal of find_get_pages_contig().  Now also supports large folios.

Also clean up an unnecessary if statement - pvec.pages[0]->index > index
will always evaluate to false, and filemap_get_folios_contig() returns 0
if there is no folio found at index.

Link: https://lkml.kernel.org/r/20220824004023.77310-6-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Chris Mason <clm@fb.com>
Cc: David Sterba <dsterba@suse.com>
Cc: David Sterba <dsterb@suse.com>
Cc: Josef Bacik <josef@toxicpanda.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/page.c