[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130211014750.GE10801@thunk.org>
Date: Sun, 10 Feb 2013 20:47:50 -0500
From: Theodore Ts'o <tytso@....edu>
To: Ext4 Developers List <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH 12/12] ext4: start handle at the last possible moment
when creating inodes
On Sat, Feb 09, 2013 at 04:53:52PM -0500, Theodore Ts'o wrote:
> diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
> index 10bd6fe..943665b 100644
> --- a/fs/ext4/ialloc.c
> +++ b/fs/ext4/ialloc.c
> @@ -725,6 +727,15 @@ repeat_in_this_group:
> "inode=%lu", ino + 1);
> continue;
> }
> + if (!handle) {
> + BUG_ON(nblocks == 0);
I've changed this to be:
BUG_ON(nblocks <= 0);
... since nblocks should (obviously) never be negative.
- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists