diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-11-21 19:31:33 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-11-21 19:31:33 -0800 |
| commit | 793b840b280da018ef54b9c02fd5d7d2d97d4104 (patch) | |
| tree | 8156f0c3be6111fad948a8d666bd4c50da65a336 | |
| parent | 086b4866248b5a1fb98aee8aad35c6249d2bc1d4 (diff) | |
[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.
| -rw-r--r-- | fs/buffer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index e9e7f131b5ab..a0c7f850482f 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -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, |
