locks: consolidate "nolease" routines
authorJeff Layton <jlayton@primarydata.com>
Wed, 27 Aug 2014 10:49:41 +0000 (06:49 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 9 Sep 2014 20:01:36 +0000 (16:01 -0400)
commit1c994a0909a556508c2cc26ab5d9e13c5ce33aa0
tree6bb67db15f5e74c07c793ce3e27165c542f14c95
parent699688a416524c3cea9eafaca69fc6c06c13c02e
locks: consolidate "nolease" routines

GFS2 and NFS have setlease routines that always just return -EINVAL.
Turn that into a generic routine that can live in fs/libfs.c.

Cc: <linux-nfs@vger.kernel.org>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: <cluster-devel@redhat.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/gfs2/file.c
fs/libfs.c
fs/nfs/file.c
fs/nfs/internal.h
fs/nfs/nfs4file.c
include/linux/fs.h