Files
linux/fs
David Howells 9c55dc85d8 afs: Only update d_fsdata if different in afs_d_revalidate()
[ Upstream commit 5dc84855b0 ]

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: 260a980317 ("[AFS]: Add "directory write" support.")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-06 10:21:55 +02:00
..
2019-08-06 19:06:51 +02:00
2019-07-28 08:29:30 +02:00
2019-08-16 10:12:41 +02:00
2018-12-17 09:24:41 +01:00
2018-08-17 16:20:28 -07:00
2018-05-22 14:27:52 -04:00
2018-08-17 16:20:27 -07:00
2018-05-22 14:27:52 -04:00
2019-05-02 09:58:59 +02:00
2018-07-03 16:44:45 -04:00
2018-06-05 19:23:26 +02:00
2018-06-11 08:22:34 -07:00