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_iget.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_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index eba5ae61d362..b1ecc6f97ade 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -261,7 +261,6 @@ xfs_iget_cache_miss( | |||
261 | { | 261 | { |
262 | struct xfs_inode *ip; | 262 | struct xfs_inode *ip; |
263 | int error; | 263 | int error; |
264 | unsigned long first_index, mask; | ||
265 | xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ino); | 264 | xfs_agino_t agino = XFS_INO_TO_AGINO(mp, ino); |
266 | 265 | ||
267 | ip = xfs_inode_alloc(mp, ino); | 266 | ip = xfs_inode_alloc(mp, ino); |
@@ -298,8 +297,6 @@ xfs_iget_cache_miss( | |||
298 | BUG(); | 297 | BUG(); |
299 | } | 298 | } |
300 | 299 | ||
301 | mask = ~(((XFS_INODE_CLUSTER_SIZE(mp) >> mp->m_sb.sb_inodelog)) - 1); | ||
302 | first_index = agino & mask; | ||
303 | write_lock(&pag->pag_ici_lock); | 300 | write_lock(&pag->pag_ici_lock); |
304 | 301 | ||
305 | /* insert the new inode */ | 302 | /* insert the new inode */ |