lkml.org 
[lkml]   [2020]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/12] xfs: flag files as supporting buffered async reads
    Date
    XFS uses generic_file_read_iter(), which already supports this.

    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    ---
    fs/xfs/xfs_file.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    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;
    }

    --
    2.26.2
    \
     
     \ /
      Last update: 2020-05-24 21:23    [W:2.368 / U:0.224 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site