]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Deal correctly with attribute generation counter overflow
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 29 Mar 2021 20:46:05 +0000 (16:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 May 2021 08:38:28 +0000 (10:38 +0200)
commitcb12c649f33a2e9b19e15887a2e5d605656b7e4a
tree195a7dbc50530425b71d9f2bd87e03024ed3321d
parent85d7a427bb5fa5a57f3d963eafc887a04e8f21de
NFS: Deal correctly with attribute generation counter overflow

[ Upstream commit 9fdbfad1777cb4638f489eeb62d85432010c0031 ]

We need to use unsigned long subtraction and then convert to signed in
order to deal correcly with C overflow rules.

Fixes: f5062003465c ("NFS: Set an attribute barrier on all updates")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/inode.c