fed up with those stupid warnings
[mmotm.git] / fs / reiser4 / seal.h
blob19d5d521f75c2e4ab89336169699184f72e0a7f3
1 /* Copyright 2002, 2003 by Hans Reiser, licensing governed by reiser4/README */
3 /* Declaration of seals: "weak" tree pointers. See seal.c for comments. */
5 #ifndef __SEAL_H__
6 #define __SEAL_H__
8 #include "forward.h"
9 #include "debug.h"
10 #include "dformat.h"
11 #include "key.h"
12 #include "coord.h"
14 /* for __u?? types */
15 /*#include <linux/types.h>*/
17 /* seal. See comment at the top of seal.c */
18 typedef struct seal_s {
19 /* version of znode recorder at the time of seal creation */
20 __u64 version;
21 /* block number of znode attached to this seal */
22 reiser4_block_nr block;
23 #if REISER4_DEBUG
24 /* coord this seal is attached to. For debugging. */
25 coord_t coord1;
26 /* key this seal is attached to. For debugging. */
27 reiser4_key key;
28 #endif
29 } seal_t;
31 extern void reiser4_seal_init(seal_t *, const coord_t *, const reiser4_key *);
32 extern void reiser4_seal_done(seal_t *);
33 extern int reiser4_seal_is_set(const seal_t *);
34 extern int reiser4_seal_validate(seal_t *, coord_t *,
35 const reiser4_key *, lock_handle * ,
36 znode_lock_mode mode, znode_lock_request request);
38 /* __SEAL_H__ */
39 #endif
41 /* Make Linus happy.
42 Local variables:
43 c-indentation-style: "K&R"
44 mode-name: "LC"
45 c-basic-offset: 8
46 tab-width: 8
47 fill-column: 120
48 End: