[Cluster-devel] [PATCH 48/51] [GFS2] Don't try to remove buffers that don't exist
swhiteho at redhat.com
swhiteho at redhat.com
Thu Oct 4 08:49:41 UTC 2007
From: Steven Whitehouse <swhiteho at redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho at redhat.com>
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 4002f41..873a511 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -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);
--
1.5.1.2
More information about the Cluster-devel
mailing list