Btrfs: remove unnecessary btrfs_mark_buffer_dirty in split_leaf
commit196e02490c934398f894e5cb0ee1ac8ad13ca576
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 7 Sep 2016 21:48:28 +0000 (7 14:48 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2016 17:50:44 +0000 (26 19:50 +0200)
treee519263bb651174598da94d80f35f90e6bf635af
parent4867268c57ff709a7b6b86ae6f6537d846d1443a
Btrfs: remove unnecessary btrfs_mark_buffer_dirty in split_leaf

When we're not able to get enough space through splitting leaf,
we'd create a new sibling leaf instead, and it's possible that we return
 a zero-nritem sibling leaf and mark it dirty before it's in a consistent
state.  With CONFIG_BTRFS_FS_CHECK_INTEGRITY=y, the integrity check of
check_leaf will report panic due to this zero-nritem non-root leaf.

This removes the unnecessary btrfs_mark_buffer_dirty.

Reported-by: Filipe Manana <fdmanana@gmail.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c