diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-03 13:43:29 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-08 14:45:56 -0400 |
commit | cfef1f7b39a6f24555175c48c56bf1dc9fe01d4e (patch) | |
tree | 4f2b0583ff1cb14b25798575c45b55366f645851 /fs/hfs/hfs_fs.h | |
parent | 652118b8c979e7f21358016b5568aac4b25c64d9 (diff) | |
download | linux-stable-cfef1f7b39a6f24555175c48c56bf1dc9fe01d4e.tar.gz linux-stable-cfef1f7b39a6f24555175c48c56bf1dc9fe01d4e.tar.bz2 linux-stable-cfef1f7b39a6f24555175c48c56bf1dc9fe01d4e.zip |
hfs: Call hfs_write_begin() and generic_write_end() directly
There is only one kind of write_begin/write_end aops, so we don't need
to look up which aop it is, just make hfs_write_begin() available to
this file and call it directly.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/hfs/hfs_fs.h')
-rw-r--r-- | fs/hfs/hfs_fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/hfs/hfs_fs.h b/fs/hfs/hfs_fs.h index b8eb0322a3e5..68d0305880f7 100644 --- a/fs/hfs/hfs_fs.h +++ b/fs/hfs/hfs_fs.h @@ -201,6 +201,8 @@ extern int hfs_get_block(struct inode *, sector_t, struct buffer_head *, int); extern const struct address_space_operations hfs_aops; extern const struct address_space_operations hfs_btree_aops; +int hfs_write_begin(struct file *file, struct address_space *mapping, + loff_t pos, unsigned len, struct page **pagep, void **fsdata); extern struct inode *hfs_new_inode(struct inode *, const struct qstr *, umode_t); extern void hfs_inode_write_fork(struct inode *, struct hfs_extent *, __be32 *, __be32 *); extern int hfs_write_inode(struct inode *, struct writeback_control *); |