]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove special handling of EXTENT_BUFFER_UNMAPPED while freeing
authorNikolay Borisov <nborisov@suse.com>
Wed, 15 Aug 2018 15:26:57 +0000 (18:26 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:31 +0000 (14:51 +0100)
commitd482c2943fb728711422d74e7d67369ff906667c
treeabc79e3d7a138b427970356cc3d3f2d408ac500e
parent43974088ad456b8550384f95f409dadc45db777d
btrfs: Remove special handling of EXTENT_BUFFER_UNMAPPED while freeing

Now that the whole of btrfs code has been audited for eb reference count
management it's time to remove the hunk in free_extent_buffer that
essentially considered the condition

  "eb->ref == 2 && EXTENT_BUFFER_DUMMY"

to equal "eb->ref = 1". Also remove the last location
which takes an extra reference count in alloc_test_extent_buffer.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/tests/btrfs-tests.c