ext4: flag as supporting buffered async reads async-buffered.6
authorJens Axboe <axboe@kernel.dk>
Fri, 22 May 2020 15:13:42 +0000 (09:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Jun 2020 16:02:33 +0000 (10:02 -0600)
ext4 uses generic_file_read_iter(), which already supports this.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/ext4/file.c

index 0d624250a62bfdfaef0cf0710ef22f139e65d076..9f7d9bf427b48ed69aad9cb8475b086726fae597 100644 (file)
@@ -826,7 +826,7 @@ static int ext4_file_open(struct inode * inode, struct file * filp)
                        return ret;
        }
 
-       filp->f_mode |= FMODE_NOWAIT;
+       filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
        return dquot_file_open(inode, filp);
 }