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