Home
last modified time | relevance | path

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

/linux-6.1.9/fs/hpfs/
Dmap.c14 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap()
22 unsigned n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in hpfs_map_bitmap()
23 if (hpfs_sb(s)->sb_chk) if (bmp_block >= n_bands) { in hpfs_map_bitmap()
27 sec = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_map_bitmap()
28 if (!sec || sec > hpfs_sb(s)->sb_fs_size-4) { in hpfs_map_bitmap()
40 unsigned n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in hpfs_prefetch_bitmap()
43 to_prefetch = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_prefetch_bitmap()
47 next_prefetch = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block + 1]); in hpfs_prefetch_bitmap()
115 int n = (hpfs_sb(s)->sb_fs_size + 0x200000 - 1) >> 21; in hpfs_load_bitmap_directory()
153 hpfs_sb(s)->hotfix_from[i] = le32_to_cpu(directory[i]); in hpfs_load_hotfix_map()
[all …]
Dalloc.c14 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_alloc()
27 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_free()
40 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_dirband_alloc()
53 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_dirband_free()
79 …if (sec >= hpfs_sb(s)->sb_dirband_start && sec < hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dir… in chk_if_allocated()
80 unsigned ssec = (sec - hpfs_sb(s)->sb_dirband_start) / 4; in chk_if_allocated()
103 start + len > hpfs_sb(s)->sb_fs_size) { in hpfs_chk_sectors()
107 if (hpfs_sb(s)->sb_chk>=2) { in hpfs_chk_sectors()
181 …if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~… in alloc_in_bmp()
208 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_alloc_sector()
[all …]
Dinode.c19 i->i_uid = hpfs_sb(sb)->sb_uid; in hpfs_init_inode()
20 i->i_gid = hpfs_sb(sb)->sb_gid; in hpfs_init_inode()
21 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
62 if (hpfs_sb(i->i_sb)->sb_eas) { in hpfs_read_inode()
91 umode_t mode = hpfs_sb(sb)->sb_mode; in hpfs_read_inode()
123 if (hpfs_sb(sb)->sb_chk >= 2) { in hpfs_read_inode()
153 } else*/ if (hpfs_sb(i->i_sb)->sb_eas >= 2) { in hpfs_write_inode_ea()
155 if (!uid_eq(i->i_uid, hpfs_sb(i->i_sb)->sb_uid) || hpfs_inode->i_ea_uid) { in hpfs_write_inode_ea()
160 if (!gid_eq(i->i_gid, hpfs_sb(i->i_sb)->sb_gid) || hpfs_inode->i_ea_gid) { in hpfs_write_inode_ea()
166 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea()
[all …]
Dsuper.c25 if (hpfs_sb(s)->sb_chkdsk && (remount || !sb_rdonly(s))) { in mark_dirty()
48 sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error; in unmark_dirty()
49 sb->old_wrote = hpfs_sb(s)->sb_chkdsk >= 2 && !hpfs_sb(s)->sb_was_error; in unmark_dirty()
71 if (!hpfs_sb(s)->sb_was_error) { in hpfs_error()
72 if (hpfs_sb(s)->sb_err == 2) { in hpfs_error()
76 } else if (hpfs_sb(s)->sb_err == 1) { in hpfs_error()
90 hpfs_sb(s)->sb_was_error = 1; in hpfs_error()
130 call_rcu(&hpfs_sb(s)->rcu, lazy_free_sbi); in hpfs_put_super()
150 n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in count_bitmaps()
158 c = hpfs_count_one_bitmap(s, le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[n])); in count_bitmaps()
[all …]
Dname.c59 if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { in hpfs_translate_name()
71 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); in hpfs_translate_name()
83 unsigned char c1 = upcase(hpfs_sb(s)->sb_cp_table,n1[i]); in hpfs_compare_names()
84 unsigned char c2 = upcase(hpfs_sb(s)->sb_cp_table,n2[i]); in hpfs_compare_names()
Dhpfs_fn.h320 static inline struct hpfs_sb_info *hpfs_sb(struct super_block *sb) in hpfs_sb() function
340 return t + sys_tz.tz_minuteswest * 60 + hpfs_sb(s)->sb_timeshift; in local_to_gmt()
346 return t - sys_tz.tz_minuteswest * 60 - hpfs_sb(s)->sb_timeshift; in gmt_to_local()
365 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_lock()
371 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_unlock()
377 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_lock_assert()
Ddir.c79 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir()
89 if (hpfs_sb(inode->i_sb)->sb_chk >= 2) { in hpfs_readdir()
112 lc = hpfs_sb(inode->i_sb)->sb_lowercase; in hpfs_readdir()
127 if (hpfs_sb(inode->i_sb)->sb_chk) in hpfs_readdir()
161 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir()
254 else if (le32_to_cpu(de->ea_size) && hpfs_sb(dir->i_sb)->sb_eas) in hpfs_lookup()
Ddnode.c147 if (hpfs_sb(s)->sb_chk) { in set_last_pointer()
269 if (hpfs_sb(i->i_sb)->sb_chk) in hpfs_add_to_dnode()
400 if (hpfs_sb(i->i_sb)->sb_chk) in hpfs_add_dirent()
445 if (hpfs_sb(i->i_sb)->sb_chk) in move_to_top()
449 if (hpfs_sb(i->i_sb)->sb_chk) { in move_to_top()
537 if (hpfs_sb(i->i_sb)->sb_chk) if (root && !down) { in delete_empty_dnode()
550 if (hpfs_sb(i->i_sb)->sb_chk) in delete_empty_dnode()
651 if (hpfs_sb(i->i_sb)->sb_chk >= 2) { in delete_empty_dnode()
658 if (hpfs_sb(i->i_sb)->sb_chk >= 2) { in delete_empty_dnode()
754 if (hpfs_sb(s)->sb_chk) in hpfs_count_dnodes()
[all …]
Dbuffer.c17 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_search_hotfix_map()
29 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_search_hotfix_map_for_range()
43 if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors()
60 if (unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors()
Danode.c23 if (hpfs_sb(s)->sb_chk) if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_bplus_lookup")) return -1; in hpfs_bplus_lookup()
41 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, a, 1, "data")) { in hpfs_bplus_lookup()
91 if (hpfs_sb(s)->sb_chk) in hpfs_add_sector_to_btree()
167 if (hpfs_sb(s)->sb_chk) in hpfs_add_sector_to_btree()
290 if (hpfs_sb(s)->sb_chk) in hpfs_remove_btree()
303 if (hpfs_sb(s)->sb_chk) in hpfs_remove_btree()
350 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, sec, 1, "ea #1")) return -1; in hpfs_ea_read()
373 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, sec, 1, "ea #2")) return -1; in hpfs_ea_write()
447 if (hpfs_sb(s)->sb_chk) in hpfs_truncate_btree()
Ddentry.c32 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry()
Dnamei.c233 if (hpfs_sb(dir->i_sb)->sb_eas < 2) return -EPERM; in hpfs_mknod()
309 if (hpfs_sb(dir->i_sb)->sb_eas < 2) { in hpfs_symlink()