btrfs: move fiemap code from extent_io.c to inode.c

Currently the core of the fiemap code lives in extent_io.c, which does
not make any sense because it's not related to extent IO at all (and it
was not as well before the big rewrite of fiemap I did some time ago).

Fiemap is an inode operation and its entry point is defined at inode.c,
where it really belongs. So move all the fiemap code from extent_io.c
into inode.c. This is a simple move without any other changes, only
extent_fiemap() is made static after being moved to inode.c and its
prototype declaration removed from extent_io.h.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
3 files changed