diff options
author | 2022-02-09 20:21:27 +0000 | |
---|---|---|
committer | 2022-03-14 15:43:17 -0400 | |
commit | 2e7e80f7e7e9dbbb3c2a85ee923ca32826052816 (patch) | |
tree | 3729ba6cd85d249ea19ba92b7020fbb6436b3b20 /include/linux/fs.h | |
parent | buffer: Add folio_buffers() (diff) | |
download | linux-2e7e80f7e7e9dbbb3c2a85ee923ca32826052816.tar.gz linux-2e7e80f7e7e9dbbb3c2a85ee923ca32826052816.tar.bz2 linux-2e7e80f7e7e9dbbb3c2a85ee923ca32826052816.zip |
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
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index e2d892b201b0..5939e6694ada 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -400,8 +400,8 @@ struct address_space_operations { bool (*isolate_page)(struct page *, isolate_mode_t); void (*putback_page)(struct page *); int (*launder_page) (struct page *); - int (*is_partially_uptodate) (struct page *, unsigned long, - unsigned long); + bool (*is_partially_uptodate) (struct folio *, size_t from, + size_t count); void (*is_dirty_writeback) (struct page *, bool *, bool *); int (*error_remove_page)(struct address_space *, struct page *); |