diff options
Diffstat (limited to 'fs/xfs/xfs_ialloc.c')
-rw-r--r-- | fs/xfs/xfs_ialloc.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index d8fd36685eb9..c7142a064c48 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c | |||
@@ -1355,22 +1355,6 @@ xfs_imap( | |||
1355 | } | 1355 | } |
1356 | 1356 | ||
1357 | /* | 1357 | /* |
1358 | * If we get a block number passed we can use it to | ||
1359 | * find the buffer easily. | ||
1360 | */ | ||
1361 | if (imap->im_blkno) { | ||
1362 | offset = XFS_INO_TO_OFFSET(mp, ino); | ||
1363 | ASSERT(offset < mp->m_sb.sb_inopblock); | ||
1364 | |||
1365 | cluster_agbno = xfs_daddr_to_agbno(mp, imap->im_blkno); | ||
1366 | offset += (agbno - cluster_agbno) * mp->m_sb.sb_inopblock; | ||
1367 | |||
1368 | imap->im_len = XFS_FSB_TO_BB(mp, blks_per_cluster); | ||
1369 | imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); | ||
1370 | return 0; | ||
1371 | } | ||
1372 | |||
1373 | /* | ||
1374 | * If the inode chunks are aligned then use simple maths to | 1358 | * If the inode chunks are aligned then use simple maths to |
1375 | * find the location. Otherwise we have to do a btree | 1359 | * find the location. Otherwise we have to do a btree |
1376 | * lookup to find the location. | 1360 | * lookup to find the location. |