aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-11-19 21:17:22 -0500
committerChris Mason <chris.mason@oracle.com>2008-11-19 21:17:22 -0500
commit15916de835a683bd8133a0d1ac0c982b795ab4ff (patch)
tree20603c2e0cade00d2e40a3b5390f5def36a02711 /fs/btrfs/compression.c
parentae20a6afec1cf21919d97303f2d8b737eac5acc7 (diff)
Btrfs: Fixes for 2.6.28-rc API changes
* open/close_bdev_excl -> open/close_bdev_exclusive * blkdev_issue_discard takes a GFP mask now * Fix blkdev_issue_discard usage now that it is enabled Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index bfd1512cce0a..df05f513e1eb 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -419,7 +419,7 @@ static noinline int add_ra_bio_pages(struct inode *inode,
419 /* open coding of lru_cache_add, also not exported */ 419 /* open coding of lru_cache_add, also not exported */
420 page_cache_get(page); 420 page_cache_get(page);
421 if (!pagevec_add(&pvec, page)) 421 if (!pagevec_add(&pvec, page))
422 __pagevec_lru_add(&pvec); 422 __pagevec_lru_add_file(&pvec);
423 423
424 end = last_offset + PAGE_CACHE_SIZE - 1; 424 end = last_offset + PAGE_CACHE_SIZE - 1;
425 /* 425 /*
@@ -475,7 +475,7 @@ next:
475 last_offset += PAGE_CACHE_SIZE; 475 last_offset += PAGE_CACHE_SIZE;
476 } 476 }
477 if (pagevec_count(&pvec)) 477 if (pagevec_count(&pvec))
478 __pagevec_lru_add(&pvec); 478 __pagevec_lru_add_file(&pvec);
479 return 0; 479 return 0;
480} 480}
481 481