Skip to content
  • Steven Whitehouse's avatar
    GFS2: Clean up ->page_mkwrite · 13d921e3
    Steven Whitehouse authored
    
    
    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: default avatarSteven Whitehouse <swhiteho@redhat.com>
    Cc: Nick Piggin <npiggin@kernel.dk>
    13d921e3