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)
commitf0c1cd0eaf0b127356c2c09e40305453bc361b0f
treee522f8d83b439442aeb8c1b9c2a94941f6a95b1a
parent02888f41e9d7fa95d1f5b2f76e0f0af6ea8198cc
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