patch-2.4.7 linux/fs/reiserfs/dir.c

Next file: linux/fs/reiserfs/do_balan.c
Previous file: linux/fs/proc/proc_misc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/fs/reiserfs/dir.c linux/fs/reiserfs/dir.c
@@ -172,7 +172,7 @@
 		// user space buffer is swapped out. At that time
 		// entry can move to somewhere else
 		memcpy (local_buf, d_name, d_reclen);
-		if (filldir (dirent, d_name, d_reclen, d_off, d_ino, 
+		if (filldir (dirent, local_buf, d_reclen, d_off, d_ino, 
 		             DT_UNKNOWN) < 0) {
 		    if (local_buf != small_buf) {
 			kfree(local_buf) ;
@@ -187,8 +187,6 @@
 		next_pos = deh_offset (deh) + 1;
 
 		if (item_moved (&tmp_ih, &path_to_entry)) {
-		    reiserfs_warning ("vs-9020: reiserfs_readdir "
-				      "things are moving under hands. Researching..\n");
 		    goto research;
 		}
 	    } /* for */
@@ -202,10 +200,6 @@
 	   delimiting key check is it directory end */
 	rkey = get_rkey (&path_to_entry, inode->i_sb);
 	if (! comp_le_keys (rkey, &MIN_KEY)) {
-#ifdef CONFIG_REISERFS_CHECK
-	    reiserfs_warning ("vs-9025: reiserfs_readdir:"
-			      "get_rkey failed. Researching..\n");
-#endif
 	    /* set pos_key to key, that is the smallest and greater
 	       that key of the last entry in the item */
 	    set_cpu_key_k_offset (&pos_key, next_pos);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)