Skip to content

Commit b8f690f

Browse files
lalitshankarchakpm00
authored andcommitted
fat: remove unused parameter
Remove unused inode parameter from fat_cache_alloc(). Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Lalit Shankar Chowdhury <[email protected]> Acked-by: OGAWA Hirofumi <[email protected]> Cc: Christian Brauner <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent e700f5d commit b8f690f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/fat/cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void fat_cache_destroy(void)
5454
kmem_cache_destroy(fat_cache_cachep);
5555
}
5656

57-
static inline struct fat_cache *fat_cache_alloc(struct inode *inode)
57+
static inline struct fat_cache *fat_cache_alloc(void)
5858
{
5959
return kmem_cache_alloc(fat_cache_cachep, GFP_NOFS);
6060
}
@@ -144,7 +144,7 @@ static void fat_cache_add(struct inode *inode, struct fat_cache_id *new)
144144
MSDOS_I(inode)->nr_caches++;
145145
spin_unlock(&MSDOS_I(inode)->cache_lru_lock);
146146

147-
tmp = fat_cache_alloc(inode);
147+
tmp = fat_cache_alloc();
148148
if (!tmp) {
149149
spin_lock(&MSDOS_I(inode)->cache_lru_lock);
150150
MSDOS_I(inode)->nr_caches--;

0 commit comments

Comments
 (0)