Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-21 Thread Christoph Hellwig
On Sun, May 20, 2007 at 04:20:10PM +0400, Cyrill Gorcunov wrote: > I almost have completed UDF style conversation (the only thing to do > is to check all I've changed). And I've been striked down by the simple > question: the conversion I've done is over 2.6.22-rc1 but meantime in -mm > tree two

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-21 Thread Jan Kara
On Sun 20-05-07 16:20:10, Cyrill Gorcunov wrote: > [Christoph Hellwig - Wed, May 16, 2007 at 06:56:00PM +0100] > | On Wed, May 16, 2007 at 09:52:57PM +0400, Cyrill Gorcunov wrote: > | > I've that documants even printed ;) Actually they are _very-very_ big > | > indeed. I don't know may be just try

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-21 Thread Jan Kara
On Sun 20-05-07 16:20:10, Cyrill Gorcunov wrote: [Christoph Hellwig - Wed, May 16, 2007 at 06:56:00PM +0100] | On Wed, May 16, 2007 at 09:52:57PM +0400, Cyrill Gorcunov wrote: | I've that documants even printed ;) Actually they are _very-very_ big | indeed. I don't know may be just try to

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-21 Thread Christoph Hellwig
On Sun, May 20, 2007 at 04:20:10PM +0400, Cyrill Gorcunov wrote: I almost have completed UDF style conversation (the only thing to do is to check all I've changed). And I've been striked down by the simple question: the conversion I've done is over 2.6.22-rc1 but meantime in -mm tree two my

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-20 Thread Cyrill Gorcunov
[Christoph Hellwig - Wed, May 16, 2007 at 06:56:00PM +0100] | On Wed, May 16, 2007 at 09:52:57PM +0400, Cyrill Gorcunov wrote: | > I've that documants even printed ;) Actually they are _very-very_ big | > indeed. I don't know may be just try to bring this code into Linux | > codying style? | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Christoph Hellwig
On Wed, May 16, 2007 at 09:52:57PM +0400, Cyrill Gorcunov wrote: > I've that documants even printed ;) Actually they are _very-very_ big > indeed. I don't know may be just try to bring this code into Linux > codying style? That's probably a good step. And while converting things to a proper

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Cyrill Gorcunov
[Jan Kara - Wed, May 16, 2007 at 07:38:52PM +0200] | > [Christoph Hellwig - Sun, May 13, 2007 at 10:01:26PM +0100] | > | On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: | > | > | > | And please get rid of the UDF_I_* macro for everything you touch, just | > | > | > | put a | > |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Jan Kara
> [Christoph Hellwig - Sun, May 13, 2007 at 10:01:26PM +0100] > | On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: > | > | > | And please get rid of the UDF_I_* macro for everything you touch, > just > | > | > | put a > | > | > | > | > | > | struct udf_inode_info *uip =

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Cyrill Gorcunov
[Christoph Hellwig - Sun, May 13, 2007 at 10:01:26PM +0100] | On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: | > | > | And please get rid of the UDF_I_* macro for everything you touch, just | > | > | put a | > | > | | > | > | struct udf_inode_info *uip = UDF_I(inode); | >

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Cyrill Gorcunov
[Christoph Hellwig - Sun, May 13, 2007 at 10:01:26PM +0100] | On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: | | | And please get rid of the UDF_I_* macro for everything you touch, just | | | put a | | | | | | struct udf_inode_info *uip = UDF_I(inode); | | | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Jan Kara
[Christoph Hellwig - Sun, May 13, 2007 at 10:01:26PM +0100] | On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: | | | And please get rid of the UDF_I_* macro for everything you touch, just | | | put a | | | | | | struct udf_inode_info *uip = UDF_I(inode); | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Cyrill Gorcunov
[Jan Kara - Wed, May 16, 2007 at 07:38:52PM +0200] | [Christoph Hellwig - Sun, May 13, 2007 at 10:01:26PM +0100] | | On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: | | | | And please get rid of the UDF_I_* macro for everything you touch, just | | | | put a | | | | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-16 Thread Christoph Hellwig
On Wed, May 16, 2007 at 09:52:57PM +0400, Cyrill Gorcunov wrote: I've that documants even printed ;) Actually they are _very-very_ big indeed. I don't know may be just try to bring this code into Linux codying style? That's probably a good step. And while converting things to a proper style

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-13 Thread Christoph Hellwig
On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: > | > | And please get rid of the UDF_I_* macro for everything you touch, just > | > | put a > | > | > | > | struct udf_inode_info *uip = UDF_I(inode); > | > | > | > | at the beginning of the function and use the fields

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-13 Thread Christoph Hellwig
On Fri, May 11, 2007 at 03:09:20PM +0400, Cyrill Gorcunov wrote: | | And please get rid of the UDF_I_* macro for everything you touch, just | | put a | | | | struct udf_inode_info *uip = UDF_I(inode); | | | | at the beginning of the function and use the fields directly. | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-12 Thread Cyrill Gorcunov
[Pekka Enberg - Sat, May 12, 2007 at 01:15:14PM +0300] | Hi Cyrill | | On 5/12/07, Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | >you know I've got a question (may be it's stupid) - what a | >sense to discard UDF_I_* macroses? I mean as I see they | >don't slow down execution of the code... | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-12 Thread Pekka Enberg
Hi Cyrill On 5/12/07, Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: you know I've got a question (may be it's stupid) - what a sense to discard UDF_I_* macroses? I mean as I see they don't slow down execution of the code... They make the code harder to read and maintain. - To unsubscribe from

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-12 Thread Cyrill Gorcunov
Christoph, you know I've got a question (may be it's stupid) - what a sense to discard UDF_I_* macroses? I mean as I see they don't slow down execution of the code... Cyrill - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-12 Thread Cyrill Gorcunov
Christoph, you know I've got a question (may be it's stupid) - what a sense to discard UDF_I_* macroses? I mean as I see they don't slow down execution of the code... Cyrill - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-12 Thread Pekka Enberg
Hi Cyrill On 5/12/07, Cyrill Gorcunov [EMAIL PROTECTED] wrote: you know I've got a question (may be it's stupid) - what a sense to discard UDF_I_* macroses? I mean as I see they don't slow down execution of the code... They make the code harder to read and maintain. - To unsubscribe from this

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-12 Thread Cyrill Gorcunov
[Pekka Enberg - Sat, May 12, 2007 at 01:15:14PM +0300] | Hi Cyrill | | On 5/12/07, Cyrill Gorcunov [EMAIL PROTECTED] wrote: | you know I've got a question (may be it's stupid) - what a | sense to discard UDF_I_* macroses? I mean as I see they | don't slow down execution of the code... | | They

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 11:39:56AM +0100] | On Fri, May 11, 2007 at 01:01:27PM +0400, Cyrill Gorcunov wrote: | > [Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] | > | > ... | > | > | And please get rid of the UDF_I_* macro for everything you touch, just | > | put a

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Christoph Hellwig
On Fri, May 11, 2007 at 01:01:27PM +0400, Cyrill Gorcunov wrote: > [Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] > > ... > > | And please get rid of the UDF_I_* macro for everything you touch, just > | put a > | > | struct udf_inode_info *uip = UDF_I(inode); > | > | at the

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] ... | And please get rid of the UDF_I_* macro for everything you touch, just | put a | | struct udf_inode_info *uip = UDF_I(inode); | | at the beginning of the function and use the fields directly. | Actually to properly

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] [..snip..] | And please get rid of the UDF_I_* macro for everything you touch, just | put a | | struct udf_inode_info *uip = UDF_I(inode); | | at the beginning of the function and use the fields directly. | Christoph, I think

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] | On Thu, May 10, 2007 at 03:46:40PM -0700, Andrew Morton wrote: | > On Thu, 10 May 2007 18:00:00 +0400 | > Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: | > | > > This patch adds cheking for granted memory while | > > filling up inode data

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Christoph Hellwig
On Thu, May 10, 2007 at 03:46:40PM -0700, Andrew Morton wrote: > On Thu, 10 May 2007 18:00:00 +0400 > Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > > > This patch adds cheking for granted memory while > > filling up inode data to prevent possible NULL > > pointer usage. If there is not enough

[PATCH] UDF: check for allocated memory for inode data v2

2007-05-11 Thread Cyrill Gorcunov
This patch adds checking for granted memory while filling up inode data to prevent possible NULL pointer usage. If there is not enough memory to fill inode data we just mark it as "bad". Also some whitespace cleanup. Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- Andrew, don't be

[PATCH] UDF: check for allocated memory for inode data v2

2007-05-11 Thread Cyrill Gorcunov
This patch adds checking for granted memory while filling up inode data to prevent possible NULL pointer usage. If there is not enough memory to fill inode data we just mark it as bad. Also some whitespace cleanup. Signed-off-by: Cyrill Gorcunov [EMAIL PROTECTED] --- Andrew, don't be surprised

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Christoph Hellwig
On Thu, May 10, 2007 at 03:46:40PM -0700, Andrew Morton wrote: On Thu, 10 May 2007 18:00:00 +0400 Cyrill Gorcunov [EMAIL PROTECTED] wrote: This patch adds cheking for granted memory while filling up inode data to prevent possible NULL pointer usage. If there is not enough memory to

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] | On Thu, May 10, 2007 at 03:46:40PM -0700, Andrew Morton wrote: | On Thu, 10 May 2007 18:00:00 +0400 | Cyrill Gorcunov [EMAIL PROTECTED] wrote: | | This patch adds cheking for granted memory while | filling up inode data to

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] [..snip..] | And please get rid of the UDF_I_* macro for everything you touch, just | put a | | struct udf_inode_info *uip = UDF_I(inode); | | at the beginning of the function and use the fields directly. | Christoph, I think

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] ... | And please get rid of the UDF_I_* macro for everything you touch, just | put a | | struct udf_inode_info *uip = UDF_I(inode); | | at the beginning of the function and use the fields directly. | Actually to properly

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Christoph Hellwig
On Fri, May 11, 2007 at 01:01:27PM +0400, Cyrill Gorcunov wrote: [Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] ... | And please get rid of the UDF_I_* macro for everything you touch, just | put a | | struct udf_inode_info *uip = UDF_I(inode); | | at the beginning of

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-11 Thread Cyrill Gorcunov
[Christoph Hellwig - Fri, May 11, 2007 at 11:39:56AM +0100] | On Fri, May 11, 2007 at 01:01:27PM +0400, Cyrill Gorcunov wrote: | [Christoph Hellwig - Fri, May 11, 2007 at 08:29:39AM +0100] | | ... | | | And please get rid of the UDF_I_* macro for everything you touch, just | | put a | |

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-10 Thread Cyrill Gorcunov
[Andrew Morton - Thu, May 10, 2007 at 03:46:40PM -0700] [...snip...] | But please let's not add three copies of identical code. Do something like: [...snip...] Thanks for comments, Andrew. Let me rewrite the patch... Cyrill - To unsubscribe from this list: send the line

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-10 Thread Andrew Morton
On Thu, 10 May 2007 18:00:00 +0400 Cyrill Gorcunov <[EMAIL PROTECTED]> wrote: > This patch adds cheking for granted memory while > filling up inode data to prevent possible NULL > pointer usage. If there is not enough memory to > fill inode data we just mark it as "bad". > > Signed-off-by:

