diff mbox

ext4: testing the wrong variable in ext4_init_pageio()

Message ID 20101223190911.GM1936@bicker
State Accepted, archived
Headers show

Commit Message

Dan Carpenter Dec. 23, 2010, 7:09 p.m. UTC
This is a copy and paste error.  The intent was to check
"io_page_cachep".  We tested "io_page_cachep" earlier.

Signed-off-by: Dan Carpenter <error27@gmail.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Theodore Ts'o Dec. 24, 2010, 9:57 a.m. UTC | #1
On Thu, Dec 23, 2010 at 10:09:11PM +0300, Dan Carpenter wrote:
> This is a copy and paste error.  The intent was to check
> "io_page_cachep".  We tested "io_page_cachep" earlier.
> 
> Signed-off-by: Dan Carpenter <error27@gmail.com>

Thanks, added to the ext4 patch queue.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
index beacce1..857abc6 100644
--- a/fs/ext4/page-io.c
+++ b/fs/ext4/page-io.c
@@ -44,7 +44,7 @@  int __init ext4_init_pageio(void)
 	if (io_page_cachep == NULL)
 		return -ENOMEM;
 	io_end_cachep = KMEM_CACHE(ext4_io_end, SLAB_RECLAIM_ACCOUNT);
-	if (io_page_cachep == NULL) {
+	if (io_end_cachep == NULL) {
 		kmem_cache_destroy(io_page_cachep);
 		return -ENOMEM;
 	}