summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-05-22 10:19:22 -0600
committerJens Axboe <axboe@kernel.dk>2020-05-23 08:26:46 -0600
commita0eb2ddbef76865a6a0fe4374378fb5cf57685e4 (patch)
tree8bdb159bf65fb458d5a68451add467d6773ddefb
parent45cc28bcc2659c0943eee37346ab7728270bc250 (diff)
btrfs: flag files as supporting buffered async reads
btrfs uses generic_file_read_iter(), which already supports this. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 719e68ab552c..c933b6a1b4a8 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -3480,7 +3480,7 @@ static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence)
static int btrfs_file_open(struct inode *inode, struct file *filp)
{
- filp->f_mode |= FMODE_NOWAIT;
+ filp->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
return generic_file_open(inode, filp);
}