From bcd36457603b9cc60d7cb12af33f49c26205b94d Mon Sep 17 00:00:00 2001 From: Hao Xu Date: Sat, 10 Oct 2020 20:12:41 +0800 Subject: [PATCH 2095/2944] ext4: flag as supporting buffered async reads to #29998112 cherry-picked from https://lore.kernel.org/io-uring/20200618144355.17324-14-axboe@kernel.dk/ This commit is due to the original patch to do this in the support async buffered reads patchset hasn't been merged into mainline. Signed-off-by: Jens Axboe Signed-off-by: Hao Xu Reviewed-by: Joseph Qi --- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 4416d48..1ac2792 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -832,7 +832,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); } -- 1.8.3.1