diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2019-09-10 15:04:10 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-09-10 16:29:49 +0200 |
commit | 33826ebbbe4b45ccecf2f5a08b3457f5d59c6282 (patch) | |
tree | 806a7a70bef00091ea21d3bda3f375a88b6dbe3c /fs/fuse/fuse_i.h | |
parent | fuse: convert readdir to simple api (diff) | |
download | linux-33826ebbbe4b45ccecf2f5a08b3457f5d59c6282.tar.xz linux-33826ebbbe4b45ccecf2f5a08b3457f5d59c6282.zip |
fuse: convert writepages to simple api
Derive fuse_writepage_args from fuse_io_args.
Sending the request is tricky since it was done with fi->lock held, hence
we must either use atomic allocation or release the lock. Both are
possible so try atomic first and if it fails, release the lock and do the
regular allocation with GFP_NOFS and __GFP_NOFAIL. Both flags are
necessary for correct operation.
Move the page realloc function from dev.c to file.c and convert to using
fuse_writepage_args.
The last caller of fuse_write_fill() is gone, so get rid of it.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 4d7cd20967c2..a9d707bf2e69 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -932,9 +932,6 @@ struct fuse_req *fuse_request_alloc_nofs(unsigned npages); struct page **fuse_pages_alloc(unsigned int npages, gfp_t flags, struct fuse_page_desc **desc); -bool fuse_req_realloc_pages(struct fuse_conn *fc, struct fuse_req *req, - gfp_t flags); - /** * Free a request |