diff options
author | 2020-05-22 09:27:33 -0600 | |
---|---|---|
committer | 2020-06-21 20:44:25 -0600 | |
commit | f89fb730aa02f451fba1f8d5964dfec244d2e2d1 (patch) | |
tree | cb39cac38d019c8468892d7fa6effdb1e193b612 /fs/xfs/xfs_file.c | |
parent | block: flag block devices as supporting IOCB_WAITQ (diff) | |
download | linux-f89fb730aa02f451fba1f8d5964dfec244d2e2d1.tar.gz linux-f89fb730aa02f451fba1f8d5964dfec244d2e2d1.tar.bz2 linux-f89fb730aa02f451fba1f8d5964dfec244d2e2d1.zip |
xfs: flag files as supporting buffered async reads
XFS uses generic_file_read_iter(), which already supports this.
Acked-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/xfs/xfs_file.c')
-rw-r--r-- | fs/xfs/xfs_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 00db81eac80d..fdbff4860d61 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; } |