| To: | Richard Knutsson <ricknu-0@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean |
| From: | Nathan Scott <nathans@xxxxxxx> |
| Date: | Wed, 6 Sep 2006 09:14:08 +1000 |
| Cc: | akpm@xxxxxxxx, xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <44FD71C6.20006@xxxxxxxxxxxxxx>; from ricknu-0@xxxxxxxxxxxxxx on Tue, Sep 05, 2006 at 02:47:02PM +0200 |
| References: | <44F833C9.1000208@xxxxxxxxxxxxxx> <20060904150241.I3335706@xxxxxxxxxxxxxxxxxxxxxxxx> <44FBFEE9.4010201@xxxxxxxxxxxxxx> <20060905130557.A3334712@xxxxxxxxxxxxxxxxxxxxxxxx> <44FD71C6.20006@xxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5i |
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | race in xfs_rename? (fwd), Nathan Scott |
|---|---|
| Next by Date: | Re: Kernel Ooops, Chris Seufert |
| Previous by Thread: | race in xfs_rename? (fwd), Nathan Scott |
| Next by Thread: | Re: [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean, Richard Knutsson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |