OSDN Git Service

btrfs: export a helper for compression hard check
authorChung-Chiang Cheng <cccheng@synology.com>
Fri, 15 Apr 2022 08:04:05 +0000 (16:04 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 27 Apr 2022 20:15:40 +0000 (22:15 +0200)
commite6f9d69648029e48b8f97db09368d419b5e2614a
treed9acd8cd48909ea821dde74b372d62aeccda8e7a
parent5f0addf7b89085f8e0a2593faa419d6111612b9b
btrfs: export a helper for compression hard check

inode_can_compress will be used outside of inode.c to check the
availability of setting compression flag by xattr. This patch moves
this function as an internal helper and renames it to
btrfs_inode_can_compress.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Chung-Chiang Cheng <cccheng@synology.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/inode.c