diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-07-20 03:54:45 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-07-26 14:16:51 -0400 |
commit | 73523a2ecf03f0bfe7c36c244aff8a2ef2208a4a (patch) | |
tree | b6b1f2be9a4b276a41381a51fc7278bf7e365471 /fs/xfs/xfs_inode.c | |
parent | 0f1a932f5d4d6ee71afb141914e2d5f11f27eee1 (diff) |
xfs: fix gcc 4.6 set but not read and unused statement warnings
[hch: dropped a few hunks that need structural changes instead]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 4a08c91dc976..eef211dfca03 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -918,7 +918,6 @@ xfs_iread_extents( | |||
918 | int error; | 918 | int error; |
919 | xfs_ifork_t *ifp; | 919 | xfs_ifork_t *ifp; |
920 | xfs_extnum_t nextents; | 920 | xfs_extnum_t nextents; |
921 | size_t size; | ||
922 | 921 | ||
923 | if (unlikely(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)) { | 922 | if (unlikely(XFS_IFORK_FORMAT(ip, whichfork) != XFS_DINODE_FMT_BTREE)) { |
924 | XFS_ERROR_REPORT("xfs_iread_extents", XFS_ERRLEVEL_LOW, | 923 | XFS_ERROR_REPORT("xfs_iread_extents", XFS_ERRLEVEL_LOW, |
@@ -926,7 +925,6 @@ xfs_iread_extents( | |||
926 | return XFS_ERROR(EFSCORRUPTED); | 925 | return XFS_ERROR(EFSCORRUPTED); |
927 | } | 926 | } |
928 | nextents = XFS_IFORK_NEXTENTS(ip, whichfork); | 927 | nextents = XFS_IFORK_NEXTENTS(ip, whichfork); |
929 | size = nextents * sizeof(xfs_bmbt_rec_t); | ||
930 | ifp = XFS_IFORK_PTR(ip, whichfork); | 928 | ifp = XFS_IFORK_PTR(ip, whichfork); |
931 | 929 | ||
932 | /* | 930 | /* |
@@ -3503,13 +3501,11 @@ xfs_iext_remove_indirect( | |||
3503 | xfs_extnum_t ext_diff; /* extents to remove in current list */ | 3501 | xfs_extnum_t ext_diff; /* extents to remove in current list */ |
3504 | xfs_extnum_t nex1; /* number of extents before idx */ | 3502 | xfs_extnum_t nex1; /* number of extents before idx */ |
3505 | xfs_extnum_t nex2; /* extents after idx + count */ | 3503 | xfs_extnum_t nex2; /* extents after idx + count */ |
3506 | int nlists; /* entries in indirection array */ | ||
3507 | int page_idx = idx; /* index in target extent list */ | 3504 | int page_idx = idx; /* index in target extent list */ |
3508 | 3505 | ||
3509 | ASSERT(ifp->if_flags & XFS_IFEXTIREC); | 3506 | ASSERT(ifp->if_flags & XFS_IFEXTIREC); |
3510 | erp = xfs_iext_idx_to_irec(ifp, &page_idx, &erp_idx, 0); | 3507 | erp = xfs_iext_idx_to_irec(ifp, &page_idx, &erp_idx, 0); |
3511 | ASSERT(erp != NULL); | 3508 | ASSERT(erp != NULL); |
3512 | nlists = ifp->if_real_bytes / XFS_IEXT_BUFSZ; | ||
3513 | nex1 = page_idx; | 3509 | nex1 = page_idx; |
3514 | ext_cnt = count; | 3510 | ext_cnt = count; |
3515 | while (ext_cnt) { | 3511 | while (ext_cnt) { |