Re: [PATCH 26/32] ext4: cleanup transaction restarts during inode deletion

From: Theodore Ts'o
Date: Thu Jun 22 2017 - 11:43:48 EST

On Wed, Jun 21, 2017 at 06:49:33PM -0700, Tahsin Erdogan wrote:
> During inode deletion, journal credits that will be needed are hard to
> determine, that is why we have journal extend/restart calls in several
> places. Whenever a transaction is restarted, filesystem must be in a
> consistent state because there is no atomicity guarantee beyond a
> restart call.
> Add ext4_xattr_ensure_credits() helper function which takes care of
> journal extend/restart logic. It also handles getting jbd2 write access
> and dirty metadata calls. This function is called at every iteration of
> handling an ea_inode reference.
> Signed-off-by: Tahsin Erdogan <tahsin@xxxxxxxxxx>

Applied, thanks.

- Ted