aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 91ead0ed9f11..72f0c4e9a942 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3427,7 +3427,7 @@ grace_disallows_io(struct net *net, struct inode *inode)
3427/* Returns true iff a is later than b: */ 3427/* Returns true iff a is later than b: */
3428static bool stateid_generation_after(stateid_t *a, stateid_t *b) 3428static bool stateid_generation_after(stateid_t *a, stateid_t *b)
3429{ 3429{
3430 return (s32)a->si_generation - (s32)b->si_generation > 0; 3430 return (s32)(a->si_generation - b->si_generation) > 0;
3431} 3431}
3432 3432
3433static __be32 check_stateid_generation(stateid_t *in, stateid_t *ref, bool has_session) 3433static __be32 check_stateid_generation(stateid_t *in, stateid_t *ref, bool has_session)