xfs: simplify local variable assignment in file write code
authorKaixu Xia <kaixuxia@tencent.com>
Wed, 20 Apr 2022 22:47:54 +0000 (08:47 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 20 Apr 2022 22:47:54 +0000 (08:47 +1000)
commit2d9ac4319b9959bf3195fedf88bdfd224c67593b
tree87560bb74d20564a58d357241e85c9325c01976d
parent2229276c5283264b8c2241c1ed972bbb136cab22
xfs: simplify local variable assignment in file write code

Get the struct inode pointer from iocb->ki_filp->f_mapping->host
directly and the other variables are unnecessary, so simplify the
local variables assignment.

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c