aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index de827251bda..42613bd19f8 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)
801 801
802 spin_lock(&ino->i_lock); 802 spin_lock(&ino->i_lock);
803 lo = NFS_I(ino)->layout; 803 lo = NFS_I(ino)->layout;
804 if ((int)(barrier - lo->plh_barrier) > 0) 804 if (pnfs_seqid_is_newer(barrier, lo->plh_barrier))
805 lo->plh_barrier = barrier; 805 lo->plh_barrier = barrier;
806 spin_unlock(&ino->i_lock); 806 spin_unlock(&ino->i_lock);
807} 807}