From ff4bd7cee79fb4bba81d8c3e7ea19de91f821b0f Mon Sep 17 00:00:00 2001 From: Cliff White Date: Thu, 14 Oct 2010 08:56:36 -0700 Subject: [PATCH] b=23645 warning at lookup_one_len() durning mount i=andrew.perepechko Change lookup_on_len to ll_lookup_one_len when getting iopen dir --- lustre/mds/handler.c | 2 +- lustre/mgc/mgc_request.c | 4 ++-- lustre/mgs/mgs_fs.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index d4c4dc4..ad0947b 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -375,7 +375,7 @@ static int mds_cmd_setup(struct obd_device *obd, struct lustre_cfg *lcfg) } mds->mds_objects_dir = dentry; - dentry = lookup_one_len("__iopen__", current->fs->pwd, + dentry = ll_lookup_one_len("__iopen__", current->fs->pwd, strlen("__iopen__")); if (IS_ERR(dentry)) { rc = PTR_ERR(dentry); diff --git a/lustre/mgc/mgc_request.c b/lustre/mgc/mgc_request.c index 18c2106..8f4c568 100644 --- a/lustre/mgc/mgc_request.c +++ b/lustre/mgc/mgc_request.c @@ -571,8 +571,8 @@ static int mgc_fs_setup(struct obd_device *obd, struct super_block *sb, obd->obd_lvfs_ctxt.fs = get_ds(); push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); - dentry = lookup_one_len(MOUNT_CONFIGS_DIR, cfs_fs_pwd(current->fs), - strlen(MOUNT_CONFIGS_DIR)); + dentry = ll_lookup_one_len(MOUNT_CONFIGS_DIR, cfs_fs_pwd(current->fs), + strlen(MOUNT_CONFIGS_DIR)); pop_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); if (IS_ERR(dentry)) { err = PTR_ERR(dentry); diff --git a/lustre/mgs/mgs_fs.c b/lustre/mgs/mgs_fs.c index 9a48148..2ac9764 100644 --- a/lustre/mgs/mgs_fs.c +++ b/lustre/mgs/mgs_fs.c @@ -220,7 +220,7 @@ int mgs_fs_setup(struct obd_device *obd, struct vfsmount *mnt) /* Need the iopen dir for fid2dentry, required by LLOG_ORIGIN_HANDLE_READ_HEADER */ - dentry = lookup_one_len("__iopen__", current->fs->pwd, + dentry = ll_lookup_one_len("__iopen__", current->fs->pwd, strlen("__iopen__")); if (IS_ERR(dentry)) { rc = PTR_ERR(dentry); -- 1.8.3.1