lkml.org 
[lkml]   [2019]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.2 010/124] nfs: disable client side deduplication
    Date
    From: Darrick J. Wong <darrick.wong@oracle.com>

    commit 9026b3a973b0b0b73c15ba40aff87cd0959fd0f3 upstream.

    The NFS protocol doesn't support deduplication, so turn it off again.

    Fixes: ce96e888fe48e ("Fix nfs4.2 return -EINVAL when do dedupe operation")
    Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    fs/nfs/nfs4file.c | 6 +++++-
    1 file changed, 5 insertions(+), 1 deletion(-)

    --- a/fs/nfs/nfs4file.c
    +++ b/fs/nfs/nfs4file.c
    @@ -187,7 +187,11 @@ static loff_t nfs42_remap_file_range(str
    bool same_inode = false;
    int ret;

    - if (remap_flags & ~(REMAP_FILE_DEDUP | REMAP_FILE_ADVISORY))
    + /* NFS does not support deduplication. */
    + if (remap_flags & REMAP_FILE_DEDUP)
    + return -EOPNOTSUPP;
    +
    + if (remap_flags & ~REMAP_FILE_ADVISORY)
    return -EINVAL;

    /* check alignment w.r.t. clone_blksize */

    \
     
     \ /
      Last update: 2019-09-20 00:08    [W:4.089 / U:0.252 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site