aboutsummaryrefslogtreecommitdiff
path: root/fs/orangefs/inode.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle)2022-05-01 00:10:21 -0400
committerMatthew Wilcox (Oracle)2022-05-09 23:12:33 -0400
commit4993474a21b4a041d78be8623b92d94d7c114008 (patch)
tree45d04cc59dfbbcc3e92760b6f618c5d182dcd352 /fs/orangefs/inode.c
parenteca66389744df54ee98f02a232774e47be75f16a (diff)
orangefs: Convert to release_folio
Use folios throughout the release_folio path. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/orangefs/inode.c')
-rw-r--r--fs/orangefs/inode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index 241ac21f527b..3509618e7b37 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -485,9 +485,9 @@ static void orangefs_invalidate_folio(struct folio *folio,
orangefs_launder_folio(folio);
}
-static int orangefs_releasepage(struct page *page, gfp_t foo)
+static bool orangefs_release_folio(struct folio *folio, gfp_t foo)
{
- return !PagePrivate(page);
+ return !folio_test_private(folio);
}
static void orangefs_freepage(struct page *page)
@@ -636,7 +636,7 @@ static const struct address_space_operations orangefs_address_operations = {
.write_begin = orangefs_write_begin,
.write_end = orangefs_write_end,
.invalidate_folio = orangefs_invalidate_folio,
- .releasepage = orangefs_releasepage,
+ .release_folio = orangefs_release_folio,
.freepage = orangefs_freepage,
.launder_folio = orangefs_launder_folio,
.direct_IO = orangefs_direct_IO,