diff options
Diffstat (limited to 'fs/xfs/xfs_ialloc.c')
| -rw-r--r-- | fs/xfs/xfs_ialloc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index 33164a85aa9d..a446e5a115c6 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c | |||
| @@ -458,7 +458,7 @@ nextag: | |||
| 458 | */ | 458 | */ |
| 459 | if (XFS_FORCED_SHUTDOWN(mp)) { | 459 | if (XFS_FORCED_SHUTDOWN(mp)) { |
| 460 | up_read(&mp->m_peraglock); | 460 | up_read(&mp->m_peraglock); |
| 461 | return (xfs_buf_t *)0; | 461 | return NULL; |
| 462 | } | 462 | } |
| 463 | agno++; | 463 | agno++; |
| 464 | if (agno >= agcount) | 464 | if (agno >= agcount) |
| @@ -466,7 +466,7 @@ nextag: | |||
| 466 | if (agno == pagno) { | 466 | if (agno == pagno) { |
| 467 | if (flags == 0) { | 467 | if (flags == 0) { |
| 468 | up_read(&mp->m_peraglock); | 468 | up_read(&mp->m_peraglock); |
| 469 | return (xfs_buf_t *)0; | 469 | return NULL; |
| 470 | } | 470 | } |
| 471 | flags = 0; | 471 | flags = 0; |
| 472 | } | 472 | } |
| @@ -529,10 +529,10 @@ xfs_dialloc( | |||
| 529 | int offset; /* index of inode in chunk */ | 529 | int offset; /* index of inode in chunk */ |
| 530 | xfs_agino_t pagino; /* parent's a.g. relative inode # */ | 530 | xfs_agino_t pagino; /* parent's a.g. relative inode # */ |
| 531 | xfs_agnumber_t pagno; /* parent's allocation group number */ | 531 | xfs_agnumber_t pagno; /* parent's allocation group number */ |
| 532 | xfs_inobt_rec_t rec; /* inode allocation record */ | 532 | xfs_inobt_rec_incore_t rec; /* inode allocation record */ |
| 533 | xfs_agnumber_t tagno; /* testing allocation group number */ | 533 | xfs_agnumber_t tagno; /* testing allocation group number */ |
| 534 | xfs_btree_cur_t *tcur; /* temp cursor */ | 534 | xfs_btree_cur_t *tcur; /* temp cursor */ |
| 535 | xfs_inobt_rec_t trec; /* temp inode allocation record */ | 535 | xfs_inobt_rec_incore_t trec; /* temp inode allocation record */ |
| 536 | 536 | ||
| 537 | 537 | ||
| 538 | if (*IO_agbp == NULL) { | 538 | if (*IO_agbp == NULL) { |
| @@ -945,7 +945,7 @@ xfs_difree( | |||
| 945 | int ilen; /* inodes in an inode cluster */ | 945 | int ilen; /* inodes in an inode cluster */ |
| 946 | xfs_mount_t *mp; /* mount structure for filesystem */ | 946 | xfs_mount_t *mp; /* mount structure for filesystem */ |
| 947 | int off; /* offset of inode in inode chunk */ | 947 | int off; /* offset of inode in inode chunk */ |
| 948 | xfs_inobt_rec_t rec; /* btree record */ | 948 | xfs_inobt_rec_incore_t rec; /* btree record */ |
| 949 | 949 | ||
| 950 | mp = tp->t_mountp; | 950 | mp = tp->t_mountp; |
| 951 | 951 | ||
| @@ -1195,6 +1195,7 @@ xfs_dilocate( | |||
| 1195 | "(0x%llx)", | 1195 | "(0x%llx)", |
| 1196 | ino, XFS_AGINO_TO_INO(mp, agno, agino)); | 1196 | ino, XFS_AGINO_TO_INO(mp, agno, agino)); |
| 1197 | } | 1197 | } |
| 1198 | xfs_stack_trace(); | ||
| 1198 | #endif /* DEBUG */ | 1199 | #endif /* DEBUG */ |
| 1199 | return XFS_ERROR(EINVAL); | 1200 | return XFS_ERROR(EINVAL); |
| 1200 | } | 1201 | } |
