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>
Showing
- fs/gfs2/file.c 1 addition, 21 deletionsfs/gfs2/file.c
- fs/libfs.c 16 additions, 0 deletionsfs/libfs.c
- fs/nfs/file.c 1 addition, 12 deletionsfs/nfs/file.c
- fs/nfs/internal.h 0 additions, 1 deletionfs/nfs/internal.h
- fs/nfs/nfs4file.c 1 addition, 1 deletionfs/nfs/nfs4file.c
- include/linux/fs.h 1 addition, 0 deletionsinclude/linux/fs.h
Loading
Please register or sign in to comment