diff options
Diffstat (limited to 'fs/xfs/xfs_dir2.c')
| -rw-r--r-- | fs/xfs/xfs_dir2.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index 42520f041265..a1321bc7f192 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c | |||
| @@ -25,13 +25,11 @@ | |||
| 25 | #include "xfs_sb.h" | 25 | #include "xfs_sb.h" |
| 26 | #include "xfs_ag.h" | 26 | #include "xfs_ag.h" |
| 27 | #include "xfs_dir2.h" | 27 | #include "xfs_dir2.h" |
| 28 | #include "xfs_dmapi.h" | ||
| 29 | #include "xfs_mount.h" | 28 | #include "xfs_mount.h" |
| 30 | #include "xfs_da_btree.h" | 29 | #include "xfs_da_btree.h" |
| 31 | #include "xfs_bmap_btree.h" | 30 | #include "xfs_bmap_btree.h" |
| 32 | #include "xfs_alloc_btree.h" | 31 | #include "xfs_alloc_btree.h" |
| 33 | #include "xfs_dir2_sf.h" | 32 | #include "xfs_dir2_sf.h" |
| 34 | #include "xfs_attr_sf.h" | ||
| 35 | #include "xfs_dinode.h" | 33 | #include "xfs_dinode.h" |
| 36 | #include "xfs_inode.h" | 34 | #include "xfs_inode.h" |
| 37 | #include "xfs_inode_item.h" | 35 | #include "xfs_inode_item.h" |
| @@ -382,7 +380,7 @@ xfs_readdir( | |||
| 382 | int rval; /* return value */ | 380 | int rval; /* return value */ |
| 383 | int v; /* type-checking value */ | 381 | int v; /* type-checking value */ |
| 384 | 382 | ||
| 385 | xfs_itrace_entry(dp); | 383 | trace_xfs_readdir(dp); |
| 386 | 384 | ||
| 387 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) | 385 | if (XFS_FORCED_SHUTDOWN(dp->i_mount)) |
| 388 | return XFS_ERROR(EIO); | 386 | return XFS_ERROR(EIO); |
| @@ -549,7 +547,7 @@ xfs_dir2_grow_inode( | |||
| 549 | if ((error = xfs_bmapi(tp, dp, bno, count, | 547 | if ((error = xfs_bmapi(tp, dp, bno, count, |
| 550 | XFS_BMAPI_WRITE|XFS_BMAPI_METADATA|XFS_BMAPI_CONTIG, | 548 | XFS_BMAPI_WRITE|XFS_BMAPI_METADATA|XFS_BMAPI_CONTIG, |
| 551 | args->firstblock, args->total, &map, &nmap, | 549 | args->firstblock, args->total, &map, &nmap, |
| 552 | args->flist, NULL))) | 550 | args->flist))) |
| 553 | return error; | 551 | return error; |
| 554 | ASSERT(nmap <= 1); | 552 | ASSERT(nmap <= 1); |
| 555 | if (nmap == 1) { | 553 | if (nmap == 1) { |
| @@ -581,8 +579,7 @@ xfs_dir2_grow_inode( | |||
| 581 | if ((error = xfs_bmapi(tp, dp, b, c, | 579 | if ((error = xfs_bmapi(tp, dp, b, c, |
| 582 | XFS_BMAPI_WRITE|XFS_BMAPI_METADATA, | 580 | XFS_BMAPI_WRITE|XFS_BMAPI_METADATA, |
| 583 | args->firstblock, args->total, | 581 | args->firstblock, args->total, |
| 584 | &mapp[mapi], &nmap, args->flist, | 582 | &mapp[mapi], &nmap, args->flist))) { |
| 585 | NULL))) { | ||
| 586 | kmem_free(mapp); | 583 | kmem_free(mapp); |
| 587 | return error; | 584 | return error; |
| 588 | } | 585 | } |
| @@ -715,7 +712,7 @@ xfs_dir2_shrink_inode( | |||
| 715 | */ | 712 | */ |
| 716 | if ((error = xfs_bunmapi(tp, dp, da, mp->m_dirblkfsbs, | 713 | if ((error = xfs_bunmapi(tp, dp, da, mp->m_dirblkfsbs, |
| 717 | XFS_BMAPI_METADATA, 0, args->firstblock, args->flist, | 714 | XFS_BMAPI_METADATA, 0, args->firstblock, args->flist, |
| 718 | NULL, &done))) { | 715 | &done))) { |
| 719 | /* | 716 | /* |
| 720 | * ENOSPC actually can happen if we're in a removename with | 717 | * ENOSPC actually can happen if we're in a removename with |
| 721 | * no space reservation, and the resulting block removal | 718 | * no space reservation, and the resulting block removal |
