]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - fs/aufs/hbl.h
6db65b16b08a23047cda057985cd129992be36d3
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2017-2019 Junjiro R. Okajima
5 * This program, aufs is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * helpers for hlist_bl.h
23 #ifndef __AUFS_HBL_H__
24 #define __AUFS_HBL_H__
28 #include <linux/list_bl.h>
30 static inline void au_hbl_add(struct hlist_bl_node
*node
,
31 struct hlist_bl_head
*hbl
)
34 hlist_bl_add_head(node
, hbl
);
38 static inline void au_hbl_del(struct hlist_bl_node
*node
,
39 struct hlist_bl_head
*hbl
)
46 #define au_hbl_for_each(pos, head) \
47 for (pos = hlist_bl_first(head); \
51 static inline unsigned long au_hbl_count(struct hlist_bl_head
*hbl
)
54 struct hlist_bl_node
*pos
;
58 au_hbl_for_each(pos
, hbl
)
64 #endif /* __KERNEL__ */
65 #endif /* __AUFS_HBL_H__ */