summaryrefslogtreecommitdiffstats
path: root/fs/ext4/namei.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-12-06 22:58:39 +0100
committerTheodore Ts'o <tytso@mit.edu>2008-12-06 22:58:39 +0100
commit59e315b4c410b00a9acd0f24a00dbadbe81ce692 (patch)
treed19e7b45d98c42c6f94cb5aa292e2efea44244f5 /fs/ext4/namei.c
parentext4: Add support for non-native signed/unsigned htree hash algorithms (diff)
downloadlinux-59e315b4c410b00a9acd0f24a00dbadbe81ce692.tar.xz
linux-59e315b4c410b00a9acd0f24a00dbadbe81ce692.zip
ext3/4: Fix loop index in do_split() so it is signed
This fixes a gcc warning but it doesn't appear able to result in a failure, since the primary way the loop is exited is the first conditional in the for loop, and at least for a consistent filesystem, the signed/unsigned should in practice never be exposed. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r--fs/ext4/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 315858db8078..84a68ae623c1 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1171,9 +1171,9 @@ static struct ext4_dir_entry_2 *do_split(handle_t *handle, struct inode *dir,
u32 hash2;
struct dx_map_entry *map;
char *data1 = (*bh)->b_data, *data2;
- unsigned split, move, size, i;
+ unsigned split, move, size;
struct ext4_dir_entry_2 *de = NULL, *de2;
- int err = 0;
+ int err = 0, i;
bh2 = ext4_append (handle, dir, &newblock, &err);
if (!(bh2)) {