From: Trond Myklebust Date: Thu, 4 Oct 2012 23:28:17 +0000 (-0700) Subject: NFSv4.1: Deal with seqid wraparound in the pNFS return-on-close code X-Git-Tag: upstream/snapshot3+hdmi~6478^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f35ad6f688e9b7bcaa918a42130695822906f11;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git NFSv4.1: Deal with seqid wraparound in the pNFS return-on-close code Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index de82725..42613bd 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -801,7 +801,7 @@ void pnfs_roc_set_barrier(struct inode *ino, u32 barrier) spin_lock(&ino->i_lock); lo = NFS_I(ino)->layout; - if ((int)(barrier - lo->plh_barrier) > 0) + if (pnfs_seqid_is_newer(barrier, lo->plh_barrier)) lo->plh_barrier = barrier; spin_unlock(&ino->i_lock); }