diff options
author | Omar Sandoval <[email protected]> | 2022-03-09 17:31:36 -0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2022-05-16 17:03:06 +0200 |
commit | 6d831f7ef9f0cecef7ae1f6f55c5739d6f3b9143 (patch) | |
tree | 36cc3fe177ebe98d748f9e95c7f83f225b7a4281 | |
parent | 9124e15f2798662d65cac9c8bb3abaced38af36d (diff) |
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 <[email protected]>
Signed-off-by: Omar Sandoval <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index b5059b16e3d8..c3d0529960ca 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -6202,7 +6202,6 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, goto fail_unlock; inode_init_owner(mnt_userns, inode, dir, mode); - inode_set_bytes(inode, 0); inode->i_mtime = current_time(inode); inode->i_atime = inode->i_mtime; |