VFS: Allow caller to determine if BSD or posix locks were actually freed
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 29 Jun 2006 20:38:32 +0000 (16:38 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 5 Jul 2006 17:13:17 +0000 (13:13 -0400)
commitf475ae957db66650db66916c62604ac27409d884
tree3b9c40dd20f1b7f3fcc59035941c4a084ce71a19
parent5e66dd6d66ffe758b39b6dcadf2330753ee1159b
VFS: Allow caller to determine if BSD or posix locks were actually freed

Change posix_lock_file_conf(), and flock_lock_file() so that if called
with an F_UNLCK argument, and the FL_EXISTS flag they will indicate
whether or not any locks were actually freed by returning 0 or -ENOENT.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/locks.c
include/linux/fs.h