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>
This commit is contained in:
Jens Axboe 2020-05-22 09:27:33 -06:00
Родитель a304f07448
Коммит f89fb730aa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1080,7 +1080,7 @@ xfs_file_open(
return -EFBIG; return -EFBIG;
if (XFS_FORCED_SHUTDOWN(XFS_M(inode->i_sb))) if (XFS_FORCED_SHUTDOWN(XFS_M(inode->i_sb)))
return -EIO; return -EIO;
file->f_mode |= FMODE_NOWAIT; file->f_mode |= FMODE_NOWAIT | FMODE_BUF_RASYNC;
return 0; return 0;
} }