summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2011-09-07 15:12:51 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2011-10-21 12:39:44 +0100
commit13d921e37174e3d1042deeb303537c1d935da553 (patch)
treec3d208bd4e8eaec8e0f07586f6b21f3c7cd5832b /fs/gfs2/bmap.c
parentccad4e147acf2a59b463f5df3cee8b43b144ce82 (diff)
downloadop-kernel-dev-13d921e37174e3d1042deeb303537c1d935da553.zip
op-kernel-dev-13d921e37174e3d1042deeb303537c1d935da553.tar.gz
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>
Diffstat (limited to 'fs/gfs2/bmap.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud