diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-05-22 18:19:22 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-22 04:44:25 +0200 |
commit | 8730f12b7962b21ea9ad2756abce1e205d22db84 (patch) | |
tree | 428d78f34b80f871bbadada3391e189f9a9e9ae4 /fs/btrfs | |
parent | xfs: flag files as supporting buffered async reads (diff) | |
download | linux-8730f12b7962b21ea9ad2756abce1e205d22db84.tar.xz linux-8730f12b7962b21ea9ad2756abce1e205d22db84.zip |
btrfs: flag files as supporting buffered async reads
btrfs uses generic_file_read_iter(), which already supports this.
Acked-by: Chris Mason <clm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 2c14312b05e8..234a418eb6da 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -3472,7 +3472,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); } |