From: David Howells Date: Thu, 5 Mar 2015 14:09:22 +0000 (+0000) Subject: VFS: Impose ordering on accesses of d_inode and d_flags X-Git-Tag: omap-for-v4.1/fixes-rc1~116^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bf46a272647d89e780126b52eda04737defd9f4;p=pandora-kernel.git 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 Signed-off-by: Al Viro --- Reading git-diff-tree failed