[PATCH] xfs: return inode fork offset in bulkstat for fsr

Christoph Hellwig hch at infradead.org
Fri Mar 5 04:06:52 CST 2010


On Fri, Mar 05, 2010 at 03:41:14PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
> 
> So that fsr can attempt to get the fork offset of the temporary
> inode it uses the same as the inode it is defragmenting, pass
> the fork offset out in the bulkstat information.
> 
> The bulkstat structure has padding that has always been zeroed,
> so userspace can tell if this field is set or not by use of
> the xattr present flag and a non-zero value for the fork offset.

Looks good,


Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the xfs mailing list