OSDN Git Service

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)
commit603efebd6768356fb7cea02e4a822587c2dc5d7c
tree5dc552d9a9253cedc698c926f2af303deba4a26d
parent0b10d8a89f55c416f6a1f6a616669543fa8bdb69
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