aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r--fs/gfs2/aops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 695bbe16d1f0..e80a464850c8 100644
--- a/fs/gfs2/aops.c
+++ b/fs/gfs2/aops.c
@@ -942,8 +942,8 @@ static void gfs2_discard(struct gfs2_sbd *sdp, struct buffer_head *bh)
942 clear_buffer_dirty(bh); 942 clear_buffer_dirty(bh);
943 bd = bh->b_private; 943 bd = bh->b_private;
944 if (bd) { 944 if (bd) {
945 if (!list_empty(&bd->bd_le.le_list) && !buffer_pinned(bh)) 945 if (!list_empty(&bd->bd_list) && !buffer_pinned(bh))
946 list_del_init(&bd->bd_le.le_list); 946 list_del_init(&bd->bd_list);
947 else 947 else
948 gfs2_remove_from_journal(bh, current->journal_info, 0); 948 gfs2_remove_from_journal(bh, current->journal_info, 0);
949 } 949 }
@@ -1083,9 +1083,9 @@ int gfs2_releasepage(struct page *page, gfp_t gfp_mask)
1083 bd = bh->b_private; 1083 bd = bh->b_private;
1084 if (bd) { 1084 if (bd) {
1085 gfs2_assert_warn(sdp, bd->bd_bh == bh); 1085 gfs2_assert_warn(sdp, bd->bd_bh == bh);
1086 if (!list_empty(&bd->bd_le.le_list)) { 1086 if (!list_empty(&bd->bd_list)) {
1087 if (!buffer_pinned(bh)) 1087 if (!buffer_pinned(bh))
1088 list_del_init(&bd->bd_le.le_list); 1088 list_del_init(&bd->bd_list);
1089 else 1089 else
1090 bd = NULL; 1090 bd = NULL;
1091 } 1091 }