]> git.baikalelectronics.ru Git - kernel.git/commit
Use list_first_entry in locks_wake_up_blocks
authorPavel Emelyanov <xemul@openvz.org>
Wed, 19 Sep 2007 12:44:07 +0000 (16:44 +0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 9 Oct 2007 22:32:45 +0000 (18:32 -0400)
commit667db469a9116ea53fbe36efe9a9efc7fc0fb977
treee522f8d83b439442aeb8c1b9c2a94941f6a95b1a
parent7b17f6126ab7084cca0cdcdb0c2f95c9d74a1522
Use list_first_entry in locks_wake_up_blocks

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 <xemul@openvz.org>
fs/locks.c