/kernel/linux/linux-5.10/fs/fat/ |
H A D | cache.c | 76 if (MSDOS_I(inode)->cache_lru.next != &cache->cache_list) in fat_cache_update_lru() 77 list_move(&cache->cache_list, &MSDOS_I(inode)->cache_lru); in fat_cache_update_lru() 89 spin_lock(&MSDOS_I(inode)->cache_lru_lock); in fat_cache_lookup() 90 list_for_each_entry(p, &MSDOS_I(inode)->cache_lru, cache_list) { in fat_cache_lookup() 105 cid->id = MSDOS_I(inode)->cache_valid_id; in fat_cache_lookup() 112 spin_unlock(&MSDOS_I(inode)->cache_lru_lock); in fat_cache_lookup() 122 list_for_each_entry(p, &MSDOS_I(inode)->cache_lru, cache_list) { in fat_cache_merge() 141 spin_lock(&MSDOS_I(inode)->cache_lru_lock); in fat_cache_add() 143 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add() 148 if (MSDOS_I(inod in fat_cache_add() [all...] |
H A D | file.c | 61 attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) | in fat_ioctl_set_attributes() 314 if (MSDOS_I(inode)->i_start == 0) in fat_free() 320 i_start = free_start = MSDOS_I(inode)->i_start; in fat_free() 321 i_logstart = MSDOS_I(inode)->i_logstart; in fat_free() 325 MSDOS_I(inode)->i_start = 0; in fat_free() 326 MSDOS_I(inode)->i_logstart = 0; in fat_free() 328 MSDOS_I(inode)->i_attrs |= ATTR_ARCH; in fat_free() 333 MSDOS_I(inode)->i_start = i_start; in fat_free() 334 MSDOS_I(inode)->i_logstart = i_logstart; in fat_free() 359 __func__, MSDOS_I(inod in fat_free() [all...] |
H A D | inode.c | 140 if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) { in __fat_get_block() 142 MSDOS_I(inode)->i_pos, MSDOS_I(inode)->mmu_private); in __fat_get_block() 163 MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; in __fat_get_block() 171 MSDOS_I(inode)->i_pos, in __fat_get_block() 237 &MSDOS_I(mapping->host)->mmu_private); in fat_write_begin() 252 if (!(err < 0) && !(MSDOS_I(inode)->i_attrs & ATTR_ARCH)) { in fat_write_end() 254 MSDOS_I(inode)->i_attrs |= ATTR_ARCH; in fat_write_end() 280 if (MSDOS_I(inode)->mmu_private < size) in fat_direct_IO() 325 down_read(&MSDOS_I(mappin in _fat_bmap() [all...] |
H A D | namei_msdos.c | 459 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename() 469 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename() 471 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename() 475 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename() 500 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename() 514 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename() 516 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename() 525 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in do_msdos_rename() 565 fat_set_start(dotdot_de, MSDOS_I(old_dir)->i_logstart); in do_msdos_rename() 572 MSDOS_I(old_inod in do_msdos_rename() [all...] |
H A D | fat.h | 173 static inline struct msdos_inode_info *MSDOS_I(struct inode *inode) in MSDOS_I() function 218 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() 229 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs() 231 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs() 265 i_pos = MSDOS_I(inode)->i_pos; in fat_i_pos_read()
|
H A D | misc.c | 112 if (MSDOS_I(inode)->i_start) { in fat_chain_add() 141 MSDOS_I(inode)->i_start = new_dclus; in fat_chain_add() 142 MSDOS_I(inode)->i_logstart = new_dclus; in fat_chain_add()
|
H A D | namei_vfat.c | 935 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename() 956 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in vfat_rename() 998 fat_set_start(dotdot_de, MSDOS_I(old_dir)->i_logstart); in vfat_rename()
|
H A D | dir.c | 1178 fat_set_start(&de[1], MSDOS_I(dir)->i_logstart); in fat_alloc_new_dir() 1322 } else if (MSDOS_I(dir)->i_start == 0) { in fat_add_entries() 1324 MSDOS_I(dir)->i_pos); in fat_add_entries() 1393 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; in fat_add_entries()
|
H A D | nfs.c | 250 MSDOS_I(dummy_grand_parent)->i_pos = -1; in fat_rebuild_parent()
|
/kernel/linux/linux-6.6/fs/fat/ |
H A D | cache.c | 76 if (MSDOS_I(inode)->cache_lru.next != &cache->cache_list) in fat_cache_update_lru() 77 list_move(&cache->cache_list, &MSDOS_I(inode)->cache_lru); in fat_cache_update_lru() 89 spin_lock(&MSDOS_I(inode)->cache_lru_lock); in fat_cache_lookup() 90 list_for_each_entry(p, &MSDOS_I(inode)->cache_lru, cache_list) { in fat_cache_lookup() 105 cid->id = MSDOS_I(inode)->cache_valid_id; in fat_cache_lookup() 112 spin_unlock(&MSDOS_I(inode)->cache_lru_lock); in fat_cache_lookup() 122 list_for_each_entry(p, &MSDOS_I(inode)->cache_lru, cache_list) { in fat_cache_merge() 141 spin_lock(&MSDOS_I(inode)->cache_lru_lock); in fat_cache_add() 143 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add() 148 if (MSDOS_I(inod in fat_cache_add() [all...] |
H A D | file.c | 61 attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) | in fat_ioctl_set_attributes() 315 if (MSDOS_I(inode)->i_start == 0) in fat_free() 321 i_start = free_start = MSDOS_I(inode)->i_start; in fat_free() 322 i_logstart = MSDOS_I(inode)->i_logstart; in fat_free() 326 MSDOS_I(inode)->i_start = 0; in fat_free() 327 MSDOS_I(inode)->i_logstart = 0; in fat_free() 329 MSDOS_I(inode)->i_attrs |= ATTR_ARCH; in fat_free() 334 MSDOS_I(inode)->i_start = i_start; in fat_free() 335 MSDOS_I(inode)->i_logstart = i_logstart; in fat_free() 360 __func__, MSDOS_I(inod in fat_free() [all...] |
H A D | inode.c | 140 if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) { in __fat_get_block() 142 MSDOS_I(inode)->i_pos, MSDOS_I(inode)->mmu_private); in __fat_get_block() 163 MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; in __fat_get_block() 171 MSDOS_I(inode)->i_pos, in __fat_get_block() 232 &MSDOS_I(mapping->host)->mmu_private); in fat_write_begin() 247 if (!(err < 0) && !(MSDOS_I(inode)->i_attrs & ATTR_ARCH)) { in fat_write_end() 249 MSDOS_I(inode)->i_attrs |= ATTR_ARCH; in fat_write_end() 275 if (MSDOS_I(inode)->mmu_private < size) in fat_direct_IO() 320 down_read(&MSDOS_I(mappin in _fat_bmap() [all...] |
H A D | namei_msdos.c | 460 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename() 470 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename() 472 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename() 476 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename() 501 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename() 515 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename() 517 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename() 526 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in do_msdos_rename() 566 fat_set_start(dotdot_de, MSDOS_I(old_dir)->i_logstart); in do_msdos_rename() 573 MSDOS_I(old_inod in do_msdos_rename() [all...] |
H A D | fat.h | 174 static inline struct msdos_inode_info *MSDOS_I(struct inode *inode) in MSDOS_I() function 219 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() 230 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs() 232 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs() 266 i_pos = MSDOS_I(inode)->i_pos; in fat_i_pos_read()
|
H A D | misc.c | 118 if (MSDOS_I(inode)->i_start) { in fat_chain_add() 147 MSDOS_I(inode)->i_start = new_dclus; in fat_chain_add() 148 MSDOS_I(inode)->i_logstart = new_dclus; in fat_chain_add()
|
H A D | namei_vfat.c | 914 fat_set_start(dotdot_de, MSDOS_I(dir)->i_logstart); in vfat_update_dotdot_de() 965 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename() 1090 old_i_pos = MSDOS_I(old_inode)->i_pos; in vfat_rename_exchange() 1091 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename_exchange()
|
H A D | dir.c | 1178 fat_set_start(&de[1], MSDOS_I(dir)->i_logstart); in fat_alloc_new_dir() 1322 } else if (MSDOS_I(dir)->i_start == 0) { in fat_add_entries() 1324 MSDOS_I(dir)->i_pos); in fat_add_entries() 1393 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; in fat_add_entries()
|
H A D | nfs.c | 250 MSDOS_I(dummy_grand_parent)->i_pos = -1; in fat_rebuild_parent()
|