[Cluster-devel] [PATCH v2 01/17] locks: consolidate "nolease" routines
Jeff Layton
jeff.layton at primarydata.com
Thu Sep 4 12:49:38 UTC 2014
On Thu, 4 Sep 2014 08:41:51 -0400
Trond Myklebust <trond.myklebust at primarydata.com> wrote:
> On Thu, Sep 4, 2014 at 8:38 AM, Jeff Layton <jlayton at primarydata.com> wrote:
> > 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: Trond Myklebust <trond.myklebust at primarydata.com>
> > Cc: <linux-nfs at vger.kernel.org>
> > Cc: Steven Whitehouse <swhiteho at redhat.com>
> > Cc: <cluster-devel at redhat.com>
> > Signed-off-by: Jeff Layton <jlayton at primarydata.com>
> > ---
> > fs/gfs2/file.c | 22 +---------------------
> > fs/libfs.c | 16 ++++++++++++++++
> > fs/nfs/file.c | 13 +------------
> > fs/nfs/internal.h | 1 -
> > fs/nfs/nfs4file.c | 2 +-
> > include/linux/fs.h | 1 +
> > 6 files changed, 20 insertions(+), 35 deletions(-)
>
> Acked-by: Trond Myklebust <trond.myklebust at primarydata.com>
>
Thanks. While spinning this up, I did have a momentary pause to wonder
if -ENOLCK would be a better return value here.
It would make it easier to distinguish this from from "oops, I passed
in bogus arguments". For now, I'll leave it as -EINVAL, but it's
something to consider...
--
Jeff Layton <jlayton at primarydata.com>
More information about the Cluster-devel
mailing list