]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Remove dead code from inode recover function
authorNikolay Borisov <nborisov@suse.com>
Wed, 7 Mar 2018 01:03:30 +0000 (17:03 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 Mar 2018 03:27:55 +0000 (20:27 -0700)
commit676688eac41fef8dcd5f13279e4745a7e16eb5de
treec734b64ab8e45a6663b4d7228eb5e8c28a22356c
parenta5855e49c9f3e095b2ad60c5f9e15c642cf8cade
xfs: Remove dead code from inode recover function

The memcpy is guarded by a check which is performed a right before we
call xfs_log_dinode_to_disk. At this point we are sure this check will
always be false otherwise we would have errored out. So let's remove
this dead weight.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log_recover.c