]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6f8cd248fd5cf1225ac3acd7031763e90bb48ed
treed63c4b03e7e1c5e937b49385d7f630b7921f1119
parentaac5ccdeecca8e5d5129adb3118d1a4fb829c903
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