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:
cd9ae2b
)
[PATCH] NFS: fix minor bug in new NFS symlink code
author
Chuck Lever
<
[email protected]
>
Fri, 20 Oct 2006 06:28:41 +0000
(23:28 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 20 Oct 2006 17:26:39 +0000
(10:26 -0700)
The original code confused a zero return code from pagevec_add() as success.
Test plan:
None.
Signed-off-by: Chuck Lever <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/nfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 58d44057813e8894e2e446be0b1e166cfb79ebd8..c86a1ead47724b60fd5badb02cbe8945f4785b44 100644
(file)
--- a/
fs/nfs/dir.c
+++ b/
fs/nfs/dir.c
@@
-1519,8
+1519,8
@@
static int nfs_symlink(struct inode *dir, struct dentry *dentry, const char *sym
pagevec_init(&lru_pvec, 0);
if (!add_to_page_cache(page, dentry->d_inode->i_mapping, 0,
GFP_KERNEL)) {
- if (!pagevec_add(&lru_pvec, page))
-
__
pagevec_lru_add(&lru_pvec);
+ pagevec_add(&lru_pvec, page);
+ pagevec_lru_add(&lru_pvec);
SetPageUptodate(page);
unlock_page(page);
} else