aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-12 20:11:31 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-27 12:24:00 -0400
commit6550e07f41ce8473ed684dac54fbfbd42183ffda (patch)
treed8ed394175785e9b28333d7ae130b725e176dfb5 /include/linux
parent2427ddd8fae2febe3f5ac1ba76b092541304d9f0 (diff)
[PATCH] 64bit Resource: finally enable 64bit resource sizes
Introduce the Kconfig entry and actually switch to a 64bit value, if wanted, for resource_size_t. Based on a patch series originally from Vivek Goyal <vgoyal@in.ibm.com> Cc: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index a021e1577336..3f235660a3cd 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -178,9 +178,14 @@ typedef __u64 __bitwise __be64;
178#ifdef __KERNEL__ 178#ifdef __KERNEL__
179typedef unsigned __bitwise__ gfp_t; 179typedef unsigned __bitwise__ gfp_t;
180 180
181typedef unsigned long resource_size_t; 181#ifdef CONFIG_RESOURCES_64BIT
182typedef u64 resource_size_t;
183#else
184typedef u32 resource_size_t;
182#endif 185#endif
183 186
187#endif /* __KERNEL__ */
188
184struct ustat { 189struct ustat {
185 __kernel_daddr_t f_tfree; 190 __kernel_daddr_t f_tfree;
186 __kernel_ino_t f_tinode; 191 __kernel_ino_t f_tinode;