From: Olaf Kirch Date: Wed, 4 Oct 2006 09:15:59 +0000 (-0700) Subject: [PATCH] knfsd: lockd: make nlm_traverse_* more flexible X-Git-Tag: v2.6.19-rc1~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2af793db02d2c2f677bdb5bf8e0efdcbf9c0256;p=pandora-kernel.git [PATCH] knfsd: lockd: make nlm_traverse_* more flexible This patch makes nlm_traverse{locks,blocks,shares} and friends use a function pointer rather than a "action" enum. This function pointer is given two nlm_hosts (one given by the caller, the other taken from the lock/block/share currently visited), and is free to do with them as it wants. If it returns a non-zero value, the lockd/block/share is released. Signed-off-by: Olaf Kirch Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed