summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-05-22 09:27:33 -0600
committerJens Axboe <axboe@kernel.dk>2020-05-23 08:26:46 -0600
commit45cc28bcc2659c0943eee37346ab7728270bc250 (patch)
tree0f6bdacefacc91b7a271c5efc9e794fe6bf5dea0
parentb2381ea49506754a8f12874ba7cee01dc1b499dd (diff)
xfs: flag files as supporting buffered async reads
XFS uses generic_file_read_iter(), which already supports this. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/xfs/xfs_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 4b8bdecc3863..97f44fbf17f2 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -1080,7 +1080,7 @@ xfs_file_open(
return -EFBIG;
if (XFS_FORCED_SHUTDOWN(XFS_M(inode->i_sb)))
return -EIO;
- file->f_mode |= FMODE_NOWAIT;
+ file->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
return 0;
}