fs: Convert is_partially_uptodate to folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 9 Feb 2022 20:21:27 +0000 (20:21 +0000)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 14 Mar 2022 19:43:17 +0000 (15:43 -0400)
commit2e7e80f7e7e9dbbb3c2a85ee923ca32826052816
tree3729ba6cd85d249ea19ba92b7020fbb6436b3b20
parentcd1067beeebfe23fc8cab071790fefb273962d51
fs: Convert is_partially_uptodate to folios

Since the uptodate property is maintained on a per-folio basis, the
is_partially_uptodate method should also take a folio.  Fix the types
at the same time so it's clear that it returns true/false and takes
the count in bytes, not blocks.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Mike Marshall <hubcap@omnibond.com> # orangefs
Tested-by: David Howells <dhowells@redhat.com> # afs
Documentation/filesystems/locking.rst
Documentation/filesystems/vfs.rst
fs/buffer.c
fs/iomap/buffered-io.c
include/linux/buffer_head.h
include/linux/fs.h
include/linux/iomap.h
mm/filemap.c