Commit:     0f8468c8bef3d04637c924e7bef20ca53018b319
Parent:     cee23c79d08c57bbbb9923703409af3b17518c58
Author:     Bob Peterson <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 25 10:06:22 2007 -0500
Committer:  Steven Whitehouse <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 08:55:01 2007 +0100

    [GFS2] Detach buf data during in-place writeback
    This is patch 5 of 5 for bug #248176
    Metadata corruption was occurring because page references weren't
    being removed in all cases.  I previously added a function called
    detach_bufdata, but I discovered there already WAS a function out
    there to do the job.  It's called gfs2_meta_cache_flush.  So I added
    a call to that to remove the page references.
    Signed-off-by: Bob Peterson <[EMAIL PROTECTED]>
    Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
 fs/gfs2/log.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index f7c0608..00ab6c0 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -219,6 +219,7 @@ static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, 
struct gfs2_ail *ai)
        struct list_head *head = &ai->ai_ail2_list;
        struct gfs2_bufdata *bd;
+       struct gfs2_inode *bh_ip;
        while (!list_empty(head)) {
                bd = list_entry(head->prev, struct gfs2_bufdata,
@@ -228,6 +229,8 @@ static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, 
struct gfs2_ail *ai)
+               bh_ip = GFS2_I(bd->bd_bh->b_page->mapping->host);
+               gfs2_meta_cache_flush(bh_ip);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to