]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove broken error handling on failed attr sf to leaf change
authorBrian Foster <bfoster@redhat.com>
Mon, 7 Oct 2019 19:54:15 +0000 (12:54 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Oct 2019 15:54:30 +0000 (08:54 -0700)
commitc3a4befa25353e7374a6c89d5d91e595214f778d
tree5dc552d9a9253cedc698c926f2af303deba4a26d
parentdebb4e3235d9e9631e3b03439ac8b0a9fb73b9fd
xfs: remove broken error handling on failed attr sf to leaf change

xfs_attr_shortform_to_leaf() attempts to put the shortform fork back
together after a failed attempt to convert from shortform to leaf
format. While this code reallocates and copies back the shortform
attr fork data, it never resets the inode format field back to local
format. Further, now that the inode is properly logged after the
initial switch from local format, any error that triggers the
recovery code will eventually abort the transaction and shutdown the
fs. Therefore, remove the broken and unnecessary error handling
code.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr_leaf.c