OSDN Git Service

Btrfs: do not create explicit holes when replaying log tree if NO_HOLES enabled
authorFilipe Manana <fdmanana@suse.com>
Wed, 1 Feb 2017 14:58:02 +0000 (14:58 +0000)
committerFilipe Manana <fdmanana@suse.com>
Fri, 24 Feb 2017 00:38:10 +0000 (00:38 +0000)
commit3168021cf9b4906f7bd9871770235f14c5a17715
tree2c8464809935015142f6ad1af673201ca699c93b
parent91e1f56a8b3c94cb5ac9ce12b806134dc33c1eeb
Btrfs: do not create explicit holes when replaying log tree if NO_HOLES enabled

We log holes explicitly by using file extent items, however when replaying
a log tree, if a logged file extent item corresponds to a hole and the
NO_HOLES feature is enabled we do not need to copy the file extent item
into the fs/subvolume tree, as the absence of such file extent items is
the purpose of the NO_HOLES feature. So skip the copying of file extent
items representing holes when the NO_HOLES feature is enabled.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
fs/btrfs/tree-log.c