]> bbs.cooldavid.org Git - net-next-2.6.git/commit
xfs: return inode fork offset in bulkstat for fsr
authorDave Chinner <dchinner@redhat.com>
Fri, 5 Mar 2010 04:41:14 +0000 (04:41 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 5 Mar 2010 17:02:07 +0000 (11:02 -0600)
commit07000ee686cf19e853fa06f7904eff2cfe230ea3
tree04116d2d61895728b1b6f4b9b9948d9341825022
parent8babd8a2e75cccff3167a61176c2a3e977e13799
xfs: return inode fork offset in bulkstat for fsr

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.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_fs.h
fs/xfs/xfs_itable.c