Message ID | 541BEEC1.9030606@jp.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Sep 19, 2014 at 05:52:17PM +0900, Satoru Takeuchi wrote: > @@ -99,7 +99,7 @@ find_prop_handler(const char *name, > return NULL; > } > > -static int __btrfs_set_prop(struct btrfs_trans_handle *trans, > +int __btrfs_set_prop(struct btrfs_trans_handle *trans, It's common for static helpers to use the __ prefix, but please drop it for an exported function(s). -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c index 38efbe1..6f56f5b 100644 --- a/fs/btrfs/props.c +++ b/fs/btrfs/props.c @@ -99,7 +99,7 @@ find_prop_handler(const char *name, return NULL; } -static int __btrfs_set_prop(struct btrfs_trans_handle *trans, +int __btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, const char *name, const char *value, diff --git a/fs/btrfs/props.h b/fs/btrfs/props.h index 100f188..cff91e0 100644 --- a/fs/btrfs/props.h +++ b/fs/btrfs/props.h @@ -28,6 +28,12 @@ int btrfs_set_prop(struct inode *inode, 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_load_inode_props(struct inode *inode, struct btrfs_path *path);