aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/gfs2_ondisk.h11
-rw-r--r--include/linux/kernel.h1
2 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index ec432e0c208d..8d4f0445df47 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -50,15 +50,18 @@
50 * An on-disk inode number 50 * An on-disk inode number
51 */ 51 */
52 52
53#define gfs2_inum_equal(ino1, ino2) \
54 (((ino1)->no_formal_ino == (ino2)->no_formal_ino) && \
55 ((ino1)->no_addr == (ino2)->no_addr))
56
57struct gfs2_inum { 53struct gfs2_inum {
58 __be64 no_formal_ino; 54 __be64 no_formal_ino;
59 __be64 no_addr; 55 __be64 no_addr;
60}; 56};
61 57
58static inline int gfs2_inum_equal(const struct gfs2_inum *ino1,
59 const struct gfs2_inum *ino2)
60{
61 return ino1->no_formal_ino == ino2->no_formal_ino &&
62 ino1->no_addr == ino2->no_addr;
63}
64
62/* 65/*
63 * Generic metadata head structure 66 * Generic metadata head structure
64 * Every inplace buffer logged in the journal must start with this. 67 * Every inplace buffer logged in the journal must start with this.
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 */