From 308769461ea65cc9ce464637440dbea1d3c0f19d Mon Sep 17 00:00:00 2001 From: alex_tomas Date: Sat, 12 Jul 2003 18:30:39 +0000 Subject: [PATCH] - ll_fill_super() calls lprocfs_register_mountpoint() _before_ *iget - lprocfs_counter_add() shows backtrace in counter var isn't initialized yet --- lustre/llite/llite_lib.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 7f1a77e..f61a4ba 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -180,6 +180,13 @@ int ll_fill_super(struct super_block *sb, void *data, int silent) GOTO(out_free, err = -EINVAL); } + if (proc_lustre_fs_root) { + err = lprocfs_register_mountpoint(proc_lustre_fs_root, sb, + osc, mdc); + if (err < 0) + CERROR("could not register mount in /proc/lustre"); + } + err = obd_connect(&sbi->ll_mdc_conn, obd, &sbi->ll_sb_uuid); if (err) { CERROR("cannot connect to %s: rc = %d\n", mdc, err); @@ -276,13 +283,6 @@ int ll_fill_super(struct super_block *sb, void *data, int silent) #endif sb->s_root = d_alloc_root(root); - if (proc_lustre_fs_root) { - err = lprocfs_register_mountpoint(proc_lustre_fs_root, sb, - osc, mdc); - if (err < 0) - CERROR("could not register mount in /proc/lustre"); - } - out_dev: if (mdc) OBD_FREE(mdc, strlen(mdc) + 1); -- 1.8.3.1