xfs: introduce xfs_bmap_last_extent
authorChristoph Hellwig <hch@infradead.org>
Sun, 18 Sep 2011 20:40:53 +0000 (20:40 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 12 Oct 2011 02:15:05 +0000 (21:15 -0500)
commit27a3f8f2de758205765f277b3428bbf3d15da973
treedf658a3a539358117e53026cbd6e4d4f98af7989
parentc0dc7828af6952643219292be29e482ef74cb261
xfs: introduce xfs_bmap_last_extent

Add a common helper for finding the last extent in a file.

Largely based on a patch from Dave Chinner.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_bmap.c