linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH ext4: fix to call_filldir
@ 2008-11-24 18:21 Curt Wohlgemuth
  2008-11-24 21:51 ` Theodore Tso
  0 siblings, 1 reply; 5+ messages in thread
From: Curt Wohlgemuth @ 2008-11-24 18:21 UTC (permalink / raw)
  To: linux-ext4


[ Sorry: I mistakenly sent just the patch, with no explanation... ]

I happened to find a bug running bonnie++-1.03a on an ext4 filesystem, when
it complained about not being able to remove a file.

Further investigation showed a problem with call_filldir(), which is not
quite correct with respect to the same function in fs/ext3/dir.c.  The patch
below fixes this problem.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>

---

diff -Naur ext4/fs/ext4/dir.c b/fs/ext4/dir.c
--- ext4/fs/ext4/dir.c	2008-11-13 14:51:58.000000000 -0800
+++ b/fs/ext4/dir.c	2008-11-24 08:23:05.000000000 -0800
@@ -417,7 +417,7 @@
 				get_dtype(sb, fname->file_type));
 		if (error) {
 			filp->f_pos = curr_pos;
-			info->extra_fname = fname;
+			info->extra_fname = fname->next;
 			return error;
 		}
 		fname = fname->next;

^ permalink raw reply	[flat|nested] 5+ messages in thread
* PATCH ext4: fix to call_filldir
@ 2008-11-24 18:18 Curt Wohlgemuth
  0 siblings, 0 replies; 5+ messages in thread
From: Curt Wohlgemuth @ 2008-11-24 18:18 UTC (permalink / raw)
  To: linux-ext4

Signed-off-by: Curt Wohlgemuth <curtw@google.com>

diff -Naur ext4/fs/ext4/dir.c b/fs/ext4/dir.c
--- ext4/fs/ext4/dir.c	2008-11-13 14:51:58.000000000 -0800
+++ b/fs/ext4/dir.c	2008-11-24 08:23:05.000000000 -0800
@@ -417,7 +417,7 @@
 				get_dtype(sb, fname->file_type));
 		if (error) {
 			filp->f_pos = curr_pos;
-			info->extra_fname = fname;
+			info->extra_fname = fname->next;
 			return error;
 		}
 		fname = fname->next;

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

end of thread, other threads:[~2008-11-25  2:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 18:21 PATCH ext4: fix to call_filldir Curt Wohlgemuth
2008-11-24 21:51 ` Theodore Tso
2008-11-24 22:59   ` Curt Wohlgemuth
2008-11-25  2:05     ` Theodore Tso
  -- strict thread matches above, loose matches on Subject: below --
2008-11-24 18:18 Curt Wohlgemuth

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).