xfs: a couple getbmap cleanups
authorChristoph Hellwig <hch@infradead.org>
Wed, 29 Apr 2009 14:50:48 +0000 (10:50 -0400)
committerFelix Blyakher <felixb@sgi.com>
Thu, 30 Apr 2009 05:28:31 +0000 (00:28 -0500)
commit5f79ed685fc6122018c4b5826e2e5bdb7bc6f109
tree1d6ca51c760639bd1852c5af280ceca4cad91f08
parentb9ec9068d79e039507a247ebc5bc9c0ce53654ce
xfs: a couple getbmap cleanups

 - reshuffle various conditionals for data vs attr fork to make the code
   more readable
 - do fine-grainded goto-based error handling
 - exit early from conditionals instead of keeping a long else branch around
 - allow kmem_alloc to fail

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_bmap.c