Whamcloud - gitweb
Keep b1_2 and b1_4 htree patches consistent.
authoradilger <adilger>
Wed, 26 May 2004 19:33:08 +0000 (19:33 +0000)
committeradilger <adilger>
Wed, 26 May 2004 19:33:08 +0000 (19:33 +0000)
b=3275

lustre/kernel_patches/patches/ext3-htree-2.4.19-pre1.patch
lustre/kernel_patches/patches/ext3-htree-2.4.21-chaos.patch
lustre/kernel_patches/patches/ext3-htree-2.4.22-rh.patch
lustre/kernel_patches/patches/ext3-htree-suse.patch
lustre/kernel_patches/patches/ext3-htree.patch
lustre/kernel_patches/patches/htree-ext3-2.4.18.patch

index d74861d..c168149 100644 (file)
@@ -1668,7 +1668,7 @@ Index: linux-2.4.19-pre1/fs/ext3/namei.c
 +
 +      /* The 0th block becomes the root, move the dirents out */
 +      de = (struct ext3_dir_entry_2 *) &root->dotdot;
-+      de = (struct ext3_dir_entry_2 *) ((char *)de + de->rec_len);
++      de = (struct ext3_dir_entry_2 *)((char *)de + le16_to_cpu(de->rec_len));
 +      len = ((char *) root) + blocksize - (char *) de;
 +      memcpy (data1, de, len);
 +      de = (struct ext3_dir_entry_2 *) data1;
index 8166bbe..b045d53 100644 (file)
@@ -1668,7 +1668,7 @@ Index: linux-2.4.21-chaos/fs/ext3/namei.c
 +
 +      /* The 0th block becomes the root, move the dirents out */
 +      de = (struct ext3_dir_entry_2 *) &root->dotdot;
-+      de = (struct ext3_dir_entry_2 *) ((char *)de + de->rec_len);
++      de = (struct ext3_dir_entry_2 *)((char *)de + le16_to_cpu(de->rec_len));
 +      len = ((char *) root) + blocksize - (char *) de;
 +      memcpy (data1, de, len);
 +      de = (struct ext3_dir_entry_2 *) data1;
index 0ddbfd8..853fb0c 100644 (file)
 +
 +      /* The 0th block becomes the root, move the dirents out */
 +      de = (struct ext3_dir_entry_2 *) &root->dotdot;
-+      de = (struct ext3_dir_entry_2 *) ((char *)de + de->rec_len);
++      de = (struct ext3_dir_entry_2 *)((char *)de + le16_to_cpu(de->rec_len));
 +      len = ((char *) root) + blocksize - (char *) de;
 +      memcpy (data1, de, len);
 +      de = (struct ext3_dir_entry_2 *) data1;
index c5ef970..1278f8f 100644 (file)
@@ -1668,7 +1668,7 @@ Index: linux-2.4.21-suse/fs/ext3/namei.c
 +
 +      /* The 0th block becomes the root, move the dirents out */
 +      de = (struct ext3_dir_entry_2 *) &root->dotdot;
-+      de = (struct ext3_dir_entry_2 *) ((char *)de + de->rec_len);
++      de = (struct ext3_dir_entry_2 *)((char *)de + le16_to_cpu(de->rec_len));
 +      len = ((char *) root) + blocksize - (char *) de;
 +      memcpy (data1, de, len);
 +      de = (struct ext3_dir_entry_2 *) data1;
index dafd7a2..86b0061 100644 (file)
 +
 +      /* The 0th block becomes the root, move the dirents out */
 +      de = (struct ext3_dir_entry_2 *) &root->dotdot;
-+      de = (struct ext3_dir_entry_2 *) ((char *)de + de->rec_len);
++      de = (struct ext3_dir_entry_2 *)((char *)de + le16_to_cpu(de->rec_len));
 +      len = ((char *) root) + blocksize - (char *) de;
 +      memcpy (data1, de, len);
 +      de = (struct ext3_dir_entry_2 *) data1;
index 37ca319..2d8236c 100644 (file)
 +
 +              /* The 0th block becomes the root, move the dirents out */
 +              de = (struct ext3_dir_entry_2 *) &root->dotdot;
-+              de = (struct ext3_dir_entry_2 *) ((char *)de + le16_to_cpu(de->rec_len));
++              de = (struct ext3_dir_entry_2 *)((char *)de + le16_to_cpu(de->rec_len));
 +              len = ((char *) root) + sb->s_blocksize - (char *) de;
 +              memcpy (data1, de, len);
 +              de = (ext3_dirent *) data1;