• Josef Bacik's avatar
    btrfs: move leaf_data_end into ctree.c · 3a3178c7
    Josef Bacik authored
    This is only used in ctree.c, with the exception of zero'ing out extent
    buffers we're getting ready to write out.  In theory we shouldn't have
    an extent buffer with 0 items that we're writing out, however I'd rather
    be safe than sorry so open code it in extent_io.c, and then copy the
    helper into ctree.c.  This will make it easier to sync accessors.[ch]
    into btrfs-progs, as this requires a helper that isn't defined in
    accessors.h.
    Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    3a3178c7
accessors.h 40.8 KB