Btrfs: check if items are ordered when a leaf is marked dirty
authorFilipe Manana <fdmanana@gmail.com>
Wed, 9 Apr 2014 14:37:06 +0000 (15:37 +0100)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:45 +0000 (17:20 -0700)
commit1f21ef0a34c37de0daf66fce7141b23b88630f29
tree121878e59b61dc0b524934b84753984f99eb837c
parent35045bf2fd7c030f2583dbd80a2015f427778bf1
Btrfs: check if items are ordered when a leaf is marked dirty

To ease finding bugs during development related to modifying btree leaves
in such a way that it makes its items not sorted by key anymore. Since this
is an expensive check, it's only enabled if CONFIG_BTRFS_FS_CHECK_INTEGRITY
is set, which isn't meant to be enabled for regular users.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c