mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
fs: Remove aop flags parameter from cont_write_begin()
There are no more aop flags left, so remove the parameter. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
b3992d1e2e
commit
be3bbbc588
@ -58,7 +58,7 @@ static int adfs_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
|
ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
|
||||||
adfs_get_block,
|
adfs_get_block,
|
||||||
&ADFS_I(mapping->host)->mmu_private);
|
&ADFS_I(mapping->host)->mmu_private);
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
|
@ -420,7 +420,7 @@ static int affs_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
|
ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
|
||||||
affs_get_block,
|
affs_get_block,
|
||||||
&AFFS_I(mapping->host)->mmu_private);
|
&AFFS_I(mapping->host)->mmu_private);
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
|
@ -2441,7 +2441,7 @@ static int cont_expand_zero(struct file *file, struct address_space *mapping,
|
|||||||
* We may have to extend the file.
|
* We may have to extend the file.
|
||||||
*/
|
*/
|
||||||
int cont_write_begin(struct file *file, struct address_space *mapping,
|
int cont_write_begin(struct file *file, struct address_space *mapping,
|
||||||
loff_t pos, unsigned len, unsigned flags,
|
loff_t pos, unsigned len,
|
||||||
struct page **pagep, void **fsdata,
|
struct page **pagep, void **fsdata,
|
||||||
get_block_t *get_block, loff_t *bytes)
|
get_block_t *get_block, loff_t *bytes)
|
||||||
{
|
{
|
||||||
|
@ -395,7 +395,7 @@ static int exfat_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
|
ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
|
||||||
exfat_get_block,
|
exfat_get_block,
|
||||||
&EXFAT_I(mapping->host)->i_size_ondisk);
|
&EXFAT_I(mapping->host)->i_size_ondisk);
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ static int fat_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int err;
|
int err;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
err = cont_write_begin(file, mapping, pos, len, flags,
|
err = cont_write_begin(file, mapping, pos, len,
|
||||||
pagep, fsdata, fat_get_block,
|
pagep, fsdata, fat_get_block,
|
||||||
&MSDOS_I(mapping->host)->mmu_private);
|
&MSDOS_I(mapping->host)->mmu_private);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
|
@ -56,7 +56,7 @@ static int hfs_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
|
ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
|
||||||
hfs_get_block,
|
hfs_get_block,
|
||||||
&HFS_I(mapping->host)->phys_size);
|
&HFS_I(mapping->host)->phys_size);
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
|
@ -50,7 +50,7 @@ static int hfsplus_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
|
ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
|
||||||
hfsplus_get_block,
|
hfsplus_get_block,
|
||||||
&HFSPLUS_I(mapping->host)->phys_size);
|
&HFSPLUS_I(mapping->host)->phys_size);
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
|
@ -200,7 +200,7 @@ static int hpfs_write_begin(struct file *file, struct address_space *mapping,
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*pagep = NULL;
|
*pagep = NULL;
|
||||||
ret = cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata,
|
ret = cont_write_begin(file, mapping, pos, len, pagep, fsdata,
|
||||||
hpfs_get_block,
|
hpfs_get_block,
|
||||||
&hpfs_i(mapping->host)->mmu_private);
|
&hpfs_i(mapping->host)->mmu_private);
|
||||||
if (unlikely(ret))
|
if (unlikely(ret))
|
||||||
|
@ -238,7 +238,7 @@ int generic_write_end(struct file *, struct address_space *,
|
|||||||
void page_zero_new_buffers(struct page *page, unsigned from, unsigned to);
|
void page_zero_new_buffers(struct page *page, unsigned from, unsigned to);
|
||||||
void clean_page_buffers(struct page *page);
|
void clean_page_buffers(struct page *page);
|
||||||
int cont_write_begin(struct file *, struct address_space *, loff_t,
|
int cont_write_begin(struct file *, struct address_space *, loff_t,
|
||||||
unsigned, unsigned, struct page **, void **,
|
unsigned, struct page **, void **,
|
||||||
get_block_t *, loff_t *);
|
get_block_t *, loff_t *);
|
||||||
int generic_cont_expand_simple(struct inode *inode, loff_t size);
|
int generic_cont_expand_simple(struct inode *inode, loff_t size);
|
||||||
int block_commit_write(struct page *page, unsigned from, unsigned to);
|
int block_commit_write(struct page *page, unsigned from, unsigned to);
|
||||||
|
Loading…
Reference in New Issue
Block a user