aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-29 17:00:05 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-09 23:12:30 -0400
commitfa29000b6b2603ec2bfdc4c73249fcb00cd54f85 (patch)
tree8746e20bb5db7e12c4386098a0b3591c43160575 /include
parentmm/filemap: Hoist filler_t decision to the top of do_read_cache_folio() (diff)
downloadlinux-dev-fa29000b6b2603ec2bfdc4c73249fcb00cd54f85.tar.xz
linux-dev-fa29000b6b2603ec2bfdc4c73249fcb00cd54f85.zip
fs: Add aops->release_folio
This replaces aops->releasepage. Update the documentation, and call it if it exists. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index f812f5aa07dd..ad768f13f485 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -355,6 +355,7 @@ struct address_space_operations {
/* Unfortunately this kludge is needed for FIBMAP. Don't use it */
sector_t (*bmap)(struct address_space *, sector_t);
void (*invalidate_folio) (struct folio *, size_t offset, size_t len);
+ bool (*release_folio)(struct folio *, gfp_t);
int (*releasepage) (struct page *, gfp_t);
void (*freepage)(struct page *);
ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter);