summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-01 06:10:21 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-10 05:12:33 +0200
commit4993474a21b4a041d78be8623b92d94d7c114008 (patch)
tree45d04cc59dfbbcc3e92760b6f618c5d182dcd352 /fs/orangefs
parentocfs2: Convert to release_folio (diff)
downloadlinux-4993474a21b4a041d78be8623b92d94d7c114008.tar.xz
linux-4993474a21b4a041d78be8623b92d94d7c114008.zip
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')
-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,