Skip to content

Commit

Permalink
[GFS2] Don't try to remove buffers that don't exist
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
swhiteho committed Oct 10, 2007
1 parent 7a9f53b commit 891ba6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/gfs2/ops_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 891ba6d

Please sign in to comment.