lockd: define host_for_each{_safe} macros
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 14 Dec 2010 15:05:03 +0000 (15:05 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:26 +0000 (12:37 -0500)
commitb113746888c260a02f6ae1e92b0b9ef7e9c38993
treead9e89b3e5bae544d3a9b04bc8feb02d2ee4b17c
parentbf2695516db982e90a22fc94f93491b481796bb1
lockd: define host_for_each{_safe} macros

We've got a lot of loops like this, and I find them a little easier to
read with the macros.  More such loops are coming.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
[ cel: Forward-ported to 2.6.37 ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/host.c