Lines Matching defs:block

30 nilfs_mdt_insert_new_block(struct inode *inode, unsigned long block,
44 ret = nilfs_bmap_insert(ii->i_bmap, block, (unsigned long)bh);
61 trace_nilfs2_mdt_insert_new_block(inode, inode->i_ino, block);
66 static int nilfs_mdt_create_block(struct inode *inode, unsigned long block,
80 bh = nilfs_grab_buffer(inode, inode->i_mapping, block, 0);
93 err = nilfs_mdt_insert_new_block(inode, block, bh, init_block);
167 static int nilfs_mdt_read_block(struct inode *inode, unsigned long block,
175 err = nilfs_mdt_submit_block(inode, block, REQ_OP_READ, 0, &first_bh);
183 blkoff = block + 1;
203 "I/O error reading meta-data file (ino=%lu, block-offset=%lu)",
204 inode->i_ino, block);
220 * @blkoff: block offset
222 * @init_block: initializer used for newly allocated block
237 * %-ENOENT - the specified block does not exist (hole block)
265 * @start: start block offset (inclusive)
266 * @end: end block offset (inclusive)
267 * @blkoff: block offset
270 * nilfs_mdt_find_block() looks up an existing block in range of
271 * [@start, @end] and stores pointer to a buffer head of the block to
272 * @out_bh, and block offset to @blkoff, respectively. @out_bh and
282 * %-ENOENT - no block was found in the range
319 * @block: block offset
328 int nilfs_mdt_delete_block(struct inode *inode, unsigned long block)
333 err = nilfs_bmap_delete(ii->i_bmap, block);
336 nilfs_mdt_forget_block(inode, block);
344 * @block: block offset
356 int nilfs_mdt_forget_block(struct inode *inode, unsigned long block)
358 pgoff_t index = (pgoff_t)block >>
376 bh = nilfs_page_get_nth_block(page, block - first_block);