mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mm: kill page_queue_congested()
page_queue_congested() was introduced in 2002, but it was never used Signed-off-by: KOSAKI Motohiro <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9f572e3f96
commit
084f71ae5c
1 changed files with 0 additions and 20 deletions
|
|
@ -1372,26 +1372,6 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if 0 /* We don't need this yet */
|
||||
#include <linux/backing-dev.h>
|
||||
int page_queue_congested(struct page *page)
|
||||
{
|
||||
struct backing_dev_info *bdi;
|
||||
|
||||
VM_BUG_ON(!PageLocked(page)); /* It pins the swap_info_struct */
|
||||
|
||||
if (PageSwapCache(page)) {
|
||||
swp_entry_t entry = { .val = page_private(page) };
|
||||
struct swap_info_struct *sis;
|
||||
|
||||
sis = get_swap_info_struct(swp_type(entry));
|
||||
bdi = sis->bdev->bd_inode->i_mapping->backing_dev_info;
|
||||
} else
|
||||
bdi = page->mapping->backing_dev_info;
|
||||
return bdi_write_congested(bdi);
|
||||
}
|
||||
#endif
|
||||
|
||||
asmlinkage long sys_swapoff(const char __user * specialfile)
|
||||
{
|
||||
struct swap_info_struct * p = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue