diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-09-24 14:38:44 +0200 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-10-07 20:06:13 +0200 |
commit | 1b2b32dcdb3df28dd103033c73cac2417fa05845 (patch) | |
tree | 3b7644aa3139516c4dbb78605362c15571fbc10f /net | |
parent | locks: flock_make_lock should return a struct file_lock (or PTR_ERR) (diff) | |
download | linux-1b2b32dcdb3df28dd103033c73cac2417fa05845.tar.xz linux-1b2b32dcdb3df28dd103033c73cac2417fa05845.zip |
locks: fix fcntl_setlease/getlease return when !CONFIG_FILE_LOCKING
Currently they both just return 0. Fix them to return more appropriate
values instead.
For better or worse, most places in the kernel return -EINVAL when
leases aren't available. -ENOLCK would probably have been better, but
let's follow suit here in the case of F_SETLEASE.
In the F_GETLEASE case, just return F_UNLCK since we know that no
lease will have been set.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions