]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/nfs/delegation.c
NFSv4: Don't use GFP_KERNEL allocations in state recovery
[net-next-2.6.git] / fs / nfs / delegation.c
index ea61d26e7871bcb72e939a4dee96ebc330b579a2..3016345439744d4ae13166a3eba9c80d86322e35 100644 (file)
@@ -213,7 +213,7 @@ int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct
        struct nfs_delegation *freeme = NULL;
        int status = 0;
 
-       delegation = kmalloc(sizeof(*delegation), GFP_KERNEL);
+       delegation = kmalloc(sizeof(*delegation), GFP_NOFS);
        if (delegation == NULL)
                return -ENOMEM;
        memcpy(delegation->stateid.data, res->delegation.data,