1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23#ifndef _NILFS_DAT_H
24#define _NILFS_DAT_H
25
26#include <linux/types.h>
27#include <linux/buffer_head.h>
28#include <linux/fs.h>
29
30
31struct nilfs_palloc_req;
32
33int nilfs_dat_translate(struct inode *, __u64, sector_t *);
34
35int nilfs_dat_prepare_alloc(struct inode *, struct nilfs_palloc_req *);
36void nilfs_dat_commit_alloc(struct inode *, struct nilfs_palloc_req *);
37void nilfs_dat_abort_alloc(struct inode *, struct nilfs_palloc_req *);
38int nilfs_dat_prepare_start(struct inode *, struct nilfs_palloc_req *);
39void nilfs_dat_commit_start(struct inode *, struct nilfs_palloc_req *,
40 sector_t);
41int nilfs_dat_prepare_end(struct inode *, struct nilfs_palloc_req *);
42void nilfs_dat_commit_end(struct inode *, struct nilfs_palloc_req *, int);
43void nilfs_dat_abort_end(struct inode *, struct nilfs_palloc_req *);
44int nilfs_dat_prepare_update(struct inode *, struct nilfs_palloc_req *,
45 struct nilfs_palloc_req *);
46void nilfs_dat_commit_update(struct inode *, struct nilfs_palloc_req *,
47 struct nilfs_palloc_req *, int);
48void nilfs_dat_abort_update(struct inode *, struct nilfs_palloc_req *,
49 struct nilfs_palloc_req *);
50
51int nilfs_dat_mark_dirty(struct inode *, __u64);
52int nilfs_dat_freev(struct inode *, __u64 *, size_t);
53int nilfs_dat_move(struct inode *, __u64, sector_t);
54ssize_t nilfs_dat_get_vinfo(struct inode *, void *, unsigned, size_t);
55
56int nilfs_dat_read(struct super_block *sb, size_t entry_size,
57 struct nilfs_inode *raw_inode, struct inode **inodep);
58
59#endif
60