summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorDavid Howells2015-03-05 15:09:22 +0100
committerAl Viro2015-04-15 21:05:28 +0200
commit4bf46a272647d89e780126b52eda04737defd9f4 (patch)
tree989bac3ffce8a0f7f9184e14afb2dd9c28693cfe /README
parentVFS: Add owner-filesystem positive/negative dentry checks (diff)
downloadkernel-qcow2-linux-4bf46a272647d89e780126b52eda04737defd9f4.tar.gz
kernel-qcow2-linux-4bf46a272647d89e780126b52eda04737defd9f4.tar.xz
kernel-qcow2-linux-4bf46a272647d89e780126b52eda04737defd9f4.zip
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>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions