diff options
author | Anand Jain <anand.jain@oracle.com> | 2019-04-20 14:48:51 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:52 +0300 |
commit | f22125e5d8ae136adb99552d97078702e1ee68ab (patch) | |
tree | 091574a84bd201eff96baa3e9d20b3751c3f2f6c /fs/btrfs/props.h | |
parent | 7c15d41016dc886cc011e3854d855e219759ae68 (diff) | |
download | linux-f22125e5d8ae136adb99552d97078702e1ee68ab.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/props.h')
-rw-r--r-- | fs/btrfs/props.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/props.h b/fs/btrfs/props.h index b1a6b233b774..01d2c1899bc7 100644 --- a/fs/btrfs/props.h +++ b/fs/btrfs/props.h @@ -12,6 +12,7 @@ void __init btrfs_props_init(void); int btrfs_set_prop_trans(struct inode *inode, const char *name, const char *value, size_t value_len, int flags); +int btrfs_validate_prop(const char *name, const char *value, size_t value_len); int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path); |