mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
fs: Remove aop_flags parameter from netfs_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
236d93c4bf
commit
de2a931150
6 changed files with 6 additions and 7 deletions
|
@ -142,7 +142,6 @@ Three read helpers are provided::
|
||||||
struct address_space *mapping,
|
struct address_space *mapping,
|
||||||
loff_t pos,
|
loff_t pos,
|
||||||
unsigned int len,
|
unsigned int len,
|
||||||
unsigned int flags,
|
|
||||||
struct folio **_folio,
|
struct folio **_folio,
|
||||||
void **_fsdata);
|
void **_fsdata);
|
||||||
|
|
||||||
|
|
|
@ -275,7 +275,7 @@ static int v9fs_write_begin(struct file *filp, struct address_space *mapping,
|
||||||
* file. We need to do this before we get a lock on the page in case
|
* file. We need to do this before we get a lock on the page in case
|
||||||
* there's more than one writer competing for the same cache block.
|
* there's more than one writer competing for the same cache block.
|
||||||
*/
|
*/
|
||||||
retval = netfs_write_begin(filp, mapping, pos, len, flags, &folio, fsdata);
|
retval = netfs_write_begin(filp, mapping, pos, len, &folio, fsdata);
|
||||||
if (retval < 0)
|
if (retval < 0)
|
||||||
return retval;
|
return retval;
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ int afs_write_begin(struct file *file, struct address_space *mapping,
|
||||||
* file. We need to do this before we get a lock on the page in case
|
* file. We need to do this before we get a lock on the page in case
|
||||||
* there's more than one writer competing for the same cache block.
|
* there's more than one writer competing for the same cache block.
|
||||||
*/
|
*/
|
||||||
ret = netfs_write_begin(file, mapping, pos, len, flags, &folio, fsdata);
|
ret = netfs_write_begin(file, mapping, pos, len, &folio, fsdata);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
@ -1318,7 +1318,7 @@ static int ceph_write_begin(struct file *file, struct address_space *mapping,
|
||||||
struct folio *folio = NULL;
|
struct folio *folio = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
r = netfs_write_begin(file, inode->i_mapping, pos, len, 0, &folio, NULL);
|
r = netfs_write_begin(file, inode->i_mapping, pos, len, &folio, NULL);
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
folio_wait_fscache(folio);
|
folio_wait_fscache(folio);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
|
|
@ -328,8 +328,8 @@ zero_out:
|
||||||
* This is usable whether or not caching is enabled.
|
* This is usable whether or not caching is enabled.
|
||||||
*/
|
*/
|
||||||
int netfs_write_begin(struct file *file, struct address_space *mapping,
|
int netfs_write_begin(struct file *file, struct address_space *mapping,
|
||||||
loff_t pos, unsigned int len, unsigned int aop_flags,
|
loff_t pos, unsigned int len, struct folio **_folio,
|
||||||
struct folio **_folio, void **_fsdata)
|
void **_fsdata)
|
||||||
{
|
{
|
||||||
struct netfs_io_request *rreq;
|
struct netfs_io_request *rreq;
|
||||||
struct netfs_i_context *ctx = netfs_i_context(file_inode(file ));
|
struct netfs_i_context *ctx = netfs_i_context(file_inode(file ));
|
||||||
|
|
|
@ -276,7 +276,7 @@ struct readahead_control;
|
||||||
extern void netfs_readahead(struct readahead_control *);
|
extern void netfs_readahead(struct readahead_control *);
|
||||||
extern int netfs_readpage(struct file *, struct page *);
|
extern int netfs_readpage(struct file *, struct page *);
|
||||||
extern int netfs_write_begin(struct file *, struct address_space *,
|
extern int netfs_write_begin(struct file *, struct address_space *,
|
||||||
loff_t, unsigned int, unsigned int, struct folio **,
|
loff_t, unsigned int, struct folio **,
|
||||||
void **);
|
void **);
|
||||||
|
|
||||||
extern void netfs_subreq_terminated(struct netfs_io_subrequest *, ssize_t, bool);
|
extern void netfs_subreq_terminated(struct netfs_io_subrequest *, ssize_t, bool);
|
||||||
|
|
Loading…
Add table
Reference in a new issue