2 * Copyright (C) 2010-2017 Junjiro R. Okajima
4 * This program, aufs is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * dynamically customizable operations (for regular files only)
22 #ifndef __AUFS_DYNOP_H__
23 #define __AUFS_DYNOP_H__
28 #include <linux/kref.h>
30 enum {AuDy_AOP
, AuDyLast
};
36 const struct address_space_operations
*dy_haop
;
42 struct hlist_bl_node dk_hnode
;
43 struct rcu_head dk_rcu
;
45 struct au_dynop dk_op
;
48 * during I am in the branch local array, kref is gotten. when the
49 * branch is removed, kref is put.
54 /* stop unioning since their sizes are very different from each other */
56 struct au_dykey da_key
;
57 struct address_space_operations da_op
; /* not const */
60 /* ---------------------------------------------------------------------- */
64 void au_dy_put(struct au_dykey
*key
);
65 int au_dy_iaop(struct inode
*inode
, aufs_bindex_t bindex
,
66 struct inode
*h_inode
);
67 int au_dy_irefresh(struct inode
*inode
);
68 void au_dy_arefresh(int do_dio
);
70 void __init
au_dy_init(void);
73 #endif /* __KERNEL__ */
74 #endif /* __AUFS_DYNOP_H__ */