locks: consolidate NULL i_flctx checks in locks_remove_file
authorJeff Layton <jeff.layton@primarydata.com>
Fri, 16 Jan 2015 20:05:58 +0000 (15:05 -0500)
committerJeff Layton <jeff.layton@primarydata.com>
Fri, 16 Jan 2015 21:08:50 +0000 (16:08 -0500)
commit3d8e560de4a076b302cb0cc17e998aaace2b176a
treed63c4b03e7e1c5e937b49385d7f630b7921f1119
parent9bd0f45b7037fcfa8b575c7e27d0431d6e6dc3bb
locks: consolidate NULL i_flctx checks in locks_remove_file

We have each of the locks_remove_* variants doing this individually.
Have the caller do it instead, and have locks_remove_flock and
locks_remove_lease just assume that it's a valid pointer.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
fs/locks.c