diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-17 22:04:24 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 18:20:28 -0500 |
commit | d1e284d50a1506aab8ad7895f31b5f93b5647fc9 (patch) | |
tree | 128f19f0646c77d4de820e39f0a724ce37ae1d57 /fs/nfs/nfs4proc.c | |
parent | 1313e6034a73a55d6293dbdc62b8853dd067771a (diff) |
NFSv4: Clean up nfs4_get_state_owner
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index f0c849c98fe4..53ef365f4372 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1754,7 +1754,8 @@ static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, fmode_t fmode | |||
1754 | 1754 | ||
1755 | /* Protect against reboot recovery conflicts */ | 1755 | /* Protect against reboot recovery conflicts */ |
1756 | status = -ENOMEM; | 1756 | status = -ENOMEM; |
1757 | if (!(sp = nfs4_get_state_owner(server, cred))) { | 1757 | sp = nfs4_get_state_owner(server, cred, GFP_KERNEL); |
1758 | if (sp == NULL) { | ||
1758 | dprintk("nfs4_do_open: nfs4_get_state_owner failed!\n"); | 1759 | dprintk("nfs4_do_open: nfs4_get_state_owner failed!\n"); |
1759 | goto out_err; | 1760 | goto out_err; |
1760 | } | 1761 | } |