xfs
[Top] [All Lists]

pagebuf_prepare_write doesn't kmap the page

To: linux-xfs@xxxxxxxxxxx
Subject: pagebuf_prepare_write doesn't kmap the page
From: David Wragg <dpw@xxxxxxxxxxxx>
Date: 31 Jan 2001 12:36:53 +0000
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Bryce Canyon)
I'm testing XFS (from CVS as of sometime yesterday) on a machine with
1GB memory and the kernel built with CONFIG_HIGHMEM.  The kernel
contains code of my own which is provoking the problem, though it
isn't the root cause.

What happens is that inside the kunmap in pagebuf_commit_write, the
check in kunmap_high() that the page is already mapped fails.
pagebuf_prepare_write isn't leaving the page mapped as it should (if
successful).

I realize that XFS doesn't use generic_file_write itself, so this bug
doesn't affect XFS as is (pagebuf_generic_file_write correctly
kmaps/kunmaps).  But since the pagebuf_{prepare,commit}_write are
exported to the rest of the kernel through the inode a_ops, it would
be nice if they followed the Linux semantics.


David Wragg
(please Cc: me on follow-ups, I'm not subscribed to this list)

<Prev in Thread] Current Thread [Next in Thread>