/kernel/linux/linux-5.10/fs/fat/ |
H A D | nfs.c | 44 static struct inode *fat_ilookup(struct super_block *sb, u64 ino, loff_t i_pos) in fat_ilookup() argument 47 return fat_iget(sb, i_pos); in fat_ilookup() 57 u64 ino, u32 generation, loff_t i_pos) in __fat_nfs_get_inode() 59 struct inode *inode = fat_ilookup(sb, ino, i_pos); in __fat_nfs_get_inode() 70 fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset); in __fat_nfs_get_inode() local 85 inode = fat_build_inode(sb, &de[offset], i_pos); in __fat_nfs_get_inode() 106 loff_t i_pos; in fat_encode_fh_nostale() local 121 i_pos = fat_i_pos_read(sbi, inode); in fat_encode_fh_nostale() 124 fid->i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale() 125 fid->i_pos_hi = (i_pos >> 3 in fat_encode_fh_nostale() 56 __fat_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation, loff_t i_pos) __fat_nfs_get_inode() argument 161 loff_t i_pos; fat_fh_to_dentry_nostale() local 199 loff_t i_pos; fat_fh_to_parent_nostale() local [all...] |
H A D | fat.h | 125 loff_t i_pos; /* on-disk position of directory entry or 0 */ member 133 loff_t i_pos; /* on-disk position of directory entry */ member 252 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset() 254 *blknr = i_pos >> sbi->dir_per_block_bits; in fat_get_blknr_offset() 255 *offset = i_pos & (sbi->dir_per_block - 1); in fat_get_blknr_offset() 261 loff_t i_pos; in fat_i_pos_read() local 265 i_pos = MSDOS_I(inode)->i_pos; in fat_i_pos_read() 269 return i_pos; in fat_i_pos_read() 409 extern void fat_attach(struct inode *inode, loff_t i_pos); 251 fat_get_blknr_offset(struct msdos_sb_info *sbi, loff_t i_pos, sector_t *blknr, int *offset) fat_get_blknr_offset() argument [all...] |
H A D | inode.c | 141 fat_fs_error(sb, "corrupted file size (i_pos %lld, %lld)", in __fat_get_block() 142 MSDOS_I(inode)->i_pos, MSDOS_I(inode)->mmu_private); in __fat_get_block() 170 "invalid FAT chain (i_pos %lld, last_block %llu)", in __fat_get_block() 171 MSDOS_I(inode)->i_pos, in __fat_get_block() 389 static inline unsigned long fat_hash(loff_t i_pos) in fat_hash() argument 391 return hash_32(i_pos, FAT_HASH_BITS); in fat_hash() 404 void fat_attach(struct inode *inode, loff_t i_pos) in fat_attach() argument 410 + fat_hash(i_pos); in fat_attach() 413 MSDOS_I(inode)->i_pos = i_pos; in fat_attach() 449 fat_iget(struct super_block *sb, loff_t i_pos) fat_iget() argument 590 fat_build_inode(struct super_block *sb, struct msdos_dir_entry *de, loff_t i_pos) fat_build_inode() argument 852 loff_t i_pos; __fat_write_inode() local [all...] |
H A D | namei_msdos.c | 216 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_lookup() 292 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_create() 376 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_mkdir() 500 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename() 507 new_i_pos = sinfo.i_pos; in do_msdos_rename() 571 fat_attach(old_inode, old_sinfo.i_pos); in do_msdos_rename() 589 "%s: Filesystem corrupted (i_pos %lld)", in do_msdos_rename() 590 __func__, sinfo.i_pos); in do_msdos_rename()
|
H A D | cache.c | 240 "%s: invalid start cluster (i_pos %lld, start %08x)", in fat_get_cluster() 241 __func__, MSDOS_I(inode)->i_pos, *dclus); in fat_get_cluster() 260 "%s: detected the cluster chain loop (i_pos %lld)", in fat_get_cluster() 261 __func__, MSDOS_I(inode)->i_pos); in fat_get_cluster() 271 "%s: invalid cluster chain (i_pos %lld)", in fat_get_cluster() 272 __func__, MSDOS_I(inode)->i_pos); in fat_get_cluster() 303 fat_fs_error(sb, "%s: request beyond EOF (i_pos %lld)", in fat_bmap_cluster() 304 __func__, MSDOS_I(inode)->i_pos); in fat_bmap_cluster()
|
H A D | dir.c | 532 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_search_long() 670 loff_t i_pos = fat_make_i_pos(sb, bh, de); in __fat_readdir() local 671 struct inode *tmp = fat_iget(sb, i_pos); in __fat_readdir() 883 * for inode, nor a usable i_pos. So, this function provides some information 963 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_scan() 987 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_scan_logstart() 1200 struct buffer_head **bh, loff_t *i_pos) in fat_add_new_entries() 1260 *i_pos = fat_make_i_pos(sb, *bh, *de); in fat_add_new_entries() 1289 loff_t pos, i_pos; in fat_add_entries() local 1323 fat_msg(sb, KERN_ERR, "Corrupted directory (i_pos in fat_add_entries() 1198 fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, int *nr_cluster, struct msdos_dir_entry **de, struct buffer_head **bh, loff_t *i_pos) fat_add_new_entries() argument [all...] |
H A D | namei_vfat.c | 721 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in vfat_lookup() 776 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in vfat_create() 871 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in vfat_mkdir() 935 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename() 942 new_i_pos = sinfo.i_pos; in vfat_rename() 1004 fat_attach(old_inode, old_sinfo.i_pos); in vfat_rename() 1021 "%s: Filesystem corrupted (i_pos %lld)", in vfat_rename() 1022 __func__, sinfo.i_pos); in vfat_rename()
|
H A D | file.c | 358 "%s: invalid cluster chain (i_pos %lld)", in fat_free() 359 __func__, MSDOS_I(inode)->i_pos); in fat_free() 405 /* Use i_pos for ino. This is used as fileid of nfs. */ in fat_getattr()
|
/kernel/linux/linux-6.6/fs/fat/ |
H A D | nfs.c | 44 static struct inode *fat_ilookup(struct super_block *sb, u64 ino, loff_t i_pos) in fat_ilookup() argument 47 return fat_iget(sb, i_pos); in fat_ilookup() 57 u64 ino, u32 generation, loff_t i_pos) in __fat_nfs_get_inode() 59 struct inode *inode = fat_ilookup(sb, ino, i_pos); in __fat_nfs_get_inode() 70 fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset); in __fat_nfs_get_inode() local 85 inode = fat_build_inode(sb, &de[offset], i_pos); in __fat_nfs_get_inode() 106 loff_t i_pos; in fat_encode_fh_nostale() local 121 i_pos = fat_i_pos_read(sbi, inode); in fat_encode_fh_nostale() 124 fid->i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale() 125 fid->i_pos_hi = (i_pos >> 3 in fat_encode_fh_nostale() 56 __fat_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation, loff_t i_pos) __fat_nfs_get_inode() argument 161 loff_t i_pos; fat_fh_to_dentry_nostale() local 199 loff_t i_pos; fat_fh_to_parent_nostale() local [all...] |
H A D | fat.h | 125 loff_t i_pos; /* on-disk position of directory entry or 0 */ member 134 loff_t i_pos; /* on-disk position of directory entry */ member 253 loff_t i_pos, sector_t *blknr, int *offset) in fat_get_blknr_offset() 255 *blknr = i_pos >> sbi->dir_per_block_bits; in fat_get_blknr_offset() 256 *offset = i_pos & (sbi->dir_per_block - 1); in fat_get_blknr_offset() 262 loff_t i_pos; in fat_i_pos_read() local 266 i_pos = MSDOS_I(inode)->i_pos; in fat_i_pos_read() 270 return i_pos; in fat_i_pos_read() 412 extern void fat_attach(struct inode *inode, loff_t i_pos); 252 fat_get_blknr_offset(struct msdos_sb_info *sbi, loff_t i_pos, sector_t *blknr, int *offset) fat_get_blknr_offset() argument [all...] |
H A D | inode.c | 141 fat_fs_error(sb, "corrupted file size (i_pos %lld, %lld)", in __fat_get_block() 142 MSDOS_I(inode)->i_pos, MSDOS_I(inode)->mmu_private); in __fat_get_block() 170 "invalid FAT chain (i_pos %lld, last_block %llu)", in __fat_get_block() 171 MSDOS_I(inode)->i_pos, in __fat_get_block() 386 static inline unsigned long fat_hash(loff_t i_pos) in fat_hash() argument 388 return hash_32(i_pos, FAT_HASH_BITS); in fat_hash() 401 void fat_attach(struct inode *inode, loff_t i_pos) in fat_attach() argument 407 + fat_hash(i_pos); in fat_attach() 410 MSDOS_I(inode)->i_pos = i_pos; in fat_attach() 446 fat_iget(struct super_block *sb, loff_t i_pos) fat_iget() argument 588 fat_build_inode(struct super_block *sb, struct msdos_dir_entry *de, loff_t i_pos) fat_build_inode() argument 852 loff_t i_pos; __fat_write_inode() local [all...] |
H A D | namei_msdos.c | 216 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_lookup() 292 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_create() 377 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_mkdir() 501 new_i_pos = MSDOS_I(new_inode)->i_pos; in do_msdos_rename() 508 new_i_pos = sinfo.i_pos; in do_msdos_rename() 572 fat_attach(old_inode, old_sinfo.i_pos); in do_msdos_rename() 590 "%s: Filesystem corrupted (i_pos %lld)", in do_msdos_rename() 591 __func__, sinfo.i_pos); in do_msdos_rename()
|
H A D | cache.c | 240 "%s: invalid start cluster (i_pos %lld, start %08x)", in fat_get_cluster() 241 __func__, MSDOS_I(inode)->i_pos, *dclus); in fat_get_cluster() 260 "%s: detected the cluster chain loop (i_pos %lld)", in fat_get_cluster() 261 __func__, MSDOS_I(inode)->i_pos); in fat_get_cluster() 271 "%s: invalid cluster chain (i_pos %lld)", in fat_get_cluster() 272 __func__, MSDOS_I(inode)->i_pos); in fat_get_cluster() 303 fat_fs_error(sb, "%s: request beyond EOF (i_pos %lld)", in fat_bmap_cluster() 304 __func__, MSDOS_I(inode)->i_pos); in fat_bmap_cluster()
|
H A D | dir.c | 532 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_search_long() 670 loff_t i_pos = fat_make_i_pos(sb, bh, de); in __fat_readdir() local 671 struct inode *tmp = fat_iget(sb, i_pos); in __fat_readdir() 883 * for inode, nor a usable i_pos. So, this function provides some information 963 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_scan() 987 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_scan_logstart() 1200 struct buffer_head **bh, loff_t *i_pos) in fat_add_new_entries() 1260 *i_pos = fat_make_i_pos(sb, *bh, *de); in fat_add_new_entries() 1289 loff_t pos, i_pos; in fat_add_entries() local 1323 fat_msg(sb, KERN_ERR, "Corrupted directory (i_pos in fat_add_entries() 1198 fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, int *nr_cluster, struct msdos_dir_entry **de, struct buffer_head **bh, loff_t *i_pos) fat_add_new_entries() argument [all...] |
H A D | namei_vfat.c | 721 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in vfat_lookup() 776 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in vfat_create() 870 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in vfat_mkdir() 965 new_i_pos = MSDOS_I(new_inode)->i_pos; in vfat_rename() 972 new_i_pos = sinfo.i_pos; in vfat_rename() 1022 fat_attach(old_inode, old_sinfo.i_pos); in vfat_rename() 1039 "%s: Filesystem corrupted (i_pos %lld)", in vfat_rename() 1040 __func__, sinfo.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() [all...] |
/kernel/linux/linux-5.10/fs/exfat/ |
H A D | inode.c | 501 static inline unsigned long exfat_hash(loff_t i_pos) in exfat_hash() argument 503 return hash_32(i_pos, EXFAT_HASH_BITS); in exfat_hash() 506 void exfat_hash_inode(struct inode *inode, loff_t i_pos) in exfat_hash_inode() argument 509 struct hlist_head *head = sbi->inode_hashtable + exfat_hash(i_pos); in exfat_hash_inode() 512 EXFAT_I(inode)->i_pos = i_pos; in exfat_hash_inode() 523 EXFAT_I(inode)->i_pos = 0; in exfat_unhash_inode() 527 struct inode *exfat_iget(struct super_block *sb, loff_t i_pos) in exfat_iget() argument 531 struct hlist_head *head = sbi->inode_hashtable + exfat_hash(i_pos); in exfat_iget() 538 if (i_pos ! in exfat_iget() 611 exfat_build_inode(struct super_block *sb, struct exfat_dir_entry *info, loff_t i_pos) exfat_build_inode() argument [all...] |
H A D | namei.c | 562 loff_t i_pos; in exfat_create() local 580 i_pos = exfat_make_i_pos(&info); in exfat_create() 581 inode = exfat_build_inode(sb, &info, i_pos); in exfat_create() 716 loff_t i_pos; in exfat_lookup() local 729 i_pos = exfat_make_i_pos(&info); in exfat_lookup() 730 inode = exfat_build_inode(sb, &info, i_pos); in exfat_lookup() 854 loff_t i_pos; in exfat_mkdir() local 873 i_pos = exfat_make_i_pos(&info); in exfat_mkdir() 874 inode = exfat_build_inode(sb, &info, i_pos); in exfat_mkdir() 1349 loff_t i_pos; in exfat_rename() local [all...] |
H A D | exfat_fs.h | 293 loff_t i_pos; member 482 struct exfat_dir_entry *info, loff_t i_pos); 483 void exfat_hash_inode(struct inode *inode, loff_t i_pos); 485 struct inode *exfat_iget(struct super_block *sb, loff_t i_pos);
|
H A D | dir.c | 231 loff_t cpos, i_pos; in exfat_iterate() local 275 i_pos = ((loff_t)ei->start_clu << 32) | (de.entry & 0xffffffff); in exfat_iterate() 276 tmp = exfat_iget(sb, i_pos); in exfat_iterate()
|
H A D | super.c | 368 ei->i_pos = ((loff_t)sbi->root_dir << 32) | 0xffffffff; in exfat_read_root() 685 exfat_hash_inode(root_inode, EXFAT_I(root_inode)->i_pos); in exfat_fill_super()
|
/kernel/linux/linux-6.6/fs/exfat/ |
H A D | inode.c | 477 static inline unsigned long exfat_hash(loff_t i_pos) in exfat_hash() argument 479 return hash_32(i_pos, EXFAT_HASH_BITS); in exfat_hash() 482 void exfat_hash_inode(struct inode *inode, loff_t i_pos) in exfat_hash_inode() argument 485 struct hlist_head *head = sbi->inode_hashtable + exfat_hash(i_pos); in exfat_hash_inode() 488 EXFAT_I(inode)->i_pos = i_pos; in exfat_hash_inode() 499 EXFAT_I(inode)->i_pos = 0; in exfat_unhash_inode() 503 struct inode *exfat_iget(struct super_block *sb, loff_t i_pos) in exfat_iget() argument 507 struct hlist_head *head = sbi->inode_hashtable + exfat_hash(i_pos); in exfat_iget() 514 if (i_pos ! in exfat_iget() 587 exfat_build_inode(struct super_block *sb, struct exfat_dir_entry *info, loff_t i_pos) exfat_build_inode() argument [all...] |
H A D | namei.c | 572 loff_t i_pos; in exfat_create() local 589 i_pos = exfat_make_i_pos(&info); in exfat_create() 590 inode = exfat_build_inode(sb, &info, i_pos); in exfat_create() 717 loff_t i_pos; in exfat_lookup() local 730 i_pos = exfat_make_i_pos(&info); in exfat_lookup() 731 inode = exfat_build_inode(sb, &info, i_pos); in exfat_lookup() 854 loff_t i_pos; in exfat_mkdir() local 872 i_pos = exfat_make_i_pos(&info); in exfat_mkdir() 873 inode = exfat_build_inode(sb, &info, i_pos); in exfat_mkdir() 1308 loff_t i_pos; in exfat_rename() local [all...] |
H A D | exfat_fs.h | 317 loff_t i_pos; member 508 struct exfat_dir_entry *info, loff_t i_pos); 509 void exfat_hash_inode(struct inode *inode, loff_t i_pos); 511 struct inode *exfat_iget(struct super_block *sb, loff_t i_pos);
|
H A D | dir.c | 235 loff_t cpos, i_pos; in exfat_iterate() local 279 i_pos = ((loff_t)ei->start_clu << 32) | (de.entry & 0xffffffff); in exfat_iterate() 280 tmp = exfat_iget(sb, i_pos); in exfat_iterate()
|
H A D | super.c | 368 ei->i_pos = ((loff_t)sbi->root_dir << 32) | 0xffffffff; in exfat_read_root() 680 exfat_hash_inode(root_inode, EXFAT_I(root_inode)->i_pos); in exfat_fill_super()
|