diff options
author | Jeff Layton <jeff.layton@primarydata.com> | 2015-04-03 09:04:03 -0400 |
---|---|---|
committer | Jeff Layton <jeff.layton@primarydata.com> | 2015-04-03 09:04:03 -0400 |
commit | 5c1c669a1b2435e071d566b6db1a8e6b26542ba1 (patch) | |
tree | 512cf17f4056133293b863e38d81097f921037e0 /fs/nfsd/nfs4state.c | |
parent | 663d5af750b8c025d0dfea2cf2a4b4a78cafa3a7 (diff) | |
download | blackbird-op-linux-5c1c669a1b2435e071d566b6db1a8e6b26542ba1.tar.gz blackbird-op-linux-5c1c669a1b2435e071d566b6db1a8e6b26542ba1.zip |
locks: don't allocate a lock context for an F_UNLCK request
In the event that we get an F_UNLCK request on an inode that has no lock
context, there is no reason to allocate one. Change
locks_get_lock_context to take a "type" pointer and avoid allocating a
new context if it's F_UNLCK.
Then, fix the callers to return appropriately if that function returns
NULL.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
0 files changed, 0 insertions, 0 deletions