diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-29 17:00:05 -0400 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-09 23:12:30 -0400 |
commit | fa29000b6b2603ec2bfdc4c73249fcb00cd54f85 (patch) | |
tree | 8746e20bb5db7e12c4386098a0b3591c43160575 /include | |
parent | 07950008692bf22074020e927e95655cd48fdcda (diff) | |
download | lwn-fa29000b6b2603ec2bfdc4c73249fcb00cd54f85.tar.gz lwn-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.h | 1 |
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); |