Re: [PATCH 1/2] LogFS proper

2007-05-09 Thread Jan Engelhardt
On May 8 2007 20:17, Evgeniy Polyakov wrote: >> > >> +static int __logfs_readdir(struct file *file, void *buf, filldir_t >> > >> filldir) >> > >> +{ >> > >> + err = read_dir(dir, &dd, pos); >> > >> + if (err == -EOF) >> > >> + break; >> > > >> > >

Re: [PATCH 1/2] LogFS proper

2007-05-09 Thread Jörn Engel
On Tue, 8 May 2007 17:01:01 -0700, Greg KH wrote: > On Wed, May 09, 2007 at 01:10:09AM +0200, J??rn Engel wrote: > > > > The remaining question is how to deal with kernel-only code that uses > > be64. Convert that to __be64 as well? Or introduce be64 in > > include/linix/types.h instead? > > I

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Greg KH
On Wed, May 09, 2007 at 01:10:09AM +0200, J??rn Engel wrote: > > The remaining question is how to deal with kernel-only code that uses > be64. Convert that to __be64 as well? Or introduce be64 in > include/linix/types.h instead? I say leave it alone for now, it's not that common :) thanks, gr

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Jörn Engel
On Tue, 8 May 2007 15:52:53 -0700, Greg KH wrote: > On Tue, May 08, 2007 at 10:58:27PM +0200, J??rn Engel wrote: > > > > Basically I prefer be64 over __be64 for similar reasons that most people > > prefer u64 over __u64. Others prefer uint64_t over both, but C99 hasn't > > defined beint64_t yet.

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Jörn Engel
On Wed, 9 May 2007 00:44:14 +0200, Ingo Oeser wrote: > On Tuesday 08 May 2007, Thomas Gleixner wrote: > > On Tue, 2007-05-08 at 00:00 +0200, Jörn Engel wrote: > > > +#define packed __attribute__((__packed__)) > > > > Please use the __attribute__((__packed__)) on your structs instead of > > creatin

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Greg KH
On Tue, May 08, 2007 at 10:58:27PM +0200, J??rn Engel wrote: > On Tue, 8 May 2007 22:15:18 +0300, Pekka Enberg wrote: > > On 5/8/07, J??rn Engel <[EMAIL PROTECTED]> wrote: > > >> > +typedef __be16 be16; > > >> > +typedef __be32 be32; > > >> > +typedef __be64 be64; > > >> > > >> Why are those typede

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Ingo Oeser
On Tuesday 08 May 2007, Thomas Gleixner wrote: > On Tue, 2007-05-08 at 00:00 +0200, Jörn Engel wrote: > > +#define packed __attribute__((__packed__)) > > Please use the __attribute__((__packed__)) on your structs instead of > creating some extra "needs lookup" magic. Don't worry, we have __packed

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Jörn Engel
On Tue, 8 May 2007 22:58:26 +0200, Thomas Gleixner wrote: > On Tue, 2007-05-08 at 22:25 +0200, Jörn Engel wrote: > > > > > > Kernel doc comments as: > > > > > > /** > > > * struct hrtimer - the basic hrtimer structure > > > * @node: red black tree node for time ordered insertion > > > *

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Jörn Engel
On Tue, 8 May 2007 22:15:18 +0300, Pekka Enberg wrote: > On 5/8/07, Jörn Engel <[EMAIL PROTECTED]> wrote: > >> > +typedef __be16 be16; > >> > +typedef __be32 be32; > >> > +typedef __be64 be64; > >> > >> Why are those typedefs necessary ? > > > >Not strictly. I tend to use the be* types fairly ofte

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Thomas Gleixner
On Tue, 2007-05-08 at 22:25 +0200, Jörn Engel wrote: > > > > Please comment the structure with kernel doc comments and avoid the tail > > > > comments. > > > > > > I'd like to hear your rationale. > > > > Kernel doc comments as: > > > > /** > > * struct hrtimer - the basic hrtimer structure > >

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Jörn Engel
Before I forget this again: thanks for the review! It really is appreciated. On Tue, 8 May 2007 20:00:41 +0200, Thomas Gleixner wrote: > On Tue, 2007-05-08 at 18:32 +0200, Jörn Engel wrote: > > > Please sort includes alphabetically and seperate the > > > #include from the #include ones > > >

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Pekka Enberg
On 5/8/07, Jörn Engel <[EMAIL PROTECTED]> wrote: > > +typedef __be16 be16; > > +typedef __be32 be32; > > +typedef __be64 be64; > > Why are those typedefs necessary ? Not strictly. I tend to use the be* types fairly often in the code and simply grew weary of seeing the underscores. Any objectio

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Thomas Gleixner
On Tue, 2007-05-08 at 18:32 +0200, Jörn Engel wrote: > > Please sort includes alphabetically and seperate the > > #include from the #include ones > > Sort: will do. > Seperation: Any particular reason for that? Easier to see the different categories > > > +typedef __be16 be16; > > > +typedef

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Evgeniy Polyakov
On Tue, May 08, 2007 at 05:54:41PM +0200, Thomas Gleixner ([EMAIL PROTECTED]) wrote: > On Tue, 2007-05-08 at 14:46 +0200, Jan Engelhardt wrote: > > >> +static int __logfs_readdir(struct file *file, void *buf, filldir_t > > >> filldir) > > >> +{ > > >> +err = read_dir(dir, &dd, pos

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Thomas Gleixner
On Tue, 2007-05-08 at 14:46 +0200, Jan Engelhardt wrote: > >> +static int __logfs_readdir(struct file *file, void *buf, filldir_t > >> filldir) > >> +{ > >> + err = read_dir(dir, &dd, pos); > >> + if (err == -EOF) > >> + break; > > > > -EOF results in a retur

Re: [PATCH 1/2] LogFS proper

2007-05-08 Thread Jan Engelhardt
On May 8 2007 09:22, Thomas Gleixner wrote: >> @@ -0,0 +1,14 @@ >> +obj-$(CONFIG_LOGFS) += logfs.o >> + >> +logfs-y += compr.o >> +logfs-y += dir.o >> +logfs-y += file.o >> +logfs-y += gc.o >> +logfs-y += inode.o >> +logfs-y += journal.o >> +logfs-y += memtree.o >> +logfs-y