diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/fat/dir.c | 1 | ||||
| -rw-r--r-- | fs/fat/inode.c | 2 | ||||
| -rw-r--r-- | fs/fat/namei_vfat.c | 2 | ||||
| -rw-r--r-- | fs/proc/stat.c | 11 |
4 files changed, 4 insertions, 12 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 67e058357098..3a7f603b6982 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c | |||
| @@ -841,7 +841,6 @@ const struct file_operations fat_dir_operations = { | |||
| 841 | .compat_ioctl = fat_compat_dir_ioctl, | 841 | .compat_ioctl = fat_compat_dir_ioctl, |
| 842 | #endif | 842 | #endif |
| 843 | .fsync = file_fsync, | 843 | .fsync = file_fsync, |
| 844 | .llseek = generic_file_llseek, | ||
| 845 | }; | 844 | }; |
| 846 | 845 | ||
| 847 | static int fat_get_short_entry(struct inode *dir, loff_t *pos, | 846 | static int fat_get_short_entry(struct inode *dir, loff_t *pos, |
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index d937aaf77374..6b74d09adbe5 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
| @@ -749,6 +749,8 @@ static struct dentry *fat_get_parent(struct dentry *child) | |||
| 749 | brelse(bh); | 749 | brelse(bh); |
| 750 | 750 | ||
| 751 | parent = d_obtain_alias(inode); | 751 | parent = d_obtain_alias(inode); |
| 752 | if (!IS_ERR(parent)) | ||
| 753 | parent->d_op = sb->s_root->d_op; | ||
| 752 | out: | 754 | out: |
| 753 | unlock_super(sb); | 755 | unlock_super(sb); |
| 754 | 756 | ||
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c index bf326d4356a3..8ae32e37673c 100644 --- a/fs/fat/namei_vfat.c +++ b/fs/fat/namei_vfat.c | |||
| @@ -78,7 +78,7 @@ static int vfat_revalidate_ci(struct dentry *dentry, struct nameidata *nd) | |||
| 78 | * for creation. | 78 | * for creation. |
| 79 | */ | 79 | */ |
| 80 | if (!(nd->flags & (LOOKUP_CONTINUE | LOOKUP_PARENT))) { | 80 | if (!(nd->flags & (LOOKUP_CONTINUE | LOOKUP_PARENT))) { |
| 81 | if (nd->flags & LOOKUP_CREATE) | 81 | if (nd->flags & (LOOKUP_CREATE | LOOKUP_RENAME_TARGET)) |
| 82 | return 0; | 82 | return 0; |
| 83 | } | 83 | } |
| 84 | 84 | ||
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 3bb1cf1e7425..f75efa22df5e 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include <linux/seq_file.h> | 9 | #include <linux/seq_file.h> |
| 10 | #include <linux/slab.h> | 10 | #include <linux/slab.h> |
| 11 | #include <linux/time.h> | 11 | #include <linux/time.h> |
| 12 | #include <linux/irqnr.h> | ||
| 12 | #include <asm/cputime.h> | 13 | #include <asm/cputime.h> |
| 13 | 14 | ||
| 14 | #ifndef arch_irq_stat_cpu | 15 | #ifndef arch_irq_stat_cpu |
| @@ -45,10 +46,6 @@ static int show_stat(struct seq_file *p, void *v) | |||
| 45 | steal = cputime64_add(steal, kstat_cpu(i).cpustat.steal); | 46 | steal = cputime64_add(steal, kstat_cpu(i).cpustat.steal); |
| 46 | guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest); | 47 | guest = cputime64_add(guest, kstat_cpu(i).cpustat.guest); |
| 47 | for_each_irq_nr(j) { | 48 | for_each_irq_nr(j) { |
| 48 | #ifdef CONFIG_SPARSE_IRQ | ||
| 49 | if (!irq_to_desc(j)) | ||
| 50 | continue; | ||
| 51 | #endif | ||
| 52 | sum += kstat_irqs_cpu(j, i); | 49 | sum += kstat_irqs_cpu(j, i); |
| 53 | } | 50 | } |
| 54 | sum += arch_irq_stat_cpu(i); | 51 | sum += arch_irq_stat_cpu(i); |
| @@ -95,12 +92,6 @@ static int show_stat(struct seq_file *p, void *v) | |||
| 95 | /* sum again ? it could be updated? */ | 92 | /* sum again ? it could be updated? */ |
| 96 | for_each_irq_nr(j) { | 93 | for_each_irq_nr(j) { |
| 97 | per_irq_sum = 0; | 94 | per_irq_sum = 0; |
| 98 | #ifdef CONFIG_SPARSE_IRQ | ||
| 99 | if (!irq_to_desc(j)) { | ||
| 100 | seq_printf(p, " %u", per_irq_sum); | ||
| 101 | continue; | ||
| 102 | } | ||
| 103 | #endif | ||
| 104 | for_each_possible_cpu(i) | 95 | for_each_possible_cpu(i) |
| 105 | per_irq_sum += kstat_irqs_cpu(j, i); | 96 | per_irq_sum += kstat_irqs_cpu(j, i); |
| 106 | 97 | ||
