]> git.baikalelectronics.ru Git - kernel.git/commit
use ->d_seq to get coherency between ->d_inode and ->d_flags
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Feb 2016 17:12:46 +0000 (12:12 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Feb 2016 17:16:43 +0000 (12:16 -0500)
commit51c44391ef5cfb4c8385a1a5821d7657f145c9bd
tree26b95bc4e207d3bd6afc11affbfa0fe85ac53b6a
parenta93c9a1e2cfd45a81a82f7762b13432f703e1795
use ->d_seq to get coherency between ->d_inode and ->d_flags

Games with ordering and barriers are way too brittle.  Just
bump ->d_seq before and after updating ->d_inode and ->d_flags
type bits, so that verifying ->d_seq would guarantee they are
coherent.

Cc: stable@vger.kernel.org # v3.13+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c
include/linux/dcache.h