diff options
| author | Ingo Molnar <mingo@elte.hu> | 2010-08-12 15:38:56 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2010-08-12 15:39:04 -0400 |
| commit | f46a6804135795f77d096ab0128f27531c7d051c (patch) | |
| tree | 7cd33f69e3661327739ae4c96e5a8389e7fc912e /fs/smbfs/inode.c | |
| parent | b3e84ffa21f916e3354a12a7f19169c9febe96d0 (diff) | |
| parent | ad41a1e0cab07c5125456e8d38e5b1ab148d04aa (diff) | |
Merge branch 'linus' into perf/urgent
Merge reason: Fix upstream breakage introduced by:
de5d9bf: Move list types from <linux/list.h> to <linux/types.h>.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/smbfs/inode.c')
| -rw-r--r-- | fs/smbfs/inode.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 9551cb6f7fe4..450c91941988 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | 46 | ||
| 47 | #define SMB_TTL_DEFAULT 1000 | 47 | #define SMB_TTL_DEFAULT 1000 |
| 48 | 48 | ||
| 49 | static void smb_delete_inode(struct inode *); | 49 | static void smb_evict_inode(struct inode *); |
| 50 | static void smb_put_super(struct super_block *); | 50 | static void smb_put_super(struct super_block *); |
| 51 | static int smb_statfs(struct dentry *, struct kstatfs *); | 51 | static int smb_statfs(struct dentry *, struct kstatfs *); |
| 52 | static int smb_show_options(struct seq_file *, struct vfsmount *); | 52 | static int smb_show_options(struct seq_file *, struct vfsmount *); |
| @@ -102,7 +102,7 @@ static const struct super_operations smb_sops = | |||
| 102 | .alloc_inode = smb_alloc_inode, | 102 | .alloc_inode = smb_alloc_inode, |
| 103 | .destroy_inode = smb_destroy_inode, | 103 | .destroy_inode = smb_destroy_inode, |
| 104 | .drop_inode = generic_delete_inode, | 104 | .drop_inode = generic_delete_inode, |
| 105 | .delete_inode = smb_delete_inode, | 105 | .evict_inode = smb_evict_inode, |
| 106 | .put_super = smb_put_super, | 106 | .put_super = smb_put_super, |
| 107 | .statfs = smb_statfs, | 107 | .statfs = smb_statfs, |
| 108 | .show_options = smb_show_options, | 108 | .show_options = smb_show_options, |
| @@ -324,15 +324,15 @@ out: | |||
| 324 | * All blocking cleanup operations need to go here to avoid races. | 324 | * All blocking cleanup operations need to go here to avoid races. |
| 325 | */ | 325 | */ |
| 326 | static void | 326 | static void |
| 327 | smb_delete_inode(struct inode *ino) | 327 | smb_evict_inode(struct inode *ino) |
| 328 | { | 328 | { |
| 329 | DEBUG1("ino=%ld\n", ino->i_ino); | 329 | DEBUG1("ino=%ld\n", ino->i_ino); |
| 330 | truncate_inode_pages(&ino->i_data, 0); | 330 | truncate_inode_pages(&ino->i_data, 0); |
| 331 | end_writeback(ino); | ||
| 331 | lock_kernel(); | 332 | lock_kernel(); |
| 332 | if (smb_close(ino)) | 333 | if (smb_close(ino)) |
| 333 | PARANOIA("could not close inode %ld\n", ino->i_ino); | 334 | PARANOIA("could not close inode %ld\n", ino->i_ino); |
| 334 | unlock_kernel(); | 335 | unlock_kernel(); |
| 335 | clear_inode(ino); | ||
| 336 | } | 336 | } |
| 337 | 337 | ||
| 338 | static struct option opts[] = { | 338 | static struct option opts[] = { |
| @@ -714,9 +714,7 @@ smb_notify_change(struct dentry *dentry, struct iattr *attr) | |||
| 714 | error = server->ops->truncate(inode, attr->ia_size); | 714 | error = server->ops->truncate(inode, attr->ia_size); |
| 715 | if (error) | 715 | if (error) |
| 716 | goto out; | 716 | goto out; |
| 717 | error = simple_setsize(inode, attr->ia_size); | 717 | truncate_setsize(inode, attr->ia_size); |
| 718 | if (error) | ||
| 719 | goto out; | ||
| 720 | refresh = 1; | 718 | refresh = 1; |
| 721 | } | 719 | } |
| 722 | 720 | ||
