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)
166 ret = nilfs_dat_prepare_entry(dat, req, 0);
170 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
171 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
172 req->pr_entry_bh, kaddr);
178 ret = nilfs_palloc_prepare_free_entry(dat, req);
180 nilfs_dat_abort_entry(dat, req);
187 (unsigned long long)req->pr_entry_nr,
190 nilfs_dat_abort_entry(dat, req);
197 void nilfs_dat_commit_end(struct inode *dat, struct nilfs_palloc_req *req,
205 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
206 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
207 req->pr_entry_bh, kaddr);
218 nilfs_dat_commit_free(dat, req);
220 nilfs_dat_commit_entry(dat, req);
223 void nilfs_dat_abort_end(struct inode *dat, struct nilfs_palloc_req *req)
230 kaddr = kmap_atomic(req->pr_entry_bh->b_page);
231 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr,
232 req->pr_entry_bh, kaddr);
238 nilfs_palloc_abort_free_entry(dat, req);
239 nilfs_dat_abort_entry(dat, req);
289 struct nilfs_palloc_req req;
292 req.pr_entry_nr = vblocknr;
293 ret = nilfs_dat_prepare_entry(dat, &req, 0);
295 nilfs_dat_commit_entry(dat, &req);