summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trace.h
diff options
context:
space:
mode:
authorChris Mason <clm@fb.com>2014-10-15 22:50:56 +0200
committerChris Mason <clm@fb.com>2014-10-17 11:40:59 +0200
commitd37973082b453ba6b89ec07eb7b84305895d35e1 (patch)
treef9e444a57d37d65fe2458134249cc086bf92d6de /fs/xfs/xfs_trace.h
parentbtrfs: Fix compile error when CONFIG_SECURITY is not set. (diff)
downloadlinux-d37973082b453ba6b89ec07eb7b84305895d35e1.tar.xz
linux-d37973082b453ba6b89ec07eb7b84305895d35e1.zip
Revert "Btrfs: race free update of commit root for ro snapshots"
This reverts commit 9c3b306e1c9e6be4be09e99a8fe2227d1005effc. Switching only one commit root during a transaction is wrong because it leads the fs into an inconsistent state. All commit roots should be switched at once, at transaction commit time, otherwise backref walking can often miss important references that were only accessible through the old commit root. Plus, the root item for the snapshot's root wasn't getting updated and preventing the next transaction commit to do it. This made several users get into random corruption issues after creation of readonly snapshots. A regression test for xfstests will follow soon. Cc: stable@vger.kernel.org # 3.17 Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/xfs/xfs_trace.h')
0 files changed, 0 insertions, 0 deletions