summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/btrfs_inode.h
diff options
context:
space:
mode:
authorPhillip Potter <phil@philpotter.co.uk>2019-03-26 22:39:34 +0100
committerDavid Sterba <dsterba@suse.com>2019-04-29 19:02:29 +0200
commit7d157c3d4810cfb9ea1bb0977e8e2db02032173a (patch)
tree144bf4d1aca90cbc1a6a4e8e73a1239c5f4dbc3a /fs/btrfs/btrfs_inode.h
parentbtrfs: Perform locking/unlocking in btrfs_remap_file_range() (diff)
downloadlinux-7d157c3d4810cfb9ea1bb0977e8e2db02032173a.tar.xz
linux-7d157c3d4810cfb9ea1bb0977e8e2db02032173a.zip
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>
Diffstat (limited to 'fs/btrfs/btrfs_inode.h')
-rw-r--r--fs/btrfs/btrfs_inode.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h
index 6f5d07415dab..b16c13d51be0 100644
--- a/fs/btrfs/btrfs_inode.h
+++ b/fs/btrfs/btrfs_inode.h
@@ -203,8 +203,6 @@ struct btrfs_inode {
struct inode vfs_inode;
};
-extern unsigned char btrfs_filetype_table[];
-
static inline struct btrfs_inode *BTRFS_I(const struct inode *inode)
{
return container_of(inode, struct btrfs_inode, vfs_inode);