aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 162359b664ca..77b8be81c769 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -292,6 +292,7 @@ _xfs_buf_free_pages(
292{ 292{
293 if (bp->b_pages != bp->b_page_array) { 293 if (bp->b_pages != bp->b_page_array) {
294 kmem_free(bp->b_pages); 294 kmem_free(bp->b_pages);
295 bp->b_pages = NULL;
295 } 296 }
296} 297}
297 298
@@ -323,9 +324,8 @@ xfs_buf_free(
323 ASSERT(!PagePrivate(page)); 324 ASSERT(!PagePrivate(page));
324 page_cache_release(page); 325 page_cache_release(page);
325 } 326 }
326 _xfs_buf_free_pages(bp);
327 } 327 }
328 328 _xfs_buf_free_pages(bp);
329 xfs_buf_deallocate(bp); 329 xfs_buf_deallocate(bp);
330} 330}
331 331