Re: 2.6.0-test3-mm2

Andrew Morton
2003-08-13T10:47:39Z

hugang <hugang@soulinfo.com> wrote:
>
> On Wed, 13 Aug 2003 01:31:56 -0700
> Andrew Morton <akpm@osdl.org> 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 */

_