Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 4a3ef68 ("kernfs: implement i_generation") Cc: Namhyung Kim <[email protected]> Cc: [email protected] # v4.14+
- Loading branch information