linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix compile error in ext4_fallocate()
@ 2010-09-08  5:54 Kazuya Mio
  2010-10-27 20:33 ` Ted Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Kazuya Mio @ 2010-09-08  5:54 UTC (permalink / raw)
  To: ext4, Theodore Tso

Hi,

When I compiled 2.6.36-rc3 kernel with EXT4FS_DEBUG definition, I got the
following compile error.

  CC [M]  fs/ext4/extents.o
fs/ext4/extents.c: In function 'ext4_fallocate':
fs/ext4/extents.c:3772: error: 'block' undeclared (first use in this function)
fs/ext4/extents.c:3772: error: (Each undeclared identifier is reported only once
fs/ext4/extents.c:3772: error: for each function it appears in.)
make[2]: *** [fs/ext4/extents.o] Error 1

The patch fixes this problem.

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
---
 fs/ext4/extents.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 8202784..590caa3 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -3769,7 +3769,7 @@ retry:
 			printk(KERN_ERR "%s: ext4_ext_map_blocks "
 				    "returned error inode#%lu, block=%u, "
 				    "max_blocks=%u", __func__,
-				    inode->i_ino, block, max_blocks);
+				    inode->i_ino, map.m_lblk, max_blocks);
 #endif
 			ext4_mark_inode_dirty(handle, inode);
 			ret2 = ext4_journal_stop(handle);

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

* Re: [PATCH] Fix compile error in ext4_fallocate()
  2010-09-08  5:54 [PATCH] Fix compile error in ext4_fallocate() Kazuya Mio
@ 2010-10-27 20:33 ` Ted Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2010-10-27 20:33 UTC (permalink / raw)
  To: Kazuya Mio; +Cc: ext4

On Wed, Sep 08, 2010 at 02:54:14PM +0900, Kazuya Mio wrote:
> Hi,
> 
> When I compiled 2.6.36-rc3 kernel with EXT4FS_DEBUG definition, I got the
> following compile error.

I've applied this fix to the ext4 patch queue.  Many thanks for the patch!!

     	     	      	     	  	- Ted

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

end of thread, other threads:[~2010-10-27 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-08  5:54 [PATCH] Fix compile error in ext4_fallocate() Kazuya Mio
2010-10-27 20:33 ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).