Commit ba4e8143 authored by Pat Gefre's avatar Pat Gefre Committed by David Mosberger

[PATCH] ia64: small SN2 interface.c patch

Change the calls to link_path_walk() to path_walk().  link_path_walk()
doesn't initialze current->total_link_count and path_walk() does.
Without the initialization, path_walks start to fail when 40 sym links
have been followed.
parent 14973a3b
...@@ -36,7 +36,7 @@ walk_parents_mkdir( ...@@ -36,7 +36,7 @@ walk_parents_mkdir(
memcpy(buf, *path, len); memcpy(buf, *path, len);
buf[len] = '\0'; buf[len] = '\0';
error = link_path_walk(buf, nd); error = path_walk(buf, nd);
if (unlikely(error)) if (unlikely(error))
return error; return error;
...@@ -83,7 +83,7 @@ hwgfs_decode( ...@@ -83,7 +83,7 @@ hwgfs_decode(
if (unlikely(error)) if (unlikely(error))
return error; return error;
error = link_path_walk(name, &nd); error = path_walk(name, &nd);
if (unlikely(error)) if (unlikely(error))
return error; return error;
...@@ -274,7 +274,7 @@ hwgfs_find_handle( ...@@ -274,7 +274,7 @@ hwgfs_find_handle(
nd.dentry = dget(base ? base : hwgfs_vfsmount->mnt_sb->s_root); nd.dentry = dget(base ? base : hwgfs_vfsmount->mnt_sb->s_root);
nd.flags = (traverse_symlinks ? LOOKUP_FOLLOW : 0); nd.flags = (traverse_symlinks ? LOOKUP_FOLLOW : 0);
error = link_path_walk(name, &nd); error = path_walk(name, &nd);
if (likely(!error)) { if (likely(!error)) {
dentry = nd.dentry; dentry = nd.dentry;
path_release(&nd); /* stale data from here! */ path_release(&nd); /* stale data from here! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment