Files
tegra-linux-noble/include/linux
David Howells 4bf46a2726 VFS: Impose ordering on accesses of d_inode and d_flags
Impose ordering on accesses of d_inode and d_flags to avoid the need to do
this:

	if (!dentry->d_inode || d_is_negative(dentry)) {

when this:

	if (d_is_negative(dentry)) {

should suffice.

This check is especially problematic if a dentry can have its type field set
to something other than DENTRY_MISS_TYPE when d_inode is NULL (as in
unionmount).

What we really need to do is stick a write barrier between setting d_inode and
setting d_flags and a read barrier between reading d_flags and reading
d_inode.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2015-04-15 15:05:28 -04:00
..
2015-02-19 13:31:40 +03:00
2015-04-02 16:25:04 -04:00
2015-01-29 10:49:28 +02:00
2015-03-25 20:28:11 -04:00
2015-03-29 13:26:54 -07:00
2015-03-11 15:56:59 -07:00
2015-02-12 18:54:15 -08:00
2015-03-02 16:43:41 -05:00
2015-01-25 23:17:28 -05:00
2015-01-27 11:09:13 +01:00
2015-02-13 21:21:36 -08:00
2015-02-17 14:34:51 -08:00
2015-02-11 17:06:02 -08:00
2015-03-11 17:56:28 -04:00
2015-01-25 23:17:28 -05:00
2015-02-17 14:34:52 -08:00
2015-02-16 17:56:03 -08:00
2015-02-13 21:21:41 -08:00
2015-03-11 21:55:28 -04:00
2015-04-11 15:53:35 -04:00
2015-02-13 21:21:35 -08:00
2015-04-11 22:29:44 -04:00