[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: odd problem with XFS & NFS (locking up system)
Hi,
That seems to have fixed it. Thanks. :-)
...dave
On Mon, Mar 11, 2002 at 03:37:04PM -0600, Eric Sandeen wrote:
> Does this help?
>
> (Thank Steve if it does...)
>
> -Eric
>
> --- linux/fs/xfs/pagebuf/page_buf_io.c_1.15 Mon Mar 11 15:35:41 2002
> +++ linux/fs/xfs/pagebuf/page_buf_io.c Mon Mar 11 15:35:28 2002
> @@ -310,7 +310,8 @@
> __pb_block_prepare_write_async(ip, page,
> cpoff, cpoff+csize, at_eof, NULL,
> pbmapp, PBF_WRITE);
> - memset((void *) (kmap(page) + cpoff), 0, csize);
> + /* __pb_block_prepare_write already kmap'd the page */
> + memset((void *) (page_address(page) + cpoff), 0, csize);
> pagebuf_commit_write_core(ip, page, cpoff, cpoff + csize);
> pos = ((loff_t)page->index << PAGE_CACHE_SHIFT) +
> cpoff + csize;
>
>