GFS2: Wipe directory hash table metadata when deallocating a directory
[pandora-kernel.git] / fs / gfs2 / bmap.c
index 74add2d..e65493a 100644 (file)
@@ -780,6 +780,8 @@ static int do_strip(struct gfs2_inode *ip, struct buffer_head *dibh,
        metadata = (height != ip->i_height - 1);
        if (metadata)
                revokes = (height) ? sdp->sd_inptrs : sdp->sd_diptrs;
+       else if (ip->i_depth)
+               revokes = sdp->sd_inptrs;
 
        if (ip != GFS2_I(sdp->sd_rindex))
                error = gfs2_rindex_hold(sdp, &ip->i_alloc->al_ri_gh);