diff options
author | Dave Chinner <david@fromorbit.com> | 2014-05-14 19:38:15 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-14 19:38:15 -0400 |
commit | ff14ee42a038cf48263ac8d2eca5d30196554b82 (patch) | |
tree | cee5ba7a2b08d7e4f48d974d08ecfc40c8bd1308 /fs/xfs/xfs_dir2_readdir.c | |
parent | b76769294ba400415fc44038c21cc2df86f9a28b (diff) | |
parent | 8cfcc3e565bf15870efe801368a25ca98092e6e7 (diff) |
Merge branch 'xfs-misc-fixes-1-for-3.16' into for-next
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index 50b72f7b8787..bf7a5cee7adc 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c | |||
@@ -456,7 +456,7 @@ xfs_dir2_leaf_readbuf( | |||
456 | /* | 456 | /* |
457 | * Advance offset through the mapping table. | 457 | * Advance offset through the mapping table. |
458 | */ | 458 | */ |
459 | for (j = 0; j < mp->m_dirblkfsbs; j++) { | 459 | for (j = 0; j < mp->m_dirblkfsbs; j += length ) { |
460 | /* | 460 | /* |
461 | * The rest of this extent but not more than a dir | 461 | * The rest of this extent but not more than a dir |
462 | * block. | 462 | * block. |
@@ -464,7 +464,6 @@ xfs_dir2_leaf_readbuf( | |||
464 | length = min_t(int, mp->m_dirblkfsbs, | 464 | length = min_t(int, mp->m_dirblkfsbs, |
465 | map[mip->ra_index].br_blockcount - | 465 | map[mip->ra_index].br_blockcount - |
466 | mip->ra_offset); | 466 | mip->ra_offset); |
467 | j += length; | ||
468 | mip->ra_offset += length; | 467 | mip->ra_offset += length; |
469 | 468 | ||
470 | /* | 469 | /* |