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:
f7ed550
)
Staging: pohmelfs: Populate dentry cache when receiving the new readdir entry.
author
Evgeniy Polyakov
<
[email protected]
>
Fri, 27 Mar 2009 12:04:18 +0000
(15:04 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 17 Apr 2009 18:06:27 +0000
(11:06 -0700)
Signed-off-by: Evgeniy Polyakov <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/pohmelfs/net.c
patch
|
blob
|
history
diff --git
a/drivers/staging/pohmelfs/net.c
b/drivers/staging/pohmelfs/net.c
index c9b8540c1efebb75b0e4a0f2a31dd6fb2fda4a0c..93a5921c36f44e8b6190967d0f9e3cba13b122eb 100644
(file)
--- a/
drivers/staging/pohmelfs/net.c
+++ b/
drivers/staging/pohmelfs/net.c
@@
-450,8
+450,24
@@
static int pohmelfs_readdir_response(struct netfs_state *st)
if (err != -EEXIST)
goto err_out_put;
} else {
+ struct dentry *dentry, *alias, *pd;
+
set_bit(NETFS_INODE_REMOTE_SYNCED, &npi->state);
clear_bit(NETFS_INODE_OWNED, &npi->state);
+
+ pd = d_find_alias(&parent->vfs_inode);
+ if (pd) {
+ str.hash = full_name_hash(str.name, str.len);
+ dentry = d_alloc(pd, &str);
+ if (dentry) {
+ alias = d_materialise_unique(dentry, &npi->vfs_inode);
+ if (alias)
+ dput(dentry);
+ }
+
+ dput(dentry);
+ dput(pd);
+ }
}
}
out: