diff options
author | Tejun Heo <[email protected]> | 2019-11-04 15:54:29 -0800 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2019-11-12 08:18:03 -0800 |
commit | e23f568aa63f64cd6b355094224cc9356c0f696b (patch) | |
tree | fdefc12ecadf8a7677cf7230613a33d6e86e98e0 /scripts/bpf_helpers_doc.py | |
parent | d671fa6393d6788fc65555d4643b71cb3a361f36 (diff) |
kernfs: fix ino wrap-around detection
When the 32bit ino wraps around, kernfs increments the generation
number to distinguish reused ino instances. The wrap-around detection
tests whether the allocated ino is lower than what the cursor but the
cursor is pointing to the next ino to allocate so the condition never
triggers.
Fix it by remembering the last ino and comparing against that.
Signed-off-by: Tejun Heo <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Fixes: 4a3ef68acacf ("kernfs: implement i_generation")
Cc: Namhyung Kim <[email protected]>
Cc: [email protected] # v4.14+
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions