Re: [PATCH] Use list_first_entry in locks_wake_up_blocks

2007-09-19 Thread J. Bruce Fields
On Wed, Sep 19, 2007 at 04:44:07PM +0400, Pavel Emelyanov wrote: > This routine deletes all the elements from the list > with the "while (!list_empty())" loop, and we already > have a list_first_entry() macro to help it look nicer :) OK. --b. > > Signed-off-by: Pavel Emelyanov <[EMAIL

[PATCH] Use list_first_entry in locks_wake_up_blocks

2007-09-19 Thread Pavel Emelyanov
This routine deletes all the elements from the list with the "while (!list_empty())" loop, and we already have a list_first_entry() macro to help it look nicer :) Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> --- diff --git a/fs/locks.c b/fs/locks.c index 746dc70..5fa072a 100644 ---

[PATCH] Use list_first_entry in locks_wake_up_blocks

2007-09-19 Thread Pavel Emelyanov
This routine deletes all the elements from the list with the while (!list_empty()) loop, and we already have a list_first_entry() macro to help it look nicer :) Signed-off-by: Pavel Emelyanov [EMAIL PROTECTED] --- diff --git a/fs/locks.c b/fs/locks.c index 746dc70..5fa072a 100644 ---

Re: [PATCH] Use list_first_entry in locks_wake_up_blocks

2007-09-19 Thread J. Bruce Fields
On Wed, Sep 19, 2007 at 04:44:07PM +0400, Pavel Emelyanov wrote: This routine deletes all the elements from the list with the while (!list_empty()) loop, and we already have a list_first_entry() macro to help it look nicer :) OK. --b. Signed-off-by: Pavel Emelyanov [EMAIL PROTECTED]