xfs: fix variable set but not used warnings

GCC 4.6 now warnings about variables set but not used. Fix the trivially
fixable warnings of this sort.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>

authored by Christoph Hellwig and committed by Alex Elder ecb697c1 da8a1a4a

-18
-2
fs/xfs/linux-2.6/xfs_buf.c
··· 293 293 size_t nbytes, offset; 294 294 gfp_t gfp_mask = xb_to_gfp(flags); 295 295 unsigned short page_count, i; 296 - pgoff_t first; 297 296 xfs_off_t end; 298 297 int error; 299 298 ··· 332 333 return error; 333 334 334 335 offset = bp->b_offset; 335 - first = bp->b_file_offset >> PAGE_SHIFT; 336 336 bp->b_flags |= _XBF_PAGES; 337 337 338 338 for (i = 0; i < bp->b_page_count; i++) {
-7
fs/xfs/quota/xfs_qm.c
··· 461 461 struct xfs_quotainfo *q = mp->m_quotainfo; 462 462 int recl; 463 463 struct xfs_dquot *dqp; 464 - int niters; 465 464 int error; 466 465 467 466 if (!q) 468 467 return 0; 469 - niters = 0; 470 468 again: 471 469 mutex_lock(&q->qi_dqlist_lock); 472 470 list_for_each_entry(dqp, &q->qi_dqlist, q_mplist) { ··· 1312 1314 { 1313 1315 xfs_buf_t *bp; 1314 1316 int error; 1315 - int notcommitted; 1316 - int incr; 1317 1317 int type; 1318 1318 1319 1319 ASSERT(blkcnt > 0); 1320 - notcommitted = 0; 1321 - incr = (blkcnt > XFS_QM_MAX_DQCLUSTER_LOGSZ) ? 1322 - XFS_QM_MAX_DQCLUSTER_LOGSZ : blkcnt; 1323 1320 type = flags & XFS_QMOPT_UQUOTA ? XFS_DQ_USER : 1324 1321 (flags & XFS_QMOPT_PQUOTA ? XFS_DQ_PROJ : XFS_DQ_GROUP); 1325 1322 error = 0;
-5
fs/xfs/quota/xfs_qm.h
··· 65 65 * block in the dquot/xqm code. 66 66 */ 67 67 #define XFS_DQUOT_CLUSTER_SIZE_FSB (xfs_filblks_t)1 68 - /* 69 - * When doing a quotacheck, we log dquot clusters of this many FSBs at most 70 - * in a single transaction. We don't want to ask for too huge a log reservation. 71 - */ 72 - #define XFS_QM_MAX_DQCLUSTER_LOGSZ 3 73 68 74 69 typedef xfs_dqhash_t xfs_dqlist_t; 75 70
-2
fs/xfs/quota/xfs_qm_syscalls.c
··· 313 313 { 314 314 int error; 315 315 uint qf; 316 - uint accflags; 317 316 __int64_t sbflags; 318 317 319 318 flags &= (XFS_ALL_QUOTA_ACCT | XFS_ALL_QUOTA_ENFD); 320 319 /* 321 320 * Switching on quota accounting must be done at mount time. 322 321 */ 323 - accflags = flags & XFS_ALL_QUOTA_ACCT; 324 322 flags &= ~(XFS_ALL_QUOTA_ACCT); 325 323 326 324 sbflags = 0;
-2
fs/xfs/xfs_itable.c
··· 204 204 xfs_agi_t *agi; /* agi header data */ 205 205 xfs_agino_t agino; /* inode # in allocation group */ 206 206 xfs_agnumber_t agno; /* allocation group number */ 207 - xfs_daddr_t bno; /* inode cluster start daddr */ 208 207 int chunkidx; /* current index into inode chunk */ 209 208 int clustidx; /* current index into inode cluster */ 210 209 xfs_btree_cur_t *cur; /* btree cursor for ialloc btree */ ··· 462 463 mp->m_sb.sb_inopblog); 463 464 } 464 465 ino = XFS_AGINO_TO_INO(mp, agno, agino); 465 - bno = XFS_AGB_TO_DADDR(mp, agno, agbno); 466 466 /* 467 467 * Skip if this inode is free. 468 468 */