diff options
| author | Joel Granados <[email protected]> | 2023-11-21 11:35:12 +0000 |
|---|---|---|
| committer | Luis Chamberlain <[email protected]> | 2023-12-28 12:57:57 +0000 |
| commit | 9d5b9475356635d018b4d22f7e58fce32e2e89a7 (patch) | |
| tree | 7ecc5eb8892bd0d372b87dd2ef4a745bdba24355 /fs/file_table.c | |
| parent | cachefiles: Remove the now superfluous sentinel element from ctl_table array (diff) | |
| download | kernel-9d5b9475356635d018b4d22f7e58fce32e2e89a7.tar.gz kernel-9d5b9475356635d018b4d22f7e58fce32e2e89a7.zip | |
fs: Remove the now superfluous sentinel elements from ctl_table array
This commit comes at the tail end of a greater effort to remove the
empty elements at the end of the ctl_table arrays (sentinels) which
will reduce the overall build time size of the kernel and run time
memory bloat by ~64 bytes per sentinel (further information Link :
https://lore.kernel.org/all/ZO5Yx5JFogGi%[email protected]/)
Remove sentinel elements ctl_table struct. Special attention was placed in
making sure that an empty directory for fs/verity was created when
CONFIG_FS_VERITY_BUILTIN_SIGNATURES is not defined. In this case we use the
register sysctl call that expects a size.
Signed-off-by: Joel Granados <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Diffstat (limited to 'fs/file_table.c')
| -rw-r--r-- | fs/file_table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index de4a2915bfd4..d3af9feb4ad5 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -142,7 +142,6 @@ static struct ctl_table fs_stat_sysctls[] = { .extra1 = &sysctl_nr_open_min, .extra2 = &sysctl_nr_open_max, }, - { } }; static int __init init_fs_stat_sysctls(void) |
