Whamcloud - gitweb
b=23645 remove warning printed at mount time with 2.6.32
authorJohann Lombardi <johann.lombardi@oracle.com>
Fri, 27 Aug 2010 21:32:11 +0000 (23:32 +0200)
committerJohann Lombardi <johann.lombardi@oracle.com>
Fri, 27 Aug 2010 21:32:11 +0000 (23:32 +0200)
Make sure inode mutex on the CWD is taken when calling lookup_on_len().

lustre/mds/mds_fs.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_fs.c

index ed0d7d8..58ee4d6 100644 (file)
@@ -771,8 +771,8 @@ int mds_fs_setup(struct obd_device *obd, struct vfsmount *mnt)
 
         dput(dentry);
 
-        dentry = lookup_one_len("__iopen__", cfs_fs_pwd(current->fs),
-                                strlen("__iopen__"));
+        dentry = ll_lookup_one_len("__iopen__", cfs_fs_pwd(current->fs),
+                                   strlen("__iopen__"));
         if (IS_ERR(dentry)) {
                 rc = PTR_ERR(dentry);
                 CERROR("cannot lookup __iopen__ directory: rc = %d\n", rc);
index 11288b8..faafe97 100644 (file)
@@ -414,8 +414,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);
index 9455963..e6e733f 100644 (file)
@@ -222,8 +222,8 @@ 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__", cfs_fs_pwd(current->fs),
-                                strlen("__iopen__"));
+        dentry = ll_lookup_one_len("__iopen__", cfs_fs_pwd(current->fs),
+                                   strlen("__iopen__"));
         if (IS_ERR(dentry)) {
                 rc = PTR_ERR(dentry);
                 CERROR("cannot lookup __iopen__ directory: rc = %d\n", rc);