btrfs: use common file type conversion
authorPhillip Potter <phil@philpotter.co.uk>
Tue, 26 Mar 2019 21:39:34 +0000 (21:39 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:29 +0000 (19:02 +0200)
commit7d157c3d4810cfb9ea1bb0977e8e2db02032173a
tree144bf4d1aca90cbc1a6a4e8e73a1239c5f4dbc3a
parent7984ae52bbf75def1d7fcbf4c902e8f787e1ef9d
btrfs: use common file type conversion

Deduplicate the btrfs file type conversion implementation - file systems
that use the same file types as defined by POSIX do not need to define
their own versions and can use the common helper functions decared in
fs_types.h and implemented in fs_types.c

Common implementation can be found via commit:
bbe7449e2599 "fs: common implementation of file type"

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/delayed-inode.c
fs/btrfs/inode.c
include/uapi/linux/btrfs_tree.h