diff options
author | David Howells <dhowells@redhat.com> | 2020-04-11 09:50:45 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-04-13 16:09:01 +0200 |
commit | 40fc81027f892284ce31f8b6de1e497f5b47e71f (patch) | |
tree | 68d3a89099d8fda3866485281ab11163c8c05c7c /lib/test_ida.c | |
parent | afs: Fix race between post-modification dir edit and readdir/d_revalidate (diff) | |
download | linux-40fc81027f892284ce31f8b6de1e497f5b47e71f.tar.xz linux-40fc81027f892284ce31f8b6de1e497f5b47e71f.zip |
afs: Fix afs_d_validate() to set the right directory version
If a dentry's version is somewhere between invalid_before and the current
directory version, we should be setting it forward to the current version,
not backwards to the invalid_before version. Note that we're only doing
this at all because dentry::d_fsdata isn't large enough on a 32-bit system.
Fix this by using a separate variable for invalid_before so that we don't
accidentally clobber the current dir version.
Fixes: a4ff7401fbfa ("afs: Keep track of invalid-before version for dentry coherency")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'lib/test_ida.c')
0 files changed, 0 insertions, 0 deletions