locks: have locks_release_file use flock_lock_file to release generic flock locks
authorJeff Layton <jlayton@primarydata.com>
Fri, 16 Jan 2015 20:05:54 +0000 (15:05 -0500)
committerJeff Layton <jlayton@primarydata.com>
Fri, 16 Jan 2015 20:05:54 +0000 (15:05 -0500)
commitdd459bb1974c5e9cff3dfbf4f6fdb3e9363ef32e
treea3e8ece763ff45bf2082a0c41b56f8a07dea44f6
parent6dee60f69d48fcef021b4b53b3431797ec440764
locks: have locks_release_file use flock_lock_file to release generic flock locks

...instead of open-coding it and removing flock locks directly. This
helps consolidate the flock lock removal logic into a single spot.

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