equal
deleted
inserted
replaced
133 /** |
133 /** |
134 * The type used for indexing onto a disc or disc partition. |
134 * The type used for indexing onto a disc or disc partition. |
135 * |
135 * |
136 * Linux always considers sectors to be 512 bytes long independently |
136 * Linux always considers sectors to be 512 bytes long independently |
137 * of the devices real block size. |
137 * of the devices real block size. |
|
138 * |
|
139 * blkcnt_t is the type of the inode's block count. |
138 */ |
140 */ |
139 #ifdef CONFIG_LBD |
141 #ifdef CONFIG_LBD |
140 typedef u64 sector_t; |
142 typedef u64 sector_t; |
|
143 typedef u64 blkcnt_t; |
141 #else |
144 #else |
142 typedef unsigned long sector_t; |
145 typedef unsigned long sector_t; |
143 #endif |
|
144 |
|
145 /* |
|
146 * The type of the inode's block count. |
|
147 */ |
|
148 #ifdef CONFIG_LSF |
|
149 typedef u64 blkcnt_t; |
|
150 #else |
|
151 typedef unsigned long blkcnt_t; |
146 typedef unsigned long blkcnt_t; |
152 #endif |
147 #endif |
153 |
148 |
154 /* |
149 /* |
155 * The type of an index into the pagecache. Use a #define so asm/types.h |
150 * The type of an index into the pagecache. Use a #define so asm/types.h |
179 |
174 |
180 typedef __u16 __bitwise __le16; |
175 typedef __u16 __bitwise __le16; |
181 typedef __u16 __bitwise __be16; |
176 typedef __u16 __bitwise __be16; |
182 typedef __u32 __bitwise __le32; |
177 typedef __u32 __bitwise __le32; |
183 typedef __u32 __bitwise __be32; |
178 typedef __u32 __bitwise __be32; |
184 #if defined(__GNUC__) |
|
185 typedef __u64 __bitwise __le64; |
179 typedef __u64 __bitwise __le64; |
186 typedef __u64 __bitwise __be64; |
180 typedef __u64 __bitwise __be64; |
187 #endif |
181 |
188 typedef __u16 __bitwise __sum16; |
182 typedef __u16 __bitwise __sum16; |
189 typedef __u32 __bitwise __wsum; |
183 typedef __u32 __bitwise __wsum; |
190 |
184 |
191 #ifdef __KERNEL__ |
185 #ifdef __KERNEL__ |
192 typedef unsigned __bitwise__ gfp_t; |
186 typedef unsigned __bitwise__ gfp_t; |
197 #else |
191 #else |
198 typedef u32 phys_addr_t; |
192 typedef u32 phys_addr_t; |
199 #endif |
193 #endif |
200 |
194 |
201 typedef phys_addr_t resource_size_t; |
195 typedef phys_addr_t resource_size_t; |
|
196 |
|
197 typedef struct { |
|
198 volatile int counter; |
|
199 } atomic_t; |
|
200 |
|
201 #ifdef CONFIG_64BIT |
|
202 typedef struct { |
|
203 volatile long counter; |
|
204 } atomic64_t; |
|
205 #endif |
202 |
206 |
203 struct ustat { |
207 struct ustat { |
204 __kernel_daddr_t f_tfree; |
208 __kernel_daddr_t f_tfree; |
205 __kernel_ino_t f_tinode; |
209 __kernel_ino_t f_tinode; |
206 char f_fname[6]; |
210 char f_fname[6]; |