fs: Remove aop flags parameter from nobh_write_begin()

There are no more aop flags left, so remove the parameter.
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent b7446e7c
...@@ -2568,8 +2568,7 @@ static void attach_nobh_buffers(struct page *page, struct buffer_head *head) ...@@ -2568,8 +2568,7 @@ static void attach_nobh_buffers(struct page *page, struct buffer_head *head)
* On exit the page is fully uptodate in the areas outside (from,to) * On exit the page is fully uptodate in the areas outside (from,to)
* The filesystem needs to handle block truncation upon failure. * The filesystem needs to handle block truncation upon failure.
*/ */
int nobh_write_begin(struct address_space *mapping, int nobh_write_begin(struct address_space *mapping, loff_t pos, unsigned len,
loff_t pos, unsigned len, unsigned flags,
struct page **pagep, void **fsdata, struct page **pagep, void **fsdata,
get_block_t *get_block) get_block_t *get_block)
{ {
......
...@@ -917,7 +917,7 @@ ext2_nobh_write_begin(struct file *file, struct address_space *mapping, ...@@ -917,7 +917,7 @@ ext2_nobh_write_begin(struct file *file, struct address_space *mapping,
{ {
int ret; int ret;
ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, ret = nobh_write_begin(mapping, pos, len, pagep, fsdata,
ext2_get_block); ext2_get_block);
if (ret < 0) if (ret < 0)
ext2_write_failed(mapping, pos + len); ext2_write_failed(mapping, pos + len);
......
...@@ -319,8 +319,7 @@ static int jfs_write_begin(struct file *file, struct address_space *mapping, ...@@ -319,8 +319,7 @@ static int jfs_write_begin(struct file *file, struct address_space *mapping,
{ {
int ret; int ret;
ret = nobh_write_begin(mapping, pos, len, flags, pagep, fsdata, ret = nobh_write_begin(mapping, pos, len, pagep, fsdata, jfs_get_block);
jfs_get_block);
if (unlikely(ret)) if (unlikely(ret))
jfs_write_failed(mapping, pos + len); jfs_write_failed(mapping, pos + len);
......
...@@ -258,7 +258,7 @@ static inline vm_fault_t block_page_mkwrite_return(int err) ...@@ -258,7 +258,7 @@ static inline vm_fault_t block_page_mkwrite_return(int err)
} }
sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *);
int block_truncate_page(struct address_space *, loff_t, get_block_t *); int block_truncate_page(struct address_space *, loff_t, get_block_t *);
int nobh_write_begin(struct address_space *, loff_t, unsigned, unsigned, int nobh_write_begin(struct address_space *, loff_t, unsigned len,
struct page **, void **, get_block_t*); struct page **, void **, get_block_t*);
int nobh_write_end(struct file *, struct address_space *, int nobh_write_end(struct file *, struct address_space *,
loff_t, unsigned, unsigned, loff_t, unsigned, unsigned,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment