All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix goal inum check
@ 2009-06-23 11:15 Johann Lombardi
  2009-07-06  3:47 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: Johann Lombardi @ 2009-06-23 11:15 UTC (permalink / raw)
  To: linux-ext4

The goal inode is specificed by inode number which belongs
to [1; s_inodes_count].

Signed-off-by: Johann Lombardi <johann@sun.com>
--

diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index 2f64573..29e6dc7 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -833,7 +833,7 @@ struct inode *ext4_new_inode(handle_t *handle, struct inode *dir, int mode,
 	if (!goal)
 		goal = sbi->s_inode_goal;
 
-	if (goal && goal < le32_to_cpu(sbi->s_es->s_inodes_count)) {
+	if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) {
 		group = (goal - 1) / EXT4_INODES_PER_GROUP(sb);
 		ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb);
 		ret2 = 0;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix goal inum check
  2009-06-23 11:15 [PATCH] Fix goal inum check Johann Lombardi
@ 2009-07-06  3:47 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2009-07-06  3:47 UTC (permalink / raw)
  To: linux-ext4

On Tue, Jun 23, 2009 at 01:15:21PM +0200, Johann Lombardi wrote:
> The goal inode is specificed by inode number which belongs
> to [1; s_inodes_count].
> 
> Signed-off-by: Johann Lombardi <johann@sun.com>

Thanks, added to the ext4 patch queue.

					- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-06  3:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23 11:15 [PATCH] Fix goal inum check Johann Lombardi
2009-07-06  3:47 ` Theodore Tso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.