From: Jens Axboe Date: Fri, 22 May 2020 15:27:33 +0000 (-0600) Subject: xfs: flag files as supporting buffered async reads X-Git-Tag: howlett/maple_spf/20210104~1413^2~110^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f89fb730aa02f451fba1f8d5964dfec244d2e2d1;p=users%2Fjedix%2Flinux-maple.git xfs: flag files as supporting buffered async reads XFS uses generic_file_read_iter(), which already supports this. Acked-by: Darrick J. Wong Signed-off-by: Jens Axboe --- 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; }