• E
    [XFS] Add new getbmap flags. · 5af317c9
    Eric Sandeen 提交于
    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: NEric Sandeen <sandeen@sandeen.net>
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NNiv Sardi <xaiki@sgi.com>
    5af317c9
xfs_bmap.c 199.2 KB