Home
last modified time | relevance | path

Searched refs:iinfo (Results 1 – 12 of 12) sorted by relevance

/fs/udf/
Dinode.c101 struct udf_inode_info *iinfo; in udf_clear_inode() local
111 iinfo = UDF_I(inode); in udf_clear_inode()
112 kfree(iinfo->i_ext.i_data); in udf_clear_inode()
113 iinfo->i_ext.i_data = NULL; in udf_clear_inode()
153 struct udf_inode_info *iinfo = UDF_I(inode); in udf_expand_file_adinicb() local
162 if (!iinfo->i_lenAlloc) { in udf_expand_file_adinicb()
164 iinfo->i_alloc_type = ICBTAG_FLAG_AD_SHORT; in udf_expand_file_adinicb()
166 iinfo->i_alloc_type = ICBTAG_FLAG_AD_LONG; in udf_expand_file_adinicb()
176 memset(kaddr + iinfo->i_lenAlloc, 0x00, in udf_expand_file_adinicb()
177 PAGE_CACHE_SIZE - iinfo->i_lenAlloc); in udf_expand_file_adinicb()
[all …]
Dialloc.c67 struct udf_inode_info *iinfo; in udf_new_inode() local
78 iinfo = UDF_I(inode); in udf_new_inode()
80 iinfo->i_efe = 1; in udf_new_inode()
83 iinfo->i_ext.i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
87 iinfo->i_efe = 0; in udf_new_inode()
88 iinfo->i_ext.i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
92 if (!iinfo->i_ext.i_data) { in udf_new_inode()
121 iinfo->i_unique = uniqueID = le64_to_cpu(lvhd->uniqueID); in udf_new_inode()
138 iinfo->i_location.logicalBlockNum = block; in udf_new_inode()
139 iinfo->i_location.partitionReferenceNum = in udf_new_inode()
[all …]
Dmisc.c54 struct udf_inode_info *iinfo = UDF_I(inode); in udf_add_extendedattr() local
56 ea = iinfo->i_ext.i_data; in udf_add_extendedattr()
57 if (iinfo->i_lenEAttr) { in udf_add_extendedattr()
58 ad = iinfo->i_ext.i_data + iinfo->i_lenEAttr; in udf_add_extendedattr()
65 iinfo->i_lenAlloc; in udf_add_extendedattr()
73 if (iinfo->i_lenAlloc) in udf_add_extendedattr()
74 memmove(&ad[size], ad, iinfo->i_lenAlloc); in udf_add_extendedattr()
76 if (iinfo->i_lenEAttr) { in udf_add_extendedattr()
81 iinfo->i_location.logicalBlockNum) in udf_add_extendedattr()
87 iinfo->i_lenEAttr += in udf_add_extendedattr()
[all …]
Dtruncate.c76 struct udf_inode_info *iinfo = UDF_I(inode); in udf_truncate_tail_extent() local
78 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB || in udf_truncate_tail_extent()
79 inode->i_size == iinfo->i_lenExtents) in udf_truncate_tail_extent()
85 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT) in udf_truncate_tail_extent()
87 else if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_LONG) in udf_truncate_tail_extent()
120 iinfo->i_lenExtents = inode->i_size; in udf_truncate_tail_extent()
132 struct udf_inode_info *iinfo = UDF_I(inode); in udf_discard_prealloc() local
134 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB || in udf_discard_prealloc()
135 inode->i_size == iinfo->i_lenExtents) in udf_discard_prealloc()
138 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT) in udf_discard_prealloc()
[all …]
Dfile.c47 struct udf_inode_info *iinfo = UDF_I(inode); in udf_adinicb_readpage() local
53 memcpy(kaddr, iinfo->i_ext.i_data + iinfo->i_lenEAttr, inode->i_size); in udf_adinicb_readpage()
67 struct udf_inode_info *iinfo = UDF_I(inode); in udf_adinicb_writepage() local
72 memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr, kaddr, inode->i_size); in udf_adinicb_writepage()
89 struct udf_inode_info *iinfo = UDF_I(inode); in udf_adinicb_write_end() local
92 memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr + offset, in udf_adinicb_write_end()
115 struct udf_inode_info *iinfo = UDF_I(inode); in udf_file_aio_write() local
117 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) { in udf_file_aio_write()
127 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) { in udf_file_aio_write()
133 iinfo->i_lenAlloc = pos + count; in udf_file_aio_write()
[all …]
Dsymlink.c81 struct udf_inode_info *iinfo; in udf_symlink_filler() local
84 iinfo = UDF_I(inode); in udf_symlink_filler()
85 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) { in udf_symlink_filler()
86 symlink = iinfo->i_ext.i_data + iinfo->i_lenEAttr; in udf_symlink_filler()
Dballoc.c438 struct udf_inode_info *iinfo; in udf_table_free_blocks() local
451 iinfo = UDF_I(table); in udf_table_free_blocks()
464 epos.block = oepos.block = iinfo->i_location; in udf_table_free_blocks()
543 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT) in udf_table_free_blocks()
545 else if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_LONG) in udf_table_free_blocks()
577 sptr = iinfo->i_ext.i_data + epos.offset in udf_table_free_blocks()
594 sptr = iinfo->i_ext.i_data + in udf_table_free_blocks()
596 iinfo->i_lenAlloc += adsize; in udf_table_free_blocks()
610 switch (iinfo->i_alloc_type) { in udf_table_free_blocks()
641 iinfo->i_lenAlloc += adsize; in udf_table_free_blocks()
[all …]
Dnamei.c545 struct udf_inode_info *iinfo; in udf_create() local
554 iinfo = UDF_I(inode); in udf_create()
555 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) in udf_create()
573 cfi.icb.extLocation = cpu_to_lelb(iinfo->i_location); in udf_create()
575 cpu_to_le32(iinfo->i_unique & 0x00000000FFFFFFFFUL); in udf_create()
595 struct udf_inode_info *iinfo; in udf_mknod() local
606 iinfo = UDF_I(inode); in udf_mknod()
618 cfi.icb.extLocation = cpu_to_lelb(iinfo->i_location); in udf_mknod()
620 cpu_to_le32(iinfo->i_unique & 0x00000000FFFFFFFFUL); in udf_mknod()
644 struct udf_inode_info *iinfo; in udf_mkdir() local
[all …]
Dudfdecl.h48 struct udf_inode_info *iinfo = UDF_I(inode); in udf_file_entry_alloc_offset() local
49 if (iinfo->i_use) in udf_file_entry_alloc_offset()
51 else if (iinfo->i_efe) in udf_file_entry_alloc_offset()
52 return sizeof(struct extendedFileEntry) + iinfo->i_lenEAttr; in udf_file_entry_alloc_offset()
54 return sizeof(struct fileEntry) + iinfo->i_lenEAttr; in udf_file_entry_alloc_offset()
Ddir.c60 struct udf_inode_info *iinfo; in do_udf_readdir() local
75 iinfo = UDF_I(dir); in do_udf_readdir()
76 if (iinfo->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) { in do_udf_readdir()
85 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT) in do_udf_readdir()
87 else if (iinfo->i_alloc_type == in do_udf_readdir()
Dpartition.c57 struct udf_inode_info *iinfo = UDF_I(sbi->s_vat_inode); in udf_get_pblock_virt15() local
68 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) { in udf_get_pblock_virt15()
69 loc = le32_to_cpu(((__le32 *)(iinfo->i_ext.i_data + in udf_get_pblock_virt15()
97 if (iinfo->i_location.partitionReferenceNum == partition) { in udf_get_pblock_virt15()
103 iinfo->i_location.partitionReferenceNum, in udf_get_pblock_virt15()
Ddirectory.c84 struct udf_inode_info *iinfo = UDF_I(dir); in udf_fileident_read() local
88 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_IN_ICB) { in udf_fileident_read()
89 fi = udf_get_fileident(iinfo->i_ext.i_data - in udf_fileident_read()
90 (iinfo->i_efe ? in udf_fileident_read()