Lines Matching refs:req

41 				   struct nilfs_palloc_req *req, int create)
45 ret = nilfs_palloc_get_entry_block(dat, req->pr_entry_nr,
46 create, &req->pr_entry_bh);
50 (unsigned long long)req->pr_entry_nr);
61 struct nilfs_palloc_req *req)
63 mark_buffer_dirty(req->pr_entry_bh);
65 brelse(req->pr_entry_bh);
69 struct nilfs_palloc_req *req)
71 brelse(req->pr_entry_bh);
74 int nilfs_dat_prepare_alloc(struct inode *dat, struct nilfs_palloc_req *req)
78 ret = nilfs_palloc_prepare_alloc_entry(dat, req);
82 ret = nilfs_dat_prepare_entry(dat, req, 1);
84 nilfs_palloc_abort_alloc_entry(dat, req);
89 void nilfs_dat_commit_alloc(struct inode *dat, struct nilfs_palloc_req *req)
94 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
95 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
96 req->pr_entry_bh, kaddr);
102 nilfs_palloc_commit_alloc_entry(dat, req);
103 nilfs_dat_commit_entry(dat, req);
106 void nilfs_dat_abort_alloc(struct inode *dat, struct nilfs_palloc_req *req)
108 nilfs_dat_abort_entry(dat, req);
109 nilfs_palloc_abort_alloc_entry(dat, req);
113 struct nilfs_palloc_req *req)
118 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
119 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
120 req->pr_entry_bh, kaddr);
126 nilfs_dat_commit_entry(dat, req);
128 if (unlikely(req->pr_desc_bh == NULL || req->pr_bitmap_bh == NULL)) {
131 (unsigned long long)req->pr_entry_nr);
134 nilfs_palloc_commit_free_entry(dat, req);
137 int nilfs_dat_prepare_start(struct inode *dat, struct nilfs_palloc_req *req)
139 return nilfs_dat_prepare_entry(dat, req, 0);
142 void nilfs_dat_commit_start(struct inode *dat, struct nilfs_palloc_req *req,
148 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
149 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
150 req->pr_entry_bh, kaddr);
155 nilfs_dat_commit_entry(dat, req);
158 int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req)
165 ret = nilfs_dat_prepare_entry(dat, req, 0);
169 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
170 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
171 req->pr_entry_bh, kaddr);
176 ret = nilfs_palloc_prepare_free_entry(dat, req);
178 nilfs_dat_abort_entry(dat, req);
186 void nilfs_dat_commit_end(struct inode *dat, struct nilfs_palloc_req *req,
194 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
195 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
196 req->pr_entry_bh, kaddr);
207 nilfs_dat_commit_free(dat, req);
209 nilfs_dat_commit_entry(dat, req);
212 void nilfs_dat_abort_end(struct inode *dat, struct nilfs_palloc_req *req)
219 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
220 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
221 req->pr_entry_bh, kaddr);
227 nilfs_palloc_abort_free_entry(dat, req);
228 nilfs_dat_abort_entry(dat, req);
278 struct nilfs_palloc_req req;
281 req.pr_entry_nr = vblocknr;
282 ret = nilfs_dat_prepare_entry(dat, &req, 0);
284 nilfs_dat_commit_entry(dat, &req);