diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 17:23:27 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-02-27 17:23:27 -0500 |
commit | 5c676f6d359b0404d53f542f02e1359583cb2895 (patch) | |
tree | 8741011990ec0a3d0d41fee9f0d7abf6a16834cc /include/linux/kernel.h | |
parent | f3b270a47882b958e9e3c5bd86894e3a7072899a (diff) |
[GFS2] Macros removal in gfs2.h
As suggested by Pekka Enberg <penberg@cs.helsinki.fi>.
The DIV_RU macro is renamed DIV_ROUND_UP and and moved to kernel.h
The other macros are gone from gfs2.h as (although not requested
by Pekka Enberg) are a number of included header file which are now
included individually. The inode number comparison function is
now an inline function.
The DT2IF and IF2DT may be addressed in a future patch.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 3b507bf05d09..f789278a625a 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -29,6 +29,7 @@ extern const char linux_banner[]; | |||
29 | 29 | ||
30 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) | 30 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
31 | #define ALIGN(x,a) (((x)+(a)-1)&~((a)-1)) | 31 | #define ALIGN(x,a) (((x)+(a)-1)&~((a)-1)) |
32 | #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) | ||
32 | 33 | ||
33 | #define KERN_EMERG "<0>" /* system is unusable */ | 34 | #define KERN_EMERG "<0>" /* system is unusable */ |
34 | #define KERN_ALERT "<1>" /* action must be taken immediately */ | 35 | #define KERN_ALERT "<1>" /* action must be taken immediately */ |