linux/fs/fat
Carmeli Tamir d19dc01618 fat: move MAX_FAT to fat.h and change it to inline function
MAX_FAT is useless in msdos_fs.h, since it uses the MSDOS_SB function
that is defined in fat.h.  So really, this macro can be only called from
code that already includes fat.h.

Hence, this patch moves it to fat.h, right after MSDOS_SB is defined.  I
also changed it to an inline function in order to save the double call
to MSDOS_SB.  This was suggested by joe@perches.com in the previous
version.

This patch is required for the next in the series, in which the variant
(whether this is FAT12, FAT16 or FAT32) checks are replaced with new
macros.

Link: http://lkml.kernel.org/r/1544990640-11604-3-git-send-email-carmeli.tamir@gmail.com
Signed-off-by: Carmeli Tamir <carmeli.tamir@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-04 13:13:47 -08:00
..
cache.c fat: validate ->i_start before using 2018-08-22 10:52:50 -07:00
dir.c fat: change timestamp updates to use fat_truncate_time 2018-10-31 08:54:14 -07:00
fat.h fat: move MAX_FAT to fat.h and change it to inline function 2019-01-04 13:13:47 -08:00
fatent.c fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters() 2018-10-13 09:31:03 +02:00
file.c fat: truncate inode timestamp updates in setattr 2018-10-31 08:54:14 -07:00
inode.c fat: move MAX_FAT to fat.h and change it to inline function 2019-01-04 13:13:47 -08:00
Kconfig fat: add config option to set UTF-8 mount option by default 2016-03-22 15:36:02 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.c fat: add functions to update and truncate timestamps appropriately 2018-10-31 08:54:14 -07:00
namei_msdos.c fat: change timestamp updates to use fat_truncate_time 2018-10-31 08:54:14 -07:00
namei_vfat.c fat: change timestamp updates to use fat_truncate_time 2018-10-31 08:54:14 -07:00
nfs.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00