]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Mar 2016 23:34:49 +0000 (15:34 -0800)
commit53729dbbd20a517c4ecb994cfe994bc832b30523
tree32b5d1d452c0a1293e7dbf2adf2c8eaac3bf82a1
parentc252409a688a831385fb71097db7a86ffe595b74
use ->d_seq to get coherency between ->d_inode and ->d_flags

commit a528aca7f359f4b0b1d72ae406097e491a5ba9ea 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>
fs/dcache.c
include/linux/dcache.h