From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 8 Jan 2001 11:12:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 8 Jan 2001 11:12:12 -0500 Received: from roc-24-95-203-215.rochester.rr.com ([24.95.203.215]:11013 "EHLO d185fcbd7.rochester.rr.com") by vger.kernel.org with ESMTP id ; Mon, 8 Jan 2001 11:12:02 -0500 Date: Mon, 08 Jan 2001 11:11:55 -0500 From: Chris Mason To: Alexander Viro cc: Alan Cox , Stefan Traby , linux-kernel@vger.kernel.org Subject: Re: ramfs problem... (unlink of sparse file in "D" state) Message-ID: <97890000.978970315@tiny> In-Reply-To: X-Mailer: Mulberry/2.0.6b1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Monday, January 08, 2001 10:47:41 AM -0500 Alexander Viro wrote: > + do { > + if (buffer_mapped(bh)) { > + bh->b_end_io = end_buffer_io_async; > + atomic_inc(&bh->b_count); > + set_bit(BH_Uptodate, &bh->b_state); > + set_bit(BH_Dirty, &bh->b_state); ^^^^^^^ Sorry, missed this the first time I read it. We need to clear the dirty bit before sending to submit_bh, otherwise it stays dirty until try_to_free_buffers writes it again. > + submit_bh(WRITE, bh); > + } > + bh = bh->b_this_page; > + } while (bh != head); -chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/