Home
last modified time | relevance | path

Searched refs:super (Results 1 – 25 of 60) sorted by relevance

123

/fs/logfs/
Dsuper.c56 struct logfs_super *super = logfs_super(sb); in dump_segfile() local
60 for (segno = 0; segno < super->s_no_segs; segno++) { in dump_segfile()
64 if (++segno < super->s_no_segs) { in dump_segfile()
69 if (++segno < super->s_no_segs) { in dump_segfile()
74 if (++segno < super->s_no_segs) { in dump_segfile()
100 struct logfs_super *super = logfs_super(sb); in logfs_statfs() local
104 stats->f_blocks = super->s_size >> LOGFS_BLOCK_BITS >> 3; in logfs_statfs()
105 stats->f_bfree = super->s_free_bytes >> sb->s_blocksize_bits; in logfs_statfs()
106 stats->f_bavail = super->s_free_bytes >> sb->s_blocksize_bits; in logfs_statfs()
115 struct logfs_super *super = _super; in logfs_sb_set() local
[all …]
Djournal.c13 struct logfs_super *super = logfs_super(sb); in logfs_calc_free() local
14 u64 reserve, no_segs = super->s_no_segs; in logfs_calc_free()
20 super->s_no_journal_segs = 0; in logfs_calc_free()
23 if (super->s_journal_seg[i]) { in logfs_calc_free()
25 super->s_no_journal_segs++; in logfs_calc_free()
29 no_segs -= 2 * super->s_total_levels; in logfs_calc_free()
31 free = no_segs * (super->s_segsize - LOGFS_SEGMENT_RESERVE); in logfs_calc_free()
32 free -= super->s_used_bytes; in logfs_calc_free()
34 free -= super->s_total_levels * 4096; in logfs_calc_free()
40 reserve = super->s_bad_segments + super->s_bad_seg_reserve; in logfs_calc_free()
[all …]
Dgc.c33 struct logfs_super *super = logfs_super(sb); in no_free_segments() local
35 return super->s_free_list.count; in no_free_segments()
41 struct logfs_super *super = logfs_super(sb); in root_distance() local
50 return super->s_ifile_levels + super->s_iblock_levels - gc_level; in root_distance()
56 return super->s_ifile_levels - (gc_level - 6); in root_distance()
61 return super->s_ifile_levels + super->s_iblock_levels; in root_distance()
67 struct logfs_super *super = logfs_super(sb); in segment_is_reserved() local
73 reserved = btree_lookup32(&super->s_reserved_segments, segno); in segment_is_reserved()
79 area = super->s_area[i]; in segment_is_reserved()
127 struct logfs_super *super = logfs_super(sb); in logfs_gc_segment() local
[all …]
Dsegment.c17 struct logfs_super *super = logfs_super(sb); in logfs_mark_segment_bad() local
18 struct btree_head32 *head = &super->s_reserved_segments; in logfs_mark_segment_bad()
31 struct logfs_super *super = logfs_super(sb); in logfs_erase_segment() local
33 super->s_gec++; in logfs_erase_segment()
35 return super->s_devops->erase(sb, (u64)segno << super->s_segshift, in logfs_erase_segment()
36 super->s_segsize, ensure_erase); in logfs_erase_segment()
55 struct logfs_super *super = logfs_super(sb); in get_mapping_page() local
56 struct address_space *mapping = super->s_mapping_inode->i_mapping; in get_mapping_page()
57 filler_t *filler = super->s_devops->readpage; in get_mapping_page()
128 struct logfs_super *super = logfs_super(sb); in pad_full_pages() local
[all …]
Ddev_bdev.c72 struct logfs_super *super = logfs_super(sb); in writeseg_end_io() local
87 if (atomic_dec_and_test(&super->s_pending_writes)) in writeseg_end_io()
94 struct logfs_super *super = logfs_super(sb); in __bdev_writeseg() local
95 struct address_space *mapping = super->s_mapping_inode->i_mapping; in __bdev_writeseg()
101 max_pages = min(nr_pages, (size_t) bio_get_nr_vecs(super->s_bdev)); in __bdev_writeseg()
111 bio->bi_bdev = super->s_bdev; in __bdev_writeseg()
115 atomic_inc(&super->s_pending_writes); in __bdev_writeseg()
138 bio->bi_bdev = super->s_bdev; in __bdev_writeseg()
142 atomic_inc(&super->s_pending_writes); in __bdev_writeseg()
149 struct logfs_super *super = logfs_super(sb); in bdev_writeseg() local
[all …]
Dinode.c122 struct logfs_super *super = logfs_super(sb); in logfs_safe_iget() local
126 return super->s_master_inode; in logfs_safe_iget()
128 return super->s_segfile_inode; in logfs_safe_iget()
131 list_for_each_entry(li, &super->s_freeing_list, li_freeing_list) in logfs_safe_iget()
313 struct logfs_super *super = logfs_super(inode->i_sb); in logfs_drop_inode() local
317 list_move(&li->li_freeing_list, &super->s_freeing_list); in logfs_drop_inode()
325 struct logfs_super *super = logfs_super(sb); in logfs_set_ino_generation() local
328 mutex_lock(&super->s_journal_mutex); in logfs_set_ino_generation()
329 ino = logfs_seek_hole(super->s_master_inode, super->s_last_ino + 1); in logfs_set_ino_generation()
330 super->s_last_ino = ino; in logfs_set_ino_generation()
[all …]
Ddev_mtd.c38 struct logfs_super *super = logfs_super(sb); in loffs_mtd_write() local
39 struct mtd_info *mtd = super->s_mtd; in loffs_mtd_write()
44 if (super->s_flags & LOGFS_SB_FLAG_RO) in loffs_mtd_write()
48 BUG_ON(ofs != (ofs >> super->s_writeshift) << super->s_writeshift); in loffs_mtd_write()
75 struct logfs_super *super = logfs_super(sb); in logfs_mtd_erase_mapping() local
76 struct address_space *mapping = super->s_mapping_inode->i_mapping; in logfs_mtd_erase_mapping()
150 struct logfs_super *super = logfs_super(sb); in logfs_mtd_find_first_sb() local
151 struct address_space *mapping = super->s_mapping_inode->i_mapping; in logfs_mtd_find_first_sb()
153 struct mtd_info *mtd = super->s_mtd; in logfs_mtd_find_first_sb()
167 struct logfs_super *super = logfs_super(sb); in logfs_mtd_find_last_sb() local
[all …]
Dreadwrite.c207 struct logfs_super *super = logfs_super(sb); in prelock_page() local
216 super->s_lock_count++; in prelock_page()
224 struct logfs_super *super = logfs_super(sb); in preunlock_page() local
232 if (super->s_lock_count) in preunlock_page()
233 super->s_lock_count--; in preunlock_page()
249 struct logfs_super *super = logfs_super(sb); in logfs_get_wblocks() local
255 mutex_lock(&super->s_write_mutex); in logfs_get_wblocks()
264 struct logfs_super *super = logfs_super(sb); in logfs_put_wblocks() local
271 mutex_unlock(&super->s_write_mutex); in logfs_put_wblocks()
383 struct logfs_super *super = logfs_super(sb); in init_shadow_tree() local
[all …]
Ddir.c215 struct logfs_super *super = logfs_super(dir->i_sb); in logfs_unlink() local
243 mutex_lock(&super->s_dirop_mutex); in logfs_unlink()
260 mutex_unlock(&super->s_dirop_mutex); in logfs_unlink()
429 struct logfs_super *super = logfs_super(dir->i_sb); in __logfs_create() local
443 mutex_lock(&super->s_dirop_mutex); in __logfs_create()
481 mutex_unlock(&super->s_dirop_mutex); in __logfs_create()
607 struct logfs_super *super = logfs_super(old_dir->i_sb); in logfs_rename_cross() local
627 mutex_lock(&super->s_dirop_mutex); in logfs_rename_cross()
634 super->s_rename_dir = 0; in logfs_rename_cross()
635 super->s_rename_pos = 0; in logfs_rename_cross()
[all …]
/fs/cramfs/
Dinode.c238 struct cramfs_super super; in cramfs_fill_super() local
256 memcpy(&super, cramfs_read(sb, 0, sizeof(super)), sizeof(super)); in cramfs_fill_super()
260 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super()
262 if (super.magic == CRAMFS_MAGIC_WEND) { in cramfs_fill_super()
270 memcpy(&super, cramfs_read(sb, 512, sizeof(super)), sizeof(super)); in cramfs_fill_super()
272 if (super.magic != CRAMFS_MAGIC) { in cramfs_fill_super()
273 if (super.magic == CRAMFS_MAGIC_WEND && !silent) in cramfs_fill_super()
282 if (super.flags & ~CRAMFS_SUPPORTED_FLAGS) { in cramfs_fill_super()
288 if (!S_ISDIR(super.root.mode)) { in cramfs_fill_super()
293 super.root.mode |= (S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); in cramfs_fill_super()
[all …]
/fs/efs/
Dsuper.c241 static int efs_validate_super(struct efs_sb_info *sb, struct efs_super *super) { in efs_validate_super() argument
243 if (!IS_EFS_MAGIC(be32_to_cpu(super->fs_magic))) in efs_validate_super()
246 sb->fs_magic = be32_to_cpu(super->fs_magic); in efs_validate_super()
247 sb->total_blocks = be32_to_cpu(super->fs_size); in efs_validate_super()
248 sb->first_block = be32_to_cpu(super->fs_firstcg); in efs_validate_super()
249 sb->group_size = be32_to_cpu(super->fs_cgfsize); in efs_validate_super()
250 sb->data_free = be32_to_cpu(super->fs_tfree); in efs_validate_super()
251 sb->inode_free = be32_to_cpu(super->fs_tinode); in efs_validate_super()
252 sb->inode_blocks = be16_to_cpu(super->fs_cgisize); in efs_validate_super()
253 sb->total_groups = be16_to_cpu(super->fs_ncg); in efs_validate_super()
Dinode.c47 struct inode *efs_iget(struct super_block *super, unsigned long ino) in efs_iget() argument
53 struct efs_sb_info *sb = SUPER_INFO(super); in efs_iget()
59 inode = iget_locked(super, ino); in efs_iget()
DMakefile7 efs-objs := super.o inode.o namei.o dir.o file.o symlink.o
/fs/befs/
Ddebug.c247 befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super * super) in befs_dump_index_entry() argument
252 befs_debug(sb, " magic %08x", fs32_to_cpu(sb, super->magic)); in befs_dump_index_entry()
253 befs_debug(sb, " node_size %u", fs32_to_cpu(sb, super->node_size)); in befs_dump_index_entry()
254 befs_debug(sb, " max_depth %08x", fs32_to_cpu(sb, super->max_depth)); in befs_dump_index_entry()
256 befs_debug(sb, " data_type %08x", fs32_to_cpu(sb, super->data_type)); in befs_dump_index_entry()
258 fs64_to_cpu(sb, super->root_node_ptr)); in befs_dump_index_entry()
260 fs64_to_cpu(sb, super->free_node_ptr)); in befs_dump_index_entry()
262 fs64_to_cpu(sb, super->max_size)); in befs_dump_index_entry()
DChangeLog103 (super.c, debug.c) [WD]
148 (datastream.c, btree.c super.c inode.c) [WD]
160 (super.c inode.c) [WD]
171 is the new way. (inode.c, super.c) [WD]
187 symlink string). (super.c, inode.c, befs_fs.h) [WD]
212 fields set (inode.c and super.c).
239 (super.c). Now we check to see if log_start and log_end differ. If so,
242 * Fixed an extra instance of MOD_DEC_USE_COUNT in super.c
335 (fs/befs/super.c) (fs/befs/inode.c)
341 (fs/befs/super.c)
[all …]
Dbefs.h106 BEFS_SB(const struct super_block *super) in BEFS_SB() argument
108 return (befs_sb_info *) super->s_fs_info; in BEFS_SB()
DMakefile7 befs-objs := datastream.o btree.o super.o inode.o debug.o io.o linuxvfs.o
/fs/afs/
Dmntpt.c141 struct afs_super_info *super; in afs_mntpt_do_automount() local
211 super = AFS_FS_S(mntpt->d_sb); in afs_mntpt_do_automount()
213 strcpy(options + 5, super->volume->cell->name); in afs_mntpt_do_automount()
214 if (super->volume->type == AFSVL_RWVOL || rwpath) in afs_mntpt_do_automount()
/fs/efivarfs/
DMakefile7 efivarfs-objs := inode.o file.o super.o
/fs/romfs/
DMakefile7 romfs-y := storage.o super.o
/fs/btrfs/
DKconfig42 writes of the super block). The goal is to verify that the
53 to verify the integrity of (super)-block write requests
/fs/adfs/
DMakefile7 adfs-objs := dir.o dir_f.o dir_fplus.o file.o inode.o map.o super.o
/fs/affs/
DMakefile9 affs-objs := super.o namei.o inode.o file.o dir.o amigaffs.o bitmap.o symlink.o
/fs/sysv/
DMakefile8 namei.o super.o symlink.o
/fs/ufs/
DMakefile8 namei.o super.o symlink.o truncate.o util.o

123