* Re: [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean [not found] ` <44FD71C6.20006@student.ltu.se> @ 2006-09-05 23:14 ` Nathan Scott 2006-09-06 0:23 ` Richard Knutsson 0 siblings, 1 reply; 2+ messages in thread From: Nathan Scott @ 2006-09-05 23:14 UTC (permalink / raw) To: Richard Knutsson; +Cc: akpm, xfs, linux-kernel On Tue, Sep 05, 2006 at 02:47:02PM +0200, Richard Knutsson wrote: > Just the notion: "your" guys was the ones to make those to boolean(_t), Sort of, we actually inherited that type from IRIX where it is defined in <sys/types.h>. > and now you seem to want to patch them away because I tried to make them > more general. Nah, I just don't see the value either way, and see it as another code churn exercise. > So, is the: > B_FALSE -> false > B_TRUE -> true > ok by you? Personally, no. Thats code churn with no value IMO. > >"int needflush;" is just as readable (some would argue moreso) as > >"bool needflush;" and thats pretty much the level of use in XFS - > > > How are you sure "needflush" is, for example, not a counter? Well, that would be named "flushcount" or some such thing. And you would be able to tell that it was a counter by the way its used in the surrounding code. This discussion really isn't going anywhere useful; I think you need to accept that not everyone sees value in a boolean type. :) cheers. -- Nathan ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean 2006-09-05 23:14 ` [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean Nathan Scott @ 2006-09-06 0:23 ` Richard Knutsson 0 siblings, 0 replies; 2+ messages in thread From: Richard Knutsson @ 2006-09-06 0:23 UTC (permalink / raw) To: Nathan Scott; +Cc: akpm, xfs, linux-kernel Nathan Scott wrote: >On Tue, Sep 05, 2006 at 02:47:02PM +0200, Richard Knutsson wrote: > > >>Just the notion: "your" guys was the ones to make those to boolean(_t), >> >> > >Sort of, we actually inherited that type from IRIX where it is >defined in <sys/types.h>. > > Oh, ok >>>"int needflush;" is just as readable (some would argue moreso) as >>>"bool needflush;" and thats pretty much the level of use in XFS - >>> >>> >>> >>How are you sure "needflush" is, for example, not a counter? >> >> > >Well, that would be named "flushcount" or some such thing. And you >would be able to tell that it was a counter by the way its used in >the surrounding code. > > True, thinking more of when you have a quick look at the headers, but "flushcount" would be a more logical name in such a case. >This discussion really isn't going anywhere useful; I think you need >to accept that not everyone sees value in a boolean type. :) > > Well, can you blame me for trying? ;) But the more important thing is to clean up the boolean-type and FALSE/TRUE mess in the kernel. >cheers. > > Thank you for your time and happy coding :) ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-06 0:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <44F833C9.1000208@student.ltu.se>
[not found] ` <20060904150241.I3335706@wobbly.melbourne.sgi.com>
[not found] ` <44FBFEE9.4010201@student.ltu.se>
[not found] ` <20060905130557.A3334712@wobbly.melbourne.sgi.com>
[not found] ` <44FD71C6.20006@student.ltu.se>
2006-09-05 23:14 ` [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean Nathan Scott
2006-09-06 0:23 ` Richard Knutsson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox