Home
last modified time | relevance | path

Searched refs:epos (Results 1 – 8 of 8) sorted by relevance

/fs/udf/
Dtruncate.c30 static void extent_trunc(struct inode *inode, struct extent_position *epos, in extent_trunc() argument
51 udf_write_aext(inode, epos, &neloc, nelen, 0); in extent_trunc()
70 struct extent_position epos = {}; in udf_truncate_tail_extent() local
93 while ((netype = udf_next_aext(inode, &epos, &eloc, &elen, 1)) != -1) { in udf_truncate_tail_extent()
106 epos.offset -= adsize; in udf_truncate_tail_extent()
107 extent_trunc(inode, &epos, &eloc, etype, elen, nelen); in udf_truncate_tail_extent()
108 epos.offset += adsize; in udf_truncate_tail_extent()
109 if (udf_next_aext(inode, &epos, &eloc, &elen, 1) != -1) in udf_truncate_tail_extent()
119 brelse(epos.bh); in udf_truncate_tail_extent()
124 struct extent_position epos = { NULL, 0, {0, 0} }; in udf_discard_prealloc() local
[all …]
Dballoc.c359 struct extent_position oepos, epos; in udf_table_free_blocks() local
381 epos.offset = oepos.offset = sizeof(struct unallocSpaceEntry); in udf_table_free_blocks()
383 epos.block = oepos.block = iinfo->i_location; in udf_table_free_blocks()
384 epos.bh = oepos.bh = NULL; in udf_table_free_blocks()
387 (etype = udf_next_aext(table, &epos, &eloc, &elen, 1)) != -1) { in udf_table_free_blocks()
427 if (epos.bh != oepos.bh) { in udf_table_free_blocks()
429 oepos.block = epos.block; in udf_table_free_blocks()
431 get_bh(epos.bh); in udf_table_free_blocks()
432 oepos.bh = epos.bh; in udf_table_free_blocks()
435 oepos.offset = epos.offset; in udf_table_free_blocks()
[all …]
Dinode.c239 struct extent_position epos; in udf_expand_dir_adinicb() local
313 epos.bh = NULL; in udf_expand_dir_adinicb()
314 epos.block = iinfo->i_location; in udf_expand_dir_adinicb()
315 epos.offset = udf_file_entry_alloc_offset(inode); in udf_expand_dir_adinicb()
316 udf_add_aext(inode, &epos, &eloc, inode->i_size, 0); in udf_expand_dir_adinicb()
319 brelse(epos.bh); in udf_expand_dir_adinicb()
506 struct extent_position epos; in udf_extend_file() local
524 etype = inode_bmap(inode, first_block, &epos, &eloc, &elen, &offset); in udf_extend_file()
537 if ((!epos.bh && epos.offset == udf_file_entry_alloc_offset(inode)) || in udf_extend_file()
538 (epos.bh && epos.offset == sizeof(struct allocExtDesc))) { in udf_extend_file()
[all …]
Dnamei.c158 struct extent_position epos = {}; in udf_find_entry() local
169 if (inode_bmap(dir, f_pos >> dir->i_sb->s_blocksize_bits, &epos, in udf_find_entry()
175 epos.offset -= sizeof(struct short_ad); in udf_find_entry()
177 epos.offset -= sizeof(struct long_ad); in udf_find_entry()
191 fi = udf_fileident_read(dir, &f_pos, fibh, cfi, &epos, &eloc, in udf_find_entry()
247 brelse(epos.bh); in udf_find_entry()
314 struct extent_position epos = {}; in udf_add_entry() local
346 if (inode_bmap(dir, f_pos >> dir->i_sb->s_blocksize_bits, &epos, in udf_add_entry()
356 epos.offset -= sizeof(struct short_ad); in udf_add_entry()
358 epos.offset -= sizeof(struct long_ad); in udf_add_entry()
[all …]
Ddirectory.c24 struct extent_position *epos, in udf_fileident_read() argument
54 int lextoffset = epos->offset; in udf_fileident_read()
57 if (udf_next_aext(dir, epos, eloc, elen, 1) != in udf_fileident_read()
68 epos->offset = lextoffset; in udf_fileident_read()
113 int lextoffset = epos->offset; in udf_fileident_read()
115 if (udf_next_aext(dir, epos, eloc, elen, 1) != in udf_fileident_read()
126 epos->offset = lextoffset; in udf_fileident_read()
Ddir.c58 struct extent_position epos = { NULL, 0, {0, 0} }; in do_udf_readdir() local
77 &epos, &eloc, &elen, &offset) in do_udf_readdir()
85 epos.offset -= sizeof(struct short_ad); in do_udf_readdir()
88 epos.offset -= sizeof(struct long_ad); in do_udf_readdir()
121 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, in do_udf_readdir()
181 brelse(epos.bh); in do_udf_readdir()
Dpartition.c289 struct extent_position epos = {}; in udf_try_read_meta() local
292 if (inode_bmap(inode, block, &epos, &eloc, &elen, &ext_offset) != in udf_try_read_meta()
302 brelse(epos.bh); in udf_try_read_meta()
Dsuper.c2263 struct extent_position epos; in udf_count_free_table() local
2266 epos.block = UDF_I(table)->i_location; in udf_count_free_table()
2267 epos.offset = sizeof(struct unallocSpaceEntry); in udf_count_free_table()
2268 epos.bh = NULL; in udf_count_free_table()
2270 while ((etype = udf_next_aext(table, &epos, &eloc, &elen, 1)) != -1) in udf_count_free_table()
2273 brelse(epos.bh); in udf_count_free_table()