]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e3bc39e8441875214965469aa31e641639afce6
treed9acd8cd48909ea821dde74b372d62aeccda8e7a
parent12bc579e17581f05c6f8419572d56a12f45cf362
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