Lines Matching refs:req

41 				   struct nilfs_palloc_req *req, int create)  in nilfs_dat_prepare_entry()  argument
45 ret = nilfs_palloc_get_entry_block(dat, req->pr_entry_nr, in nilfs_dat_prepare_entry()
46 create, &req->pr_entry_bh); in nilfs_dat_prepare_entry()
50 (unsigned long long)req->pr_entry_nr); 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, true); 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 offset = nilfs_palloc_entry_offset(dat, req->pr_entry_nr, in nilfs_dat_commit_alloc()
95 req->pr_entry_bh); in nilfs_dat_commit_alloc()
96 entry = kmap_local_folio(req->pr_entry_bh->b_folio, offset); 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 offset = nilfs_palloc_entry_offset(dat, req->pr_entry_nr, in nilfs_dat_commit_free()
119 req->pr_entry_bh); in nilfs_dat_commit_free()
120 entry = kmap_local_folio(req->pr_entry_bh->b_folio, offset); in nilfs_dat_commit_free()
126 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_free()
128 if (unlikely(req->pr_desc_bh == NULL || req->pr_bitmap_bh == NULL)) { in nilfs_dat_commit_free()
131 (unsigned long long)req->pr_entry_nr); in nilfs_dat_commit_free()
134 nilfs_palloc_commit_free_entry(dat, req); in nilfs_dat_commit_free()
137 int nilfs_dat_prepare_start(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_start() argument
139 return nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_start()
142 void nilfs_dat_commit_start(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_start() argument
148 offset = nilfs_palloc_entry_offset(dat, req->pr_entry_nr, in nilfs_dat_commit_start()
149 req->pr_entry_bh); in nilfs_dat_commit_start()
150 entry = kmap_local_folio(req->pr_entry_bh->b_folio, offset); in nilfs_dat_commit_start()
155 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_start()
158 int nilfs_dat_prepare_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_prepare_end() argument
166 ret = nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_end()
170 offset = nilfs_palloc_entry_offset(dat, req->pr_entry_nr, in nilfs_dat_prepare_end()
171 req->pr_entry_bh); in nilfs_dat_prepare_end()
172 entry = kmap_local_folio(req->pr_entry_bh->b_folio, offset); in nilfs_dat_prepare_end()
178 ret = nilfs_palloc_prepare_free_entry(dat, req); in nilfs_dat_prepare_end()
180 nilfs_dat_abort_entry(dat, req); in nilfs_dat_prepare_end()
187 (unsigned long long)req->pr_entry_nr, in nilfs_dat_prepare_end()
190 nilfs_dat_abort_entry(dat, req); in nilfs_dat_prepare_end()
197 void nilfs_dat_commit_end(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_end() argument
205 offset = nilfs_palloc_entry_offset(dat, req->pr_entry_nr, in nilfs_dat_commit_end()
206 req->pr_entry_bh); in nilfs_dat_commit_end()
207 entry = kmap_local_folio(req->pr_entry_bh->b_folio, offset); in nilfs_dat_commit_end()
218 nilfs_dat_commit_free(dat, req); in nilfs_dat_commit_end()
220 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_end()
223 void nilfs_dat_abort_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_abort_end() argument
230 offset = nilfs_palloc_entry_offset(dat, req->pr_entry_nr, in nilfs_dat_abort_end()
231 req->pr_entry_bh); in nilfs_dat_abort_end()
232 entry = kmap_local_folio(req->pr_entry_bh->b_folio, offset); in nilfs_dat_abort_end()
238 nilfs_palloc_abort_free_entry(dat, req); in nilfs_dat_abort_end()
239 nilfs_dat_abort_entry(dat, req); in nilfs_dat_abort_end()
287 struct nilfs_palloc_req req; in nilfs_dat_mark_dirty() local
290 req.pr_entry_nr = vblocknr; in nilfs_dat_mark_dirty()
291 ret = nilfs_dat_prepare_entry(dat, &req, 0); in nilfs_dat_mark_dirty()
293 nilfs_dat_commit_entry(dat, &req); in nilfs_dat_mark_dirty()