diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2008-11-28 14:23:35 +1100 |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-12-01 11:29:28 +1100 |
commit | 5af317c942aebc928ab244eb69581bd8e5333215 (patch) | |
tree | bcfd7f8362ec92b9087df15a9548f57cbf1a2729 /fs/xfs/xfs_trans_inode.c | |
parent | 8a7141a8b931d60d42830432b82078cd6dace83b (diff) | |
download | blackbird-op-linux-5af317c942aebc928ab244eb69581bd8e5333215.tar.gz blackbird-op-linux-5af317c942aebc928ab244eb69581bd8e5333215.zip |
[XFS] Add new getbmap flags.
This adds a new output flag, BMV_OF_LAST to indicate if we've hit
the last extent in the inode. This potentially saves an extra call
from userspace to see when the whole mapping is done.
It also adds BMV_IF_DELALLOC and BMV_OF_DELALLOC to request, and
indicate, delayed-allocation extents. In this case bmv_block
is set to -2 (-1 was already taken for HOLESTARTBLOCK; unfortunately
these are the reverse of the in-kernel constants.)
These new flags facilitate addition of the new fiemap interface.
Rather than adding sh_delalloc, remove sh_unwritten & just test
the flags directly.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans_inode.c')
0 files changed, 0 insertions, 0 deletions