diff options
-rw-r--r-- | fs/xfs/xfs_bmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index b1ea26e40aaf..9a654faf0c08 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -5219,10 +5219,10 @@ xfs_bmapi( | |||
5219 | * Else go on to the next record. | 5219 | * Else go on to the next record. |
5220 | */ | 5220 | */ |
5221 | ep = xfs_iext_get_ext(ifp, ++lastx); | 5221 | ep = xfs_iext_get_ext(ifp, ++lastx); |
5222 | if (lastx >= nextents) { | 5222 | prev = got; |
5223 | if (lastx >= nextents) | ||
5223 | eof = 1; | 5224 | eof = 1; |
5224 | prev = got; | 5225 | else |
5225 | } else | ||
5226 | xfs_bmbt_get_all(ep, &got); | 5226 | xfs_bmbt_get_all(ep, &got); |
5227 | } | 5227 | } |
5228 | ifp->if_lastex = lastx; | 5228 | ifp->if_lastex = lastx; |