btrfs: modify local copy of btrfs_inode flags
authorAnand Jain <anand.jain@oracle.com>
Sat, 20 Apr 2019 11:48:55 +0000 (19:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:53 +0000 (19:02 +0200)
commitd2b8fcfe43155f23fa3e8148cdaa65345e3c45eb
tree9502406b1a06258ad1ec3a04a374ef9911b98d50
parent11d3cd5c625892a17297d5256e4758f007d582d5
btrfs: modify local copy of btrfs_inode flags

Instead of updating the binode::flags directly, update a local copy, and
then at the point of no error, store copy it to the binode::flags.

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