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>
This commit is contained in:

committed by
J. Bruce Fields

parent
64c59a3726
commit
14b7f4a1ed
@@ -573,6 +573,11 @@ enum nfsd4_cb_op {
|
||||
NFSPROC4_CLNT_CB_SEQUENCE,
|
||||
};
|
||||
|
||||
/* Returns true iff a is later than b: */
|
||||
static inline bool nfsd4_stateid_generation_after(stateid_t *a, stateid_t *b)
|
||||
{
|
||||
return (s32)(a->si_generation - b->si_generation) > 0;
|
||||
}
|
||||
|
||||
struct nfsd4_compound_state;
|
||||
struct nfsd_net;
|
||||
|
Reference in New Issue
Block a user