From 766ef1e101cddc8f5e722f1c0147e9c0499a2d43 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 3 Aug 2020 17:02:11 -0600 Subject: [PATCH] ext4: flag as supporting buffered async reads ext4 uses generic_file_read_iter(), which already supports this. Cc: Theodore Ts'o Signed-off-by: Jens Axboe Link: https://lore.kernel.org/r/fb90cc2d-b12c-738f-21a4-dd7a8ae0556a@kernel.dk Signed-off-by: Theodore Ts'o --- 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 7d61069531d3..02ffbd29d6b0 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -844,7 +844,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); }