aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_bmap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index 130ec4fa5eaf..af655c1d460d 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -4825,12 +4825,13 @@ xfs_bmapi(
4825 /* 4825 /*
4826 * Else go on to the next record. 4826 * Else go on to the next record.
4827 */ 4827 */
4828 ep = xfs_iext_get_ext(ifp, ++lastx);
4829 prev = got; 4828 prev = got;
4830 if (lastx >= nextents) 4829 if (++lastx < nextents) {
4831 eof = 1; 4830 ep = xfs_iext_get_ext(ifp, lastx);
4832 else
4833 xfs_bmbt_get_all(ep, &got); 4831 xfs_bmbt_get_all(ep, &got);
4832 } else {
4833 eof = 1;
4834 }
4834 } 4835 }
4835 *nmap = n; 4836 *nmap = n;
4836 /* 4837 /*