diff options
author | Steve French <sfrench@us.ibm.com> | 2005-08-21 00:40:00 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-08-21 00:40:00 -0400 |
commit | 646352319b6cd369750a706706810d87f6b6efa7 (patch) | |
tree | e7830e1276cbad7d29bf9471def4b8940592c3b7 /fs/cifs | |
parent | d3485d37c0b3292aec0618b6663c57542df5da99 (diff) | |
parent | f6fdd7d9c273bb2a20ab467cb57067494f932fa3 (diff) |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/cifsfs.h | 4 | ||||
-rw-r--r-- | fs/cifs/link.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index cf45ca359dba..d5fb3441555f 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
@@ -83,8 +83,8 @@ extern int cifs_dir_notify(struct file *, unsigned long arg); | |||
83 | extern struct dentry_operations cifs_dentry_ops; | 83 | extern struct dentry_operations cifs_dentry_ops; |
84 | 84 | ||
85 | /* Functions related to symlinks */ | 85 | /* Functions related to symlinks */ |
86 | extern int cifs_follow_link(struct dentry *direntry, struct nameidata *nd); | 86 | extern void *cifs_follow_link(struct dentry *direntry, struct nameidata *nd); |
87 | extern void cifs_put_link(struct dentry *direntry, struct nameidata *nd); | 87 | extern void cifs_put_link(struct dentry *direntry, struct nameidata *nd, void *); |
88 | extern int cifs_readlink(struct dentry *direntry, char __user *buffer, | 88 | extern int cifs_readlink(struct dentry *direntry, char __user *buffer, |
89 | int buflen); | 89 | int buflen); |
90 | extern int cifs_symlink(struct inode *inode, struct dentry *direntry, | 90 | extern int cifs_symlink(struct inode *inode, struct dentry *direntry, |
diff --git a/fs/cifs/link.c b/fs/cifs/link.c index 214aa816f669..da420e8c3298 100644 --- a/fs/cifs/link.c +++ b/fs/cifs/link.c | |||
@@ -92,7 +92,7 @@ cifs_hl_exit: | |||
92 | return rc; | 92 | return rc; |
93 | } | 93 | } |
94 | 94 | ||
95 | int | 95 | void * |
96 | cifs_follow_link(struct dentry *direntry, struct nameidata *nd) | 96 | cifs_follow_link(struct dentry *direntry, struct nameidata *nd) |
97 | { | 97 | { |
98 | struct inode *inode = direntry->d_inode; | 98 | struct inode *inode = direntry->d_inode; |
@@ -149,7 +149,7 @@ out: | |||
149 | out_no_free: | 149 | out_no_free: |
150 | FreeXid(xid); | 150 | FreeXid(xid); |
151 | nd_set_link(nd, target_path); | 151 | nd_set_link(nd, target_path); |
152 | return 0; | 152 | return NULL; /* No cookie */ |
153 | } | 153 | } |
154 | 154 | ||
155 | int | 155 | int |
@@ -331,7 +331,7 @@ cifs_readlink(struct dentry *direntry, char __user *pBuffer, int buflen) | |||
331 | return rc; | 331 | return rc; |
332 | } | 332 | } |
333 | 333 | ||
334 | void cifs_put_link(struct dentry *direntry, struct nameidata *nd) | 334 | void cifs_put_link(struct dentry *direntry, struct nameidata *nd, void *cookie) |
335 | { | 335 | { |
336 | char *p = nd_get_link(nd); | 336 | char *p = nd_get_link(nd); |
337 | if (!IS_ERR(p)) | 337 | if (!IS_ERR(p)) |