summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4_i.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-01-06 06:18:16 +0300
committerTheodore Ts'o <tytso@mit.edu>2009-01-06 06:18:16 +0300
commita9df9a49102f3578909cba7bd33784eb3b9caaa4 (patch)
tree1d383d422bf7185e8e87c1bcfc80f9beb3074cf8 /fs/ext4/ext4_i.h
parentcde6436004ad9cd8cab5a874b6fa8b01f1da91bf (diff)
downloadlinux-a9df9a49102f3578909cba7bd33784eb3b9caaa4.tar.xz
ext4: Make ext4_group_t be an unsigned int
Nearly all places in the ext3/4 code which uses "unsigned long" is probably a bug, since on 32-bit systems a ulong a 32-bits, which means we are wasting stack space on 64-bit systems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_i.h')
-rw-r--r--fs/ext4/ext4_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_i.h b/fs/ext4/ext4_i.h
index acc0b726d8ab..0a9ebe580195 100644
--- a/fs/ext4/ext4_i.h
+++ b/fs/ext4/ext4_i.h
@@ -31,7 +31,7 @@ typedef unsigned long long ext4_fsblk_t;
typedef __u32 ext4_lblk_t;
/* data type for block group number */
-typedef unsigned long ext4_group_t;
+typedef unsigned int ext4_group_t;
#define rsv_start rsv_window._rsv_start
#define rsv_end rsv_window._rsv_end