Re: [PATCH v16 01/11] xfs: Reverse apply 72b97ea40d
From: Chandan Babu R <hidden>
Date: 2021-03-29 08:46:01
From: Chandan Babu R <hidden>
Date: 2021-03-29 08:46:01
On 26 Mar 2021 at 06:02, Allison Henderson wrote:
Originally we added this patch to help modularize the attr code in preparation for delayed attributes and the state machine it requires. However, later reviews found that this slightly alters the transaction handling as the helper function is ambiguous as to whether the transaction is diry or clean. This may cause a dirty transaction to be included in the next roll, where previously it had not. To preserve the existing code flow, we reverse apply this commit.
Indeed, In the mainline kernel, __xfs_attr_rmtval_remove() invokes xfs_defer_finish() when the last remote block mapping has been removed. Also, xfs_trans_roll_inode() is invoked before invoking xfs_attr_refillstate(). Hence, Reviewed-by: Chandan Babu R <redacted> -- chandan