Re: 2.6.0-test3-mm2

Hugh Dickins
2003-08-13T14:30:54Z

On Wed, 13 Aug 2003, Con Kolivas wrote:
> Aug 13 22:54:58 pc kernel: kernel BUG at mm/filemap.c:1930!

akpm (have you caught a moment when he's asleep?!) already posted
the fix, saying it's a bogus BUG_ON which can be removed.

--- 2.6.0-test3-mm2/mm/filemap.c Wed Aug 13 11:51:33 2003
+++ linux/mm/filemap.c Wed Aug 13 15:26:36 2003
@@ -1927,8 +1927,6 @@ generic_file_aio_write_nolock(struct kio
ssize_t ret;
loff_t pos = *ppos;

- BUG_ON(iocb->ki_pos != *ppos);
-
if (!iov->iov_base && !is_sync_kiocb(iocb)) {
/* nothing to transfer, may just need to sync data */
ret = iov->iov_len; /* vector AIO not supported yet */