diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-07-01 16:26:00 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-07-01 16:26:00 +0200 |
commit | 7a3b2c754749c73b4a255b2a1070c24dba589098 (patch) | |
tree | 450b1a148f55b11b64d5aefd82848564b32a67e4 /fs/fuse/file.c | |
parent | c47752673acb130e5132db0e52363e15be260ca4 (diff) | |
download | linux-stable-7a3b2c754749c73b4a255b2a1070c24dba589098.tar.gz linux-stable-7a3b2c754749c73b4a255b2a1070c24dba589098.tar.bz2 linux-stable-7a3b2c754749c73b4a255b2a1070c24dba589098.zip |
fuse: simplify req states
FUSE_REQ_INIT is actually the same state as FUSE_REQ_PENDING and
FUSE_REQ_READING and FUSE_REQ_WRITING can be merged into a common
FUSE_REQ_IO state.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r-- | fs/fuse/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index bf272263c1a2..d0c23d075427 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1743,8 +1743,7 @@ static bool fuse_writepage_in_flight(struct fuse_req *new_req, } } - if (old_req->num_pages == 1 && (old_req->state == FUSE_REQ_INIT || - old_req->state == FUSE_REQ_PENDING)) { + if (old_req->num_pages == 1 && old_req->state == FUSE_REQ_PENDING) { struct backing_dev_info *bdi = inode_to_bdi(page->mapping->host); copy_highpage(old_req->pages[0], page); |