btrfs: refactor btrfs_set_props to validate externally
authorAnand Jain <anand.jain@oracle.com>
Sat, 20 Apr 2019 11:48:51 +0000 (19:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:52 +0000 (19:02 +0200)
commitf22125e5d8ae136adb99552d97078702e1ee68ab
tree091574a84bd201eff96baa3e9d20b3751c3f2f6c
parent7c15d41016dc886cc011e3854d855e219759ae68
btrfs: refactor btrfs_set_props to validate externally

In preparation to merge multiple transactions when setting the
compression flags, split btrfs_set_props() validation part outside of
it.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
fs/btrfs/props.c
fs/btrfs/props.h
fs/btrfs/xattr.c