Message ID | 20240104-jag-sysctl_remove_empty_elem_kernel-v2-0-836cc04e00ec@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Jan 04, 2024 at 04:02:21PM +0100, Joel Granados via B4 Relay wrote: > From: Joel Granados <j.granados@samsung.com> > > What? The reason I wanted you to do the sentinel removal before the split was so that there weren't two rounds of patches. Ironically, because you refused to do it that way, not only are there two rounds of patches, but I'm being cc'd on all of them, so I get all the $%*^ emails twice. Please at least stop cc'ing me.
On Thu, Jan 04, 2024 at 03:05:42PM +0000, Matthew Wilcox wrote: > On Thu, Jan 04, 2024 at 04:02:21PM +0100, Joel Granados via B4 Relay wrote: > > From: Joel Granados <j.granados@samsung.com> > > > > What? > > The reason I wanted you to do the sentinel removal before the split was > so that there weren't two rounds of patches. Ironically, because you > refused to do it that way, not only are there two rounds of patches, but > I'm being cc'd on all of them, so I get all the $%*^ emails twice. > > Please at least stop cc'ing me. Will do
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index c88854df0b62..e0073a627bac 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set, table[0].procname = new_name; table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO; init_header(&new->header, set->dir.header.root, set, node, table, 1); + // Counts additional sentinel used for each new dir. + printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table)); return new; } @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_ link_name += len; link++; } + // Counts additional sentinel used for each new registration + // + printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table)); init_header(links, dir->header.root, dir->header.set, node, link_table, head->ctl_table_size); links->nreg = nr_entries;