diff options
Diffstat (limited to 'fs/xfs/xfs_linux.h')
-rw-r--r-- | fs/xfs/xfs_linux.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/fs/xfs/xfs_linux.h b/fs/xfs/xfs_linux.h index 825249d2dfc1..d10dc8f397c9 100644 --- a/fs/xfs/xfs_linux.h +++ b/fs/xfs/xfs_linux.h | |||
@@ -21,18 +21,6 @@ | |||
21 | #include <linux/types.h> | 21 | #include <linux/types.h> |
22 | 22 | ||
23 | /* | 23 | /* |
24 | * XFS_BIG_BLKNOS needs block layer disk addresses to be 64 bits. | ||
25 | * XFS_BIG_INUMS requires XFS_BIG_BLKNOS to be set. | ||
26 | */ | ||
27 | #if defined(CONFIG_LBDAF) || (BITS_PER_LONG == 64) | ||
28 | # define XFS_BIG_BLKNOS 1 | ||
29 | # define XFS_BIG_INUMS 1 | ||
30 | #else | ||
31 | # define XFS_BIG_BLKNOS 0 | ||
32 | # define XFS_BIG_INUMS 0 | ||
33 | #endif | ||
34 | |||
35 | /* | ||
36 | * Kernel specific type declarations for XFS | 24 | * Kernel specific type declarations for XFS |
37 | */ | 25 | */ |
38 | typedef signed char __int8_t; | 26 | typedef signed char __int8_t; |
@@ -113,7 +101,7 @@ typedef __uint64_t __psunsigned_t; | |||
113 | #include <asm/byteorder.h> | 101 | #include <asm/byteorder.h> |
114 | #include <asm/unaligned.h> | 102 | #include <asm/unaligned.h> |
115 | 103 | ||
116 | #include "xfs_vnode.h" | 104 | #include "xfs_fs.h" |
117 | #include "xfs_stats.h" | 105 | #include "xfs_stats.h" |
118 | #include "xfs_sysctl.h" | 106 | #include "xfs_sysctl.h" |
119 | #include "xfs_iops.h" | 107 | #include "xfs_iops.h" |
@@ -191,6 +179,17 @@ typedef __uint64_t __psunsigned_t; | |||
191 | #define MAX(a,b) (max(a,b)) | 179 | #define MAX(a,b) (max(a,b)) |
192 | #define howmany(x, y) (((x)+((y)-1))/(y)) | 180 | #define howmany(x, y) (((x)+((y)-1))/(y)) |
193 | 181 | ||
182 | /* | ||
183 | * XFS wrapper structure for sysfs support. It depends on external data | ||
184 | * structures and is embedded in various internal data structures to implement | ||
185 | * the XFS sysfs object heirarchy. Define it here for broad access throughout | ||
186 | * the codebase. | ||
187 | */ | ||
188 | struct xfs_kobj { | ||
189 | struct kobject kobject; | ||
190 | struct completion complete; | ||
191 | }; | ||
192 | |||
194 | /* Kernel uid/gid conversion. These are used to convert to/from the on disk | 193 | /* Kernel uid/gid conversion. These are used to convert to/from the on disk |
195 | * uid_t/gid_t types to the kuid_t/kgid_t types that the kernel uses internally. | 194 | * uid_t/gid_t types to the kuid_t/kgid_t types that the kernel uses internally. |
196 | * The conversion here is type only, the value will remain the same since we | 195 | * The conversion here is type only, the value will remain the same since we |
@@ -331,7 +330,7 @@ static inline __uint64_t roundup_64(__uint64_t x, __uint32_t y) | |||
331 | { | 330 | { |
332 | x += y - 1; | 331 | x += y - 1; |
333 | do_div(x, y); | 332 | do_div(x, y); |
334 | return(x * y); | 333 | return x * y; |
335 | } | 334 | } |
336 | 335 | ||
337 | static inline __uint64_t howmany_64(__uint64_t x, __uint32_t y) | 336 | static inline __uint64_t howmany_64(__uint64_t x, __uint32_t y) |