Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfs: include QUOTA, FATAL ASSERT build options in XFS_BUILD_OPTIONS

In commit d03a2f1b9fa8 ("xfs: include WARN, REPAIR build options in
XFS_BUILD_OPTIONS"), Eric pointed out that the XFS_BUILD_OPTIONS string,
shown at module init time and in modinfo output, does not currently
include all available build options. So, he added in CONFIG_XFS_WARN and
CONFIG_XFS_REPAIR. However, this is not enough, add in CONFIG_XFS_QUOTA
and CONFIG_XFS_ASSERT_FATAL.

Signed-off-by: yu kuai <yukuai3@huawei.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>

authored by

yu kuai and committed by
Darrick J. Wong
e5e63404 c039b997

+10
+10
fs/xfs/xfs_super.h
··· 11 11 #ifdef CONFIG_XFS_QUOTA 12 12 extern int xfs_qm_init(void); 13 13 extern void xfs_qm_exit(void); 14 + # define XFS_QUOTA_STRING "quota, " 14 15 #else 15 16 # define xfs_qm_init() (0) 16 17 # define xfs_qm_exit() do { } while (0) 18 + # define XFS_QUOTA_STRING 17 19 #endif 18 20 19 21 #ifdef CONFIG_XFS_POSIX_ACL ··· 52 50 # define XFS_WARN_STRING 53 51 #endif 54 52 53 + #ifdef CONFIG_XFS_ASSERT_FATAL 54 + # define XFS_ASSERT_FATAL_STRING "fatal assert, " 55 + #else 56 + # define XFS_ASSERT_FATAL_STRING 57 + #endif 58 + 55 59 #ifdef DEBUG 56 60 # define XFS_DBG_STRING "debug" 57 61 #else ··· 71 63 XFS_SCRUB_STRING \ 72 64 XFS_REPAIR_STRING \ 73 65 XFS_WARN_STRING \ 66 + XFS_QUOTA_STRING \ 67 + XFS_ASSERT_FATAL_STRING \ 74 68 XFS_DBG_STRING /* DBG must be last */ 75 69 76 70 struct xfs_inode;