[XFS] fix sparse shadowed variable warnings

- in xfs_probe_cluster rename the inner len to pg_len. There's no harm
here because the outer len isn't used after the inner len comes into
existence but it keeps the code clean.
- in xfs_da_do_buf remove the inner i because they don't overlap
and they are both the same type.

SGI-PV: 968555
SGI-Modid: xfs-linux-melb:xfs-kern:29311a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>

authored by Christoph Hellwig and committed by Tim Shimmin 265c1fac ee5c8023

+4 -5
+4 -4
fs/xfs/linux-2.6/xfs_aops.c
··· 652 652 653 653 for (i = 0; i < pagevec_count(&pvec); i++) { 654 654 struct page *page = pvec.pages[i]; 655 - size_t pg_offset, len = 0; 655 + size_t pg_offset, pg_len = 0; 656 656 657 657 if (tindex == tlast) { 658 658 pg_offset = ··· 665 665 pg_offset = PAGE_CACHE_SIZE; 666 666 667 667 if (page->index == tindex && !TestSetPageLocked(page)) { 668 - len = xfs_probe_page(page, pg_offset, mapped); 668 + pg_len = xfs_probe_page(page, pg_offset, mapped); 669 669 unlock_page(page); 670 670 } 671 671 672 - if (!len) { 672 + if (!pg_len) { 673 673 done = 1; 674 674 break; 675 675 } 676 676 677 - total += len; 677 + total += pg_len; 678 678 tindex++; 679 679 } 680 680
-1
fs/xfs/xfs_da_btree.c
··· 1975 1975 error = mappedbno == -2 ? 0 : XFS_ERROR(EFSCORRUPTED); 1976 1976 if (unlikely(error == EFSCORRUPTED)) { 1977 1977 if (xfs_error_level >= XFS_ERRLEVEL_LOW) { 1978 - int i; 1979 1978 cmn_err(CE_ALERT, "xfs_da_do_buf: bno %lld\n", 1980 1979 (long long)bno); 1981 1980 cmn_err(CE_ALERT, "dir: inode %lld\n",