| To: | Nathan Scott <nathans@xxxxxxx> |
|---|---|
| Subject: | Re: [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean |
| From: | Richard Knutsson <ricknu-0@xxxxxxxxxxxxxx> |
| Date: | Wed, 06 Sep 2006 02:23:09 +0200 |
| Cc: | akpm@xxxxxxxx, xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <20060906091407.M3365803@xxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <44F833C9.1000208@xxxxxxxxxxxxxx> <20060904150241.I3335706@xxxxxxxxxxxxxxxxxxxxxxxx> <44FBFEE9.4010201@xxxxxxxxxxxxxx> <20060905130557.A3334712@xxxxxxxxxxxxxxxxxxxxxxxx> <44FD71C6.20006@xxxxxxxxxxxxxx> <20060906091407.M3365803@xxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) |
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 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."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. :) 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 :) |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | XFS Journal on md device, Chris Seufert |
|---|---|
| Next by Date: | Re: race in xfs_rename? (fwd), David Chinner |
| Previous by Thread: | Re: [xfs-masters] Re: [PATCH 2.6.18-rc4-mm3 2/2] fs/xfs: Converting into generic boolean, Nathan Scott |
| Next by Thread: | XFS Journal on md device, Chris Seufert |
| Indexes: | [Date] [Thread] [Top] [All Lists] |