btrfs: remove unnecessary inode_set_bytes(0) call
authorOmar Sandoval <osandov@fb.com>
Thu, 10 Mar 2022 01:31:36 +0000 (17:31 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:06 +0000 (17:03 +0200)
commit6d831f7ef9f0cecef7ae1f6f55c5739d6f3b9143
tree36cc3fe177ebe98d748f9e95c7f83f225b7a4281
parent9124e15f2798662d65cac9c8bb3abaced38af36d
btrfs: remove unnecessary inode_set_bytes(0) call

new_inode() always returns an inode with i_blocks and i_bytes set to 0
(via inode_init_always()). Remove the unnecessary call to
inode_set_bytes() in btrfs_new_inode().

Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c