]> 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)
commitaa9338c51028df3b3a933d25588eee4425d0c747
treed9acd8cd48909ea821dde74b372d62aeccda8e7a
parent128f0ff6b18a13286766d99445c967b6c1ce4f1c
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