diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-28 22:17:22 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-28 22:17:22 +0000 |
commit | a13a7e762ef3dc8ab0824ee1ffac2c9aac6ef5ec (patch) | |
tree | 05e0320ae1cb708df822ccf57fee458dacf84036 /sys/xfs/xfs_node-bsd.c | |
parent | a66c971a33649b54c477de18433901a9fa704860 (diff) |
avoid bypassing sys/queue.h in many places in the kernel.
many assumptions were made about the way the various list types are
implemented.
lots of suggestions and help from otto and miod.
ok otto@
Diffstat (limited to 'sys/xfs/xfs_node-bsd.c')
-rw-r--r-- | sys/xfs/xfs_node-bsd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/xfs/xfs_node-bsd.c b/sys/xfs/xfs_node-bsd.c index d5440f5635f..306abdc970d 100644 --- a/sys/xfs/xfs_node-bsd.c +++ b/sys/xfs/xfs_node-bsd.c @@ -31,6 +31,7 @@ * SUCH DAMAGE. */ +#include <sys/queue.h> #include <xfs/xfs_locl.h> #include <xfs/xfs_common.h> #include <xfs/xfs_fs.h> @@ -275,13 +276,6 @@ free_all_xfs_nodes(struct xfs *xfsp, int flags, int unmountp) return error; } -#ifndef LIST_FOREACH -#define LIST_FOREACH(var, head, field) \ - for ((var) = ((head)->lh_first); \ - (var); \ - (var) = ((var)->field.le_next)) -#endif - void vattr2xfs_attr(const struct vattr *va, struct xfs_attr *xa) { |