• Filipe Manana's avatar
    btrfs: directly pass the inode to btrfs_is_data_extent_shared() · ceb707da
    Filipe Manana authored
    Currently we pass a root and an inode number as arguments for
    btrfs_is_data_extent_shared() and the inode number is always from an
    inode that belongs to that root (it wouldn't make sense otherwise).
    In every context that we call btrfs_is_data_extent_shared() (fiemap only),
    we have an inode available, so directly pass the inode to the function
    instead of a root and inode number. This reduces the number of parameters
    and it makes the function's signature conform to most other functions we
    have.
    Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    ceb707da
backref.c 90.1 KB