aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2020-08-03 17:02:11 -0600
committerTheodore Ts'o <[email protected]>2020-10-18 10:36:12 -0400
commit766ef1e101cddc8f5e722f1c0147e9c0499a2d43 (patch)
tree9f113a8442f938acdbb4cb84ead4edfbf57ac822
parentcb8d53d2c97369029cc638c9274ac7be0a316c75 (diff)
ext4: flag as supporting buffered async reads
ext4 uses generic_file_read_iter(), which already supports this. Cc: Theodore Ts'o <[email protected]> Signed-off-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r--fs/ext4/file.c2
1 files changed, 1 insertions, 1 deletions
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);
}