Lines Matching refs:req

54 				   struct nilfs_palloc_req *req, int create)  in nilfs_dat_prepare_entry()  argument
56 return nilfs_palloc_get_entry_block(dat, req->pr_entry_nr, in nilfs_dat_prepare_entry()
57 create, &req->pr_entry_bh); in nilfs_dat_prepare_entry()
61 struct nilfs_palloc_req *req) in nilfs_dat_commit_entry() argument
63 mark_buffer_dirty(req->pr_entry_bh); in nilfs_dat_commit_entry()
65 brelse(req->pr_entry_bh); in nilfs_dat_commit_entry()
69 struct nilfs_palloc_req *req) in nilfs_dat_abort_entry() argument
71 brelse(req->pr_entry_bh); in nilfs_dat_abort_entry()
74 int nilfs_dat_prepare_alloc(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_alloc() argument
78 ret = nilfs_palloc_prepare_alloc_entry(dat, req); in nilfs_dat_prepare_alloc()
82 ret = nilfs_dat_prepare_entry(dat, req, 1); in nilfs_dat_prepare_alloc()
84 nilfs_palloc_abort_alloc_entry(dat, req); in nilfs_dat_prepare_alloc()
89 void nilfs_dat_commit_alloc(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_commit_alloc() argument
94 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_alloc()
95 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_alloc()
96 req->pr_entry_bh, kaddr); in nilfs_dat_commit_alloc()
102 nilfs_palloc_commit_alloc_entry(dat, req); in nilfs_dat_commit_alloc()
103 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_alloc()
106 void nilfs_dat_abort_alloc(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_abort_alloc() argument
108 nilfs_dat_abort_entry(dat, req); in nilfs_dat_abort_alloc()
109 nilfs_palloc_abort_alloc_entry(dat, req); in nilfs_dat_abort_alloc()
113 struct nilfs_palloc_req *req) in nilfs_dat_commit_free() argument
118 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_free()
119 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_free()
120 req->pr_entry_bh, kaddr); in nilfs_dat_commit_free()
126 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_free()
127 nilfs_palloc_commit_free_entry(dat, req); in nilfs_dat_commit_free()
130 int nilfs_dat_prepare_start(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_start() argument
134 ret = nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_start()
139 void nilfs_dat_commit_start(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_start() argument
145 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_start()
146 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_start()
147 req->pr_entry_bh, kaddr); in nilfs_dat_commit_start()
152 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_start()
155 int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_end() argument
162 ret = nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_end()
168 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_prepare_end()
169 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_prepare_end()
170 req->pr_entry_bh, kaddr); in nilfs_dat_prepare_end()
175 ret = nilfs_palloc_prepare_free_entry(dat, req); in nilfs_dat_prepare_end()
177 nilfs_dat_abort_entry(dat, req); in nilfs_dat_prepare_end()
185 void nilfs_dat_commit_end(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_end() argument
193 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_end()
194 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_end()
195 req->pr_entry_bh, kaddr); in nilfs_dat_commit_end()
206 nilfs_dat_commit_free(dat, req); in nilfs_dat_commit_end()
208 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_end()
211 void nilfs_dat_abort_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_abort_end() argument
218 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_abort_end()
219 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_abort_end()
220 req->pr_entry_bh, kaddr); in nilfs_dat_abort_end()
226 nilfs_palloc_abort_free_entry(dat, req); in nilfs_dat_abort_end()
227 nilfs_dat_abort_entry(dat, req); in nilfs_dat_abort_end()
277 struct nilfs_palloc_req req; in nilfs_dat_mark_dirty() local
280 req.pr_entry_nr = vblocknr; in nilfs_dat_mark_dirty()
281 ret = nilfs_dat_prepare_entry(dat, &req, 0); in nilfs_dat_mark_dirty()
283 nilfs_dat_commit_entry(dat, &req); in nilfs_dat_mark_dirty()