Selaa lähdekoodia

[GFS2] Don't try to remove buffers that don't exist

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Steven Whitehouse 17 vuotta sitten
vanhempi
commit
891ba6d4a5
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      fs/gfs2/ops_address.c

+ 1 - 2
fs/gfs2/ops_address.c

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