diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-03 19:43:29 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-08 20:45:56 +0200 |
commit | cfef1f7b39a6f24555175c48c56bf1dc9fe01d4e (patch) | |
tree | 4f2b0583ff1cb14b25798575c45b55366f645851 /fs/hfs/inode.c | |
parent | ntfs3: Remove fsdata parameter from ntfs_extend_initialized_size() (diff) | |
download | linux-cfef1f7b39a6f24555175c48c56bf1dc9fe01d4e.tar.xz linux-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/inode.c')
-rw-r--r-- | fs/hfs/inode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c index 93d9aa832139..9a26b9510da0 100644 --- a/fs/hfs/inode.c +++ b/fs/hfs/inode.c @@ -49,9 +49,8 @@ static void hfs_write_failed(struct address_space *mapping, loff_t to) } } -static int hfs_write_begin(struct file *file, struct address_space *mapping, - loff_t pos, unsigned len, - struct page **pagep, void **fsdata) +int hfs_write_begin(struct file *file, struct address_space *mapping, + loff_t pos, unsigned len, struct page **pagep, void **fsdata) { int ret; |