Re: 2.6.0-test3-mm2

From: Andrew Morton
Date: Wed Aug 13 2003 - 05:51:56 EST


hugang <hugang@xxxxxxxxxxxx> wrote:
>
> On Wed, 13 Aug 2003 01:31:56 -0700
> Andrew Morton <akpm@xxxxxxxx> wrote:
>
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test3/2.6.0-test3-mm2/
> >
>
> 2.6.0-test3-mm2 can not boot, It oops in fsck. See attached file.


It's a bogus BUG_ON. It can be removed.


diff -puN mm/filemap.c~aio-O_SYNC-fix-fix mm/filemap.c
--- 25/mm/filemap.c~aio-O_SYNC-fix-fix 2003-08-13 03:46:59.000000000 -0700
+++ 25-akpm/mm/filemap.c 2003-08-13 03:47:06.000000000 -0700
@@ -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 */

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/