Message ID | 1549609355-11053-6-git-send-email-anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Misc props.c cleanups | expand |
On 8.02.19 г. 9:02 ч., Anand Jain wrote: > Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> > --- > fs/btrfs/props.c | 16 ++++++---------- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c > index 77a03076b18e..3c15f19bfd2f 100644 > --- a/fs/btrfs/props.c > +++ b/fs/btrfs/props.c > @@ -70,8 +70,8 @@ int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, > return -EINVAL; > > if (value_len == 0) { > - ret = btrfs_setxattr(trans, inode, handler->xattr_name, > - NULL, 0, flags); > + ret = btrfs_setxattr(trans, inode, handler->xattr_name, NULL, 0, > + flags); > if (ret) > return ret; > > @@ -101,12 +101,10 @@ int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, > } > > static int iterate_object_props(struct btrfs_root *root, > - struct btrfs_path *path, > - u64 objectid, > + struct btrfs_path *path, u64 objectid, > void (*iterator)(void *, > const struct prop_handler *, > - const char *, > - size_t), > + const char *, size_t), > void *ctx) > { > int ret; > @@ -211,10 +209,8 @@ static int iterate_object_props(struct btrfs_root *root, > return ret; > } > > -static void inode_prop_iterator(void *ctx, > - const struct prop_handler *handler, > - const char *value, > - size_t len) > +static void inode_prop_iterator(void *ctx, const struct prop_handler *handler, > + const char *value, size_t len) > { > struct inode *inode = ctx; > struct btrfs_root *root = BTRFS_I(inode)->root; >
diff --git a/fs/btrfs/props.c b/fs/btrfs/props.c index 77a03076b18e..3c15f19bfd2f 100644 --- a/fs/btrfs/props.c +++ b/fs/btrfs/props.c @@ -70,8 +70,8 @@ int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, return -EINVAL; if (value_len == 0) { - ret = btrfs_setxattr(trans, inode, handler->xattr_name, - NULL, 0, flags); + ret = btrfs_setxattr(trans, inode, handler->xattr_name, NULL, 0, + flags); if (ret) return ret; @@ -101,12 +101,10 @@ int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, } static int iterate_object_props(struct btrfs_root *root, - struct btrfs_path *path, - u64 objectid, + struct btrfs_path *path, u64 objectid, void (*iterator)(void *, const struct prop_handler *, - const char *, - size_t), + const char *, size_t), void *ctx) { int ret; @@ -211,10 +209,8 @@ static int iterate_object_props(struct btrfs_root *root, return ret; } -static void inode_prop_iterator(void *ctx, - const struct prop_handler *handler, - const char *value, - size_t len) +static void inode_prop_iterator(void *ctx, const struct prop_handler *handler, + const char *value, size_t len) { struct inode *inode = ctx; struct btrfs_root *root = BTRFS_I(inode)->root;
Signed-off-by: Anand Jain <anand.jain@oracle.com> --- fs/btrfs/props.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)