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
163 ret = nilfs_dat_prepare_entry(dat, req, 0); in nilfs_dat_prepare_end()
169 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_prepare_end()
170 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_prepare_end()
171 req->pr_entry_bh, kaddr); in nilfs_dat_prepare_end()
177 ret = nilfs_palloc_prepare_free_entry(dat, req); in nilfs_dat_prepare_end()
179 nilfs_dat_abort_entry(dat, req); in nilfs_dat_prepare_end()
187 void nilfs_dat_commit_end(struct inode *dat, struct nilfs_palloc_req *req, in nilfs_dat_commit_end() argument
195 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_commit_end()
196 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_commit_end()
197 req->pr_entry_bh, kaddr); in nilfs_dat_commit_end()
208 nilfs_dat_commit_free(dat, req); in nilfs_dat_commit_end()
210 nilfs_dat_commit_entry(dat, req); in nilfs_dat_commit_end()
213 void nilfs_dat_abort_end(struct inode *dat, struct nilfs_palloc_req *req) in nilfs_dat_abort_end() argument
220 kaddr = kmap_atomic(req->pr_entry_bh->b_page); in nilfs_dat_abort_end()
221 entry = nilfs_palloc_block_get_entry(dat, req->pr_entry_nr, in nilfs_dat_abort_end()
222 req->pr_entry_bh, kaddr); in nilfs_dat_abort_end()
228 nilfs_palloc_abort_free_entry(dat, req); in nilfs_dat_abort_end()
229 nilfs_dat_abort_entry(dat, req); in nilfs_dat_abort_end()
279 struct nilfs_palloc_req req; in nilfs_dat_mark_dirty() local
282 req.pr_entry_nr = vblocknr; in nilfs_dat_mark_dirty()
283 ret = nilfs_dat_prepare_entry(dat, &req, 0); in nilfs_dat_mark_dirty()
285 nilfs_dat_commit_entry(dat, &req); in nilfs_dat_mark_dirty()