Commit 8730f12b authored by Jens Axboe's avatar Jens Axboe

btrfs: flag files as supporting buffered async reads

btrfs uses generic_file_read_iter(), which already supports this.
Acked-by: default avatarChris Mason <clm@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f89fb730
...@@ -3472,7 +3472,7 @@ static loff_t btrfs_file_llseek(struct file *file, loff_t offset, int whence) ...@@ -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) 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); return generic_file_open(inode, filp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment