use ->d_seq to get coherency between ->d_inode and ->d_flags

commit a528aca7f3 upstream.

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.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Al Viro 2016-02-29 12:12:46 -05:00 • committed by Greg Kroah-Hartman
commit 53729dbbd2
2 changed files with 6 additions and 18 deletions