1
2
3
4
5
6
7
8
9
10
11#ifndef _NILFS_BTNODE_H
12#define _NILFS_BTNODE_H
13
14#include <linux/types.h>
15#include <linux/buffer_head.h>
16#include <linux/fs.h>
17#include <linux/backing-dev.h>
18
19
20
21
22
23
24
25
26struct nilfs_btnode_chkey_ctxt {
27 __u64 oldkey;
28 __u64 newkey;
29 struct buffer_head *bh;
30 struct buffer_head *newbh;
31};
32
33void nilfs_btnode_cache_clear(struct address_space *);
34struct buffer_head *nilfs_btnode_create_block(struct address_space *btnc,
35 __u64 blocknr);
36int nilfs_btnode_submit_block(struct address_space *, __u64, sector_t, int,
37 int, struct buffer_head **, sector_t *);
38void nilfs_btnode_delete(struct buffer_head *);
39int nilfs_btnode_prepare_change_key(struct address_space *,
40 struct nilfs_btnode_chkey_ctxt *);
41void nilfs_btnode_commit_change_key(struct address_space *,
42 struct nilfs_btnode_chkey_ctxt *);
43void nilfs_btnode_abort_change_key(struct address_space *,
44 struct nilfs_btnode_chkey_ctxt *);
45
46#endif
47