Skip to content

Commit

Permalink
staging/lustre: remove lu_context_keys_dump and lu_debugging_setup
Browse files Browse the repository at this point in the history
There are no callers of them. Besides, lu_context_keys_dump breaks
build when CONFIG_MODULES is not set.

Signed-off-by: Peng Tao <tao.peng@emc.com>
  • Loading branch information
bergwolf committed Jun 5, 2013
1 parent a6d0dbf commit cc8bb00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/lustre/lustre/llite/llite_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,9 +1061,6 @@ int ll_fill_super(struct super_block *sb, struct vfsmount *mnt)
RETURN(err);
} /* ll_fill_super */


void lu_context_keys_dump(void);

void ll_put_super(struct super_block *sb)
{
struct config_llog_instance cfg;
Expand Down
26 changes: 0 additions & 26 deletions drivers/staging/lustre/lustre/obdclass/lu_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1915,32 +1915,6 @@ int lu_printk_printer(const struct lu_env *env,
return 0;
}

int lu_debugging_setup(void)
{
return lu_env_init(&lu_debugging_env, ~0);
}

void lu_context_keys_dump(void)
{
int i;

for (i = 0; i < ARRAY_SIZE(lu_keys); ++i) {
struct lu_context_key *key;

key = lu_keys[i];
if (key != NULL) {
CERROR("[%d]: %p %x (%p,%p,%p) %d %d \"%s\"@%p\n",
i, key, key->lct_tags,
key->lct_init, key->lct_fini, key->lct_exit,
key->lct_index, atomic_read(&key->lct_used),
key->lct_owner ? key->lct_owner->name : "",
key->lct_owner);
lu_ref_print(&key->lct_reference);
}
}
}
EXPORT_SYMBOL(lu_context_keys_dump);

/**
* Initialization of global lu_* data.
*/
Expand Down

1 comment on commit cc8bb00

@adilger
Copy link

@adilger adilger commented on cc8bb00 Jun 5, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK.

Please sign in to comment.