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>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Al Viro 2016-02-29 12:12:46 -05:00 • committed by Ben Hutchings
commit b9bc5b0a64
2 changed files with 6 additions and 15 deletions