OSDN Git Service

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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Apr 2021 21:14:17 +0000 (17:14 -0400)
commit9fdbfad1777cb4638f489eeb62d85432010c0031
treedb7380727b54a1bae6ae474b925782554d5c0ab6
parent99f23783224355e7022ceea9b8d9f62c0fd01bd8
NFS: Deal correctly with attribute generation counter overflow

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>
fs/nfs/inode.c