]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: start transaction in xattr_handler_set_prop
authorAnand Jain <anand.jain@oracle.com>
Sat, 20 Apr 2019 11:48:58 +0000 (19:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:54 +0000 (19:02 +0200)
commit4bb1a42be36376d29a474c6d062428278b5f9417
treeb3697b349746bdb650264f9827cc2780a3fa14a2
parente6b8d57b5bcb584746b7d177e121c5de73ebf60a
btrfs: start transaction in xattr_handler_set_prop

btrfs specific extended attributes on the inode are set using
btrfs_xattr_handler_set_prop(), and the required transaction for this
update is started by btrfs_setxattr(). For better visibility of the
transaction start and end, do this in btrfs_xattr_handler_set_prop().
For which this patch copied code of btrfs_setxattr() as it is in the
original, which needs proper error handling.

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/xattr.c