Skip to contentSkip to conversation

ReiserFS bugfix for 2.5 (1 of 1)

PATCH New Hans Reiser 1 participant 1 message Sep 23, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ReiserFS bugfix for 2.5 (1 of 1)

Hello!

This changeset is to fix bug in alloc= mount option parser in reiserfs. It was only tested by me (and it works) since our testers still cannot get 2.5 kernel to work stably.

You can pull it from bk://thebsh.namesys.com/bk/reiser3-linux-2.5

Diffstat:

 bitmap.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Plain text patch:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.570 -> 1.571
# fs/reiserfs/bitmap.c 1.22 -> 1.23
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/09/20 [email protected] 1.571
# Reiserfs: Fix alloc= mount option parser.
# --------------------------------------------
#

fs/reiserfs/bitmap.c +1 -1
diff -Nru a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c
@@ -395,7 +395,7 @@
 
     REISERFS_SB(s)->s_alloc_options.bits = 0; /* clear default settings */
 
-    for (this_char = strsep (&options, ":"); this_char != NULL; ) {
+    while ( (this_char = strsep (&options, ":")) != NULL ) {
 	if ((value = strchr (this_char, '=')) != NULL)
 	    *value++ = 0;