From: Jeff Layton Date: Wed, 24 Sep 2014 12:38:44 +0000 (-0400) Subject: locks: fix fcntl_setlease/getlease return when !CONFIG_FILE_LOCKING X-Git-Tag: fixes-against-v3.18-rc2~119^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2b32dcdb3df28dd103033c73cac2417fa05845;p=pandora-kernel.git 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 Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed