• Chuck Lever's avatar
    NFSD: Refactor NFSv3 CREATE · df9606ab
    Chuck Lever authored
    The NFSv3 CREATE and NFSv4 OPEN(CREATE) use cases are about to
    diverge such that it makes sense to split do_nfsd_create() into one
    version for NFSv3 and one for NFSv4.
    
    As a first step, copy do_nfsd_create() to nfs3proc.c and remove
    NFSv4-specific logic.
    
    One immediate legibility benefit is that the logic for handling
    NFSv3 createhow is now quite straightforward. NFSv4 createhow
    has some subtleties that IMO do not belong in generic code.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    df9606ab
nfs3proc.c 26.9 KB