Commit 793b840b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove a warning from __block_write_full_page()

There is a warning in there to detect when block_write_full_page()
attaches buffers to a blockdev page.  This is a bad thing because that
page's blocks may then overlap blocks from a different address_space.
So I disallowed it.

But the message can be triggered when an application is mmapping a
blockdev MAP_SHARED.  Apparently INND likes to do this.

So remove the warning.
parent 086b4866
......@@ -1640,8 +1640,6 @@ static int __block_write_full_page(struct inode *inode,
last_block = (inode->i_size - 1) >> inode->i_blkbits;
if (!page_has_buffers(page)) {
if (S_ISBLK(inode->i_mode))
buffer_error();
if (!PageUptodate(page))
buffer_error();
create_empty_buffers(page, 1 << inode->i_blkbits,
......
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