fs-fat-remove-unnecessary-wrapper-fat_max_cache.patch removed from -mm tree
The quilt patch titled
Subject: fs/fat: remove unnecessary wrapper fat_max_cache()
has been removed from the -mm tree. Its filename was
fs-fat-remove-unnecessary-wrapper-fat_max_cache.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Lalit Shankar Chowdhury <[email protected]>
Subject: fs/fat: remove unnecessary wrapper fat_max_cache()
Date: Thu, 27 Nov 2025 17:54:31 +0000
fat_max_cache() always returned FAT_MAX_CACHE and did not use the inode parameter. So, use the FAT_MAX_CACHE constant directly.
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]>
---
fs/fat/cache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
fs/fat/cache.c renamed from fs/fat/cache.c~fs-fat-remove-unnecessary-wrapper-fat_max_cache +1 -6
@@ -29,11 +29,6 @@ struct fat_cache_id {int dcluster; }; -static inline int fat_max_cache (struct inode *inode) -{ -return FAT_MAX_CACHE ; -} -static struct kmem_cache *fat_cache_cachep;static void init_once (void *foo)
@@ -145,7 +140,7 @@ static void fat_cache_add(struct inode * cache =fat_cache_merge (inode, new);if (cache ==NULL ) { -if (MSDOS_I (inode)->nr_caches <fat_max_cache (inode)) { +if (MSDOS_I (inode)->nr_caches <FAT_MAX_CACHE ) {MSDOS_I (inode)->nr_caches++;spin_unlock (&MSDOS_I (inode)->cache_lru_lock);
_
Patches currently in -mm which might be from [email protected] are