projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ee049
)
namei.c : update mnt when it needed
author
Huang Shijie
<
[email protected]
>
Fri, 2 Apr 2010 09:37:13 +0000
(17:37 +0800)
committer
Al Viro
<
[email protected]
>
Fri, 21 May 2010 22:31:22 +0000
(18:31 -0400)
update the mnt of the path when it is not equal to the new one.
Signed-off-by: Huang Shijie <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/namei.c
patch
|
blob
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index b86b96fe1dc33926eb242a2a2e21061fe46145a5..48e1f60520ea51d64f1802bda2b1d832249e4067 100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-523,9
+523,10
@@
static void path_put_conditional(struct path *path, struct nameidata *nd)
static inline void path_to_nameidata(struct path *path, struct nameidata *nd)
{
dput(nd->path.dentry);
- if (nd->path.mnt != path->mnt)
+ if (nd->path.mnt != path->mnt)
{
mntput(nd->path.mnt);
- nd->path.mnt = path->mnt;
+ nd->path.mnt = path->mnt;
+ }
nd->path.dentry = path->dentry;
}