diff options
-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; |