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-12923 lustre: Replace CLASSERT() with BUILD_BUG_ON()
[fs/lustre-release.git]
/
lustre
/
osd-zfs
/
osd_index.c
diff --git
a/lustre/osd-zfs/osd_index.c
b/lustre/osd-zfs/osd_index.c
index
c4e397b
..
ec95d03
100644
(file)
--- a/
lustre/osd-zfs/osd_index.c
+++ b/
lustre/osd-zfs/osd_index.c
@@
-1029,8
+1029,8
@@
static int osd_dir_insert(const struct lu_env *env, struct dt_object *dt,
}
}
}
}
-
CLASSERT(sizeof(zde->lzd_reg) =
= 8);
-
CLASSERT(sizeof(*zde) % 8 =
= 0);
+
BUILD_BUG_ON(sizeof(zde->lzd_reg) !
= 8);
+
BUILD_BUG_ON(sizeof(*zde) % 8 !
= 0);
memset(&zde->lzd_reg, 0, sizeof(zde->lzd_reg));
zde->lzd_reg.zde_type = IFTODT(rec1->rec_type & S_IFMT);
memset(&zde->lzd_reg, 0, sizeof(zde->lzd_reg));
zde->lzd_reg.zde_type = IFTODT(rec1->rec_type & S_IFMT);
@@
-1330,7
+1330,7
@@
static int osd_dir_it_next(const struct lu_env *env, struct dt_it *di)
ENTRY;
/* temp. storage should be enough for any key supported by ZFS */
ENTRY;
/* temp. storage should be enough for any key supported by ZFS */
-
CLASSERT(sizeof(za->za_name) <=
sizeof(it->ozi_name));
+
BUILD_BUG_ON(sizeof(za->za_name) >
sizeof(it->ozi_name));
/*
* the first ->next() moves the cursor to .
/*
* the first ->next() moves the cursor to .