Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-14194 cksum: add lprocfs checksum support in MDC/MDT
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_iam_lfix.c
diff --git
a/lustre/osd-ldiskfs/osd_iam_lfix.c
b/lustre/osd-ldiskfs/osd_iam_lfix.c
index
5d44a33
..
c6a73cf
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_iam_lfix.c
+++ b/
lustre/osd-ldiskfs/osd_iam_lfix.c
@@
-672,7
+672,7
@@
static struct iam_operations iam_lfix_ops = {
.id_name = "lfix"
};
.id_name = "lfix"
};
-
static
int iam_lfix_guess(struct iam_container *c)
+int iam_lfix_guess(struct iam_container *c)
{
int result;
struct buffer_head *bh;
{
int result;
struct buffer_head *bh;
@@
-704,15
+704,6
@@
static int iam_lfix_guess(struct iam_container *c)
return result;
}
return result;
}
-static struct iam_format iam_lfix_format = {
- .if_guess = iam_lfix_guess
-};
-
-void iam_lfix_format_init(void)
-{
- iam_format_register(&iam_lfix_format);
-}
-
/*
* Debugging aid.
*/
/*
* Debugging aid.
*/
@@
-757,7
+748,7
@@
void iam_lfix_format_init(void)
#define STORE_UNALIGNED(val, dst) \
({ \
typeof(val) __val = (val); \
#define STORE_UNALIGNED(val, dst) \
({ \
typeof(val) __val = (val); \
-
CLASSERT(sizeof(val) == sizeof(*(dst)));
\
+
BUILD_BUG_ON(sizeof(val) != sizeof(*(dst)));
\
memcpy(dst, &__val, sizeof(*(dst))); \
})
memcpy(dst, &__val, sizeof(*(dst))); \
})