projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f65753
)
NFSv4.1: Deal with seqid wraparound in the pNFS return-on-close code
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 4 Oct 2012 23:28:17 +0000
(16:28 -0700)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 4 Oct 2012 23:28:17 +0000
(16:28 -0700)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/pnfs.c
b/fs/nfs/pnfs.c
index de827251bdac192863eb6951b0556b948ecdfce1..42613bd19f8e77dcfe4d4b7803c0d7969c4f1354 100644
(file)
--- 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);
}