* [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. @ 2007-05-29 17:11 Robert P. J. Day 2007-05-29 18:00 ` Andrew Morton 2007-05-29 18:04 ` [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t Alexey Dobriyan 0 siblings, 2 replies; 14+ messages in thread From: Robert P. J. Day @ 2007-05-29 17:11 UTC (permalink / raw) To: Linux Kernel Mailing List; +Cc: Andrew Morton, Alexander Viro Delete the apparently unused array "int dummy[5]" from struct inodes_stat_t. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> --- no idea what that array is for, but no one seems to care about it. removal compile-tested on x86 with "make allyesconfig" and nobody misses it (unless it's used for padding of some kind). diff --git a/include/linux/fs.h b/include/linux/fs.h index 7cf0c54..dec83dd 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -44,7 +44,6 @@ extern int get_max_files(void); struct inodes_stat_t { int nr_inodes; int nr_unused; - int dummy[5]; }; extern struct inodes_stat_t inodes_stat; -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 17:11 [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t Robert P. J. Day @ 2007-05-29 18:00 ` Andrew Morton 2007-05-29 18:07 ` Robert P. J. Day 2007-05-29 18:04 ` [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t Alexey Dobriyan 1 sibling, 1 reply; 14+ messages in thread From: Andrew Morton @ 2007-05-29 18:00 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Alexander Viro On Tue, 29 May 2007 13:11:07 -0400 (EDT) "Robert P. J. Day" <rpjday@mindspring.com> wrote: > > Delete the apparently unused array "int dummy[5]" from struct > inodes_stat_t. > > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> > > --- > > no idea what that array is for, but no one seems to care about it. > removal compile-tested on x86 with "make allyesconfig" and nobody > misses it (unless it's used for padding of some kind). > > > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 7cf0c54..dec83dd 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -44,7 +44,6 @@ extern int get_max_files(void); > struct inodes_stat_t { > int nr_inodes; > int nr_unused; > - int dummy[5]; > }; > extern struct inodes_stat_t inodes_stat; > kernel/sysctl.c: { .ctl_name = FS_STATINODE, .procname = "inode-state", .data = &inodes_stat, .maxlen = 7*sizeof(int), .mode = 0444, .proc_handler = &proc_dointvec, }, akpm:/home/akpm> cat /proc/sys/fs/inode-state 608039 178454 0 0 0 0 0 So it _is_ used: to present those five zeroes. I think this is for back-compatibility with some cretaceous-era kernel. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 18:00 ` Andrew Morton @ 2007-05-29 18:07 ` Robert P. J. Day 2007-05-29 18:19 ` Randy Dunlap 0 siblings, 1 reply; 14+ messages in thread From: Robert P. J. Day @ 2007-05-29 18:07 UTC (permalink / raw) To: Andrew Morton; +Cc: Linux Kernel Mailing List, Alexander Viro On Tue, 29 May 2007, Andrew Morton wrote: > On Tue, 29 May 2007 13:11:07 -0400 (EDT) > "Robert P. J. Day" <rpjday@mindspring.com> wrote: > > > > > Delete the apparently unused array "int dummy[5]" from struct > > inodes_stat_t. > > > > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> > > > > --- > > > > no idea what that array is for, but no one seems to care about it. > > removal compile-tested on x86 with "make allyesconfig" and nobody > > misses it (unless it's used for padding of some kind). > > > > > > diff --git a/include/linux/fs.h b/include/linux/fs.h > > index 7cf0c54..dec83dd 100644 > > --- a/include/linux/fs.h > > +++ b/include/linux/fs.h > > @@ -44,7 +44,6 @@ extern int get_max_files(void); > > struct inodes_stat_t { > > int nr_inodes; > > int nr_unused; > > - int dummy[5]; > > }; > > extern struct inodes_stat_t inodes_stat; > > > > kernel/sysctl.c: > > { > .ctl_name = FS_STATINODE, > .procname = "inode-state", > .data = &inodes_stat, > .maxlen = 7*sizeof(int), > .mode = 0444, > .proc_handler = &proc_dointvec, > }, > > akpm:/home/akpm> cat /proc/sys/fs/inode-state > 608039 178454 0 0 0 0 0 > > So it _is_ used: to present those five zeroes. I think this is for > back-compatibility with some cretaceous-era kernel. ah, gotcha. well, i'll leave this up to someone else to do anything with if they are so inclined. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 18:07 ` Robert P. J. Day @ 2007-05-29 18:19 ` Randy Dunlap 2007-05-29 18:21 ` Robert P. J. Day 0 siblings, 1 reply; 14+ messages in thread From: Randy Dunlap @ 2007-05-29 18:19 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Andrew Morton, Linux Kernel Mailing List, Alexander Viro On Tue, 29 May 2007 14:07:01 -0400 (EDT) Robert P. J. Day wrote: > On Tue, 29 May 2007, Andrew Morton wrote: > > > On Tue, 29 May 2007 13:11:07 -0400 (EDT) > > "Robert P. J. Day" <rpjday@mindspring.com> wrote: > > > > > > > > Delete the apparently unused array "int dummy[5]" from struct > > > inodes_stat_t. > > > > > > Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> > > > > > > --- > > > > > > no idea what that array is for, but no one seems to care about it. > > > removal compile-tested on x86 with "make allyesconfig" and nobody > > > misses it (unless it's used for padding of some kind). > > > > > > > > > diff --git a/include/linux/fs.h b/include/linux/fs.h > > > index 7cf0c54..dec83dd 100644 > > > --- a/include/linux/fs.h > > > +++ b/include/linux/fs.h > > > @@ -44,7 +44,6 @@ extern int get_max_files(void); > > > struct inodes_stat_t { > > > int nr_inodes; > > > int nr_unused; > > > - int dummy[5]; > > > }; > > > extern struct inodes_stat_t inodes_stat; > > > > > > > kernel/sysctl.c: > > > > { > > .ctl_name = FS_STATINODE, > > .procname = "inode-state", > > .data = &inodes_stat, > > .maxlen = 7*sizeof(int), > > .mode = 0444, > > .proc_handler = &proc_dointvec, > > }, > > > > akpm:/home/akpm> cat /proc/sys/fs/inode-state > > 608039 178454 0 0 0 0 0 > > > > So it _is_ used: to present those five zeroes. I think this is for > > back-compatibility with some cretaceous-era kernel. > > ah, gotcha. well, i'll leave this up to someone else to do anything > with if they are so inclined. There's little to be done, except possibly put a /* comment */ on the struct's dummy line so that we don't go thru this again in N years. --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 18:19 ` Randy Dunlap @ 2007-05-29 18:21 ` Robert P. J. Day 2007-05-29 18:33 ` Randy Dunlap 0 siblings, 1 reply; 14+ messages in thread From: Robert P. J. Day @ 2007-05-29 18:21 UTC (permalink / raw) To: Randy Dunlap; +Cc: Andrew Morton, Linux Kernel Mailing List, Alexander Viro On Tue, 29 May 2007, Randy Dunlap wrote: > On Tue, 29 May 2007 14:07:01 -0400 (EDT) Robert P. J. Day wrote: > > > On Tue, 29 May 2007, Andrew Morton wrote: > > > > > kernel/sysctl.c: > > > > > > { > > > .ctl_name = FS_STATINODE, > > > .procname = "inode-state", > > > .data = &inodes_stat, > > > .maxlen = 7*sizeof(int), <----- > > > .mode = 0444, > > > .proc_handler = &proc_dointvec, > > > }, > > > > > > akpm:/home/akpm> cat /proc/sys/fs/inode-state > > > 608039 178454 0 0 0 0 0 > > > > > > So it _is_ used: to present those five zeroes. I think this is > > > for back-compatibility with some cretaceous-era kernel. > > > > ah, gotcha. well, i'll leave this up to someone else to do > > anything with if they are so inclined. > > There's little to be done, except possibly put a /* comment */ on > the struct's dummy line so that we don't go thru this again in N > years. so, just to clarify, what *is* the value of those trailing five zeroes? andrew suggests it's to be backward-compatible with an old kernel, which doesn't make much sense to me. it would make more sense to say that that's backward-compatible with some old userspace app that always wants to see seven values and just ignores the last five. in any event, from Documentation/filesystems/proc.txt: "inode-state contains two actual numbers and five dummy values. The numbers are nr_inodes and nr_free_inodes (in order of appearance)." if even the documentation calls them dummy values, do they really have any residual value at this point? and on that note, i'll stop harping on this and move on. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 18:21 ` Robert P. J. Day @ 2007-05-29 18:33 ` Randy Dunlap 2007-05-29 18:44 ` Josh Boyer 0 siblings, 1 reply; 14+ messages in thread From: Randy Dunlap @ 2007-05-29 18:33 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Andrew Morton, Linux Kernel Mailing List, Alexander Viro Robert P. J. Day wrote: > On Tue, 29 May 2007, Randy Dunlap wrote: > >> On Tue, 29 May 2007 14:07:01 -0400 (EDT) Robert P. J. Day wrote: >> >>> On Tue, 29 May 2007, Andrew Morton wrote: >>> >>>> kernel/sysctl.c: >>>> >>>> { >>>> .ctl_name = FS_STATINODE, >>>> .procname = "inode-state", >>>> .data = &inodes_stat, >>>> .maxlen = 7*sizeof(int), <----- >>>> .mode = 0444, >>>> .proc_handler = &proc_dointvec, >>>> }, >>>> >>>> akpm:/home/akpm> cat /proc/sys/fs/inode-state >>>> 608039 178454 0 0 0 0 0 >>>> >>>> So it _is_ used: to present those five zeroes. I think this is >>>> for back-compatibility with some cretaceous-era kernel. >>> ah, gotcha. well, i'll leave this up to someone else to do >>> anything with if they are so inclined. >> There's little to be done, except possibly put a /* comment */ on >> the struct's dummy line so that we don't go thru this again in N >> years. > > so, just to clarify, what *is* the value of those trailing five > zeroes? andrew suggests it's to be backward-compatible with an old > kernel, which doesn't make much sense to me. it would make more sense > to say that that's backward-compatible with some old userspace app > that always wants to see seven values and just ignores the last five. Agreed, it's for compat with some (unknown) userspace app that reads /proc/sys/fs/inode-state and scans for 7 (or more than 2) numbers there. The mantra is "don't break userspace," so we leave the numbers there... > in any event, from Documentation/filesystems/proc.txt: > > "inode-state contains two actual numbers and five dummy values. The > numbers are nr_inodes and nr_free_inodes (in order of appearance)." > > if even the documentation calls them dummy values, do they really have > any residual value at this point? and on that note, i'll stop harping > on this and move on. > > rday -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 18:33 ` Randy Dunlap @ 2007-05-29 18:44 ` Josh Boyer 2007-05-29 19:33 ` Randy Dunlap 0 siblings, 1 reply; 14+ messages in thread From: Josh Boyer @ 2007-05-29 18:44 UTC (permalink / raw) To: Randy Dunlap Cc: Robert P. J. Day, Andrew Morton, Linux Kernel Mailing List, Alexander Viro On 5/29/07, Randy Dunlap <randy.dunlap@oracle.com> wrote: > Robert P. J. Day wrote: > > On Tue, 29 May 2007, Randy Dunlap wrote: > > > >> On Tue, 29 May 2007 14:07:01 -0400 (EDT) Robert P. J. Day wrote: > >> > >>> On Tue, 29 May 2007, Andrew Morton wrote: > >>> > >>>> kernel/sysctl.c: > >>>> > >>>> { > >>>> .ctl_name = FS_STATINODE, > >>>> .procname = "inode-state", > >>>> .data = &inodes_stat, > >>>> .maxlen = 7*sizeof(int), <----- > >>>> .mode = 0444, > >>>> .proc_handler = &proc_dointvec, > >>>> }, > >>>> > >>>> akpm:/home/akpm> cat /proc/sys/fs/inode-state > >>>> 608039 178454 0 0 0 0 0 > >>>> > >>>> So it _is_ used: to present those five zeroes. I think this is > >>>> for back-compatibility with some cretaceous-era kernel. > >>> ah, gotcha. well, i'll leave this up to someone else to do > >>> anything with if they are so inclined. > >> There's little to be done, except possibly put a /* comment */ on > >> the struct's dummy line so that we don't go thru this again in N > >> years. > > > > so, just to clarify, what *is* the value of those trailing five > > zeroes? andrew suggests it's to be backward-compatible with an old > > kernel, which doesn't make much sense to me. it would make more sense > > to say that that's backward-compatible with some old userspace app > > that always wants to see seven values and just ignores the last five. > > Agreed, it's for compat with some (unknown) userspace app that reads > /proc/sys/fs/inode-state and scans for 7 (or more than 2) numbers there. > The mantra is "don't break userspace," so we leave the numbers there... Couldn't you remove the dummy member and just have the proc entry print out 5 dummy zeros? josh ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 18:44 ` Josh Boyer @ 2007-05-29 19:33 ` Randy Dunlap 2007-05-30 6:41 ` Stefan Richter 0 siblings, 1 reply; 14+ messages in thread From: Randy Dunlap @ 2007-05-29 19:33 UTC (permalink / raw) To: Josh Boyer Cc: Robert P. J. Day, Andrew Morton, Linux Kernel Mailing List, Alexander Viro On Tue, 29 May 2007 13:44:42 -0500 Josh Boyer wrote: > On 5/29/07, Randy Dunlap <randy.dunlap@oracle.com> wrote: > > Robert P. J. Day wrote: > > > On Tue, 29 May 2007, Randy Dunlap wrote: > > > > > >> On Tue, 29 May 2007 14:07:01 -0400 (EDT) Robert P. J. Day wrote: > > >> > > >>> On Tue, 29 May 2007, Andrew Morton wrote: > > >>> > > >>>> kernel/sysctl.c: > > >>>> > > >>>> { > > >>>> .ctl_name = FS_STATINODE, > > >>>> .procname = "inode-state", > > >>>> .data = &inodes_stat, > > >>>> .maxlen = 7*sizeof(int), <----- > > >>>> .mode = 0444, > > >>>> .proc_handler = &proc_dointvec, > > >>>> }, > > >>>> > > >>>> akpm:/home/akpm> cat /proc/sys/fs/inode-state > > >>>> 608039 178454 0 0 0 0 0 > > >>>> > > >>>> So it _is_ used: to present those five zeroes. I think this is > > >>>> for back-compatibility with some cretaceous-era kernel. > > >>> ah, gotcha. well, i'll leave this up to someone else to do > > >>> anything with if they are so inclined. > > >> There's little to be done, except possibly put a /* comment */ on > > >> the struct's dummy line so that we don't go thru this again in N > > >> years. > > > > > > so, just to clarify, what *is* the value of those trailing five > > > zeroes? andrew suggests it's to be backward-compatible with an old > > > kernel, which doesn't make much sense to me. it would make more sense > > > to say that that's backward-compatible with some old userspace app > > > that always wants to see seven values and just ignores the last five. > > > > Agreed, it's for compat with some (unknown) userspace app that reads > > /proc/sys/fs/inode-state and scans for 7 (or more than 2) numbers there. > > The mantra is "don't break userspace," so we leave the numbers there... > > Couldn't you remove the dummy member and just have the proc entry > print out 5 dummy zeros? In theory someone could do that, but it would (a) require a comment so that someone else didn't try to remove it 5 years from now and (b) require more proc/sysctl code just for that one sysctl entry since the sysctl entries are all table-driven right now and printing 5 zeros would require a new /proc/sys handler for just this one sysctl. --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 19:33 ` Randy Dunlap @ 2007-05-30 6:41 ` Stefan Richter 2007-05-30 11:29 ` Adrian Bunk 0 siblings, 1 reply; 14+ messages in thread From: Stefan Richter @ 2007-05-30 6:41 UTC (permalink / raw) To: linux-kernel Cc: Josh Boyer, Robert P. J. Day, Andrew Morton, Alexander Viro, Randy Dunlap, Alexey Dobriyan From: Stefan Richter <stefanr@s5r6.in-berlin.de> Subject: fs: clarify "dummy" member in struct inodes_stat_t Found by Robert P. J. Day: The role of inodes_stat_t.dummy wasn't clear and one might be tempted to remove it. Give it a better name and add a comment. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> --- Only quickly compile-tested. Index: linux/include/linux/fs.h =================================================================== --- linux.orig/include/linux/fs.h +++ linux/include/linux/fs.h @@ -44,7 +44,7 @@ extern int get_max_files(void); struct inodes_stat_t { int nr_inodes; int nr_unused; - int dummy[5]; + int reserved[5]; /* for sysctl and procfs ABI compatibility */ }; extern struct inodes_stat_t inodes_stat; -- Stefan Richter -=====-=-=== -=-= ====- http://arcgraph.de/sr/ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-30 6:41 ` Stefan Richter @ 2007-05-30 11:29 ` Adrian Bunk 2007-05-30 11:38 ` Robert P. J. Day 0 siblings, 1 reply; 14+ messages in thread From: Adrian Bunk @ 2007-05-30 11:29 UTC (permalink / raw) To: Stefan Richter Cc: linux-kernel, Josh Boyer, Robert P. J. Day, Andrew Morton, Alexander Viro, Randy Dunlap, Alexey Dobriyan On Wed, May 30, 2007 at 08:41:56AM +0200, Stefan Richter wrote: > From: Stefan Richter <stefanr@s5r6.in-berlin.de> > Subject: fs: clarify "dummy" member in struct inodes_stat_t > > Found by Robert P. J. Day: The role of inodes_stat_t.dummy wasn't clear > and one might be tempted to remove it. Give it a better name and add a > comment. > > Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> > --- > Only quickly compile-tested. > > Index: linux/include/linux/fs.h > =================================================================== > --- linux.orig/include/linux/fs.h > +++ linux/include/linux/fs.h > @@ -44,7 +44,7 @@ extern int get_max_files(void); > struct inodes_stat_t { > int nr_inodes; > int nr_unused; > - int dummy[5]; > + int reserved[5]; /* for sysctl and procfs ABI compatibility */ > }; > extern struct inodes_stat_t inodes_stat; Considering that we export this struct to usespace, I don't think renaming a member without a good reason is a good idea (but adding a comment makes sense). > Stefan Richter cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-30 11:29 ` Adrian Bunk @ 2007-05-30 11:38 ` Robert P. J. Day 2007-05-30 19:01 ` [trivial PATCH, updated] fs: clarify "dummy" member in struct inodes_stat_t Stefan Richter 0 siblings, 1 reply; 14+ messages in thread From: Robert P. J. Day @ 2007-05-30 11:38 UTC (permalink / raw) To: Adrian Bunk Cc: Stefan Richter, linux-kernel, Josh Boyer, Andrew Morton, Alexander Viro, Randy Dunlap, Alexey Dobriyan On Wed, 30 May 2007, Adrian Bunk wrote: > On Wed, May 30, 2007 at 08:41:56AM +0200, Stefan Richter wrote: > > From: Stefan Richter <stefanr@s5r6.in-berlin.de> > > Subject: fs: clarify "dummy" member in struct inodes_stat_t > > > > Found by Robert P. J. Day: The role of inodes_stat_t.dummy wasn't clear > > and one might be tempted to remove it. Give it a better name and add a > > comment. > > > > Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> > > --- > > Only quickly compile-tested. > > > > Index: linux/include/linux/fs.h > > =================================================================== > > --- linux.orig/include/linux/fs.h > > +++ linux/include/linux/fs.h > > @@ -44,7 +44,7 @@ extern int get_max_files(void); > > struct inodes_stat_t { > > int nr_inodes; > > int nr_unused; > > - int dummy[5]; > > + int reserved[5]; /* for sysctl and procfs ABI compatibility */ > > }; > > extern struct inodes_stat_t inodes_stat; > > Considering that we export this struct to usespace, I don't think > renaming a member without a good reason is a good idea (but adding a > comment makes sense). that makes sense but, given that that array is guaranteed to always contain zeroes and therefore no useful information, it might be amusing to rename it just to see what userspace apps break because they're referring to it by name for what should be no good reason. no, no, just kidding ... that would be cruel. :-) rday p.s. i apologize for this thread having gotten this involved -- i thought i was submitting a fairly innocuous patch. live and learn. -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page ======================================================================== ^ permalink raw reply [flat|nested] 14+ messages in thread
* [trivial PATCH, updated] fs: clarify "dummy" member in struct inodes_stat_t 2007-05-30 11:38 ` Robert P. J. Day @ 2007-05-30 19:01 ` Stefan Richter 2007-05-30 19:16 ` Randy Dunlap 0 siblings, 1 reply; 14+ messages in thread From: Stefan Richter @ 2007-05-30 19:01 UTC (permalink / raw) To: trivial Cc: Adrian Bunk, linux-kernel, Josh Boyer, Andrew Morton, Alexander Viro, Randy Dunlap, Alexey Dobriyan, Robert P. J. Day On 30 May, Robert P. J. Day wrote: > On Wed, 30 May 2007, Adrian Bunk wrote: >> Considering that we export this struct to usespace, I don't think >> renaming a member without a good reason is a good idea (but adding a >> comment makes sense). [...] > i thought i was submitting a fairly innocuous patch. live and learn. I've could have seen that it is defined outside #ifdef __KERNEL__. From: Stefan Richter <stefanr@s5r6.in-berlin.de> Subject: fs: clarify "dummy" member in struct inodes_stat_t Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> --- linux.orig/include/linux/fs.h +++ linux/include/linux/fs.h @@ -44,7 +44,7 @@ extern int get_max_files(void); struct inodes_stat_t { int nr_inodes; int nr_unused; - int dummy[5]; + int dummy[5]; /* padding for sysctl ABI compatibility */ }; extern struct inodes_stat_t inodes_stat; -- Stefan Richter -=====-=-=== -=-= ====- http://arcgraph.de/sr/ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [trivial PATCH, updated] fs: clarify "dummy" member in struct inodes_stat_t 2007-05-30 19:01 ` [trivial PATCH, updated] fs: clarify "dummy" member in struct inodes_stat_t Stefan Richter @ 2007-05-30 19:16 ` Randy Dunlap 0 siblings, 0 replies; 14+ messages in thread From: Randy Dunlap @ 2007-05-30 19:16 UTC (permalink / raw) To: Stefan Richter Cc: trivial, Adrian Bunk, linux-kernel, Josh Boyer, Andrew Morton, Alexander Viro, Alexey Dobriyan, Robert P. J. Day Stefan Richter wrote: > On 30 May, Robert P. J. Day wrote: >> On Wed, 30 May 2007, Adrian Bunk wrote: >>> Considering that we export this struct to usespace, I don't think >>> renaming a member without a good reason is a good idea (but adding a >>> comment makes sense). > [...] >> i thought i was submitting a fairly innocuous patch. live and learn. > > I've could have seen that it is defined outside #ifdef __KERNEL__. > > > From: Stefan Richter <stefanr@s5r6.in-berlin.de> > Subject: fs: clarify "dummy" member in struct inodes_stat_t Acked-by: Randy Dunlap <randy.dunlap@oracle.com> > Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> > --- linux.orig/include/linux/fs.h > +++ linux/include/linux/fs.h > @@ -44,7 +44,7 @@ extern int get_max_files(void); > struct inodes_stat_t { > int nr_inodes; > int nr_unused; > - int dummy[5]; > + int dummy[5]; /* padding for sysctl ABI compatibility */ > }; > extern struct inodes_stat_t inodes_stat; > > -- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t. 2007-05-29 17:11 [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t Robert P. J. Day 2007-05-29 18:00 ` Andrew Morton @ 2007-05-29 18:04 ` Alexey Dobriyan 1 sibling, 0 replies; 14+ messages in thread From: Alexey Dobriyan @ 2007-05-29 18:04 UTC (permalink / raw) To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Andrew Morton, Alexander Viro On Tue, May 29, 2007 at 01:11:07PM -0400, Robert P. J. Day wrote: > Delete the apparently unused array "int dummy[5]" from struct > inodes_stat_t. > no idea what that array is for, but no one seems to care about it. > removal compile-tested on x86 with "make allyesconfig" and nobody > misses it (unless it's used for padding of some kind). > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -44,7 +44,6 @@ extern int get_max_files(void); > struct inodes_stat_t { > int nr_inodes; > int nr_unused; > - int dummy[5]; > }; > extern struct inodes_stat_t inodes_stat; Please... static ctl_table fs_table[] = { { .ctl_name = FS_NRINODE, .procname = "inode-nr", .data = &inodes_stat, .maxlen = 2*sizeof(int), .mode = 0444, .proc_handler = &proc_dointvec, }, { .ctl_name = FS_STATINODE, .procname = "inode-state", .data = &inodes_stat, .maxlen = 7*sizeof(int), ^^^ ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-05-30 19:21 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-05-29 17:11 [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t Robert P. J. Day 2007-05-29 18:00 ` Andrew Morton 2007-05-29 18:07 ` Robert P. J. Day 2007-05-29 18:19 ` Randy Dunlap 2007-05-29 18:21 ` Robert P. J. Day 2007-05-29 18:33 ` Randy Dunlap 2007-05-29 18:44 ` Josh Boyer 2007-05-29 19:33 ` Randy Dunlap 2007-05-30 6:41 ` Stefan Richter 2007-05-30 11:29 ` Adrian Bunk 2007-05-30 11:38 ` Robert P. J. Day 2007-05-30 19:01 ` [trivial PATCH, updated] fs: clarify "dummy" member in struct inodes_stat_t Stefan Richter 2007-05-30 19:16 ` Randy Dunlap 2007-05-29 18:04 ` [PATCH] FILESYSTEMS: Delete unused "int dummy[5]" from inodes_stat_t Alexey Dobriyan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox