diff options
author | David Howells | 2019-07-30 15:38:51 +0200 |
---|---|---|
committer | David Howells | 2019-07-30 15:38:51 +0200 |
commit | 5dc84855b0fc7e1db182b55c5564fd539d6eff92 (patch) | |
tree | 0290def0100fe4508089c98d0c3f9aea2118dfe0 /fs/file.c | |
parent | afs: Fix off-by-one in afs_rename() expected data version calculation (diff) | |
download | kernel-qcow2-linux-5dc84855b0fc7e1db182b55c5564fd539d6eff92.tar.gz kernel-qcow2-linux-5dc84855b0fc7e1db182b55c5564fd539d6eff92.tar.xz kernel-qcow2-linux-5dc84855b0fc7e1db182b55c5564fd539d6eff92.zip |
afs: Only update d_fsdata if different in afs_d_revalidate()
In the in-kernel afs filesystem, d_fsdata is set with the data version of
the parent directory. afs_d_revalidate() will update this to the current
directory version, but it shouldn't do this if it the value it read from
d_fsdata is the same as no lock is held and cmpxchg() is not used.
Fix the code to only change the value if it is different from the current
directory version.
Fixes: 260a980317da ("[AFS]: Add "directory write" support.")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/file.c')
0 files changed, 0 insertions, 0 deletions