Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126258
b: refs/heads/master
c: 084f71a
h: refs/heads/master
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Jan 6, 2009
1 parent 415bc06 commit 2834f05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f572e3f96b8a2ef70dcb881e64c7b9c10057d98
refs/heads/master: 084f71ae5ceeb16734d8ac47559d3c718456a865
20 changes: 0 additions & 20 deletions trunk/mm/swapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,26 +1372,6 @@ static int setup_swap_extents(struct swap_info_struct *sis, sector_t *span)
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;
Expand Down

0 comments on commit 2834f05

Please sign in to comment.