]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Clean up ->page_mkwrite
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 7 Sep 2011 14:12:51 +0000 (15:12 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 27 Oct 2011 08:08:13 +0000 (09:08 +0100)
commitcb59043ca6a72430a4f63ce468806100b272b0d3
tree939c43a75764292c5c4fecb47cf4fcd8d4a78669
parentefacefa9e8e5a8822d14d838fb6a309462f19126
GFS2: Clean up ->page_mkwrite

This patch brings gfs2's ->page_mkwrite uptodate with respect to the
expectations set by the VM. Also added is a check to wait if the fs
is frozen, before we attempt to get a glock. This will only work on
the node which initiates the freeze, but thats ok since the transaction
lock will still provide the expected barrier on other nodes.

The major change here is that we return a locked page now, except when
we don't return a page at all (error cases). This removes the race
which required rechecking the page after it was returned.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Nick Piggin <npiggin@kernel.dk>
fs/gfs2/file.c