btrfs: export btrfs_set_prop
Make btrfs_set_prop() a non-static function, so that it can be called from btrfs_ioctl_setflags(). We need btrfs_set_prop() instead of btrfs_set_prop_trans() so that we can use the transaction which is already started in the current thread. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Родитель
f22125e5d8
Коммит
cd31af158b
|
@ -72,9 +72,9 @@ int btrfs_validate_prop(const char *name, const char *value, size_t value_len)
|
||||||
return handler->validate(value, value_len);
|
return handler->validate(value, value_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode,
|
int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode,
|
||||||
const char *name, const char *value, size_t value_len,
|
const char *name, const char *value, size_t value_len,
|
||||||
int flags)
|
int flags)
|
||||||
{
|
{
|
||||||
const struct prop_handler *handler;
|
const struct prop_handler *handler;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -12,6 +12,9 @@ void __init btrfs_props_init(void);
|
||||||
|
|
||||||
int btrfs_set_prop_trans(struct inode *inode, const char *name,
|
int btrfs_set_prop_trans(struct inode *inode, const char *name,
|
||||||
const char *value, size_t value_len, int flags);
|
const char *value, size_t value_len, int flags);
|
||||||
|
int btrfs_set_prop(struct btrfs_trans_handle *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_validate_prop(const char *name, const char *value, size_t value_len);
|
||||||
|
|
||||||
int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path);
|
int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче