linux/fs/dcache.c
Al Viro c8ce76e3c6 use ->d_seq to get coherency between ->d_inode and ->d_flags
[ Upstream commit a528aca7f3 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2016-03-09 13:15:20 -05:00

3461 lines
89 KiB