Re: [PATCH 1/2] xfs: don't truncate attribute extents if no extents exist

Christoph Hellwig
2015-06-21T09:22:13Z

On Fri, Jun 19, 2015 at 11:45:23AM -0400, Brian Foster wrote:
> How about this?
>
> /*
> * Invalidate and truncate the attribute fork extents. Make sure the
> * fork actually has attributes as otherwise the invalidation has no
> * blocks to read and returns an error. In this case, just do the fork
> * removal below.
> */

Yes, that looks good.