diff options
Diffstat (limited to 'fs/smbfs')
| -rw-r--r-- | fs/smbfs/inode.c | 1 | ||||
| -rw-r--r-- | fs/smbfs/proc.c | 3 | ||||
| -rw-r--r-- | fs/smbfs/sock.c | 2 | ||||
| -rw-r--r-- | fs/smbfs/symlink.c | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 4765aaac9fd2..10b994428fef 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
| @@ -331,6 +331,7 @@ static void | |||
| 331 | smb_delete_inode(struct inode *ino) | 331 | smb_delete_inode(struct inode *ino) |
| 332 | { | 332 | { |
| 333 | DEBUG1("ino=%ld\n", ino->i_ino); | 333 | DEBUG1("ino=%ld\n", ino->i_ino); |
| 334 | truncate_inode_pages(&ino->i_data, 0); | ||
| 334 | lock_kernel(); | 335 | lock_kernel(); |
| 335 | if (smb_close(ino)) | 336 | if (smb_close(ino)) |
| 336 | PARANOIA("could not close inode %ld\n", ino->i_ino); | 337 | PARANOIA("could not close inode %ld\n", ino->i_ino); |
diff --git a/fs/smbfs/proc.c b/fs/smbfs/proc.c index 220babe91efd..38ab558835c4 100644 --- a/fs/smbfs/proc.c +++ b/fs/smbfs/proc.c | |||
| @@ -2397,8 +2397,7 @@ smb_proc_readdir_long(struct file *filp, void *dirent, filldir_t filldir, | |||
| 2397 | if (req->rq_rcls == ERRSRV && req->rq_err == ERRerror) { | 2397 | if (req->rq_rcls == ERRSRV && req->rq_err == ERRerror) { |
| 2398 | /* a damn Win95 bug - sometimes it clags if you | 2398 | /* a damn Win95 bug - sometimes it clags if you |
| 2399 | ask it too fast */ | 2399 | ask it too fast */ |
| 2400 | current->state = TASK_INTERRUPTIBLE; | 2400 | schedule_timeout_interruptible(msecs_to_jiffies(200)); |
| 2401 | schedule_timeout(HZ/5); | ||
| 2402 | continue; | 2401 | continue; |
| 2403 | } | 2402 | } |
| 2404 | 2403 | ||
diff --git a/fs/smbfs/sock.c b/fs/smbfs/sock.c index 93f3cd22a2e9..6815b1b12b68 100644 --- a/fs/smbfs/sock.c +++ b/fs/smbfs/sock.c | |||
| @@ -15,12 +15,12 @@ | |||
| 15 | #include <linux/file.h> | 15 | #include <linux/file.h> |
| 16 | #include <linux/in.h> | 16 | #include <linux/in.h> |
| 17 | #include <linux/net.h> | 17 | #include <linux/net.h> |
| 18 | #include <linux/tcp.h> | ||
| 19 | #include <linux/mm.h> | 18 | #include <linux/mm.h> |
| 20 | #include <linux/netdevice.h> | 19 | #include <linux/netdevice.h> |
| 21 | #include <linux/smp_lock.h> | 20 | #include <linux/smp_lock.h> |
| 22 | #include <linux/workqueue.h> | 21 | #include <linux/workqueue.h> |
| 23 | #include <net/scm.h> | 22 | #include <net/scm.h> |
| 23 | #include <net/tcp_states.h> | ||
| 24 | #include <net/ip.h> | 24 | #include <net/ip.h> |
| 25 | 25 | ||
| 26 | #include <linux/smb_fs.h> | 26 | #include <linux/smb_fs.h> |
diff --git a/fs/smbfs/symlink.c b/fs/smbfs/symlink.c index 8b069e06433d..0c64bc3a0127 100644 --- a/fs/smbfs/symlink.c +++ b/fs/smbfs/symlink.c | |||
| @@ -34,7 +34,7 @@ int smb_symlink(struct inode *inode, struct dentry *dentry, const char *oldname) | |||
| 34 | return smb_proc_symlink(server_from_dentry(dentry), dentry, oldname); | 34 | return smb_proc_symlink(server_from_dentry(dentry), dentry, oldname); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | static int smb_follow_link(struct dentry *dentry, struct nameidata *nd) | 37 | static void *smb_follow_link(struct dentry *dentry, struct nameidata *nd) |
| 38 | { | 38 | { |
| 39 | char *link = __getname(); | 39 | char *link = __getname(); |
| 40 | DEBUG1("followlink of %s/%s\n", DENTRY_PATH(dentry)); | 40 | DEBUG1("followlink of %s/%s\n", DENTRY_PATH(dentry)); |
| @@ -52,10 +52,10 @@ static int smb_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
| 52 | } | 52 | } |
| 53 | } | 53 | } |
| 54 | nd_set_link(nd, link); | 54 | nd_set_link(nd, link); |
| 55 | return 0; | 55 | return NULL; |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | static void smb_put_link(struct dentry *dentry, struct nameidata *nd) | 58 | static void smb_put_link(struct dentry *dentry, struct nameidata *nd, void *p) |
| 59 | { | 59 | { |
| 60 | char *s = nd_get_link(nd); | 60 | char *s = nd_get_link(nd); |
| 61 | if (!IS_ERR(s)) | 61 | if (!IS_ERR(s)) |
