diff options
author | Anand Jain <anand.jain@oracle.com> | 2019-04-02 13:07:41 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-04-29 20:02:35 +0300 |
commit | 8b4d1efc9e6c326fe73a88d562c9d1c571493d32 (patch) | |
tree | 8c4b4e1e0d8d2f094f31c497d6ca333034c91cca /kernel/auditfilter.c | |
parent | ae0bc863106ae45b189986c76fda44f6885e8769 (diff) | |
download | linux-8b4d1efc9e6c326fe73a88d562c9d1c571493d32.tar.xz |
btrfs: prop: open code btrfs_set_prop in inherit_prop
When an inode inherits property from its parent, we call btrfs_set_prop().
btrfs_set_prop() does an elaborate checks, which is not required in the
context of inheriting a property. Instead just open-code only the required
items from btrfs_set_prop() and then call btrfs_setxattr() directly. So
now the only user of btrfs_set_prop() is gone, (except for the wraper
function btrfs_set_prop_trans()).
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
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 'kernel/auditfilter.c')
0 files changed, 0 insertions, 0 deletions