• Kendrick M. Smith's avatar
    [PATCH] kNFSd: NFSv4: allow resfh==fhp in fh_compose() · 7aefa9c7
    Kendrick M. Smith authored
    Change fh_compose() so that it will do the right thing if fhp==res_fh.
    (This is convenient in the NFSv4 LOOKUP operation, which _replaces_
    CURRENT_FH with the filehandle obtained by lookup.)
    
    This requires extracting the interesting parts of the reference
    filehandle first, then calling fh_put if it is a re-use.
    7aefa9c7
nfsfh.c 11.8 KB