Lines Matching full:dir

24 		udf_err(iter->dir->i_sb,  in udf_verify_fi()
26 iter->dir->i_ino, (unsigned long long)iter->pos, in udf_verify_fi()
32 udf_err(iter->dir->i_sb, in udf_verify_fi()
34 iter->dir->i_ino, (unsigned long long)iter->pos); in udf_verify_fi()
42 if (len > 1 << iter->dir->i_blkbits) { in udf_verify_fi()
43 udf_err(iter->dir->i_sb, in udf_verify_fi()
45 iter->dir->i_ino, len, (unsigned long long)iter->pos); in udf_verify_fi()
48 if (iter->pos + len > iter->dir->i_size) { in udf_verify_fi()
49 udf_err(iter->dir->i_sb, in udf_verify_fi()
51 iter->dir->i_ino, (unsigned long long)iter->pos); in udf_verify_fi()
56 udf_err(iter->dir->i_sb, in udf_verify_fi()
58 iter->dir->i_ino, in udf_verify_fi()
69 struct udf_inode_info *iinfo = UDF_I(iter->dir); in udf_copy_fi()
70 u32 blksize = 1 << iter->dir->i_blkbits; in udf_copy_fi()
75 if (iter->pos >= iter->dir->i_size) { in udf_copy_fi()
79 if (iter->dir->i_size < iter->pos + sizeof(struct fileIdentDesc)) { in udf_copy_fi()
80 udf_err(iter->dir->i_sb, in udf_copy_fi()
82 iter->dir->i_ino); in udf_copy_fi()
127 unsigned int ralen = 16 >> (iter->dir->i_blkbits - 9); in udf_readahead_dir()
135 if (iter->loffset + ralen > (iter->elen >> iter->dir->i_blkbits)) in udf_readahead_dir()
136 ralen = (iter->elen >> iter->dir->i_blkbits) - iter->loffset; in udf_readahead_dir()
139 blk = udf_get_lb_pblock(iter->dir->i_sb, &iter->eloc, in udf_readahead_dir()
141 tmp = sb_getblk(iter->dir->i_sb, blk); in udf_readahead_dir()
159 blk = udf_get_lb_pblock(iter->dir->i_sb, &iter->eloc, iter->loffset); in udf_fiiter_bread_blk()
160 return sb_bread(iter->dir->i_sb, blk); in udf_fiiter_bread_blk()
173 if (iter->loffset < DIV_ROUND_UP(iter->elen, 1<<iter->dir->i_blkbits)) in udf_fiiter_advance_blk()
177 err = udf_next_aext(iter->dir, &iter->epos, &iter->eloc, in udf_fiiter_advance_blk()
182 if (iter->pos == iter->dir->i_size) { in udf_fiiter_advance_blk()
186 udf_err(iter->dir->i_sb, in udf_fiiter_advance_blk()
188 (unsigned long long)iter->pos, iter->dir->i_ino); in udf_fiiter_advance_blk()
196 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_load_bhs()
214 if (iter->pos >= iter->dir->i_size) in udf_fiiter_load_bhs()
244 int udf_fiiter_init(struct udf_fileident_iter *iter, struct inode *dir, in udf_fiiter_init() argument
247 struct udf_inode_info *iinfo = UDF_I(dir); in udf_fiiter_init()
251 iter->dir = dir; in udf_fiiter_init()
269 err = inode_bmap(dir, iter->pos >> dir->i_blkbits, &iter->epos, in udf_fiiter_init()
272 if (pos == dir->i_size) in udf_fiiter_init()
274 udf_err(dir->i_sb, in udf_fiiter_init()
276 (unsigned long long)pos, dir->i_ino); in udf_fiiter_init()
293 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_advance()
299 if (UDF_I(iter->dir)->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) { in udf_fiiter_advance()
322 iter->dir = NULL; in udf_fiiter_release()
409 struct udf_inode_info *iinfo = UDF_I(iter->dir); in udf_fiiter_write_fi()
412 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_write_fi()
417 len1 = iter->dir->i_size; in udf_fiiter_write_fi()
431 mark_inode_dirty(iter->dir); in udf_fiiter_write_fi()
433 mark_buffer_dirty_inode(iter->bh[0], iter->dir); in udf_fiiter_write_fi()
435 mark_buffer_dirty_inode(iter->bh[1], iter->dir); in udf_fiiter_write_fi()
437 inode_inc_iversion(iter->dir); in udf_fiiter_write_fi()
442 struct udf_inode_info *iinfo = UDF_I(iter->dir); in udf_fiiter_update_elen()
453 udf_write_aext(iter->dir, &iter->epos, &iter->eloc, iter->elen, 1); in udf_fiiter_update_elen()
455 mark_inode_dirty(iter->dir); in udf_fiiter_update_elen()
461 struct udf_inode_info *iinfo = UDF_I(iter->dir); in udf_fiiter_append_blk()
462 int blksize = 1 << iter->dir->i_blkbits; in udf_fiiter_append_blk()
476 block = iinfo->i_lenExtents >> iter->dir->i_blkbits; in udf_fiiter_append_blk()
477 bh = udf_bread(iter->dir, block, 1, &err); in udf_fiiter_append_blk()
482 err = inode_bmap(iter->dir, block, &iter->epos, &iter->eloc, &iter->elen, in udf_fiiter_append_blk()
485 udf_err(iter->dir->i_sb, in udf_fiiter_append_blk()
487 (unsigned long long)block, iter->dir->i_ino); in udf_fiiter_append_blk()