]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:36 +0000 (15:45 -0700)
commit7d79d7d1b4c89e312fa53906bf3aadefdfff94bf
tree18a0b51eaf6e1a7413609774d617be2074f8e1db
parent9dff744ed8f976e538ada6c92acdf079b19aebf6
use ->d_seq to get coherency between ->d_inode and ->d_flags

Orabug: 23330989

[ Upstream commit a528aca7f359f4b0b1d72ae406097e491a5ba9ea ]

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>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
(cherry picked from commit c8ce76e3c6cd937e8b3fd8ae3573f23767b70eca)

Conflict:

fs/dcache.c
fs/dcache.c
include/linux/dcache.h