• NeilBrown's avatar
    NFS: discard NFS_RPC_SWAPFLAGS and RPC_TASK_ROOTCREDS · 89c2be8a
    NeilBrown authored
    NFS_RPC_SWAPFLAGS is only used for READ requests.
    It sets RPC_TASK_SWAPPER which gives some memory-allocation priority to
    requests.  This is not needed for swap READ - though it is for writes
    where it is set via a different mechanism.
    
    RPC_TASK_ROOTCREDS causes the 'machine' credential to be used.
    This is not needed as the root credential is saved when the swap file is
    opened, and this is used for all IO.
    
    So NFS_RPC_SWAPFLAGS isn't needed, and as it is the only user of
    RPC_TASK_ROOTCREDS, that isn't needed either.
    
    Remove both.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    89c2be8a
read.c 11.4 KB