diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2009-01-06 17:40:30 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:10 -0500 |
commit | 084f71ae5ceeb16734d8ac47559d3c718456a865 (patch) | |
tree | 65970a2e1873135d4b71d5a19b83b3f427835857 /mm | |
parent | 9f572e3f96b8a2ef70dcb881e64c7b9c10057d98 (diff) |
mm: kill page_queue_congested()
page_queue_congested() was introduced in 2002, but it was never used
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/swapfile.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index f28745855772..eec5ca758a23 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -1372,26 +1372,6 @@ out: | |||
1372 | return ret; | 1372 | return ret; |
1373 | } | 1373 | } |
1374 | 1374 | ||
1375 | #if 0 /* We don't need this yet */ | ||
1376 | #include <linux/backing-dev.h> | ||
1377 | int page_queue_congested(struct page *page) | ||
1378 | { | ||
1379 | struct backing_dev_info *bdi; | ||
1380 | |||
1381 | VM_BUG_ON(!PageLocked(page)); /* It pins the swap_info_struct */ | ||
1382 | |||
1383 | if (PageSwapCache(page)) { | ||
1384 | swp_entry_t entry = { .val = page_private(page) }; | ||
1385 | struct swap_info_struct *sis; | ||
1386 | |||
1387 | sis = get_swap_info_struct(swp_type(entry)); | ||
1388 | bdi = sis->bdev->bd_inode->i_mapping->backing_dev_info; | ||
1389 | } else | ||
1390 | bdi = page->mapping->backing_dev_info; | ||
1391 | return bdi_write_congested(bdi); | ||
1392 | } | ||
1393 | #endif | ||
1394 | |||
1395 | asmlinkage long sys_swapoff(const char __user * specialfile) | 1375 | asmlinkage long sys_swapoff(const char __user * specialfile) |
1396 | { | 1376 | { |
1397 | struct swap_info_struct * p = NULL; | 1377 | struct swap_info_struct * p = NULL; |