]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[GFS2] Don't try to remove buffers that don't exist
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 20 Sep 2007 14:26:33 +0000 (15:26 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Oct 2007 07:56:31 +0000 (08:56 +0100)
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_address.c

index 4002f417dc19f66ec853a4426e5aa8559e3f31e3..873a511ef2bea93b273aa20404f44fee8d1a410b 100644 (file)
@@ -747,7 +747,7 @@ int gfs2_releasepage(struct page *page, gfp_t gfp_mask)
        struct gfs2_bufdata *bd;
 
        if (!page_has_buffers(page))
-               goto out;
+               return 0;
 
        gfs2_log_lock(sdp);
        head = bh = page_buffers(page);
@@ -787,7 +787,6 @@ int gfs2_releasepage(struct page *page, gfp_t gfp_mask)
                bh = bh->b_this_page;
        } while (bh != head);
 
-out:
        return try_to_free_buffers(page);
 cannot_release:
        gfs2_log_unlock(sdp);