btrfs: drop local copy of inode i_mode
authorAnand Jain <anand.jain@oracle.com>
Sat, 20 Apr 2019 11:48:57 +0000 (19:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:53 +0000 (19:02 +0200)
commit44e5194b5ec1b179c59bb204a2448031ff917e02
treea227e5d531d4bae47e3b8dd0505890add47368d3
parent3c8d8b635780c244aa44ad2d625e6308fbfb7ad4
btrfs: drop local copy of inode i_mode

There isn't real use of making struct inode::i_mode a local copy, it
saves a dereference one time, not much. Just use it directly.

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