Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261586AbVAXTf6 (ORCPT ); Mon, 24 Jan 2005 14:35:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261587AbVAXTda (ORCPT ); Mon, 24 Jan 2005 14:33:30 -0500 Received: from [83.102.214.158] ([83.102.214.158]:8423 "EHLO gw.home.net") by vger.kernel.org with ESMTP id S261592AbVAXT2Y (ORCPT ); Mon, 24 Jan 2005 14:28:24 -0500 X-Comment-To: "Stephen C. Tweedie" To: "Stephen C. Tweedie" Cc: Alex Tomas , linux-kernel , , Andrew Morton Subject: Re: [Ext2-devel] [PATCH] JBD: fix against journal overflow References: <1106588589.2103.116.camel@sisko.sctweedie.blueyonder.co.uk> <1106590709.2103.132.camel@sisko.sctweedie.blueyonder.co.uk> From: Alex Tomas Organization: HOME Date: Mon, 24 Jan 2005 22:27:06 +0300 In-Reply-To: <1106590709.2103.132.camel@sisko.sctweedie.blueyonder.co.uk> (Stephen C. Tweedie's message of "Mon, 24 Jan 2005 18:18:29 +0000") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1058 Lines: 31 >>>>> Stephen C Tweedie (SCT) writes: SCT> /* SCT> * Be pessimistic here about the number of those free blocks which SCT> * might be required for log descriptor control blocks. SCT> */ SCT> ... SCT> left -= (left >> 3); oops. i overlooked this line. so, the fix becomes minor improvement patch ;) thanks! do you think the following can be improved? /* * @@@ AKPM: This seems rather over-defensive. We're giving commit * a _lot_ of headroom: 1/4 of the journal plus the size of * the committing transaction. Really, we only need to give it * committing_transaction->t_outstanding_credits plus "enough" for * the log control blocks. * Also, this test is inconsitent with the matching one in * journal_extend(). */ if (__log_space_left(journal) < jbd_space_needed(journal)) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/