[PATCH] UDF: check for allocated memory for inode data

2007-05-10 Thread Cyrill Gorcunov
This patch adds cheking for granted memory while filling up inode data to prevent possible NULL pointer usage. If there is not enough memory to fill inode data we just mark it as "bad". Signed-off-by: Cyrill Gorcunov <[EMAIL PROTECTED]> --- Please check the patch, maybe just marking inode as

[PATCH] UDF: check for allocated memory for inode data

2007-05-10 Thread Cyrill Gorcunov
This patch adds cheking for granted memory while filling up inode data to prevent possible NULL pointer usage. If there is not enough memory to fill inode data we just mark it as bad. Signed-off-by: Cyrill Gorcunov [EMAIL PROTECTED] --- Please check the patch, maybe just marking inode as bad is

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-10 Thread Andrew Morton
On Thu, 10 May 2007 18:00:00 +0400 Cyrill Gorcunov [EMAIL PROTECTED] wrote: This patch adds cheking for granted memory while filling up inode data to prevent possible NULL pointer usage. If there is not enough memory to fill inode data we just mark it as bad. Signed-off-by: Cyrill Gorcunov

Re: [PATCH] UDF: check for allocated memory for inode data

2007-05-10 Thread Cyrill Gorcunov
[Andrew Morton - Thu, May 10, 2007 at 03:46:40PM -0700] [...snip...] | But please let's not add three copies of identical code. Do something like: [...snip...] Thanks for comments, Andrew. Let me rewrite the patch... Cyrill - To unsubscribe from this list: send the line