diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2016-05-05 12:53:47 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-05-13 21:34:47 +0200 |
commit | 14b7f4a1edf15808cf52dc38277ffe1d84854839 (patch) | |
tree | b4fcfa64ff59ee0ed5f6ef01d7b828de534e3af9 /fs/nfsd/nfs4layouts.c | |
parent | Remove unnecessary allocation (diff) | |
download | linux-14b7f4a1edf15808cf52dc38277ffe1d84854839.tar.xz linux-14b7f4a1edf15808cf52dc38277ffe1d84854839.zip |
nfsd: handle seqid wraparound in nfsd4_preprocess_layout_stateid
Move the existing static function to an inline helper, and call it.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4layouts.c')
-rw-r--r-- | fs/nfsd/nfs4layouts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4layouts.c b/fs/nfsd/nfs4layouts.c index 825c7bc8d789..953c0755cb37 100644 --- a/fs/nfsd/nfs4layouts.c +++ b/fs/nfsd/nfs4layouts.c @@ -289,7 +289,7 @@ nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, status = nfserr_bad_stateid; mutex_lock(&ls->ls_mutex); - if (stateid->si_generation > stid->sc_stateid.si_generation) + if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) goto out_unlock_stid; if (layout_type != ls->ls_layout_type) goto out_unlock_stid; |