mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
fat: remove unused parameter
Remove unused inode parameter from fat_cache_alloc(). Link: https://lkml.kernel.org/r/20251201214403.90604-2-lalitshankarch@gmail.com Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Cc: Christian Brauner <brauner@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
e700f5d156
commit
b8f690f6d1
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ void fat_cache_destroy(void)
|
|||
kmem_cache_destroy(fat_cache_cachep);
|
||||
}
|
||||
|
||||
static inline struct fat_cache *fat_cache_alloc(struct inode *inode)
|
||||
static inline struct fat_cache *fat_cache_alloc(void)
|
||||
{
|
||||
return kmem_cache_alloc(fat_cache_cachep, GFP_NOFS);
|
||||
}
|
||||
|
|
@ -144,7 +144,7 @@ static void fat_cache_add(struct inode *inode, struct fat_cache_id *new)
|
|||
MSDOS_I(inode)->nr_caches++;
|
||||
spin_unlock(&MSDOS_I(inode)->cache_lru_lock);
|
||||
|
||||
tmp = fat_cache_alloc(inode);
|
||||
tmp = fat_cache_alloc();
|
||||
if (!tmp) {
|
||||
spin_lock(&MSDOS_I(inode)->cache_lru_lock);
|
||||
MSDOS_I(inode)->nr_caches--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue