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:01 +0200 committer: Miklos Szeredi <mszeredi@suse.cz> 2015-07-01 16:26:01 +0200 commit: 33e14b4dfdc477344efbcd9b4218f2b350f0f893 parent: 7a3b2c754749c73b4a255b2a1070c24dba589098
Commit Summary:
fuse: req state use flags
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index d0c23d075427..64835cf58936 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1743,7 +1743,7 @@ static bool fuse_writepage_in_flight(struct fuse_req *new_req,
 		}
 	}
 
-	if (old_req->num_pages == 1 && old_req->state == FUSE_REQ_PENDING) {
+	if (old_req->num_pages == 1 && test_bit(FR_PENDING, &old_req->flags)) {
 		struct backing_dev_info *bdi = inode_to_bdi(page->mapping->host);
 
 		copy_highpage(old_req->pages[0], page);