diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 14:09:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 14:09:16 -0400 |
commit | 11126c611e10abb18b6f1ed0300c0548c3906b54 (patch) | |
tree | 246227ad730c1e68f5a9c03db57cd4592abe7687 /fs/fat/cache.c | |
parent | 67966e088b0c7dc926f4ce19565ebf208e18d058 (diff) | |
parent | 33e2a4227ddff7c18921ac175fae3ab0e3ff8a76 (diff) |
Merge branch 'akpm' (Andrew's patch-bomb)
Merge misc patches from Andrew Morton:
"The MM tree is rather stuck while I wait to find out what the heck is
happening with sched/numa. Probably I'll need to route around all the
code which was added to -next, sigh.
So this is "everything else", or at least most of it - other small
bits are still awaiting resolutions of various kinds."
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (180 commits)
lib/decompress.c add __init to decompress_method and data
kernel/resource.c: fix stack overflow in __reserve_region_with_split()
omfs: convert to use beXX_add_cpu()
taskstats: cgroupstats_user_cmd() may leak on error
aoe: update aoe-internal version number to 50
aoe: update documentation to better reflect aoe-plus-udev usage
aoe: remove unused code
aoe: make dynamic block minor numbers the default
aoe: update and specify AoE address guards and error messages
aoe: retain static block device numbers for backwards compatibility
aoe: support more AoE addresses with dynamic block device minor numbers
aoe: update documentation with new URL and VM settings reference
aoe: update copyright year in touched files
aoe: update internal version number to 49
aoe: remove unused code and add cosmetic improvements
aoe: increase net_device reference count while using it
aoe: associate frames with the AoE storage target
aoe: disallow unsupported AoE minor addresses
aoe: do revalidation steps in order
aoe: failover remote interface based on aoe_deadsecs parameter
...
Diffstat (limited to 'fs/fat/cache.c')
-rw-r--r-- | fs/fat/cache.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 1cc7038e273d..91ad9e1c9441 100644 --- a/fs/fat/cache.c +++ b/fs/fat/cache.c | |||
@@ -190,7 +190,8 @@ static void __fat_cache_inval_inode(struct inode *inode) | |||
190 | struct fat_cache *cache; | 190 | struct fat_cache *cache; |
191 | 191 | ||
192 | while (!list_empty(&i->cache_lru)) { | 192 | while (!list_empty(&i->cache_lru)) { |
193 | cache = list_entry(i->cache_lru.next, struct fat_cache, cache_list); | 193 | cache = list_entry(i->cache_lru.next, |
194 | struct fat_cache, cache_list); | ||
194 | list_del_init(&cache->cache_list); | 195 | list_del_init(&cache->cache_list); |
195 | i->nr_caches--; | 196 | i->nr_caches--; |
196 | fat_cache_free(cache); | 197 | fat_cache_free(cache); |
@@ -261,9 +262,10 @@ int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) | |||
261 | if (nr < 0) | 262 | if (nr < 0) |
262 | goto out; | 263 | goto out; |
263 | else if (nr == FAT_ENT_FREE) { | 264 | else if (nr == FAT_ENT_FREE) { |
264 | fat_fs_error_ratelimit(sb, "%s: invalid cluster chain" | 265 | fat_fs_error_ratelimit(sb, |
265 | " (i_pos %lld)", __func__, | 266 | "%s: invalid cluster chain (i_pos %lld)", |
266 | MSDOS_I(inode)->i_pos); | 267 | __func__, |
268 | MSDOS_I(inode)->i_pos); | ||
267 | nr = -EIO; | 269 | nr = -EIO; |
268 | goto out; | 270 | goto out; |
269 | } else if (nr == FAT_ENT_EOF) { | 271 | } else if (nr == FAT_ENT_EOF) { |