Searched refs:hpfs_sb (Results 1 – 12 of 12) sorted by relevance
/fs/hpfs/ |
D | map.c | 13 return hpfs_map_4sectors(s, hpfs_sb(s)->sb_dmap, qbh, 0); in hpfs_map_dnode_bitmap() 21 unsigned n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in hpfs_map_bitmap() 22 if (hpfs_sb(s)->sb_chk) if (bmp_block >= n_bands) { in hpfs_map_bitmap() 26 sec = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_map_bitmap() 27 if (!sec || sec > hpfs_sb(s)->sb_fs_size-4) { in hpfs_map_bitmap() 39 unsigned n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in hpfs_prefetch_bitmap() 42 to_prefetch = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block]); in hpfs_prefetch_bitmap() 46 next_prefetch = le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[bmp_block + 1]); in hpfs_prefetch_bitmap() 114 int n = (hpfs_sb(s)->sb_fs_size + 0x200000 - 1) >> 21; in hpfs_load_bitmap_directory() 152 hpfs_sb(s)->hotfix_from[i] = le32_to_cpu(directory[i]); in hpfs_load_hotfix_map() [all …]
|
D | alloc.c | 13 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_alloc() 26 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_free() 39 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_dirband_alloc() 52 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_claim_dirband_free() 78 …if (sec >= hpfs_sb(s)->sb_dirband_start && sec < hpfs_sb(s)->sb_dirband_start + hpfs_sb(s)->sb_dir… in chk_if_allocated() 79 unsigned ssec = (sec - hpfs_sb(s)->sb_dirband_start) / 4; in chk_if_allocated() 102 start + len > hpfs_sb(s)->sb_fs_size) { in hpfs_chk_sectors() 106 if (hpfs_sb(s)->sb_chk>=2) { in hpfs_chk_sectors() 180 …if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~… in alloc_in_bmp() 207 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_alloc_sector() [all …]
|
D | inode.c | 18 i->i_uid = hpfs_sb(sb)->sb_uid; in hpfs_init_inode() 19 i->i_gid = hpfs_sb(sb)->sb_gid; in hpfs_init_inode() 20 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode() 61 if (hpfs_sb(i->i_sb)->sb_eas) { in hpfs_read_inode() 89 umode_t mode = hpfs_sb(sb)->sb_mode; in hpfs_read_inode() 121 if (hpfs_sb(sb)->sb_chk >= 2) { in hpfs_read_inode() 151 } else*/ if (hpfs_sb(i->i_sb)->sb_eas >= 2) { in hpfs_write_inode_ea() 153 if (!uid_eq(i->i_uid, hpfs_sb(i->i_sb)->sb_uid) || hpfs_inode->i_ea_uid) { in hpfs_write_inode_ea() 158 if (!gid_eq(i->i_gid, hpfs_sb(i->i_sb)->sb_gid) || hpfs_inode->i_ea_gid) { in hpfs_write_inode_ea() 164 if ((i->i_mode != ((hpfs_sb(i->i_sb)->sb_mode & ~(S_ISDIR(i->i_mode) ? 0 : 0111)) in hpfs_write_inode_ea() [all …]
|
D | super.c | 24 if (hpfs_sb(s)->sb_chkdsk && (remount || !(s->s_flags & MS_RDONLY))) { in mark_dirty() 47 sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error; in unmark_dirty() 48 sb->old_wrote = hpfs_sb(s)->sb_chkdsk >= 2 && !hpfs_sb(s)->sb_was_error; in unmark_dirty() 70 if (!hpfs_sb(s)->sb_was_error) { in hpfs_error() 71 if (hpfs_sb(s)->sb_err == 2) { in hpfs_error() 75 } else if (hpfs_sb(s)->sb_err == 1) { in hpfs_error() 89 hpfs_sb(s)->sb_was_error = 1; in hpfs_error() 129 call_rcu(&hpfs_sb(s)->rcu, lazy_free_sbi); in hpfs_put_super() 149 n_bands = (hpfs_sb(s)->sb_fs_size + 0x3fff) >> 14; in count_bitmaps() 157 c = hpfs_count_one_bitmap(s, le32_to_cpu(hpfs_sb(s)->sb_bmp_dir[n])); in count_bitmaps() [all …]
|
D | name.c | 58 if (hpfs_sb(s)->sb_chk >= 2) if (hpfs_is_name_long(from, len) != lng) { in hpfs_translate_name() 70 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); in hpfs_translate_name() 82 unsigned char c1 = upcase(hpfs_sb(s)->sb_cp_table,n1[i]); in hpfs_compare_names() 83 unsigned char c2 = upcase(hpfs_sb(s)->sb_cp_table,n2[i]); in hpfs_compare_names()
|
D | hpfs_fn.h | 320 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() 360 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_lock() 366 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_unlock() 372 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_lock_assert()
|
D | dir.c | 74 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir() 84 if (hpfs_sb(inode->i_sb)->sb_chk >= 2) { in hpfs_readdir() 107 lc = hpfs_sb(inode->i_sb)->sb_lowercase; in hpfs_readdir() 122 if (hpfs_sb(inode->i_sb)->sb_chk) in hpfs_readdir() 155 if (hpfs_sb(inode->i_sb)->sb_chk) { in hpfs_readdir() 247 else if (le32_to_cpu(de->ea_size) && hpfs_sb(dir->i_sb)->sb_eas) in hpfs_lookup()
|
D | dnode.c | 143 if (hpfs_sb(s)->sb_chk) { in set_last_pointer() 265 if (hpfs_sb(i->i_sb)->sb_chk) in hpfs_add_to_dnode() 396 if (hpfs_sb(i->i_sb)->sb_chk) in hpfs_add_dirent() 442 if (hpfs_sb(i->i_sb)->sb_chk) in move_to_top() 446 if (hpfs_sb(i->i_sb)->sb_chk) { in move_to_top() 534 if (hpfs_sb(i->i_sb)->sb_chk) if (root && !down) { in delete_empty_dnode() 547 if (hpfs_sb(i->i_sb)->sb_chk) in delete_empty_dnode() 648 if (hpfs_sb(i->i_sb)->sb_chk >= 2) { in delete_empty_dnode() 655 if (hpfs_sb(i->i_sb)->sb_chk >= 2) { in delete_empty_dnode() 752 if (hpfs_sb(s)->sb_chk) in hpfs_count_dnodes() [all …]
|
D | buffer.c | 16 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_search_hotfix_map() 28 struct hpfs_sb_info *sbi = hpfs_sb(s); in hpfs_search_hotfix_map_for_range() 42 if (n <= 0 || unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors() 59 if (unlikely(secno >= hpfs_sb(s)->sb_fs_size)) in hpfs_prefetch_sectors()
|
D | anode.c | 22 if (hpfs_sb(s)->sb_chk) if (hpfs_stop_cycles(s, a, &c1, &c2, "hpfs_bplus_lookup")) return -1; in hpfs_bplus_lookup() 40 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, a, 1, "data")) { in hpfs_bplus_lookup() 90 if (hpfs_sb(s)->sb_chk) in hpfs_add_sector_to_btree() 166 if (hpfs_sb(s)->sb_chk) in hpfs_add_sector_to_btree() 289 if (hpfs_sb(s)->sb_chk) in hpfs_remove_btree() 302 if (hpfs_sb(s)->sb_chk) in hpfs_remove_btree() 349 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, sec, 1, "ea #1")) return -1; in hpfs_ea_read() 372 if (hpfs_sb(s)->sb_chk) if (hpfs_chk_sectors(s, sec, 1, "ea #2")) return -1; in hpfs_ea_write() 446 if (hpfs_sb(s)->sb_chk) in hpfs_truncate_btree()
|
D | dentry.c | 31 hash = partial_name_hash(hpfs_upcase(hpfs_sb(dentry->d_sb)->sb_cp_table,qstr->name[i]), hash); in hpfs_hash_dentry()
|
D | namei.c | 229 if (hpfs_sb(dir->i_sb)->sb_eas < 2) return -EPERM; in hpfs_mknod() 304 if (hpfs_sb(dir->i_sb)->sb_eas < 2) { in hpfs_symlink()
|