@@ -1451,7 +1451,7 @@ static inline int ldlm_extent_contain(const struct ldlm_extent *ex1,
return ex1->start <= ex2->start && ex1->end >= ex2->end;
}
-int ldlm_inodebits_drop(struct ldlm_lock *lock, __u64 to_drop);
+int ldlm_inodebits_drop(struct ldlm_lock *lock, u64 to_drop);
#endif
/** @} LDLM */
@@ -195,10 +195,8 @@ ssize_t lov_lsm_pack(const struct lov_stripe_md *lsm, void *buf,
if (lsm->lsm_magic == LOV_MAGIC_V1 || lsm->lsm_magic == LOV_MAGIC_V3)
return lov_lsm_pack_v1v3(lsm, buf, buf_size);
- if (lsm->lsm_magic == LOV_MAGIC_FOREIGN) {
- pr_info("calling lov_lsm_pack_foreign\n");
+ if (lsm->lsm_magic == LOV_MAGIC_FOREIGN)
return lov_lsm_pack_foreign(lsm, buf, buf_size);
- }
lmm_size = lov_comp_md_size(lsm);
if (buf_size == 0)
@@ -378,7 +376,6 @@ int lov_getstripe(const struct lu_env *env, struct lov_object *obj,
lmm_size = lov_lsm_pack(lsm, lmmk, lmmk_size);
if (lmm_size < 0) {
- pr_info("lov_lsm_pack return rc = %zd\n", lmm_size);
rc = lmm_size;
goto out_free;
}
@@ -1810,7 +1810,7 @@ int lu_context_refill(struct lu_context *ctx)
u32 lu_context_tags_default = LCT_CL_THREAD;
u32 lu_session_tags_default = LCT_SESSION;
-void lu_context_tags_update(__u32 tags)
+void lu_context_tags_update(u32 tags)
{
spin_lock(&lu_context_remembered_guard);
lu_context_tags_default |= tags;
@@ -1819,7 +1819,7 @@ void lu_context_tags_update(__u32 tags)
}
EXPORT_SYMBOL(lu_context_tags_update);
-void lu_context_tags_clear(__u32 tags)
+void lu_context_tags_clear(u32 tags)
{
spin_lock(&lu_context_remembered_guard);
lu_context_tags_default &= ~tags;
@@ -1828,7 +1828,7 @@ void lu_context_tags_clear(__u32 tags)
}
EXPORT_SYMBOL(lu_context_tags_clear);
-void lu_session_tags_update(__u32 tags)
+void lu_session_tags_update(u32 tags)
{
spin_lock(&lu_context_remembered_guard);
lu_session_tags_default |= tags;
@@ -1837,7 +1837,7 @@ void lu_session_tags_update(__u32 tags)
}
EXPORT_SYMBOL(lu_session_tags_update);
-void lu_session_tags_clear(__u32 tags)
+void lu_session_tags_clear(u32 tags)
{
spin_lock(&lu_context_remembered_guard);
lu_session_tags_default &= ~tags;
@@ -854,7 +854,7 @@ enum rmf_flags {
.rmf_name = (name), \
.rmf_flags = (flags), \
.rmf_size = (size), \
- .rmf_swab_len = (int (*)(void *, __u32))(swab_len), \
+ .rmf_swab_len = (int (*)(void *, u32))(swab_len), \
.rmf_dumper = (void (*)(void *))(dumper) \
}
@@ -1246,7 +1246,7 @@ u32 lustre_msg_calc_cksum(struct lustre_msg *msg, u32 buf)
#if IS_ENABLED(CONFIG_CRC32)
/* about 10x faster than crypto_hash for small buffers */
- crc = crc32_le(~(__u32)0, (unsigned char *)pb, len);
+ crc = crc32_le(~(u32)0, (unsigned char *)pb, len);
#elif IS_ENABLED(CONFIG_CRYPTO_CRC32)
unsigned int hsize = 4;
Remove pr_info() left over from earlier debugging. Remove __u[32|64] from core kernel code that slipped in. Signed-off-by: James Simmons <jsimmons@infradead.org> --- fs/lustre/include/lustre_dlm.h | 2 +- fs/lustre/lov/lov_pack.c | 5 +---- fs/lustre/obdclass/lu_object.c | 8 ++++---- fs/lustre/ptlrpc/layout.c | 2 +- fs/lustre/ptlrpc/pack_generic.c | 2 +- 5 files changed, 8 insertions(+), 11 deletions(-)