locks: only remove leases associated with the file being closed
authorJeff Layton <jeff.layton@primarydata.com>
Tue, 17 Feb 2015 00:37:42 +0000 (19:37 -0500)
committerJeff Layton <jeff.layton@primarydata.com>
Tue, 17 Feb 2015 20:22:57 +0000 (15:22 -0500)
commitc4e136cda11cb5f87683dd5b154a2d15ea5898b3
treec406f868cb504b5edd71a604ff02d91057d75e23
parente084c1bd40926938ff8d26af3bde34396dd4d06d
locks: only remove leases associated with the file being closed

We don't want to remove all leases just because one filp was closed.

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