Lines Matching refs:epos
179 struct extent_position epos = {}; in udf_find_entry() local
191 if (inode_bmap(dir, f_pos >> sb->s_blocksize_bits, &epos, in udf_find_entry()
200 epos.offset -= sizeof(struct short_ad); in udf_find_entry()
202 epos.offset -= sizeof(struct long_ad); in udf_find_entry()
220 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry()
291 brelse(epos.bh); in udf_find_entry()
345 struct extent_position epos = {}; in udf_add_entry() local
378 if (inode_bmap(dir, f_pos >> dir->i_sb->s_blocksize_bits, &epos, in udf_add_entry()
388 epos.offset -= sizeof(struct short_ad); in udf_add_entry()
390 epos.offset -= sizeof(struct long_ad); in udf_add_entry()
404 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_add_entry()
435 brelse(epos.bh); in udf_add_entry()
436 epos.bh = NULL; in udf_add_entry()
447 epos.block = dinfo->i_location; in udf_add_entry()
448 epos.offset = udf_file_entry_alloc_offset(dir); in udf_add_entry()
450 udf_current_aext(dir, &epos, &eloc, &elen, 1); in udf_add_entry()
479 epos.offset -= sizeof(struct short_ad); in udf_add_entry()
481 epos.offset -= sizeof(struct long_ad); in udf_add_entry()
482 udf_write_aext(dir, &epos, &eloc, elen, 1); in udf_add_entry()
500 brelse(epos.bh); in udf_add_entry()
501 epos.bh = NULL; in udf_add_entry()
502 epos.block = dinfo->i_location; in udf_add_entry()
503 epos.offset = udf_file_entry_alloc_offset(dir); in udf_add_entry()
507 while (udf_next_aext(dir, &epos, &eloc, &elen, 1) == in udf_add_entry()
538 while (udf_next_aext(dir, &epos, &eloc, &elen, 1) == in udf_add_entry()
543 epos.offset -= sizeof(struct short_ad); in udf_add_entry()
545 epos.offset -= sizeof(struct long_ad); in udf_add_entry()
546 udf_write_aext(dir, &epos, &eloc, elen, 1); in udf_add_entry()
563 brelse(epos.bh); in udf_add_entry()
734 struct extent_position epos = {}; in empty_dir() local
743 &epos, &eloc, &elen, &offset) == in empty_dir()
748 epos.offset -= sizeof(struct short_ad); in empty_dir()
750 epos.offset -= sizeof(struct long_ad); in empty_dir()
756 brelse(epos.bh); in empty_dir()
760 brelse(epos.bh); in empty_dir()
765 fi = udf_fileident_read(dir, &f_pos, &fibh, &cfi, &epos, &eloc, in empty_dir()
771 brelse(epos.bh); in empty_dir()
780 brelse(epos.bh); in empty_dir()
788 brelse(epos.bh); in empty_dir()
890 struct extent_position epos = {}; in udf_symlink() local
924 epos.block = iinfo->i_location; in udf_symlink()
925 epos.offset = udf_file_entry_alloc_offset(inode); in udf_symlink()
926 epos.bh = NULL; in udf_symlink()
932 udf_add_aext(inode, &epos, &eloc, bsize, 0); in udf_symlink()
933 brelse(epos.bh); in udf_symlink()
938 epos.bh = udf_tgetblk(sb, block); in udf_symlink()
939 if (unlikely(!epos.bh)) { in udf_symlink()
943 lock_buffer(epos.bh); in udf_symlink()
944 memset(epos.bh->b_data, 0x00, bsize); in udf_symlink()
945 set_buffer_uptodate(epos.bh); in udf_symlink()
946 unlock_buffer(epos.bh); in udf_symlink()
947 mark_buffer_dirty_inode(epos.bh, inode); in udf_symlink()
948 ea = epos.bh->b_data + udf_ext0_offset(inode); in udf_symlink()
1016 brelse(epos.bh); in udf_symlink()