xfs: remove if_lastex
authorChristoph Hellwig <hch@infradead.org>
Mon, 23 May 2011 08:52:53 +0000 (08:52 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 25 May 2011 15:48:37 +0000 (10:48 -0500)
commitec90c5563413ba6d29607397c54958d49c3461a3
tree7ee1bb9428858d2f43b426ae71bab6a4703af6f7
parent548932739b16e623601f6d7dfb31a1fe28cda050
xfs: remove if_lastex

The if_lastex field in struct xfs_ifork is only used as a temporary
index during xfs_bmapi and xfs_bunmapi.  Instead of using the inode
fork to store it keep it local in the callchain.  Fortunately this
is very easy as we already pass a stack copy of it down the whole
chain which can simplify be changed to be passed by reference.

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