Commit 660282aa authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[PATCH] skip memory-backed filesystems in writeback

There's nopoint in walking through a lot of tmpfs or ramdisk pages when
we're trying to clean memory.  So if a memory-backed inode is
discovered during writeback, skip the entire superblock.
parent f99a1a55
......@@ -241,6 +241,9 @@ sync_sb_inodes(struct super_block *sb, struct writeback_control *wbc)
struct backing_dev_info *bdi = mapping->backing_dev_info;
int really_sync;
if (bdi->memory_backed)
break;
if (wbc->nonblocking && bdi_write_congested(bdi)) {
wbc->encountered_congestion = 1;
if (sb != blockdev_superblock)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment