mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
fs/fat: fix two checkpatch issues in cache.c
This does the following: 1: Splits the arguments of a function call to stop it from exceeding 80 characters 2: Re-indents the arguments of another function call to prevent the splitting of a quoted string. Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4a3aeb13b7
commit
c90518290e
@ -190,7 +190,8 @@ static void __fat_cache_inval_inode(struct inode *inode)
|
|||||||
struct fat_cache *cache;
|
struct fat_cache *cache;
|
||||||
|
|
||||||
while (!list_empty(&i->cache_lru)) {
|
while (!list_empty(&i->cache_lru)) {
|
||||||
cache = list_entry(i->cache_lru.next, struct fat_cache, cache_list);
|
cache = list_entry(i->cache_lru.next,
|
||||||
|
struct fat_cache, cache_list);
|
||||||
list_del_init(&cache->cache_list);
|
list_del_init(&cache->cache_list);
|
||||||
i->nr_caches--;
|
i->nr_caches--;
|
||||||
fat_cache_free(cache);
|
fat_cache_free(cache);
|
||||||
@ -261,8 +262,9 @@ int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus)
|
|||||||
if (nr < 0)
|
if (nr < 0)
|
||||||
goto out;
|
goto out;
|
||||||
else if (nr == FAT_ENT_FREE) {
|
else if (nr == FAT_ENT_FREE) {
|
||||||
fat_fs_error_ratelimit(sb, "%s: invalid cluster chain"
|
fat_fs_error_ratelimit(sb,
|
||||||
" (i_pos %lld)", __func__,
|
"%s: invalid cluster chain (i_pos %lld)",
|
||||||
|
__func__,
|
||||||
MSDOS_I(inode)->i_pos);
|
MSDOS_I(inode)->i_pos);
|
||||||
nr = -EIO;
|
nr = -EIO;
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user