• Frank van der Linden's avatar
    nfs: modify update_changeattr to deal with regular files · 1b523ca9
    Frank van der Linden authored
    Until now, change attributes in change_info form were only returned by
    directory operations. However, they are also used for the RFC 8276
    extended attribute operations, which work on both directories
    and regular files.  Modify update_changeattr to deal:
    
    * Rename it to nfs4_update_changeattr and make it non-static.
    * Don't always use INO_INVALID_DATA, this isn't needed for a
      directory that only had its extended attributes changed by us.
    * Existing callers now always pass in INO_INVALID_DATA.
    
    For the current callers of this function, behavior is unchanged.
    Signed-off-by: default avatarFrank van der Linden <fllinden@amazon.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    1b523ca9
nfs4proc.c 271 KB