Commit 9b82900a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix loop device cache handling

From: Russell King <rmk+lkml@arm.linux.org.uk>

It appears the loop driver has had one flush_dcache_page() call added for
the case where it writes to the backing device page cache pages.

However, it seems to be missing the call where it writes to its own page
cache pages.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent eb313b41
......@@ -309,6 +309,8 @@ lo_read_actor(read_descriptor_t *desc, struct page *page,
desc->error = -EINVAL;
}
flush_dcache_page(p->page);
desc->count = count - size;
desc->written += size;
p->offset += size;
......
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