diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-05-23 08:52:53 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-05-25 10:48:37 -0500 |
commit | ec90c5563413ba6d29607397c54958d49c3461a3 (patch) | |
tree | 7ee1bb9428858d2f43b426ae71bab6a4703af6f7 /fs/xfs/xfs_inode.c | |
parent | 548932739b16e623601f6d7dfb31a1fe28cda050 (diff) | |
download | op-kernel-dev-ec90c5563413ba6d29607397c54958d49c3461a3.zip op-kernel-dev-ec90c5563413ba6d29607397c54958d49c3461a3.tar.gz |
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>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index da46c0f..c96bded 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c @@ -920,7 +920,6 @@ xfs_iread_extents( /* * We know that the size is valid (it's checked in iformat_btree) */ - ifp->if_lastex = NULLEXTNUM; ifp->if_bytes = ifp->if_real_bytes = 0; ifp->if_flags |= XFS_IFEXTENTS; xfs_iext_add(ifp, 0, nextents); @@ -3191,7 +3190,6 @@ xfs_iext_add( } ifp->if_u1.if_extents = ifp->if_u2.if_inline_ext; ifp->if_real_bytes = 0; - ifp->if_lastex = nextents + ext_diff; } /* * Otherwise use a linear (direct) extent list. |