Lines Matching refs:req
41 struct nilfs_palloc_req *req, int create) in nilfs_dat_prepare_entry() argument
43 return nilfs_palloc_get_entry_block(dat, req->pr_entry_nr, in nilfs_dat_prepare_entry()
44 create, &req->pr_entry_bh); in nilfs_dat_prepare_entry()
48 struct nilfs_palloc_req *req) in nilfs_dat_commit_entry() argument
50 mark_buffer_dirty(req->pr_entry_bh); in nilfs_dat_commit_entry()
52 brelse(req->pr_entry_bh); in nilfs_dat_commit_entry()
56 struct nilfs_palloc_req *req) in nilfs_dat_abort_entry() argument
58 brelse(req->pr_entry_bh); in nilfs_dat_abort_entry()
61 int nilfs_dat_prepare_alloc(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_alloc() argument
65 ret = nilfs_palloc_prepare_alloc_entry(dat, req); in nilfs_dat_prepare_alloc()
69 ret = nilfs_dat_prepare_entry(dat, req, 1); in nilfs_dat_prepare_alloc()
71 nilfs_palloc_abort_alloc_entry(dat, req); in nilfs_dat_prepare_alloc()
76 void nilfs_dat_commit_alloc(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_commit_alloc() argument
81 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_alloc()
82 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_alloc()
83 req->pr_entry_bh, kaddr); in nilfs_dat_commit_alloc()
89 nilfs_palloc_commit_alloc_entry(dat, req); in nilfs_dat_commit_alloc()
90 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_alloc()
93 void nilfs_dat_abort_alloc(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_abort_alloc() argument
95 nilfs_dat_abort_entry(dat, req); in nilfs_dat_abort_alloc()
96 nilfs_palloc_abort_alloc_entry(dat, req); in nilfs_dat_abort_alloc()
100 struct nilfs_palloc_req *req) in nilfs_dat_commit_free() argument
105 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_free()
106 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_free()
107 req->pr_entry_bh, kaddr); in nilfs_dat_commit_free()
113 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_free()
114 nilfs_palloc_commit_free_entry(dat, req); in nilfs_dat_commit_free()
117 int nilfs_dat_prepare_start(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_start() argument
121 ret = nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_start()
126 void nilfs_dat_commit_start(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_start() argument
132 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_start()
133 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_start()
134 req->pr_entry_bh, kaddr); in nilfs_dat_commit_start()
139 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_start()
142 int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_end() argument
149 ret = nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_end()
155 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_prepare_end()
156 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_prepare_end()
157 req->pr_entry_bh, kaddr); in nilfs_dat_prepare_end()
162 ret = nilfs_palloc_prepare_free_entry(dat, req); in nilfs_dat_prepare_end()
164 nilfs_dat_abort_entry(dat, req); in nilfs_dat_prepare_end()
172 void nilfs_dat_commit_end(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_end() argument
180 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_end()
181 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_end()
182 req->pr_entry_bh, kaddr); in nilfs_dat_commit_end()
193 nilfs_dat_commit_free(dat, req); in nilfs_dat_commit_end()
195 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_end()
198 void nilfs_dat_abort_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_abort_end() argument
205 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_abort_end()
206 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_abort_end()
207 req->pr_entry_bh, kaddr); in nilfs_dat_abort_end()
213 nilfs_palloc_abort_free_entry(dat, req); in nilfs_dat_abort_end()
214 nilfs_dat_abort_entry(dat, req); in nilfs_dat_abort_end()
264 struct nilfs_palloc_req req; in nilfs_dat_mark_dirty() local
267 req.pr_entry_nr = vblocknr; in nilfs_dat_mark_dirty()
268 ret = nilfs_dat_prepare_entry(dat, &req, 0); in nilfs_dat_mark_dirty()
270 nilfs_dat_commit_entry(dat, &req); in nilfs_dat_mark_dirty()