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:
Родитель
a304f07448
Коммит
f89fb730aa
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче