VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
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 parent: c47752673acb130e5132db0e52363e15be260ca4
Commit Summary:
fuse: simplify req states
Diffstat:
1 file changed, 1 insertion, 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);