From: Rik van Riel Undo the brd.c part of ramfs-and-ram-disk-pages-are-unevictable.patch. The brd pages do not live on the LRU at all, so there is no need to play these tricks. Debugged-by: Nick Piggin Signed-off-by: Rik van Riel Signed-off-by: Andrew Morton --- drivers/block/brd.c | 13 ------------- 1 file changed, 13 deletions(-) diff -puN drivers/block/brd.c~ramfs-and-ram-disk-pages-are-unevictable-undo-the-brdc-part drivers/block/brd.c --- a/drivers/block/brd.c~ramfs-and-ram-disk-pages-are-unevictable-undo-the-brdc-part +++ a/drivers/block/brd.c @@ -374,21 +374,8 @@ static int brd_ioctl(struct inode *inode return error; } -/* - * brd_open(): - * Just mark the mapping as containing unevictable pages - */ -static int brd_open(struct inode *inode, struct file *filp) -{ - struct address_space *mapping = inode->i_mapping; - - mapping_set_unevictable(mapping); - return 0; -} - static struct block_device_operations brd_fops = { .owner = THIS_MODULE, - .open = brd_open, .ioctl = brd_ioctl, #ifdef CONFIG_BLK_DEV_XIP .direct_access = brd_direct_access, _