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