/linux-4.4.14/fs/befs/ |
D | debug.c | 28 befs_error(const struct super_block *sb, const char *fmt, ...) in befs_error() argument 36 pr_err("(%s): %pV\n", sb->s_id, &vaf); in befs_error() 41 befs_warning(const struct super_block *sb, const char *fmt, ...) in befs_warning() argument 49 pr_warn("(%s): %pV\n", sb->s_id, &vaf); in befs_warning() 54 befs_debug(const struct super_block *sb, const char *fmt, ...) in befs_debug() argument 63 pr_debug("(%s): %pV\n", sb->s_id, &vaf); in befs_debug() 70 befs_dump_inode(const struct super_block *sb, befs_inode * inode) in befs_dump_inode() argument 76 befs_debug(sb, "befs_inode information"); in befs_dump_inode() 78 befs_debug(sb, " magic1 %08x", fs32_to_cpu(sb, inode->magic1)); in befs_dump_inode() 80 tmp_run = fsrun_to_cpu(sb, inode->inode_num); in befs_dump_inode() [all …]
|
D | datastream.c | 23 static int befs_find_brun_direct(struct super_block *sb, 27 static int befs_find_brun_indirect(struct super_block *sb, 32 static int befs_find_brun_dblindirect(struct super_block *sb, 48 befs_read_datastream(struct super_block *sb, befs_data_stream * ds, in befs_read_datastream() argument 55 befs_debug(sb, "---> %s %llu", __func__, pos); in befs_read_datastream() 56 block = pos >> BEFS_SB(sb)->block_shift; in befs_read_datastream() 58 *off = pos - (block << BEFS_SB(sb)->block_shift); in befs_read_datastream() 60 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream() 61 befs_error(sb, "BeFS: Error finding disk addr of block %lu", in befs_read_datastream() 63 befs_debug(sb, "<--- %s ERROR", __func__); in befs_read_datastream() [all …]
|
D | linuxvfs.c | 42 static struct inode *befs_alloc_inode(struct super_block *sb); 46 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len, 48 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len, 122 struct super_block *sb = inode->i_sb; in befs_get_block() local 128 befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", in befs_get_block() 131 befs_error(sb, "befs_get_block() was asked to write to " in befs_get_block() 137 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block() 139 befs_error(sb, in befs_get_block() 146 disk_off = (ulong) iaddr2blockno(sb, &run); in befs_get_block() 150 befs_debug(sb, "<--- %s for inode %lu, block %ld, disk address %lu", in befs_get_block() [all …]
|
D | btree.c | 91 static int befs_btree_seekleaf(struct super_block *sb, befs_data_stream * ds, 96 static int befs_bt_read_super(struct super_block *sb, befs_data_stream * ds, 99 static int befs_bt_read_node(struct super_block *sb, befs_data_stream * ds, 111 static int befs_find_key(struct super_block *sb, 115 static char *befs_bt_get_key(struct super_block *sb, 137 befs_bt_read_super(struct super_block *sb, befs_data_stream * ds, in befs_bt_read_super() argument 143 befs_debug(sb, "---> %s", __func__); in befs_bt_read_super() 145 bh = befs_read_datastream(sb, ds, 0, NULL); in befs_bt_read_super() 148 befs_error(sb, "Couldn't read index header."); in befs_bt_read_super() 152 befs_dump_index_entry(sb, od_sup); in befs_bt_read_super() [all …]
|
D | super.c | 25 befs_load_sb(struct super_block *sb, befs_super_block * disk_sb) in befs_load_sb() argument 27 struct befs_sb_info *befs_sb = BEFS_SB(sb); in befs_load_sb() 35 befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1); in befs_load_sb() 36 befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2); in befs_load_sb() 37 befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3); in befs_load_sb() 38 befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size); in befs_load_sb() 39 befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift); in befs_load_sb() 40 befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks); in befs_load_sb() 41 befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks); in befs_load_sb() 42 befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size); in befs_load_sb() [all …]
|
D | io.c | 27 befs_bread_iaddr(struct super_block *sb, befs_inode_addr iaddr) in befs_bread_iaddr() argument 31 struct befs_sb_info *befs_sb = BEFS_SB(sb); in befs_bread_iaddr() 33 befs_debug(sb, "---> Enter %s " in befs_bread_iaddr() 38 befs_error(sb, "BEFS: Invalid allocation group %u, max is %u", in befs_bread_iaddr() 43 block = iaddr2blockno(sb, &iaddr); in befs_bread_iaddr() 45 befs_debug(sb, "%s: offset = %lu", __func__, (unsigned long)block); in befs_bread_iaddr() 47 bh = sb_bread(sb, block); in befs_bread_iaddr() 50 befs_error(sb, "Failed to read block %lu", in befs_bread_iaddr() 55 befs_debug(sb, "<--- %s", __func__); in befs_bread_iaddr() 59 befs_debug(sb, "<--- %s ERROR", __func__); in befs_bread_iaddr() [all …]
|
D | endian.h | 15 fs64_to_cpu(const struct super_block *sb, fs64 n) in fs64_to_cpu() argument 17 if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) in fs64_to_cpu() 24 cpu_to_fs64(const struct super_block *sb, u64 n) in cpu_to_fs64() argument 26 if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) in cpu_to_fs64() 33 fs32_to_cpu(const struct super_block *sb, fs32 n) in fs32_to_cpu() argument 35 if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) in fs32_to_cpu() 42 cpu_to_fs32(const struct super_block *sb, u32 n) in cpu_to_fs32() argument 44 if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) in cpu_to_fs32() 51 fs16_to_cpu(const struct super_block *sb, fs16 n) in fs16_to_cpu() argument 53 if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) in fs16_to_cpu() [all …]
|
D | befs.h | 90 void befs_error(const struct super_block *sb, const char *fmt, ...); 92 void befs_warning(const struct super_block *sb, const char *fmt, ...); 94 void befs_debug(const struct super_block *sb, const char *fmt, ...); 96 void befs_dump_super_block(const struct super_block *sb, befs_super_block *); 97 void befs_dump_inode(const struct super_block *sb, befs_inode *); 98 void befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super *); 99 void befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *); 119 iaddr2blockno(struct super_block *sb, befs_inode_addr * iaddr) in iaddr2blockno() argument 121 return ((iaddr->allocation_group << BEFS_SB(sb)->ag_shift) + in iaddr2blockno() 126 blockno2iaddr(struct super_block *sb, befs_blocknr_t blockno) in blockno2iaddr() argument [all …]
|
D | inode.c | 18 befs_check_inode(struct super_block *sb, befs_inode * raw_inode, in befs_check_inode() argument 21 u32 magic1 = fs32_to_cpu(sb, raw_inode->magic1); in befs_check_inode() 22 befs_inode_addr ino_num = fsrun_to_cpu(sb, raw_inode->inode_num); in befs_check_inode() 23 u32 flags = fs32_to_cpu(sb, raw_inode->flags); in befs_check_inode() 27 befs_error(sb, in befs_check_inode() 36 if (inode != iaddr2blockno(sb, &ino_num)) { in befs_check_inode() 37 befs_error(sb, "inode blocknr field disagrees with vfs " in befs_check_inode() 39 inode, (unsigned long)iaddr2blockno(sb, &ino_num)); in befs_check_inode() 48 befs_error(sb, "inode is not used - inode = %lu", in befs_check_inode()
|
/linux-4.4.14/tools/perf/util/ |
D | strbuf.c | 20 void strbuf_init(struct strbuf *sb, ssize_t hint) in strbuf_init() argument 22 sb->alloc = sb->len = 0; in strbuf_init() 23 sb->buf = strbuf_slopbuf; in strbuf_init() 25 strbuf_grow(sb, hint); in strbuf_init() 28 void strbuf_release(struct strbuf *sb) in strbuf_release() argument 30 if (sb->alloc) { in strbuf_release() 31 zfree(&sb->buf); in strbuf_release() 32 strbuf_init(sb, 0); in strbuf_release() 36 char *strbuf_detach(struct strbuf *sb, size_t *sz) in strbuf_detach() argument 38 char *res = sb->alloc ? sb->buf : NULL; in strbuf_detach() [all …]
|
D | strbuf.h | 59 static inline ssize_t strbuf_avail(const struct strbuf *sb) { in strbuf_avail() argument 60 return sb->alloc ? sb->alloc - sb->len - 1 : 0; in strbuf_avail() 65 static inline void strbuf_setlen(struct strbuf *sb, size_t len) { in strbuf_setlen() argument 66 if (!sb->alloc) in strbuf_setlen() 67 strbuf_grow(sb, 0); in strbuf_setlen() 68 assert(len < sb->alloc); in strbuf_setlen() 69 sb->len = len; in strbuf_setlen() 70 sb->buf[len] = '\0'; in strbuf_setlen() 74 static inline void strbuf_addch(struct strbuf *sb, int c) { in strbuf_addch() argument 75 strbuf_grow(sb, 1); in strbuf_addch() [all …]
|
/linux-4.4.14/fs/hfs/ |
D | mdb.c | 32 static int hfs_get_last_session(struct super_block *sb, in hfs_get_last_session() argument 41 *size = sb->s_bdev->bd_inode->i_size >> 9; in hfs_get_last_session() 43 if (HFS_SB(sb)->session >= 0) { in hfs_get_last_session() 44 te.cdte_track = HFS_SB(sb)->session; in hfs_get_last_session() 46 res = ioctl_by_bdev(sb->s_bdev, CDROMREADTOCENTRY, (unsigned long)&te); in hfs_get_last_session() 55 res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, (unsigned long)&ms_info); in hfs_get_last_session() 67 int hfs_mdb_get(struct super_block *sb) in hfs_mdb_get() argument 79 size = sb_min_blocksize(sb, HFS_SECTOR_SIZE); in hfs_mdb_get() 83 if (hfs_get_last_session(sb, &part_start, &part_size)) in hfs_mdb_get() 87 bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb); in hfs_mdb_get() [all …]
|
D | super.c | 33 static int hfs_sync_fs(struct super_block *sb, int wait) in hfs_sync_fs() argument 35 hfs_mdb_commit(sb); in hfs_sync_fs() 46 static void hfs_put_super(struct super_block *sb) in hfs_put_super() argument 48 cancel_delayed_work_sync(&HFS_SB(sb)->mdb_work); in hfs_put_super() 49 hfs_mdb_close(sb); in hfs_put_super() 51 hfs_mdb_put(sb); in hfs_put_super() 57 struct super_block *sb; in flush_mdb() local 60 sb = sbi->sb; in flush_mdb() 66 hfs_mdb_commit(sb); in flush_mdb() 69 void hfs_mark_mdb_dirty(struct super_block *sb) in hfs_mark_mdb_dirty() argument [all …]
|
D | bitmap.c | 139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument 148 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free() 149 bitmap = HFS_SB(sb)->bitmap; in hfs_vbm_search_free() 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free() 152 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free() 155 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free() 162 HFS_SB(sb)->free_ablocks -= *num_bits; in hfs_vbm_search_free() 163 hfs_bitmap_dirty(sb); in hfs_vbm_search_free() 165 mutex_unlock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free() 193 int hfs_clear_vbm_bits(struct super_block *sb, u16 start, u16 count) in hfs_clear_vbm_bits() argument [all …]
|
D | catalog.c | 23 void hfs_cat_build_key(struct super_block *sb, btree_key *key, u32 parent, struct qstr *name) in hfs_cat_build_key() argument 28 hfs_asc2mac(sb, &key->cat.CName, name); in hfs_cat_build_key() 65 static int hfs_cat_build_thread(struct super_block *sb, in hfs_cat_build_thread() argument 72 hfs_asc2mac(sb, &rec->thread.CName, name); in hfs_cat_build_thread() 85 struct super_block *sb; in hfs_cat_create() local 95 sb = dir->i_sb; in hfs_cat_create() 96 err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd); in hfs_cat_create() 100 hfs_cat_build_key(sb, fd.search_key, cnid, NULL); in hfs_cat_create() 101 entry_size = hfs_cat_build_thread(sb, &entry, S_ISDIR(inode->i_mode) ? in hfs_cat_create() 114 hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str); in hfs_cat_create() [all …]
|
D | extent.c | 244 static int hfs_free_extents(struct super_block *sb, struct hfs_extent *extent, in hfs_free_extents() argument 265 hfs_clear_vbm_bits(sb, start, count); in hfs_free_extents() 271 hfs_clear_vbm_bits(sb, start + count, block_nr); in hfs_free_extents() 283 int hfs_free_fork(struct super_block *sb, struct hfs_cat_file *file, int type) in hfs_free_fork() argument 298 total_blocks /= HFS_SB(sb)->alloc_blksz; in hfs_free_fork() 306 res = hfs_free_extents(sb, extent, blocks, blocks); in hfs_free_fork() 312 res = hfs_find_init(HFS_SB(sb)->ext_tree, &fd); in hfs_free_fork() 320 hfs_free_extents(sb, extent, total_blocks - start, total_blocks); in hfs_free_fork() 335 struct super_block *sb; in hfs_get_block() local 339 sb = inode->i_sb; in hfs_get_block() [all …]
|
D | inode.c | 73 struct super_block *sb = inode->i_sb; in hfs_releasepage() local 81 tree = HFS_SB(sb)->ext_tree; in hfs_releasepage() 84 tree = HFS_SB(sb)->cat_tree; in hfs_releasepage() 183 struct super_block *sb = dir->i_sb; in hfs_new_inode() local 184 struct inode *inode = new_inode(sb); in hfs_new_inode() 190 hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name); in hfs_new_inode() 191 inode->i_ino = HFS_SB(sb)->next_id++; in hfs_new_inode() 202 HFS_SB(sb)->folder_count++; in hfs_new_inode() 204 HFS_SB(sb)->root_dirs++; in hfs_new_inode() 210 HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks; in hfs_new_inode() [all …]
|
D | hfs_fs.h | 162 struct super_block *sb; member 243 extern void hfs_mark_mdb_dirty(struct super_block *sb); 256 #define HFS_SB(sb) ((struct hfs_sb_info *)(sb)->s_fs_info) argument 262 static inline const char *hfs_mdb_name(struct super_block *sb) in hfs_mdb_name() argument 264 return sb->s_id; in hfs_mdb_name() 267 static inline void hfs_bitmap_dirty(struct super_block *sb) in hfs_bitmap_dirty() argument 269 set_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags); in hfs_bitmap_dirty() 270 hfs_mark_mdb_dirty(sb); in hfs_bitmap_dirty() 273 #define sb_bread512(sb, sec, data) ({ \ argument 280 __block = __start >> (sb)->s_blocksize_bits; \ [all …]
|
D | part_tbl.c | 58 int hfs_part_find(struct super_block *sb, in hfs_part_find() argument 66 bh = sb_bread512(sb, *part_start + HFS_PMAP_BLK, data); in hfs_part_find() 82 (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) { in hfs_part_find() 98 (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) { in hfs_part_find() 105 bh = sb_bread512(sb, *part_start + HFS_PMAP_BLK + ++i, pm); in hfs_part_find()
|
/linux-4.4.14/fs/ |
D | super.c | 58 struct super_block *sb; in super_cache_scan() local 65 sb = container_of(shrink, struct super_block, s_shrink); in super_cache_scan() 74 if (!trylock_super(sb)) in super_cache_scan() 77 if (sb->s_op->nr_cached_objects) in super_cache_scan() 78 fs_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_scan() 80 inodes = list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_scan() 81 dentries = list_lru_shrink_count(&sb->s_dentry_lru, sc); in super_cache_scan() 99 freed = prune_dcache_sb(sb, sc); in super_cache_scan() 101 freed += prune_icache_sb(sb, sc); in super_cache_scan() 105 freed += sb->s_op->free_cached_objects(sb, sc); in super_cache_scan() [all …]
|
D | sync.c | 30 static int __sync_filesystem(struct super_block *sb, int wait) in __sync_filesystem() argument 33 sync_inodes_sb(sb); in __sync_filesystem() 35 writeback_inodes_sb(sb, WB_REASON_SYNC); in __sync_filesystem() 37 if (sb->s_op->sync_fs) in __sync_filesystem() 38 sb->s_op->sync_fs(sb, wait); in __sync_filesystem() 39 return __sync_blockdev(sb->s_bdev, wait); in __sync_filesystem() 47 int sync_filesystem(struct super_block *sb) in sync_filesystem() argument 55 WARN_ON(!rwsem_is_locked(&sb->s_umount)); in sync_filesystem() 60 if (sb->s_flags & MS_RDONLY) in sync_filesystem() 63 ret = __sync_filesystem(sb, 0); in sync_filesystem() [all …]
|
D | proc_namespace.c | 42 static int show_sb_opts(struct seq_file *m, struct super_block *sb) in show_sb_opts() argument 54 if (sb->s_flags & fs_infop->flag) in show_sb_opts() 58 return security_sb_show_options(m, sb); in show_sb_opts() 85 static void show_type(struct seq_file *m, struct super_block *sb) in show_type() argument 87 mangle(m, sb->s_type->name); in show_type() 88 if (sb->s_subtype && sb->s_subtype[0]) { in show_type() 90 mangle(m, sb->s_subtype); in show_type() 100 struct super_block *sb = mnt_path.dentry->d_sb; in show_vfsmnt() local 102 if (sb->s_op->show_devname) { in show_vfsmnt() 103 err = sb->s_op->show_devname(m, mnt_path.dentry); in show_vfsmnt() [all …]
|
D | inode.c | 129 int inode_init_always(struct super_block *sb, struct inode *inode) in inode_init_always() argument 135 inode->i_sb = sb; in inode_init_always() 136 inode->i_blkbits = sb->s_blocksize_bits; in inode_init_always() 160 lockdep_set_class(&inode->i_lock, &sb->s_type->i_lock_key); in inode_init_always() 163 lockdep_set_class(&inode->i_mutex, &sb->s_type->i_mutex_key); in inode_init_always() 193 static struct inode *alloc_inode(struct super_block *sb) in alloc_inode() argument 197 if (sb->s_op->alloc_inode) in alloc_inode() 198 inode = sb->s_op->alloc_inode(sb); in alloc_inode() 205 if (unlikely(inode_init_always(sb, inode))) { in alloc_inode() 442 static unsigned long hash(struct super_block *sb, unsigned long hashval) in hash() argument [all …]
|
D | drop_caches.c | 16 static void drop_pagecache_sb(struct super_block *sb, void *unused) in drop_pagecache_sb() argument 20 spin_lock(&sb->s_inode_list_lock); in drop_pagecache_sb() 21 list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { in drop_pagecache_sb() 30 spin_unlock(&sb->s_inode_list_lock); in drop_pagecache_sb() 36 spin_lock(&sb->s_inode_list_lock); in drop_pagecache_sb() 38 spin_unlock(&sb->s_inode_list_lock); in drop_pagecache_sb()
|
D | fs-writeback.c | 47 struct super_block *sb; member 1053 struct super_block *sb = NULL; in move_expired_inodes() local 1075 if (sb && sb != inode->i_sb) in move_expired_inodes() 1077 sb = inode->i_sb; in move_expired_inodes() 1088 sb = wb_inode(tmp.prev)->i_sb; in move_expired_inodes() 1091 if (inode->i_sb == sb) in move_expired_inodes() 1441 static long writeback_sb_inodes(struct super_block *sb, in writeback_sb_inodes() argument 1463 if (inode->i_sb != sb) { in writeback_sb_inodes() 1464 if (work->sb) { in writeback_sb_inodes() 1591 struct super_block *sb = inode->i_sb; in __writeback_inodes_wb() local [all …]
|
/linux-4.4.14/fs/ext4/ |
D | balloc.c | 25 static unsigned ext4_num_base_meta_clusters(struct super_block *sb, 34 ext4_group_t ext4_get_group_number(struct super_block *sb, in ext4_get_group_number() argument 39 if (test_opt2(sb, STD_GROUP_SIZE)) in ext4_get_group_number() 41 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >> in ext4_get_group_number() 42 (EXT4_BLOCK_SIZE_BITS(sb) + EXT4_CLUSTER_BITS(sb) + 3); in ext4_get_group_number() 44 ext4_get_group_no_and_offset(sb, block, &group, NULL); in ext4_get_group_number() 52 void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr, in ext4_get_group_no_and_offset() argument 55 struct ext4_super_block *es = EXT4_SB(sb)->s_es; in ext4_get_group_no_and_offset() 59 offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >> in ext4_get_group_no_and_offset() 60 EXT4_SB(sb)->s_cluster_bits; in ext4_get_group_no_and_offset() [all …]
|
D | super.c | 64 static int ext4_commit_super(struct super_block *sb, int sync); 65 static void ext4_mark_recovery_complete(struct super_block *sb, 67 static void ext4_clear_journal_err(struct super_block *sb, 69 static int ext4_sync_fs(struct super_block *sb, int wait); 70 static int ext4_remount(struct super_block *sb, int *flags, char *data); 72 static int ext4_unfreeze(struct super_block *sb); 73 static int ext4_freeze(struct super_block *sb); 76 static inline int ext2_feature_set_ok(struct super_block *sb); 77 static inline int ext3_feature_set_ok(struct super_block *sb); 78 static int ext4_feature_set_ok(struct super_block *sb, int readonly); [all …]
|
D | resize.c | 19 int ext4_resize_begin(struct super_block *sb) in ext4_resize_begin() argument 31 if (EXT4_SB(sb)->s_sbh->b_blocknr != in ext4_resize_begin() 32 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) { in ext4_resize_begin() 33 ext4_warning(sb, "won't resize using backup superblock at %llu", in ext4_resize_begin() 34 (unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr); in ext4_resize_begin() 42 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { in ext4_resize_begin() 43 ext4_warning(sb, "There are errors in the filesystem, " in ext4_resize_begin() 48 if (test_and_set_bit_lock(EXT4_RESIZING, &EXT4_SB(sb)->s_resize_flags)) in ext4_resize_begin() 54 void ext4_resize_end(struct super_block *sb) in ext4_resize_end() argument 56 clear_bit_unlock(EXT4_RESIZING, &EXT4_SB(sb)->s_resize_flags); in ext4_resize_end() [all …]
|
D | ialloc.c | 67 static int ext4_init_inode_bitmap(struct super_block *sb, in ext4_init_inode_bitmap() argument 73 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_init_inode_bitmap() 78 if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) { in ext4_init_inode_bitmap() 79 grp = ext4_get_group_info(sb, block_group); in ext4_init_inode_bitmap() 86 count = ext4_free_inodes_count(sb, gdp); in ext4_init_inode_bitmap() 94 memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / 8); in ext4_init_inode_bitmap() 95 ext4_mark_bitmap_end(EXT4_INODES_PER_GROUP(sb), sb->s_blocksize * 8, in ext4_init_inode_bitmap() 97 ext4_inode_bitmap_csum_set(sb, block_group, gdp, bh, in ext4_init_inode_bitmap() 98 EXT4_INODES_PER_GROUP(sb) / 8); in ext4_init_inode_bitmap() 99 ext4_group_desc_csum_set(sb, block_group, gdp); in ext4_init_inode_bitmap() [all …]
|
D | mmp.c | 10 static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum() argument 12 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_mmp_csum() 21 static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_verify() argument 23 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_verify() 26 return mmp->mmp_checksum == ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_verify() 29 static void ext4_mmp_csum_set(struct super_block *sb, struct mmp_struct *mmp) in ext4_mmp_csum_set() argument 31 if (!ext4_has_metadata_csum(sb)) in ext4_mmp_csum_set() 34 mmp->mmp_checksum = ext4_mmp_csum(sb, mmp); in ext4_mmp_csum_set() 41 static int write_mmp_block(struct super_block *sb, struct buffer_head *bh) in write_mmp_block() argument 49 sb_start_write(sb); in write_mmp_block() [all …]
|
D | ext4_jbd2.h | 36 #define EXT4_SINGLEDATA_TRANS_BLOCKS(sb) \ argument 37 (ext4_has_feature_extents(sb) ? 20U : 8U) 51 #define EXT4_DATA_TRANS_BLOCKS(sb) (EXT4_SINGLEDATA_TRANS_BLOCKS(sb) + \ argument 53 EXT4_MAXQUOTAS_TRANS_BLOCKS(sb)) 60 #define EXT4_META_TRANS_BLOCKS(sb) (EXT4_XATTR_TRANS_BLOCKS + \ argument 61 EXT4_MAXQUOTAS_TRANS_BLOCKS(sb)) 85 #define EXT4_QUOTA_TRANS_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\ argument 86 ext4_has_feature_quota(sb)) ? 1 : 0) 89 #define EXT4_QUOTA_INIT_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\ argument 90 ext4_has_feature_quota(sb)) ?\ [all …]
|
D | mballoc.c | 366 static void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap, 368 static void ext4_mb_generate_from_freelist(struct super_block *sb, void *bitmap, 370 static void ext4_free_data_callback(struct super_block *sb, 470 struct super_block *sb = e4b->bd_sb; in mb_free_blocks_double() local 474 assert_spin_locked(ext4_group_lock_ptr(sb, e4b->bd_group)); in mb_free_blocks_double() 479 blocknr = ext4_group_first_block_no(sb, e4b->bd_group); in mb_free_blocks_double() 480 blocknr += EXT4_C2B(EXT4_SB(sb), first + i); in mb_free_blocks_double() 481 ext4_grp_locked_error(sb, e4b->bd_group, in mb_free_blocks_double() 557 struct super_block *sb = e4b->bd_sb; in __mb_check_buddy() local 639 grp = ext4_get_group_info(sb, e4b->bd_group); in __mb_check_buddy() [all …]
|
D | ioctl.c | 93 static long swap_inode_boot_loader(struct super_block *sb, in swap_inode_boot_loader() argument 100 struct ext4_sb_info *sbi = EXT4_SB(sb); in swap_inode_boot_loader() 108 inode_bl = ext4_iget(sb, EXT4_BOOT_LOADER_INO); in swap_inode_boot_loader() 148 if (ext4_has_feature_extents(sb)) { in swap_inode_boot_loader() 208 struct super_block *sb = inode->i_sb; in ext4_ioctl() local 339 ext4_warning(sb, "Setting inode version is not " in ext4_ioctl() 376 err = ext4_resize_begin(sb); in ext4_ioctl() 385 if (ext4_has_feature_bigalloc(sb)) { in ext4_ioctl() 386 ext4_msg(sb, KERN_ERR, in ext4_ioctl() 396 err = ext4_group_extend(sb, EXT4_SB(sb)->s_es, n_blocks_count); in ext4_ioctl() [all …]
|
D | bitmap.c | 18 int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, in ext4_inode_bitmap_csum_verify() argument 24 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_inode_bitmap_csum_verify() 26 if (!ext4_has_metadata_csum(sb)) in ext4_inode_bitmap_csum_verify() 40 void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group, in ext4_inode_bitmap_csum_set() argument 45 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_inode_bitmap_csum_set() 47 if (!ext4_has_metadata_csum(sb)) in ext4_inode_bitmap_csum_set() 56 int ext4_block_bitmap_csum_verify(struct super_block *sb, ext4_group_t group, in ext4_block_bitmap_csum_verify() argument 62 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_block_bitmap_csum_verify() 63 int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8; in ext4_block_bitmap_csum_verify() 65 if (!ext4_has_metadata_csum(sb)) in ext4_block_bitmap_csum_verify() [all …]
|
D | ext4.h | 1098 #define clear_opt(sb, opt) EXT4_SB(sb)->s_mount_opt &= \ argument 1100 #define set_opt(sb, opt) EXT4_SB(sb)->s_mount_opt |= \ argument 1102 #define test_opt(sb, opt) (EXT4_SB(sb)->s_mount_opt & \ argument 1105 #define clear_opt2(sb, opt) EXT4_SB(sb)->s_mount_opt2 &= \ argument 1107 #define set_opt2(sb, opt) EXT4_SB(sb)->s_mount_opt2 |= \ argument 1109 #define test_opt2(sb, opt) (EXT4_SB(sb)->s_mount_opt2 & \ argument 1452 static inline struct ext4_sb_info *EXT4_SB(struct super_block *sb) in EXT4_SB() argument 1454 return sb->s_fs_info; in EXT4_SB() 1467 static inline int ext4_valid_inum(struct super_block *sb, unsigned long ino) in ext4_valid_inum() argument 1475 (ino >= EXT4_FIRST_INO(sb) && in ext4_valid_inum() [all …]
|
D | block_validity.c | 139 int ext4_setup_system_zone(struct super_block *sb) in ext4_setup_system_zone() argument 141 ext4_group_t ngroups = ext4_get_groups_count(sb); in ext4_setup_system_zone() 142 struct ext4_sb_info *sbi = EXT4_SB(sb); in ext4_setup_system_zone() 148 if (!test_opt(sb, BLOCK_VALIDITY)) { in ext4_setup_system_zone() 149 if (EXT4_SB(sb)->system_blks.rb_node) in ext4_setup_system_zone() 150 ext4_release_system_zone(sb); in ext4_setup_system_zone() 153 if (EXT4_SB(sb)->system_blks.rb_node) in ext4_setup_system_zone() 157 if (ext4_bg_has_super(sb, i) && in ext4_setup_system_zone() 159 add_system_zone(sbi, ext4_group_first_block_no(sb, i), in ext4_setup_system_zone() 160 ext4_bg_num_gdb(sb, i) + 1); in ext4_setup_system_zone() [all …]
|
D | ext4_jbd2.c | 41 static int ext4_journal_check_start(struct super_block *sb) in ext4_journal_check_start() argument 46 if (sb->s_flags & MS_RDONLY) in ext4_journal_check_start() 48 WARN_ON(sb->s_writers.frozen == SB_FREEZE_COMPLETE); in ext4_journal_check_start() 49 journal = EXT4_SB(sb)->s_journal; in ext4_journal_check_start() 56 ext4_abort(sb, "Detected aborted journal"); in ext4_journal_check_start() 62 handle_t *__ext4_journal_start_sb(struct super_block *sb, unsigned int line, in __ext4_journal_start_sb() argument 68 trace_ext4_journal_start(sb, blocks, rsv_blocks, _RET_IP_); in __ext4_journal_start_sb() 69 err = ext4_journal_check_start(sb); in __ext4_journal_start_sb() 73 journal = EXT4_SB(sb)->s_journal; in __ext4_journal_start_sb() 82 struct super_block *sb; in __ext4_journal_stop() local [all …]
|
D | dir.c | 41 struct super_block *sb = inode->i_sb; in is_dx_dir() local 45 ((inode->i_size >> sb->s_blocksize_bits) == 1) || in is_dx_dir() 109 struct super_block *sb = inode->i_sb; in ext4_readdir() local 142 offset = ctx->pos & (sb->s_blocksize - 1); in ext4_readdir() 147 map.m_lblk = ctx->pos >> EXT4_BLOCK_SIZE_BITS(sb); in ext4_readdir() 155 sb->s_bdev->bd_inode->i_mapping, in ext4_readdir() 175 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 186 ctx->pos += sb->s_blocksize - offset; in ext4_readdir() 198 for (i = 0; i < sb->s_blocksize && i < offset; ) { in ext4_readdir() 208 sb->s_blocksize) < EXT4_DIR_REC_LEN(1)) in ext4_readdir() [all …]
|
/linux-4.4.14/fs/kernfs/ |
D | mount.c | 22 static int kernfs_sop_remount_fs(struct super_block *sb, int *flags, char *data) in kernfs_sop_remount_fs() argument 24 struct kernfs_root *root = kernfs_info(sb)->root; in kernfs_sop_remount_fs() 58 struct kernfs_root *kernfs_root_from_sb(struct super_block *sb) in kernfs_root_from_sb() argument 60 if (sb->s_op == &kernfs_sops) in kernfs_root_from_sb() 61 return kernfs_info(sb)->root; in kernfs_root_from_sb() 65 static int kernfs_fill_super(struct super_block *sb, unsigned long magic) in kernfs_fill_super() argument 67 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_fill_super() 71 info->sb = sb; in kernfs_fill_super() 72 sb->s_blocksize = PAGE_CACHE_SIZE; in kernfs_fill_super() 73 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in kernfs_fill_super() [all …]
|
/linux-4.4.14/fs/ext2/ |
D | super.c | 39 static void ext2_sync_super(struct super_block *sb, 41 static int ext2_remount (struct super_block * sb, int * flags, char * data); 43 static int ext2_sync_fs(struct super_block *sb, int wait); 44 static int ext2_freeze(struct super_block *sb); 45 static int ext2_unfreeze(struct super_block *sb); 47 void ext2_error(struct super_block *sb, const char *function, in ext2_error() argument 52 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_error() 55 if (!(sb->s_flags & MS_RDONLY)) { in ext2_error() 60 ext2_sync_super(sb, es, 1); in ext2_error() 69 sb->s_id, function, &vaf); in ext2_error() [all …]
|
D | ialloc.c | 46 read_inode_bitmap(struct super_block * sb, unsigned long block_group) in read_inode_bitmap() argument 51 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 55 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 57 ext2_error(sb, "read_inode_bitmap", in read_inode_bitmap() 65 static void ext2_release_inode(struct super_block *sb, int group, int dir) in ext2_release_inode() argument 70 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode() 72 ext2_error(sb, "ext2_release_inode", in ext2_release_inode() 77 spin_lock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode() 81 spin_unlock(sb_bgl_lock(EXT2_SB(sb), group)); in ext2_release_inode() 83 percpu_counter_dec(&EXT2_SB(sb)->s_dirs_counter); in ext2_release_inode() [all …]
|
D | balloc.c | 39 struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb, in ext2_get_group_desc() argument 46 struct ext2_sb_info *sbi = EXT2_SB(sb); in ext2_get_group_desc() 49 ext2_error (sb, "ext2_get_group_desc", in ext2_get_group_desc() 57 group_desc = block_group >> EXT2_DESC_PER_BLOCK_BITS(sb); in ext2_get_group_desc() 58 offset = block_group & (EXT2_DESC_PER_BLOCK(sb) - 1); in ext2_get_group_desc() 60 ext2_error (sb, "ext2_get_group_desc", in ext2_get_group_desc() 73 static int ext2_valid_block_bitmap(struct super_block *sb, in ext2_valid_block_bitmap() argument 83 group_first_block = ext2_group_first_block_no(sb, block_group); in ext2_valid_block_bitmap() 103 offset + EXT2_SB(sb)->s_itb_per_group, in ext2_valid_block_bitmap() 105 if (next_zero_bit >= offset + EXT2_SB(sb)->s_itb_per_group) in ext2_valid_block_bitmap() [all …]
|
D | ext2.h | 164 static inline struct ext2_sb_info *EXT2_SB(struct super_block *sb) in EXT2_SB() argument 166 return sb->s_fs_info; in EXT2_SB() 396 #define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & \ argument 511 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) \ argument 512 ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) ) 513 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 514 ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) ) 515 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 516 ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) ) 517 #define EXT2_SET_COMPAT_FEATURE(sb,mask) \ argument [all …]
|
/linux-4.4.14/fs/ufs/ |
D | super.c | 97 static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation) in ufs_nfs_get_inode() argument 99 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_nfs_get_inode() 105 inode = ufs_iget(sb, ino); in ufs_nfs_get_inode() 115 static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid, in ufs_fh_to_dentry() argument 118 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_dentry() 121 static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid, in ufs_fh_to_parent() argument 124 return generic_fh_to_parent(sb, fid, fh_len, fh_type, ufs_nfs_get_inode); in ufs_fh_to_parent() 148 static void ufs_print_super_stuff(struct super_block *sb, in ufs_print_super_stuff() argument 153 u32 magic = fs32_to_cpu(sb, usb3->fs_magic); in ufs_print_super_stuff() 157 if (fs32_to_cpu(sb, usb3->fs_magic) == UFS2_MAGIC) { in ufs_print_super_stuff() [all …]
|
D | balloc.c | 39 struct super_block * sb; in ufs_free_fragments() local 46 sb = inode->i_sb; in ufs_free_fragments() 47 uspi = UFS_SB(sb)->s_uspi; in ufs_free_fragments() 53 ufs_error (sb, "ufs_free_fragments", "internal error"); in ufs_free_fragments() 55 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_fragments() 60 ufs_panic (sb, "ufs_free_fragments", "freeing blocks are outside device"); in ufs_free_fragments() 64 ucpi = ufs_load_cylinder (sb, cgno); in ufs_free_fragments() 68 if (!ufs_cg_chkmagic(sb, ucg)) { in ufs_free_fragments() 69 ufs_panic (sb, "ufs_free_fragments", "internal error, bad magic number on cg %u", cgno); in ufs_free_fragments() 76 ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1); in ufs_free_fragments() [all …]
|
D | ialloc.c | 58 struct super_block * sb; in ufs_free_inode() local 67 sb = inode->i_sb; in ufs_free_inode() 68 uspi = UFS_SB(sb)->s_uspi; in ufs_free_inode() 72 mutex_lock(&UFS_SB(sb)->s_lock); in ufs_free_inode() 75 ufs_warning(sb, "ufs_free_inode", "reserved inode or nonexistent inode %u\n", ino); in ufs_free_inode() 76 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_inode() 82 ucpi = ufs_load_cylinder (sb, cg); in ufs_free_inode() 84 mutex_unlock(&UFS_SB(sb)->s_lock); in ufs_free_inode() 88 if (!ufs_cg_chkmagic(sb, ucg)) in ufs_free_inode() 89 ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number"); in ufs_free_inode() [all …]
|
D | cylinder.c | 28 static void ufs_read_cylinder (struct super_block * sb, in ufs_read_cylinder() argument 31 struct ufs_sb_info * sbi = UFS_SB(sb); in ufs_read_cylinder() 43 UCPI_UBH(ucpi)->count = uspi->s_cgsize >> sb->s_blocksize_bits; in ufs_read_cylinder() 49 if (!(UCPI_UBH(ucpi)->bh[i] = sb_bread(sb, UCPI_UBH(ucpi)->fragment + i))) in ufs_read_cylinder() 53 ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx); in ufs_read_cylinder() 54 ucpi->c_ncyl = fs16_to_cpu(sb, ucg->cg_ncyl); in ufs_read_cylinder() 55 ucpi->c_niblk = fs16_to_cpu(sb, ucg->cg_niblk); in ufs_read_cylinder() 56 ucpi->c_ndblk = fs32_to_cpu(sb, ucg->cg_ndblk); in ufs_read_cylinder() 57 ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor); in ufs_read_cylinder() 58 ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor); in ufs_read_cylinder() [all …]
|
D | inode.c | 125 struct super_block *sb = inode->i_sb; in ufs_frag_map() local 126 struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi; in ufs_frag_map() 131 unsigned flags = UFS_SB(sb)->s_flags; in ufs_frag_map() 156 bh = sb_bread(sb, uspi->s_sbbase + in ufs_frag_map() 157 fs32_to_cpu(sb, q->key32) + (n>>shift)); in ufs_frag_map() 166 res = fs32_to_cpu(sb, q->key32); in ufs_frag_map() 180 bh = sb_bread(sb, uspi->s_sbbase + in ufs_frag_map() 181 fs64_to_cpu(sb, q->key64) + (n>>shift)); in ufs_frag_map() 190 res = fs64_to_cpu(sb, q->key64); in ufs_frag_map() 223 struct super_block *sb = inode->i_sb; in ufs_extend_tail() local [all …]
|
D | util.h | 37 ufs_get_fs_state(struct super_block *sb, struct ufs_super_block_first *usb1, in ufs_get_fs_state() argument 40 switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) { in ufs_get_fs_state() 42 if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) in ufs_get_fs_state() 43 return fs32_to_cpu(sb, usb1->fs_u0.fs_sun.fs_state); in ufs_get_fs_state() 46 return fs32_to_cpu(sb, usb3->fs_un2.fs_sun.fs_state); in ufs_get_fs_state() 48 return fs32_to_cpu(sb, usb1->fs_u1.fs_sunx86.fs_state); in ufs_get_fs_state() 51 return fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_state); in ufs_get_fs_state() 56 ufs_set_fs_state(struct super_block *sb, struct ufs_super_block_first *usb1, in ufs_set_fs_state() argument 59 switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) { in ufs_set_fs_state() 61 if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) { in ufs_set_fs_state() [all …]
|
D | dir.c | 33 static inline int ufs_match(struct super_block *sb, int len, in ufs_match() argument 36 if (len != ufs_get_de_namlen(sb, de)) in ufs_match() 111 struct super_block *sb = dir->i_sb; in ufs_check_page() local 115 const unsigned chunk_mask = UFS_SB(sb)->s_uspi->s_dirblksize - 1; in ufs_check_page() 128 rec_len = fs16_to_cpu(sb, p->d_reclen); in ufs_check_page() 134 if (rec_len < UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, p))) in ufs_check_page() 138 if (fs32_to_cpu(sb, p->d_ino) > (UFS_SB(sb)->s_uspi->s_ipg * in ufs_check_page() 139 UFS_SB(sb)->s_uspi->s_ncg)) in ufs_check_page() 151 ufs_error(sb, "ufs_check_page", in ufs_check_page() 171 ufs_error (sb, "ufs_check_page", "bad entry in directory #%lu: %s - " in ufs_check_page() [all …]
|
D | util.c | 19 struct super_block *sb, u64 fragment, u64 size) in _ubh_bread_() argument 35 if (!(ubh->bh[i] = sb_bread(sb, fragment + i))) in _ubh_bread_() 48 struct super_block *sb, u64 fragment, u64 size) in ubh_bread_uspi() argument 60 if (!(USPI_UBH(uspi)->bh[i] = sb_bread(sb, fragment + i))) in ubh_bread_uspi() 181 ufs_get_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi) in ufs_get_inode_dev() argument 186 if ((UFS_SB(sb)->s_flags & UFS_ST_MASK) == UFS_ST_SUNx86) in ufs_get_inode_dev() 187 fs32 = fs32_to_cpu(sb, ufsi->i_u1.i_data[1]); in ufs_get_inode_dev() 189 fs32 = fs32_to_cpu(sb, ufsi->i_u1.i_data[0]); in ufs_get_inode_dev() 190 switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) { in ufs_get_inode_dev() 208 ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev) in ufs_set_inode_dev() argument [all …]
|
/linux-4.4.14/fs/logfs/ |
D | gc.c | 31 static int no_free_segments(struct super_block *sb) in no_free_segments() argument 33 struct logfs_super *super = logfs_super(sb); in no_free_segments() 39 static u8 root_distance(struct super_block *sb, gc_level_t __gc_level) in root_distance() argument 41 struct logfs_super *super = logfs_super(sb); in root_distance() 65 static int segment_is_reserved(struct super_block *sb, u32 segno) in segment_is_reserved() argument 67 struct logfs_super *super = logfs_super(sb); in segment_is_reserved() 87 static void logfs_mark_segment_bad(struct super_block *sb, u32 segno) in logfs_mark_segment_bad() argument 96 static u32 logfs_valid_bytes(struct super_block *sb, u32 segno, u32 *ec, in logfs_valid_bytes() argument 102 logfs_get_segment_entry(sb, segno, &se); in logfs_valid_bytes() 113 static void logfs_cleanse_block(struct super_block *sb, u64 ofs, u64 ino, in logfs_cleanse_block() argument [all …]
|
D | super.c | 54 static void dump_segfile(struct super_block *sb) in dump_segfile() argument 56 struct logfs_super *super = logfs_super(sb); in dump_segfile() 61 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 65 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 70 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 75 logfs_get_segment_entry(sb, segno, &se); in dump_segfile() 89 void logfs_crash_dump(struct super_block *sb) in logfs_crash_dump() argument 91 dump_segfile(sb); in logfs_crash_dump() 99 struct super_block *sb = dentry->d_sb; in logfs_statfs() local 100 struct logfs_super *super = logfs_super(sb); in logfs_statfs() [all …]
|
D | journal.c | 11 static void logfs_calc_free(struct super_block *sb) in logfs_calc_free() argument 13 struct logfs_super *super = logfs_super(sb); in logfs_calc_free() 50 static void reserve_sb_and_journal(struct super_block *sb) in reserve_sb_and_journal() argument 52 struct logfs_super *super = logfs_super(sb); in reserve_sb_and_journal() 56 err = btree_insert32(head, seg_no(sb, super->s_sb_ofs[0]), (void *)1, in reserve_sb_and_journal() 60 err = btree_insert32(head, seg_no(sb, super->s_sb_ofs[1]), (void *)1, in reserve_sb_and_journal() 73 static void read_dynsb(struct super_block *sb, in read_dynsb() argument 76 struct logfs_super *super = logfs_super(sb); in read_dynsb() 87 static void read_anchor(struct super_block *sb, in read_anchor() argument 90 struct logfs_super *super = logfs_super(sb); in read_anchor() [all …]
|
D | segment.c | 15 static int logfs_mark_segment_bad(struct super_block *sb, u32 segno) in logfs_mark_segment_bad() argument 17 struct logfs_super *super = logfs_super(sb); in logfs_mark_segment_bad() 24 logfs_super(sb)->s_bad_segments++; in logfs_mark_segment_bad() 29 int logfs_erase_segment(struct super_block *sb, u32 segno, int ensure_erase) in logfs_erase_segment() argument 31 struct logfs_super *super = logfs_super(sb); in logfs_erase_segment() 35 return super->s_devops->erase(sb, (u64)segno << super->s_segshift, in logfs_erase_segment() 52 static struct page *get_mapping_page(struct super_block *sb, pgoff_t index, in get_mapping_page() argument 55 struct logfs_super *super = logfs_super(sb); in get_mapping_page() 62 page = read_cache_page(mapping, index, filler, sb); in get_mapping_page() 107 struct super_block *sb = area->a_sb; in pad_partial_page() local [all …]
|
D | logfs.h | 151 struct page *(*find_first_sb)(struct super_block *sb, u64 *ofs); 152 struct page *(*find_last_sb)(struct super_block *sb, u64 *ofs); 153 int (*write_sb)(struct super_block *sb, struct page *page); 155 void (*writeseg)(struct super_block *sb, u64 ofs, size_t len); 156 int (*erase)(struct super_block *sb, loff_t ofs, size_t len, 158 int (*can_write_buf)(struct super_block *sb, u64 ofs); 159 void (*sync)(struct super_block *sb); 297 struct super_block *sb; member 311 typedef int write_alias_t(struct super_block *sb, u64 ino, u64 bix, 315 void (*free_block)(struct super_block *sb, struct logfs_block*block); [all …]
|
D | dev_mtd.c | 16 static int logfs_mtd_read(struct super_block *sb, loff_t ofs, size_t len, in logfs_mtd_read() argument 19 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_read() 35 static int loffs_mtd_write(struct super_block *sb, loff_t ofs, size_t len, in loffs_mtd_write() argument 38 struct logfs_super *super = logfs_super(sb); in loffs_mtd_write() 72 static int logfs_mtd_erase_mapping(struct super_block *sb, loff_t ofs, in logfs_mtd_erase_mapping() argument 75 struct logfs_super *super = logfs_super(sb); in logfs_mtd_erase_mapping() 90 static int logfs_mtd_erase(struct super_block *sb, loff_t ofs, size_t len, in logfs_mtd_erase() argument 93 struct mtd_info *mtd = logfs_super(sb)->s_mtd; in logfs_mtd_erase() 99 if (logfs_super(sb)->s_flags & LOGFS_SB_FLAG_RO) in logfs_mtd_erase() 115 return logfs_mtd_erase_mapping(sb, ofs, len); in logfs_mtd_erase() [all …]
|
D | dev_bdev.c | 38 struct super_block *sb = _sb; in bdev_readpage() local 39 struct block_device *bdev = logfs_super(sb)->s_bdev; in bdev_readpage() 60 struct super_block *sb = bio->bi_private; in writeseg_end_io() local 61 struct logfs_super *super = logfs_super(sb); in writeseg_end_io() 74 static int __bdev_writeseg(struct super_block *sb, u64 ofs, pgoff_t index, in __bdev_writeseg() argument 77 struct logfs_super *super = logfs_super(sb); in __bdev_writeseg() 96 bio->bi_private = sb; in __bdev_writeseg() 123 bio->bi_private = sb; in __bdev_writeseg() 130 static void bdev_writeseg(struct super_block *sb, u64 ofs, size_t len) in bdev_writeseg() argument 132 struct logfs_super *super = logfs_super(sb); in bdev_writeseg() [all …]
|
D | inode.c | 81 static struct inode *__logfs_iget(struct super_block *sb, ino_t ino) in __logfs_iget() argument 83 struct inode *inode = iget_locked(sb, ino); in __logfs_iget() 109 struct inode *logfs_iget(struct super_block *sb, ino_t ino) in logfs_iget() argument 113 return __logfs_iget(sb, ino); in logfs_iget() 120 struct inode *logfs_safe_iget(struct super_block *sb, ino_t ino, int *is_cached) in logfs_safe_iget() argument 122 struct logfs_super *super = logfs_super(sb); in logfs_safe_iget() 141 return __logfs_iget(sb, ino); in logfs_safe_iget() 202 static void logfs_init_inode(struct super_block *sb, struct inode *inode) in logfs_init_inode() argument 226 static struct inode *logfs_alloc_inode(struct super_block *sb) in logfs_alloc_inode() argument 233 logfs_init_inode(sb, &li->vfs_inode); in logfs_alloc_inode() [all …]
|
D | readwrite.c | 189 struct super_block *sb = inode->i_sb; in __logfs_set_blocks() local 193 if (li->li_used_bytes >> sb->s_blocksize_bits < ULONG_MAX) in __logfs_set_blocks() 205 static void prelock_page(struct super_block *sb, struct page *page, int lock) in prelock_page() argument 207 struct logfs_super *super = logfs_super(sb); in prelock_page() 222 static void preunlock_page(struct super_block *sb, struct page *page, int lock) in preunlock_page() argument 224 struct logfs_super *super = logfs_super(sb); in preunlock_page() 247 void logfs_get_wblocks(struct super_block *sb, struct page *page, int lock) in logfs_get_wblocks() argument 249 struct logfs_super *super = logfs_super(sb); in logfs_get_wblocks() 252 prelock_page(sb, page, lock); in logfs_get_wblocks() 256 logfs_gc_pass(sb); in logfs_get_wblocks() [all …]
|
/linux-4.4.14/fs/reiserfs/ |
D | journal.c | 93 struct super_block *sb); 111 struct super_block *sb, 114 static void init_journal_hash(struct super_block *sb) in init_journal_hash() argument 116 struct reiserfs_journal *journal = SB_JOURNAL(sb); in init_journal_hash() 137 *sb) in allocate_bitmap_node() 146 bn->data = kzalloc(sb->s_blocksize, GFP_NOFS); in allocate_bitmap_node() 156 static struct reiserfs_bitmap_node *get_bitmap_node(struct super_block *sb) in get_bitmap_node() argument 158 struct reiserfs_journal *journal = SB_JOURNAL(sb); in get_bitmap_node() 168 memset(bn->data, 0, sb->s_blocksize); in get_bitmap_node() 172 bn = allocate_bitmap_node(sb); in get_bitmap_node() [all …]
|
D | procfs.c | 28 struct super_block *sb = m->private; in show_version() local 31 if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_6)) { in show_version() 33 } else if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_5)) { in show_version() 63 #define MAP( i ) D4C( objectid_map( sb, rs )[ i ] ) 72 struct super_block *sb = m->private; in show_super() local 73 struct reiserfs_sb_info *r = REISERFS_SB(sb); in show_super() 104 reiserfs_r5_hash(sb) ? "FORCE_R5 " : "", in show_super() 105 reiserfs_rupasov_hash(sb) ? "FORCE_RUPASOV " : "", in show_super() 106 reiserfs_tea_hash(sb) ? "FORCE_TEA " : "", in show_super() 107 reiserfs_hash_detect(sb) ? "DETECT_HASH " : "", in show_super() [all …]
|
D | tail_conversion.c | 28 struct super_block *sb = inode->i_sb; in direct2indirect() local 49 REISERFS_SB(sb)->s_direct2indirect++; in direct2indirect() 51 blk_size = sb->s_blocksize; in direct2indirect() 65 if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) { in direct2indirect() 66 reiserfs_error(sb, "PAP-14030", in direct2indirect() 114 if (search_for_position_by_key(sb, &end_key, path) == in direct2indirect() 116 reiserfs_panic(sb, "PAP-14050", in direct2indirect() 210 struct super_block *sb = inode->i_sb; in indirect2direct() local 212 unsigned long block_size = sb->s_blocksize; in indirect2direct() 220 REISERFS_SB(sb)->s_indirect2direct++; in indirect2direct() [all …]
|
D | stree.c | 215 const struct super_block *sb) in get_lkey() argument 255 b_blocknr == SB_ROOT_BLOCK(sb)) in get_lkey() 262 const struct super_block *sb) in get_rkey() argument 306 b_blocknr == SB_ROOT_BLOCK(sb)) in get_rkey() 325 struct super_block *sb in key_in_buffer() argument 336 if (comp_keys(get_lkey(chk_path, sb), key) == 1) in key_in_buffer() 340 if (comp_keys(get_rkey(chk_path, sb), key) != 1) in key_in_buffer() 358 void pathrelse_and_restore(struct super_block *sb, in pathrelse_and_restore() argument 369 reiserfs_restore_prepared_buffer(sb, bh); in pathrelse_and_restore() 587 int search_by_key(struct super_block *sb, const struct cpu_key *key, in search_by_key() argument [all …]
|
D | prints.c | 266 void __reiserfs_warning(struct super_block *sb, const char *id, in __reiserfs_warning() argument 270 if (sb) in __reiserfs_warning() 272 "%s\n", sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_warning() 280 void reiserfs_info(struct super_block *sb, const char *fmt, ...) in reiserfs_info() argument 283 if (sb) in reiserfs_info() 285 sb->s_id, error_buf); in reiserfs_info() 356 void __reiserfs_panic(struct super_block *sb, const char *id, in __reiserfs_panic() argument 364 if (sb) in __reiserfs_panic() 366 sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_panic() 374 void __reiserfs_error(struct super_block *sb, const char *id, in __reiserfs_error() argument [all …]
|
/linux-4.4.14/fs/jfs/ |
D | super.c | 74 static void jfs_handle_error(struct super_block *sb) in jfs_handle_error() argument 76 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_handle_error() 78 if (sb->s_flags & MS_RDONLY) in jfs_handle_error() 81 updateSuper(sb, FM_DIRTY); in jfs_handle_error() 85 sb->s_id); in jfs_handle_error() 88 sb->s_id); in jfs_handle_error() 89 sb->s_flags |= MS_RDONLY; in jfs_handle_error() 95 void jfs_error(struct super_block *sb, const char *fmt, ...) in jfs_error() argument 106 sb->s_id, __builtin_return_address(0), &vaf); in jfs_error() 110 jfs_handle_error(sb); in jfs_error() [all …]
|
D | jfs_mount.c | 66 static int logMOUNT(struct super_block *sb); 81 int jfs_mount(struct super_block *sb) in jfs_mount() argument 84 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount() 94 if ((rc = chkSuper(sb))) { in jfs_mount() 98 ipaimap = diReadSpecial(sb, AGGREGATE_I, 0); in jfs_mount() 119 ipbmap = diReadSpecial(sb, BMAP_I, 0); in jfs_mount() 149 ipaimap2 = diReadSpecial(sb, AGGREGATE_I, 1); in jfs_mount() 177 ipimap = diReadSpecial(sb, FILESYSTEM_I, 0); in jfs_mount() 239 int jfs_mount_rw(struct super_block *sb, int remount) in jfs_mount_rw() argument 241 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_mount_rw() [all …]
|
D | jfs_discard.c | 47 struct super_block *sb = ip->i_sb; in jfs_issue_discard() local 50 r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0); in jfs_issue_discard() 54 sb, (unsigned long long)blkno, in jfs_issue_discard() 60 sb, (unsigned long long)blkno, in jfs_issue_discard() 84 struct super_block *sb = ipbmap->i_sb; in jfs_ioc_trim() local 95 start = range->start >> sb->s_blocksize_bits; in jfs_ioc_trim() 96 end = start + (range->len >> sb->s_blocksize_bits) - 1; in jfs_ioc_trim() 97 minlen = range->minlen >> sb->s_blocksize_bits; in jfs_ioc_trim() 103 range->len < sb->s_blocksize) in jfs_ioc_trim() 118 range->len = trimmed << sb->s_blocksize_bits; in jfs_ioc_trim()
|
D | jfs_umount.c | 50 int jfs_umount(struct super_block *sb) in jfs_umount() argument 52 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_umount() 60 jfs_info("UnMount JFS: sb:0x%p", sb); in jfs_umount() 122 updateSuper(sb, FM_CLEAN); in jfs_umount() 129 rc = lmLogClose(sb); in jfs_umount() 136 int jfs_umount_rw(struct super_block *sb) in jfs_umount_rw() argument 138 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_umount_rw() 165 updateSuper(sb, FM_CLEAN); in jfs_umount_rw() 167 return lmLogClose(sb); in jfs_umount_rw()
|
D | resize.c | 62 int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize) in jfs_extendfs() argument 65 struct jfs_sb_info *sbi = JFS_SBI(sb); in jfs_extendfs() 101 VolumeSize = sb->s_bdev->bd_inode->i_size >> sb->s_blocksize_bits; in jfs_extendfs() 111 bh = sb_bread(sb, newLVSize - 1); in jfs_extendfs() 211 txQuiesce(sb); in jfs_extendfs() 214 sbi->direct_inode->i_size = sb->s_bdev->bd_inode->i_size; in jfs_extendfs() 237 if ((rc = readSuper(sb, &bh))) in jfs_extendfs() 268 log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits); in jfs_extendfs() 392 tid = txBegin(sb, COMMIT_FORCE); in jfs_extendfs() 474 ipbmap2 = diReadSpecial(sb, BMAP_I, 1); in jfs_extendfs() [all …]
|
/linux-4.4.14/fs/minix/ |
D | itree_v2.c | 24 #define INDIRCOUNT(sb) (1 << ((sb)->s_blocksize_bits - 2)) argument 30 struct super_block *sb = inode->i_sb; in block_to_path() local 34 block, bdevname(sb->s_bdev, b)); in block_to_path() 35 } else if ((u64)block * (u64)sb->s_blocksize >= in block_to_path() 36 minix_sb(sb)->s_max_size) { in block_to_path() 40 block, bdevname(sb->s_bdev, b)); in block_to_path() 43 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path() 46 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path() 48 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path() 49 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path() [all …]
|
D | bitmap.c | 43 struct super_block *sb = inode->i_sb; in minix_free_block() local 44 struct minix_sb_info *sbi = minix_sb(sb); in minix_free_block() 46 int k = sb->s_blocksize_bits + 3; in minix_free_block() 64 sb->s_id, block); in minix_free_block() 96 unsigned long minix_count_free_blocks(struct super_block *sb) in minix_count_free_blocks() argument 98 struct minix_sb_info *sbi = minix_sb(sb); in minix_count_free_blocks() 101 return (count_free(sbi->s_zmap, sb->s_blocksize, bits) in minix_count_free_blocks() 106 minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh) in minix_V1_raw_inode() argument 109 struct minix_sb_info *sbi = minix_sb(sb); in minix_V1_raw_inode() 114 sb->s_id, (long)ino); in minix_V1_raw_inode() [all …]
|
/linux-4.4.14/include/linux/ |
D | quotaops.h | 16 static inline struct quota_info *sb_dqopt(struct super_block *sb) in sb_dqopt() argument 18 return &sb->s_dquot; in sb_dqopt() 31 #define quota_error(sb, fmt, args...) \ argument 32 __quota_error((sb), __func__, fmt , ## args) 35 void __quota_error(struct super_block *sb, const char *func, 48 struct dquot *dqget(struct super_block *sb, struct kqid qid); 58 int dquot_scan_active(struct super_block *sb, 61 struct dquot *dquot_alloc(struct super_block *sb, int type); 73 int dquot_disable(struct super_block *sb, int type, unsigned int flags); 75 static inline int dquot_suspend(struct super_block *sb, int type) in dquot_suspend() argument [all …]
|
D | coda_psdev.h | 23 static inline struct venus_comm *coda_vcp(struct super_block *sb) in coda_vcp() argument 25 return (struct venus_comm *)((sb)->s_fs_info); in coda_vcp() 29 int venus_rootfid(struct super_block *sb, struct CodaFid *fidp); 30 int venus_getattr(struct super_block *sb, struct CodaFid *fid, 33 int venus_lookup(struct super_block *sb, struct CodaFid *fid, 36 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, 38 int venus_open(struct super_block *sb, struct CodaFid *fid, int flags, 40 int venus_mkdir(struct super_block *sb, struct CodaFid *dirfid, 43 int venus_create(struct super_block *sb, struct CodaFid *dirfid, 46 int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, [all …]
|
D | buffer_head.h | 295 sb_bread(struct super_block *sb, sector_t block) in sb_bread() argument 297 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_bread() 301 sb_bread_unmovable(struct super_block *sb, sector_t block) in sb_bread_unmovable() argument 303 return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0); in sb_bread_unmovable() 307 sb_breadahead(struct super_block *sb, sector_t block) in sb_breadahead() argument 309 __breadahead(sb->s_bdev, block, sb->s_blocksize); in sb_breadahead() 313 sb_getblk(struct super_block *sb, sector_t block) in sb_getblk() argument 315 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE); in sb_getblk() 320 sb_getblk_gfp(struct super_block *sb, sector_t block, gfp_t gfp) in sb_getblk_gfp() argument 322 return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, gfp); in sb_getblk_gfp() [all …]
|
D | cleancache.h | 78 static inline void cleancache_init_fs(struct super_block *sb) in cleancache_init_fs() argument 81 __cleancache_init_fs(sb); in cleancache_init_fs() 84 static inline void cleancache_init_shared_fs(struct super_block *sb) in cleancache_init_shared_fs() argument 87 __cleancache_init_shared_fs(sb); in cleancache_init_shared_fs() 119 static inline void cleancache_invalidate_fs(struct super_block *sb) in cleancache_invalidate_fs() argument 122 __cleancache_invalidate_fs(sb); in cleancache_invalidate_fs()
|
D | exportfs.h | 202 struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid, 204 struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid, 211 int (*get_uuid)(struct super_block *sb, u8 *buf, u32 *len, u64 *offset); 230 extern struct dentry *generic_fh_to_dentry(struct super_block *sb, 232 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen)); 233 extern struct dentry *generic_fh_to_parent(struct super_block *sb, 235 struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
|
/linux-4.4.14/fs/affs/ |
D | super.c | 25 static int affs_remount (struct super_block *sb, int *flags, char *data); 28 affs_commit_super(struct super_block *sb, int wait) in affs_commit_super() argument 30 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_commit_super() 32 struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh); in affs_commit_super() 36 affs_fix_checksum(sb, bh); in affs_commit_super() 45 affs_put_super(struct super_block *sb) in affs_put_super() argument 47 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_put_super() 54 affs_sync_fs(struct super_block *sb, int wait) in affs_sync_fs() argument 56 affs_commit_super(sb, wait); in affs_sync_fs() 63 struct super_block *sb; in flush_superblock() local [all …]
|
D | amigaffs.c | 25 struct super_block *sb = dir->i_sb; in affs_insert_hash() local 31 offset = affs_hash_name(sb, AFFS_TAIL(sb, bh)->name + 1, AFFS_TAIL(sb, bh)->name[0]); in affs_insert_hash() 35 dir_bh = affs_bread(sb, dir->i_ino); in affs_insert_hash() 42 dir_bh = affs_bread(sb, hash_ino); in affs_insert_hash() 45 hash_ino = be32_to_cpu(AFFS_TAIL(sb, dir_bh)->hash_chain); in affs_insert_hash() 47 AFFS_TAIL(sb, bh)->parent = cpu_to_be32(dir->i_ino); in affs_insert_hash() 48 AFFS_TAIL(sb, bh)->hash_chain = 0; in affs_insert_hash() 49 affs_fix_checksum(sb, bh); in affs_insert_hash() 54 AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino); in affs_insert_hash() 74 struct super_block *sb; in affs_remove_hash() local [all …]
|
D | affs.h | 18 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) argument 21 #define AFFS_TAIL(sb, bh) ((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_t… argument 23 #define AFFS_ROOT_TAIL(sb, bh) ((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(str… argument 103 struct super_block *sb; /* the VFS superblock object */ member 127 static inline struct affs_sb_info *AFFS_SB(struct super_block *sb) in AFFS_SB() argument 129 return sb->s_fs_info; in AFFS_SB() 132 void affs_mark_sb_dirty(struct super_block *sb); 139 extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh); 140 extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh); 145 extern void affs_error(struct super_block *sb, const char *function, [all …]
|
D | bitmap.c | 14 affs_count_free_blocks(struct super_block *sb) in affs_count_free_blocks() argument 22 if (sb->s_flags & MS_RDONLY) in affs_count_free_blocks() 25 mutex_lock(&AFFS_SB(sb)->s_bmlock); in affs_count_free_blocks() 27 bm = AFFS_SB(sb)->s_bitmap; in affs_count_free_blocks() 29 for (i = AFFS_SB(sb)->s_bmap_count; i > 0; bm++, i--) in affs_count_free_blocks() 32 mutex_unlock(&AFFS_SB(sb)->s_bmlock); in affs_count_free_blocks() 38 affs_free_block(struct super_block *sb, u32 block) in affs_free_block() argument 40 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_free_block() 61 bh = affs_bread(sb, bm->bm_key); in affs_free_block() 82 affs_mark_sb_dirty(sb); in affs_free_block() [all …]
|
D | inode.c | 16 struct inode *affs_iget(struct super_block *sb, unsigned long ino) in affs_iget() argument 18 struct affs_sb_info *sbi = AFFS_SB(sb); in affs_iget() 27 inode = iget_locked(sb, ino); in affs_iget() 36 bh = affs_bread(sb, block); in affs_iget() 38 affs_warning(sb, "read_inode", "Cannot read block %d", block); in affs_iget() 41 if (affs_checksum_block(sb, bh) || be32_to_cpu(AFFS_HEAD(bh)->ptype) != T_SHORT) { in affs_iget() 42 affs_warning(sb,"read_inode", in affs_iget() 48 tail = AFFS_TAIL(sb, bh); in affs_iget() 114 affs_warning(sb, "read_inode", "inode is LINKDIR"); in affs_iget() 122 affs_warning(sb, "read_inode", "inode is LINKFILE"); in affs_iget() [all …]
|
D | dir.c | 46 struct super_block *sb = inode->i_sb; in affs_readdir() local 69 affs_warning(sb, "readdir", "More than 65535 entries in chain"); in affs_readdir() 74 dir_bh = affs_bread(sb, inode->i_ino); in affs_readdir() 89 fh_bh = affs_bread(sb, ino); in affs_readdir() 91 affs_error(sb, "readdir","Cannot read block %d", i); in affs_readdir() 95 ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain); in affs_readdir() 103 for (; hash_pos < AFFS_SB(sb)->s_hashsize; hash_pos++) { in affs_readdir() 110 fh_bh = affs_bread(sb, ino); in affs_readdir() 112 affs_error(sb, "readdir", in affs_readdir() 117 namelen = min(AFFS_TAIL(sb, fh_bh)->name[0], in affs_readdir() [all …]
|
D | namei.c | 54 affs_get_toupper(struct super_block *sb) in affs_get_toupper() argument 56 return affs_test_opt(AFFS_SB(sb)->s_flags, SF_INTL) ? in affs_get_toupper() 175 affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len) in affs_hash_name() argument 177 toupper_t toupper = affs_get_toupper(sb); in affs_hash_name() 184 return hash % AFFS_SB(sb)->s_hashsize; in affs_hash_name() 190 struct super_block *sb = dir->i_sb; in affs_find_entry() local 192 toupper_t toupper = affs_get_toupper(sb); in affs_find_entry() 197 bh = affs_bread(sb, dir->i_ino); in affs_find_entry() 201 …key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)… in affs_find_entry() 207 bh = affs_bread(sb, key); in affs_find_entry() [all …]
|
D | file.c | 49 struct super_block *sb = inode->i_sb; in affs_grow_extcache() local 99 bh = affs_bread(sb, key); in affs_grow_extcache() 102 key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_grow_extcache() 119 struct super_block *sb = inode->i_sb; in affs_alloc_extblock() local 127 new_bh = affs_getzeroblk(sb, blocknr); in affs_alloc_extblock() 129 affs_free_block(sb, blocknr); in affs_alloc_extblock() 135 AFFS_TAIL(sb, new_bh)->stype = cpu_to_be32(ST_FILE); in affs_alloc_extblock() 136 AFFS_TAIL(sb, new_bh)->parent = cpu_to_be32(inode->i_ino); in affs_alloc_extblock() 137 affs_fix_checksum(sb, new_bh); in affs_alloc_extblock() 141 tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension); in affs_alloc_extblock() [all …]
|
/linux-4.4.14/fs/udf/ |
D | balloc.c | 34 static int read_block_bitmap(struct super_block *sb, in read_block_bitmap() argument 43 loc.partitionReferenceNum = UDF_SB(sb)->s_partition; in read_block_bitmap() 45 bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block)); in read_block_bitmap() 53 static int __load_block_bitmap(struct super_block *sb, in __load_block_bitmap() argument 68 retval = read_block_bitmap(sb, bitmap, block_group, block_group); in __load_block_bitmap() 75 static inline int load_block_bitmap(struct super_block *sb, in load_block_bitmap() argument 81 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap() 92 static void udf_add_free_space(struct super_block *sb, u16 partition, u32 cnt) in udf_add_free_space() argument 94 struct udf_sb_info *sbi = UDF_SB(sb); in udf_add_free_space() 102 udf_updated_lvid(sb); in udf_add_free_space() [all …]
|
D | super.c | 99 struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb) in udf_sb_lvidiu() argument 105 if (!UDF_SB(sb)->s_lvid_bh) in udf_sb_lvidiu() 107 lvid = (struct logicalVolIntegrityDesc *)UDF_SB(sb)->s_lvid_bh->b_data; in udf_sb_lvidiu() 109 if ((sb->s_blocksize - sizeof(struct logicalVolIntegrityDescImpUse) - in udf_sb_lvidiu() 112 udf_err(sb, "Logical volume integrity descriptor corrupted " in udf_sb_lvidiu() 139 static struct inode *udf_alloc_inode(struct super_block *sb) in udf_alloc_inode() argument 260 static int udf_sb_alloc_partition_maps(struct super_block *sb, u32 count) in module_exit() 262 struct udf_sb_info *sbi = UDF_SB(sb); in module_exit() 267 udf_err(sb, "Unable to allocate space for %d partition maps\n", in module_exit() 323 static void udf_sb_free_partitions(struct super_block *sb) in udf_sb_free_partitions() argument [all …]
|
D | dir.c | 59 struct super_block *sb = dir->i_sb; in udf_readdir() local 79 fibh.soffset = fibh.eoffset = nf_pos & (sb->s_blocksize - 1); in udf_readdir() 81 if (inode_bmap(dir, nf_pos >> sb->s_blocksize_bits, in udf_readdir() 87 block = udf_get_lb_pblock(sb, &eloc, offset); in udf_readdir() 88 if ((++offset << sb->s_blocksize_bits) < elen) { in udf_readdir() 98 if (!(fibh.sbh = fibh.ebh = udf_tread(sb, block))) { in udf_readdir() 103 if (!(offset & ((16 >> (sb->s_blocksize_bits - 9)) - 1))) { in udf_readdir() 104 i = 16 >> (sb->s_blocksize_bits - 9); in udf_readdir() 105 if (i + offset > (elen >> sb->s_blocksize_bits)) in udf_readdir() 106 i = (elen >> sb->s_blocksize_bits) - offset; in udf_readdir() [all …]
|
D | partition.c | 29 uint32_t udf_get_pblock(struct super_block *sb, uint32_t block, in udf_get_pblock() argument 32 struct udf_sb_info *sbi = UDF_SB(sb); in udf_get_pblock() 41 return map->s_partition_func(sb, block, partition, offset); in udf_get_pblock() 46 uint32_t udf_get_pblock_virt15(struct super_block *sb, uint32_t block, in udf_get_pblock_virt15() argument 53 struct udf_sb_info *sbi = UDF_SB(sb); in udf_get_pblock_virt15() 72 index = (sb->s_blocksize - vdata->s_start_offset) / sizeof(uint32_t); in udf_get_pblock_virt15() 75 newblock = 1 + (block / (sb->s_blocksize / sizeof(uint32_t))); in udf_get_pblock_virt15() 76 index = block % (sb->s_blocksize / sizeof(uint32_t)); in udf_get_pblock_virt15() 84 bh = sb_bread(sb, loc); in udf_get_pblock_virt15() 87 sb, block, partition, loc, index); in udf_get_pblock_virt15() [all …]
|
D | udfdecl.h | 21 extern __printf(3, 4) void _udf_err(struct super_block *sb, 23 #define udf_err(sb, fmt, ...) \ argument 24 _udf_err(sb, __func__, fmt, ##__VA_ARGS__) 26 extern __printf(3, 4) void _udf_warn(struct super_block *sb, 28 #define udf_warn(sb, fmt, ...) \ argument 29 _udf_warn(sb, __func__, fmt, ##__VA_ARGS__) 119 static inline void udf_updated_lvid(struct super_block *sb) in udf_updated_lvid() argument 121 struct buffer_head *bh = UDF_SB(sb)->s_lvid_bh; in udf_updated_lvid() 127 UDF_SB(sb)->s_lvid_dirty = 1; in udf_updated_lvid() 129 extern u64 lvid_get_unique_id(struct super_block *sb); [all …]
|
D | ialloc.c | 31 struct super_block *sb = inode->i_sb; in udf_free_inode() local 32 struct udf_sb_info *sbi = UDF_SB(sb); in udf_free_inode() 33 struct logicalVolIntegrityDescImpUse *lvidiu = udf_sb_lvidiu(sb); in udf_free_inode() 41 udf_updated_lvid(sb); in udf_free_inode() 45 udf_free_blocks(sb, NULL, &UDF_I(inode)->i_location, 0, 1); in udf_free_inode() 50 struct super_block *sb = dir->i_sb; in udf_new_inode() local 51 struct udf_sb_info *sbi = UDF_SB(sb); in udf_new_inode() 60 inode = new_inode(sb); in udf_new_inode() 93 lvidiu = udf_sb_lvidiu(sb); in udf_new_inode() 95 iinfo->i_unique = lvid_get_unique_id(sb); in udf_new_inode() [all …]
|
D | udf_sb.h | 160 static inline struct udf_sb_info *UDF_SB(struct super_block *sb) in UDF_SB() argument 162 return sb->s_fs_info; in UDF_SB() 165 struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb); 167 int udf_compute_nr_groups(struct super_block *sb, u32 partition); 169 static inline int UDF_QUERY_FLAG(struct super_block *sb, int flag) in UDF_QUERY_FLAG() argument 171 return test_bit(flag, &UDF_SB(sb)->s_flags); in UDF_QUERY_FLAG() 174 static inline void UDF_SET_FLAG(struct super_block *sb, int flag) in UDF_SET_FLAG() argument 176 set_bit(flag, &UDF_SB(sb)->s_flags); in UDF_SET_FLAG() 179 static inline void UDF_CLEAR_FLAG(struct super_block *sb, int flag) in UDF_CLEAR_FLAG() argument 181 clear_bit(flag, &UDF_SB(sb)->s_flags); in UDF_CLEAR_FLAG()
|
D | misc.c | 31 struct buffer_head *udf_tgetblk(struct super_block *sb, int block) in udf_tgetblk() argument 33 if (UDF_QUERY_FLAG(sb, UDF_FLAG_VARCONV)) in udf_tgetblk() 34 return sb_getblk(sb, udf_fixed_to_variable(block)); in udf_tgetblk() 36 return sb_getblk(sb, block); in udf_tgetblk() 39 struct buffer_head *udf_tread(struct super_block *sb, int block) in udf_tread() argument 41 if (UDF_QUERY_FLAG(sb, UDF_FLAG_VARCONV)) in udf_tread() 42 return sb_bread(sb, udf_fixed_to_variable(block)); in udf_tread() 44 return sb_bread(sb, block); in udf_tread() 201 struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block, in udf_read_tagged() argument 212 bh = udf_tread(sb, block); in udf_read_tagged() [all …]
|
D | lowlevel.c | 28 unsigned int udf_get_last_session(struct super_block *sb) in udf_get_last_session() argument 32 struct block_device *bdev = sb->s_bdev; in udf_get_last_session() 50 unsigned long udf_get_last_block(struct super_block *sb) in udf_get_last_block() argument 52 struct block_device *bdev = sb->s_bdev; in udf_get_last_block() 61 lblock = bdev->bd_inode->i_size >> sb->s_blocksize_bits; in udf_get_last_block()
|
D | truncate.c | 183 struct super_block *sb = inode->i_sb; in udf_update_alloc_ext_desc() local 184 struct udf_sb_info *sbi = UDF_SB(sb); in udf_update_alloc_ext_desc() 190 if (!UDF_QUERY_FLAG(sb, UDF_FLAG_STRICT) || sbi->s_udfrev >= 0x0201) in udf_update_alloc_ext_desc() 208 struct super_block *sb = inode->i_sb; in udf_truncate_extents() local 209 sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset; in udf_truncate_extents() 222 byte_offset = (offset << sb->s_blocksize_bits) + in udf_truncate_extents() 223 (inode->i_size & (sb->s_blocksize - 1)); in udf_truncate_extents() 250 udf_free_blocks(sb, NULL, &epos.block, in udf_truncate_extents() 261 epos.bh = udf_tread(sb, in udf_truncate_extents() 262 udf_get_lb_pblock(sb, &eloc, 0)); in udf_truncate_extents() [all …]
|
/linux-4.4.14/fs/quota/ |
D | quota.c | 21 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument 45 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 48 static void quota_sync_one(struct super_block *sb, void *arg) in quota_sync_one() argument 52 if (sb->s_qcop && sb->s_qcop->quota_sync && in quota_sync_one() 53 (sb->s_quota_types & (1 << type))) in quota_sync_one() 54 sb->s_qcop->quota_sync(sb, type); in quota_sync_one() 82 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument 85 if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable) in quota_quotaon() 87 if (sb->s_qcop->quota_enable) in quota_quotaon() 88 return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type)); in quota_quotaon() [all …]
|
D | dquot.c | 132 void __quota_error(struct super_block *sb, const char *func, in __quota_error() argument 145 sb->s_id, func, &vaf); in __quota_error() 253 hashfn(const struct super_block *sb, struct kqid qid) in hashfn() argument 259 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn() 278 static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, in find_dquot() argument 286 if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid)) in find_dquot() 393 void mark_info_dirty(struct super_block *sb, int type) in mark_info_dirty() argument 395 set_bit(DQF_INFO_DIRTY_B, &sb_dqopt(sb)->info[type].dqi_flags); in mark_info_dirty() 513 static void invalidate_dquots(struct super_block *sb, int type) in invalidate_dquots() argument 520 if (dquot->dq_sb != sb) in invalidate_dquots() [all …]
|
D | quota_v1.c | 125 static int v1_check_quota_file(struct super_block *sb, int type) in v1_check_quota_file() argument 127 struct inode *inode = sb_dqopt(sb)->files[type]; in v1_check_quota_file() 145 size = sb->s_op->quota_read(sb, type, (char *)&dqhead, in v1_check_quota_file() 153 " It probably contains newer quota format.\n", sb->s_id); in v1_check_quota_file() 157 static int v1_read_file_info(struct super_block *sb, int type) in v1_read_file_info() argument 159 struct quota_info *dqopt = sb_dqopt(sb); in v1_read_file_info() 163 ret = sb->s_op->quota_read(sb, type, (char *)&dqblk, in v1_read_file_info() 182 static int v1_write_file_info(struct super_block *sb, int type) in v1_write_file_info() argument 184 struct quota_info *dqopt = sb_dqopt(sb); in v1_write_file_info() 189 ret = sb->s_op->quota_read(sb, type, (char *)&dqblk, in v1_write_file_info() [all …]
|
D | quota_v2.c | 58 static int v2_read_header(struct super_block *sb, int type, in v2_read_header() argument 63 size = sb->s_op->quota_read(sb, type, (char *)dqhead, in v2_read_header() 66 quota_error(sb, "Failed header read: expected=%zd got=%zd", in v2_read_header() 74 static int v2_check_quota_file(struct super_block *sb, int type) in v2_check_quota_file() argument 80 if (!v2_read_header(sb, type, &dqhead)) in v2_check_quota_file() 89 static int v2_read_file_info(struct super_block *sb, int type) in v2_read_file_info() argument 93 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_read_file_info() 98 if (!v2_read_header(sb, type, &dqhead)) in v2_read_file_info() 105 size = sb->s_op->quota_read(sb, type, (char *)&dinfo, in v2_read_file_info() 108 quota_error(sb, "Can't read info structure"); in v2_read_file_info() [all …]
|
/linux-4.4.14/fs/ocfs2/ |
D | quota_local.c | 28 static inline unsigned int ol_quota_entries_per_block(struct super_block *sb) in ol_quota_entries_per_block() argument 30 return ((sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE) / in ol_quota_entries_per_block() 35 static inline unsigned int ol_chunk_blocks(struct super_block *sb) in ol_chunk_blocks() argument 37 return ((sb->s_blocksize - sizeof(struct ocfs2_local_disk_chunk) - in ol_chunk_blocks() 39 ol_quota_entries_per_block(sb); in ol_chunk_blocks() 43 static unsigned int ol_chunk_entries(struct super_block *sb) in ol_chunk_entries() argument 45 return ol_chunk_blocks(sb) * ol_quota_entries_per_block(sb); in ol_chunk_entries() 49 static unsigned int ol_quota_chunk_block(struct super_block *sb, int c) in ol_quota_chunk_block() argument 52 return 1 + (ol_chunk_blocks(sb) + 1) * c; in ol_quota_chunk_block() 55 static unsigned int ol_dqblk_block(struct super_block *sb, int c, int off) in ol_dqblk_block() argument [all …]
|
D | journal.h | 378 static inline int ocfs2_quota_trans_credits(struct super_block *sb) in ocfs2_quota_trans_credits() argument 382 if (OCFS2_HAS_RO_COMPAT_FEATURE(sb, OCFS2_FEATURE_RO_COMPAT_USRQUOTA)) in ocfs2_quota_trans_credits() 384 if (OCFS2_HAS_RO_COMPAT_FEATURE(sb, OCFS2_FEATURE_RO_COMPAT_GRPQUOTA)) in ocfs2_quota_trans_credits() 399 static inline int ocfs2_inline_to_extents_credits(struct super_block *sb) in ocfs2_inline_to_extents_credits() argument 402 ocfs2_quota_trans_credits(sb); in ocfs2_inline_to_extents_credits() 412 static inline int ocfs2_remove_extent_credits(struct super_block *sb) in ocfs2_remove_extent_credits() argument 415 ocfs2_quota_trans_credits(sb); in ocfs2_remove_extent_credits() 422 static inline int ocfs2_add_dir_index_credits(struct super_block *sb) in ocfs2_add_dir_index_credits() argument 427 ocfs2_clusters_to_blocks(sb, 1); in ocfs2_add_dir_index_credits() 433 static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir, in ocfs2_mknod_credits() argument [all …]
|
D | ocfs2.h | 306 struct super_block *sb; member 469 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) argument 707 static inline unsigned long ino_from_blkno(struct super_block *sb, in ino_from_blkno() argument 713 static inline u64 ocfs2_clusters_to_blocks(struct super_block *sb, in ocfs2_clusters_to_blocks() argument 716 int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_to_blocks() 717 sb->s_blocksize_bits; in ocfs2_clusters_to_blocks() 722 static inline u32 ocfs2_clusters_for_blocks(struct super_block *sb, in ocfs2_clusters_for_blocks() argument 725 int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits - in ocfs2_clusters_for_blocks() 726 sb->s_blocksize_bits; in ocfs2_clusters_for_blocks() 732 static inline u32 ocfs2_blocks_to_clusters(struct super_block *sb, in ocfs2_blocks_to_clusters() argument [all …]
|
D | quota_global.c | 132 int ocfs2_validate_quota_block(struct super_block *sb, struct buffer_head *bh) in ocfs2_validate_quota_block() argument 135 ocfs2_block_dqtrailer(sb->s_blocksize, bh->b_data); in ocfs2_validate_quota_block() 146 return ocfs2_validate_meta_ecc(sb, bh->b_data, &dqt->dq_check); in ocfs2_validate_quota_block() 165 ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data, in ocfs2_quota_read() argument 168 struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv; in ocfs2_quota_read() 171 int offset = off & (sb->s_blocksize - 1); in ocfs2_quota_read() 172 sector_t blk = off >> sb->s_blocksize_bits; in ocfs2_quota_read() 184 tocopy = min_t(size_t, (sb->s_blocksize - offset), toread); in ocfs2_quota_read() 214 ssize_t ocfs2_quota_write(struct super_block *sb, int type, in ocfs2_quota_write() argument 217 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() [all …]
|
D | ocfs2_fs.h | 74 #define OCFS2_HAS_COMPAT_FEATURE(sb,mask) \ argument 75 ( OCFS2_SB(sb)->s_feature_compat & (mask) ) 76 #define OCFS2_HAS_RO_COMPAT_FEATURE(sb,mask) \ argument 77 ( OCFS2_SB(sb)->s_feature_ro_compat & (mask) ) 78 #define OCFS2_HAS_INCOMPAT_FEATURE(sb,mask) \ argument 79 ( OCFS2_SB(sb)->s_feature_incompat & (mask) ) 80 #define OCFS2_SET_COMPAT_FEATURE(sb,mask) \ argument 81 OCFS2_SB(sb)->s_feature_compat |= (mask) 82 #define OCFS2_SET_RO_COMPAT_FEATURE(sb,mask) \ argument 83 OCFS2_SB(sb)->s_feature_ro_compat |= (mask) [all …]
|
D | super.c | 106 static int ocfs2_parse_options(struct super_block *sb, char *options, 109 static int ocfs2_check_set_options(struct super_block *sb, 112 static void ocfs2_put_super(struct super_block *sb); 113 static int ocfs2_mount_volume(struct super_block *sb); 114 static int ocfs2_remount(struct super_block *sb, int *flags, char *data); 115 static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err); 122 static int ocfs2_sync_fs(struct super_block *sb, int wait); 132 static int ocfs2_initialize_super(struct super_block *sb, 136 static int ocfs2_get_sector(struct super_block *sb, 140 static struct inode *ocfs2_alloc_inode(struct super_block *sb); [all …]
|
D | super.h | 35 int __ocfs2_error(struct super_block *sb, const char *function, 38 #define ocfs2_error(sb, fmt, ...) \ argument 39 __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__) 42 void __ocfs2_abort(struct super_block *sb, const char *function, 45 #define ocfs2_abort(sb, fmt, ...) \ argument 46 __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
|
/linux-4.4.14/fs/nilfs2/ |
D | super.c | 75 static int nilfs_setup_super(struct super_block *sb, int is_mount); 76 static int nilfs_remount(struct super_block *sb, int *flags, char *data); 78 static void nilfs_set_error(struct super_block *sb) in nilfs_set_error() argument 80 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_set_error() 86 sbp = nilfs_prepare_super(sb, 0); in nilfs_set_error() 91 nilfs_commit_super(sb, NILFS_SB_COMMIT_ALL); in nilfs_set_error() 109 void nilfs_error(struct super_block *sb, const char *function, in nilfs_error() argument 112 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_error() 122 sb->s_id, function, &vaf); in nilfs_error() 126 if (!(sb->s_flags & MS_RDONLY)) { in nilfs_error() [all …]
|
D | nilfs.h | 131 #define NILFS_FIRST_INO(sb) (((struct the_nilfs *)sb->s_fs_info)->ns_first_ino) argument 133 #define NILFS_MDT_INODE(sb, ino) \ argument 134 ((ino) < NILFS_FIRST_INO(sb) && (NILFS_MDT_INO_BITS & (1 << (ino)))) 135 #define NILFS_VALID_INODE(sb, ino) \ argument 136 ((ino) >= NILFS_FIRST_INO(sb) || (NILFS_SYS_INO_BITS & (1 << (ino)))) 266 struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root, 268 struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root, 270 struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root, 272 extern struct inode *nilfs_iget_for_gc(struct super_block *sb, 311 struct nilfs_super_block **nilfs_prepare_super(struct super_block *sb, [all …]
|
D | the_nilfs.c | 109 struct super_block *sb, sector_t sr_block) in nilfs_load_super_root() argument 132 err = nilfs_dat_read(sb, dat_entry_size, rawi, &nilfs->ns_dat); in nilfs_load_super_root() 137 err = nilfs_cpfile_read(sb, checkpoint_size, rawi, &nilfs->ns_cpfile); in nilfs_load_super_root() 142 err = nilfs_sufile_read(sb, segment_usage_size, rawi, in nilfs_load_super_root() 213 int load_nilfs(struct the_nilfs *nilfs, struct super_block *sb) in load_nilfs() argument 216 unsigned int s_flags = sb->s_flags; in load_nilfs() 281 err = nilfs_load_super_root(nilfs, sb, ri.ri_super_root); in load_nilfs() 314 sb->s_flags &= ~MS_RDONLY; in load_nilfs() 322 err = nilfs_salvage_orphan_logs(nilfs, sb, &ri); in load_nilfs() 328 err = nilfs_cleanup_super(sb); in load_nilfs() [all …]
|
/linux-4.4.14/fs/romfs/ |
D | storage.c | 22 #define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__) argument 27 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, in romfs_mtd_read() argument 33 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read() 40 static ssize_t romfs_mtd_strnlen(struct super_block *sb, in romfs_mtd_strnlen() argument 52 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen() 70 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, in romfs_mtd_strcmp() argument 83 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp() 107 static int romfs_blk_read(struct super_block *sb, unsigned long pos, in romfs_blk_read() argument 118 bh = sb_bread(sb, pos >> ROMBSBITS); in romfs_blk_read() 134 static ssize_t romfs_blk_strnlen(struct super_block *sb, in romfs_blk_strnlen() argument [all …]
|
D | super.c | 96 static struct inode *romfs_iget(struct super_block *sb, unsigned long pos); 295 static struct inode *romfs_iget(struct super_block *sb, unsigned long pos) in romfs_iget() argument 308 ret = romfs_dev_read(sb, pos, &ri, sizeof(ri)); in romfs_iget() 322 nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN); in romfs_iget() 327 i = iget_locked(sb, pos); in romfs_iget() 389 static struct inode *romfs_alloc_inode(struct super_block *sb) in romfs_alloc_inode() argument 417 struct super_block *sb = dentry->d_sb; in romfs_statfs() local 418 u64 id = huge_encode_dev(sb->s_bdev->bd_dev); in romfs_statfs() 434 static int romfs_remount(struct super_block *sb, int *flags, char *data) in romfs_remount() argument 436 sync_filesystem(sb); in romfs_remount() [all …]
|
D | internal.h | 20 static inline size_t romfs_maxsize(struct super_block *sb) in romfs_maxsize() argument 22 return (size_t) (unsigned long) sb->s_fs_info; in romfs_maxsize() 42 extern int romfs_dev_read(struct super_block *sb, unsigned long pos, 44 extern ssize_t romfs_dev_strnlen(struct super_block *sb, 46 extern int romfs_dev_strcmp(struct super_block *sb, unsigned long pos,
|
/linux-4.4.14/fs/sysv/ |
D | ialloc.c | 39 sv_sb_fic_inode(struct super_block * sb, unsigned int i) in sv_sb_fic_inode() argument 41 struct sysv_sb_info *sbi = SYSV_SB(sb); in sv_sb_fic_inode() 56 sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh) in sysv_raw_inode() argument 58 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_raw_inode() 63 *bh = sb_bread(sb, block); in sysv_raw_inode() 70 static int refill_free_cache(struct super_block *sb) in refill_free_cache() argument 72 struct sysv_sb_info *sbi = SYSV_SB(sb); in refill_free_cache() 78 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() 83 *sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino); in refill_free_cache() 89 raw_inode = sysv_raw_inode(sb, ino, &bh); in refill_free_cache() [all …]
|
D | balloc.c | 30 static inline sysv_zone_t *get_chunk(struct super_block *sb, struct buffer_head *bh) in get_chunk() argument 34 if (SYSV_SB(sb)->s_type == FSTYPE_SYSV4) in get_chunk() 42 void sysv_free_block(struct super_block * sb, sysv_zone_t nr) in sysv_free_block() argument 44 struct sysv_sb_info * sbi = SYSV_SB(sb); in sysv_free_block() 77 bh = sb_getblk(sb, block); in sysv_free_block() 83 memset(bh->b_data, 0, sb->s_blocksize); in sysv_free_block() 85 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); in sysv_free_block() 95 dirty_sb(sb); in sysv_free_block() 99 sysv_zone_t sysv_new_block(struct super_block * sb) in sysv_new_block() argument 101 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_new_block() [all …]
|
D | super.c | 201 struct super_block *sb = sbi->s_sb; in detect_sysv() local 219 if (!(sb->s_flags & MS_RDONLY)) { in detect_sysv() 222 sb->s_id); in detect_sysv() 244 "forcing read-only mode.\n", sb->s_id); in detect_sysv() 302 static int complete_read_super(struct super_block *sb, int silent, int size) in complete_read_super() argument 304 struct sysv_sb_info *sbi = SYSV_SB(sb); in complete_read_super() 313 flavour_setup[sbi->s_type](sbi, &sb->s_max_links); in complete_read_super() 330 found, sb->s_blocksize, sb->s_id); in complete_read_super() 332 sb->s_magic = SYSV_MAGIC_BASE + sbi->s_type; in complete_read_super() 334 sb->s_op = &sysv_sops; in complete_read_super() [all …]
|
D | inode.c | 34 static int sysv_sync_fs(struct super_block *sb, int wait) in sysv_sync_fs() argument 36 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_sync_fs() 59 static int sysv_remount(struct super_block *sb, int *flags, char *data) in sysv_remount() argument 61 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_remount() 63 sync_filesystem(sb); in sysv_remount() 69 static void sysv_put_super(struct super_block *sb) in sysv_put_super() argument 71 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_put_super() 73 if (!(sb->s_flags & MS_RDONLY)) { in sysv_put_super() 89 struct super_block *sb = dentry->d_sb; in sysv_statfs() local 90 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_statfs() [all …]
|
/linux-4.4.14/fs/fat/ |
D | nfs.c | 32 static struct inode *fat_dget(struct super_block *sb, int i_logstart) in fat_dget() argument 34 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_dget() 42 BUG_ON(i->vfs_inode.i_sb != sb); in fat_dget() 53 static struct inode *fat_ilookup(struct super_block *sb, u64 ino, loff_t i_pos) in fat_ilookup() argument 55 if (MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) in fat_ilookup() 56 return fat_iget(sb, i_pos); in fat_ilookup() 61 return ilookup(sb, ino); in fat_ilookup() 65 static struct inode *__fat_nfs_get_inode(struct super_block *sb, in __fat_nfs_get_inode() argument 68 struct inode *inode = fat_ilookup(sb, ino, i_pos); in __fat_nfs_get_inode() 74 if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) { in __fat_nfs_get_inode() [all …]
|
D | fatent.c | 21 static void fat12_ent_blocknr(struct super_block *sb, int entry, in fat12_ent_blocknr() argument 24 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat12_ent_blocknr() 27 *offset = bytes & (sb->s_blocksize - 1); in fat12_ent_blocknr() 28 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat12_ent_blocknr() 31 static void fat_ent_blocknr(struct super_block *sb, int entry, in fat_ent_blocknr() argument 34 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_ent_blocknr() 37 *offset = bytes & (sb->s_blocksize - 1); in fat_ent_blocknr() 38 *blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits); in fat_ent_blocknr() 67 static int fat12_ent_bread(struct super_block *sb, struct fat_entry *fatent, in fat12_ent_bread() argument 72 WARN_ON(blocknr < MSDOS_SB(sb)->fat_start); in fat12_ent_bread() [all …]
|
D | inode.c | 115 struct super_block *sb = inode->i_sb; in __fat_get_block() local 116 struct msdos_sb_info *sbi = MSDOS_SB(sb); in __fat_get_block() 125 map_bh(bh_result, sb, phys); in __fat_get_block() 132 if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) { in __fat_get_block() 133 fat_fs_error(sb, "corrupted file size (i_pos %lld, %lld)", in __fat_get_block() 149 MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits; in __fat_get_block() 158 map_bh(bh_result, sb, phys); in __fat_get_block() 166 struct super_block *sb = inode->i_sb; in fat_get_block() local 173 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block() 335 static void fat_hash_init(struct super_block *sb) in fat_hash_init() argument [all …]
|
D | misc.c | 19 void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...) in __fat_fs_error() argument 21 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error() 29 fat_msg(sb, KERN_ERR, "error, %pV", &vaf); in __fat_fs_error() 34 panic("FAT-fs (%s): fs panic from previous error\n", sb->s_id); in __fat_fs_error() 35 else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) { in __fat_fs_error() 36 sb->s_flags |= MS_RDONLY; in __fat_fs_error() 37 fat_msg(sb, KERN_ERR, "Filesystem has been set read-only"); in __fat_fs_error() 46 void fat_msg(struct super_block *sb, const char *level, const char *fmt, ...) in fat_msg() argument 54 printk("%sFAT-fs (%s): %pV\n", level, sb->s_id, &vaf); in fat_msg() 60 int fat_clusters_flush(struct super_block *sb) in fat_clusters_flush() argument [all …]
|
D | dir.c | 39 static inline loff_t fat_make_i_pos(struct super_block *sb, in fat_make_i_pos() argument 43 return ((loff_t)bh->b_blocknr << MSDOS_SB(sb)->dir_per_block_bits) in fat_make_i_pos() 50 struct super_block *sb = dir->i_sb; in fat_dir_readahead() local 51 struct msdos_sb_info *sbi = MSDOS_SB(sb); in fat_dir_readahead() 62 bh = sb_find_get_block(sb, phys); in fat_dir_readahead() 65 sb_breadahead(sb, phys + sec); in fat_dir_readahead() 83 struct super_block *sb = dir->i_sb; in fat__get_entry() local 93 iblock = *pos >> sb->s_blocksize_bits; in fat__get_entry() 100 *bh = sb_bread(sb, phys); in fat__get_entry() 102 fat_msg_ratelimit(sb, KERN_ERR, in fat__get_entry() [all …]
|
D | namei_msdos.c | 202 struct super_block *sb = dir->i_sb; in msdos_lookup() local 207 mutex_lock(&MSDOS_SB(sb)->s_lock); in msdos_lookup() 214 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_lookup() 220 mutex_unlock(&MSDOS_SB(sb)->s_lock); in msdos_lookup() 265 struct super_block *sb = dir->i_sb; in msdos_create() local 272 mutex_lock(&MSDOS_SB(sb)->s_lock); in msdos_create() 275 msdos_name, &MSDOS_SB(sb)->options); in msdos_create() 290 inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos); in msdos_create() 301 mutex_unlock(&MSDOS_SB(sb)->s_lock); in msdos_create() 303 err = fat_flush_inodes(sb, dir, inode); in msdos_create() [all …]
|
D | fat.h | 139 static inline struct msdos_sb_info *MSDOS_SB(struct super_block *sb) in MSDOS_SB() argument 141 return sb->s_fs_info; in MSDOS_SB() 347 extern void fat_ent_access_init(struct super_block *sb); 355 extern int fat_count_free_clusters(struct super_block *sb); 373 extern struct inode *fat_iget(struct super_block *sb, loff_t i_pos); 374 extern struct inode *fat_build_inode(struct super_block *sb, 377 extern int fat_fill_super(struct super_block *sb, void *data, int silent, 381 extern int fat_flush_inodes(struct super_block *sb, struct inode *i1, 390 void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...); 391 #define fat_fs_error(sb, fmt, args...) \ argument [all …]
|
/linux-4.4.14/fs/ntfs/ |
D | super.c | 206 ntfs_warning(vol->sb, "Ignoring obsolete option %s.", in parse_options() 210 ntfs_warning(vol->sb, "Option iocharset is " in parse_options() 221 ntfs_error(vol->sb, "NLS character set " in parse_options() 225 ntfs_error(vol->sb, "NLS character set %s not " in parse_options() 234 ntfs_warning(vol->sb, "Option utf8 is no longer " in parse_options() 248 ntfs_error(vol->sb, "Unrecognized mount option %s.", p); in parse_options() 261 ntfs_warning(vol->sb, "Sloppy option given. Ignoring " in parse_options() 266 ntfs_error(vol->sb, "Invalid errors option argument " in parse_options() 273 ntfs_error(vol->sb, "Cannot change NLS character set " in parse_options() 283 ntfs_error(vol->sb, "Failed to load default " in parse_options() [all …]
|
D | debug.h | 62 void __ntfs_warning(const char *function, const struct super_block *sb, 64 #define ntfs_warning(sb, f, a...) __ntfs_warning(__func__, sb, f, ##a) argument 67 void __ntfs_error(const char *function, const struct super_block *sb, 69 #define ntfs_error(sb, f, a...) __ntfs_error(__func__, sb, f, ##a) argument
|
D | index.c | 125 struct super_block *sb = vol->sb; in ntfs_index_lookup() local 146 ntfs_error(sb, "Index uses unsupported collation rule 0x%x. " in ntfs_index_lookup() 154 ntfs_error(sb, "map_mft_record() failed with error code %ld.", in ntfs_index_lookup() 168 ntfs_error(sb, "Index root attribute missing in inode " in ntfs_index_lookup() 256 ntfs_error(sb, "No index allocation attribute but index entry " in ntfs_index_lookup() 281 ntfs_error(sb, "Failed to map index page, error %ld.", in ntfs_index_lookup() 294 ntfs_error(sb, "Out of bounds check failed. Corrupt inode " in ntfs_index_lookup() 300 ntfs_error(sb, "Index record with vcn 0x%llx is corrupt. " in ntfs_index_lookup() 306 ntfs_error(sb, "Actual VCN (0x%llx) of index buffer is " in ntfs_index_lookup() 316 ntfs_error(sb, "Index buffer (VCN 0x%llx) of inode 0x%lx has " in ntfs_index_lookup() [all …]
|
D | mft.c | 76 ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, " in map_mft_record_page() 93 ntfs_error(vol->sb, "Mft record 0x%lx is corrupt. " in map_mft_record_page() 173 ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m)); in map_mft_record() 293 ntfs_error(base_ni->vol->sb, "Found stale extent mft " in map_extent_mft_record() 299 ntfs_error(base_ni->vol->sb, "Failed to map extent " in map_extent_mft_record() 304 ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no); in map_extent_mft_record() 324 ntfs_error(base_ni->vol->sb, "Found stale extent mft " in map_extent_mft_record() 337 ntfs_error(base_ni->vol->sb, "Failed to allocate " in map_extent_mft_record() 442 ntfs_error(vol->sb, "Umount time mft mirror syncing is not " in ntfs_sync_mft_mirror_umount() 469 unsigned int blocksize = vol->sb->s_blocksize; in ntfs_sync_mft_mirror() [all …]
|
D | dir.c | 84 struct super_block *sb = vol->sb; in ntfs_lookup_inode_by_name() local 104 ntfs_error(sb, "map_mft_record() failed with error code %ld.", in ntfs_lookup_inode_by_name() 118 ntfs_error(sb, "Index root attribute missing in " in ntfs_lookup_inode_by_name() 216 ntfs_error(sb, "Found already allocated name " in ntfs_lookup_inode_by_name() 299 ntfs_error(sb, "No index allocation attribute but index entry " in ntfs_lookup_inode_by_name() 324 ntfs_error(sb, "Failed to map directory index page, error %ld.", in ntfs_lookup_inode_by_name() 337 ntfs_error(sb, "Out of bounds check failed. Corrupt directory " in ntfs_lookup_inode_by_name() 343 ntfs_error(sb, "Directory index record with vcn 0x%llx is " in ntfs_lookup_inode_by_name() 349 ntfs_error(sb, "Actual VCN (0x%llx) of index buffer is " in ntfs_lookup_inode_by_name() 359 ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode " in ntfs_lookup_inode_by_name() [all …]
|
D | namei.c | 121 ntfs_error(vol->sb, "Failed to convert name to " in ntfs_lookup() 131 dent_inode = ntfs_iget(vol->sb, dent_ino); in ntfs_lookup() 148 ntfs_error(vol->sb, "Found stale reference to inode " in ntfs_lookup() 157 ntfs_error(vol->sb, "ntfs_iget(0x%lx) failed with " in ntfs_lookup() 172 ntfs_error(vol->sb, "ntfs_lookup_ino_by_name() failed with error " in ntfs_lookup() 218 ntfs_error(vol->sb, "Inode corrupt: No WIN32 " in ntfs_lookup() 263 ntfs_error(vol->sb, "Illegal file name attribute. Run chkdsk."); in ntfs_lookup() 271 ntfs_error(vol->sb, "Failed, returning error code %i.", err); in ntfs_lookup() 351 static struct inode *ntfs_nfs_get_inode(struct super_block *sb, in ntfs_nfs_get_inode() argument 356 inode = ntfs_iget(sb, ino); in ntfs_nfs_get_inode() [all …]
|
D | quota.c | 48 ntfs_error(vol->sb, "Quota inodes are not open."); in ntfs_mark_quotas_out_of_date() 54 ntfs_error(vol->sb, "Failed to get index context."); in ntfs_mark_quotas_out_of_date() 60 ntfs_error(vol->sb, "Quota defaults entry is not " in ntfs_mark_quotas_out_of_date() 63 ntfs_error(vol->sb, "Lookup of quota defaults entry " in ntfs_mark_quotas_out_of_date() 68 ntfs_error(vol->sb, "Quota defaults entry size is invalid. " in ntfs_mark_quotas_out_of_date() 74 ntfs_error(vol->sb, "Quota defaults entry version 0x%x is not " in ntfs_mark_quotas_out_of_date()
|
/linux-4.4.14/drivers/mtd/ |
D | mtdsuper.c | 26 static int get_sb_mtd_compare(struct super_block *sb, void *_mtd) in get_sb_mtd_compare() argument 30 if (sb->s_mtd == mtd) { in get_sb_mtd_compare() 37 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); in get_sb_mtd_compare() 46 static int get_sb_mtd_set(struct super_block *sb, void *_mtd) in get_sb_mtd_set() argument 50 sb->s_mtd = mtd; in get_sb_mtd_set() 51 sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, mtd->index); in get_sb_mtd_set() 52 sb->s_bdi = mtd->backing_dev_info; in get_sb_mtd_set() 64 struct super_block *sb; in mount_mtd_aux() local 67 sb = sget(fs_type, get_sb_mtd_compare, get_sb_mtd_set, flags, mtd); in mount_mtd_aux() 68 if (IS_ERR(sb)) in mount_mtd_aux() [all …]
|
/linux-4.4.14/fs/adfs/ |
D | super.c | 26 void __adfs_error(struct super_block *sb, const char *function, const char *fmt, ...) in __adfs_error() argument 36 sb->s_id, function ? ": " : "", in __adfs_error() 73 static unsigned char adfs_calczonecheck(struct super_block *sb, unsigned char *map) in adfs_calczonecheck() argument 79 for (i = sb->s_blocksize - 4; i; i -= 4) { in adfs_calczonecheck() 97 static int adfs_checkmap(struct super_block *sb, struct adfs_discmap *dm) in adfs_checkmap() argument 102 for (i = 0; i < ADFS_SB(sb)->s_map_size; i++) { in adfs_checkmap() 107 if (adfs_calczonecheck(sb, map) != map[0]) { in adfs_checkmap() 108 adfs_error(sb, "zone %d fails zonecheck", i); in adfs_checkmap() 114 adfs_error(sb, "crosscheck != 0xff"); in adfs_checkmap() 118 static void adfs_put_super(struct super_block *sb) in adfs_put_super() argument [all …]
|
D | dir_f.c | 88 const int blocksize_bits = dir->sb->s_blocksize_bits; in adfs_dir_checkbyte() 143 adfs_dir_read(struct super_block *sb, unsigned long object_id, in adfs_dir_read() argument 146 const unsigned int blocksize_bits = sb->s_blocksize_bits; in adfs_dir_read() 159 dir->sb = sb; in adfs_dir_read() 164 phys = __adfs_block_map(sb, object_id, blk); in adfs_dir_read() 166 adfs_error(sb, "dir object %lX has a hole at offset %d", in adfs_dir_read() 171 dir->bh[blk] = sb_bread(sb, phys); in adfs_dir_read() 195 adfs_error(sb, "corrupted directory fragment %lX", in adfs_dir_read() 201 dir->sb = NULL; in adfs_dir_read() 230 if (ADFS_SB(dir->sb)->s_ftsuffix) in adfs_dir2obj() [all …]
|
D | dir_fplus.c | 16 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument 29 block = __adfs_block_map(sb, id, 0); in adfs_fplus_read() 31 adfs_error(sb, "dir object %X has a hole at offset 0", id); in adfs_fplus_read() 35 dir->bh_fplus[0] = sb_bread(sb, block); in adfs_fplus_read() 57 size >>= sb->s_blocksize_bits; in adfs_fplus_read() 65 adfs_error(sb, "not enough memory for" in adfs_fplus_read() 75 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read() 77 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read() 81 dir->bh_fplus[blk] = sb_bread(sb, block); in adfs_fplus_read() 83 adfs_error(sb, "dir object %x failed read for offset %d, mapped block %lX", in adfs_fplus_read() [all …]
|
D | adfs.h | 68 static inline struct adfs_sb_info *ADFS_SB(struct super_block *sb) in ADFS_SB() argument 70 return sb->s_fs_info; in ADFS_SB() 82 struct super_block *sb; member 129 int (*read)(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir); 147 struct inode *adfs_iget(struct super_block *sb, struct object_info *obj); 152 extern int adfs_map_lookup(struct super_block *sb, unsigned int frag_id, unsigned int offset); 153 extern unsigned int adfs_map_free(struct super_block *sb); 157 void __adfs_error(struct super_block *sb, const char *function, 159 #define adfs_error(sb, fmt...) __adfs_error(sb, __func__, fmt) argument 174 extern int adfs_dir_update(struct super_block *sb, struct object_info *obj, [all …]
|
D | inode.c | 89 adfs_atts2mode(struct super_block *sb, struct inode *inode) in adfs_atts2mode() argument 93 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_atts2mode() 133 adfs_mode2atts(struct super_block *sb, struct inode *inode) in adfs_mode2atts() argument 137 struct adfs_sb_info *asb = ADFS_SB(sb); in adfs_mode2atts() 243 adfs_iget(struct super_block *sb, struct object_info *obj) in adfs_iget() argument 247 inode = new_inode(sb); in adfs_iget() 251 inode->i_uid = ADFS_SB(sb)->s_uid; in adfs_iget() 252 inode->i_gid = ADFS_SB(sb)->s_gid; in adfs_iget() 256 inode->i_blocks = (inode->i_size + sb->s_blocksize - 1) >> in adfs_iget() 257 sb->s_blocksize_bits; in adfs_iget() [all …]
|
/linux-4.4.14/drivers/md/bcache/ |
D | super.c | 64 static const char *read_super(struct cache_sb *sb, struct block_device *bdev, in read_super() argument 77 sb->offset = le64_to_cpu(s->offset); in read_super() 78 sb->version = le64_to_cpu(s->version); in read_super() 80 memcpy(sb->magic, s->magic, 16); in read_super() 81 memcpy(sb->uuid, s->uuid, 16); in read_super() 82 memcpy(sb->set_uuid, s->set_uuid, 16); in read_super() 83 memcpy(sb->label, s->label, SB_LABEL_SIZE); in read_super() 85 sb->flags = le64_to_cpu(s->flags); in read_super() 86 sb->seq = le64_to_cpu(s->seq); in read_super() 87 sb->last_mount = le32_to_cpu(s->last_mount); in read_super() [all …]
|
/linux-4.4.14/fs/proc/ |
D | root.c | 26 static int proc_test_super(struct super_block *sb, void *data) in proc_test_super() argument 28 return sb->s_fs_info == data; in proc_test_super() 31 static int proc_set_super(struct super_block *sb, void *data) in proc_set_super() argument 33 int err = set_anon_super(sb, NULL); in proc_set_super() 36 sb->s_fs_info = get_pid_ns(ns); in proc_set_super() 92 int proc_remount(struct super_block *sb, int *flags, char *data) in proc_remount() argument 94 struct pid_namespace *pid = sb->s_fs_info; in proc_remount() 96 sync_filesystem(sb); in proc_remount() 104 struct super_block *sb; in proc_mount() local 120 sb = sget(fs_type, proc_test_super, proc_set_super, flags, ns); in proc_mount() [all …]
|
/linux-4.4.14/fs/jffs2/ |
D | super.c | 37 static struct inode *jffs2_alloc_inode(struct super_block *sb) in jffs2_alloc_inode() argument 99 static int jffs2_sync_fs(struct super_block *sb, int wait) in jffs2_sync_fs() argument 101 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_sync_fs() 113 static struct inode *jffs2_nfs_get_inode(struct super_block *sb, uint64_t ino, in jffs2_nfs_get_inode() argument 119 return jffs2_iget(sb, ino); in jffs2_nfs_get_inode() 122 static struct dentry *jffs2_fh_to_dentry(struct super_block *sb, struct fid *fid, in jffs2_fh_to_dentry() argument 125 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in jffs2_fh_to_dentry() 129 static struct dentry *jffs2_fh_to_parent(struct super_block *sb, struct fid *fid, in jffs2_fh_to_parent() argument 132 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in jffs2_fh_to_parent() 241 static int jffs2_remount_fs(struct super_block *sb, int *flags, char *data) in jffs2_remount_fs() argument [all …]
|
/linux-4.4.14/fs/f2fs/ |
D | super.c | 252 void f2fs_msg(struct super_block *sb, const char *level, const char *fmt, ...) in f2fs_msg() argument 260 printk("%sF2FS-fs (%s): %pV\n", level, sb->s_id, &vaf); in f2fs_msg() 271 static int parse_options(struct super_block *sb, char *options) in parse_options() argument 273 struct f2fs_sb_info *sbi = F2FS_SB(sb); in parse_options() 320 if (!f2fs_readonly(sb)) in parse_options() 324 q = bdev_get_queue(sb->s_bdev); in parse_options() 328 f2fs_msg(sb, KERN_WARNING, in parse_options() 348 f2fs_msg(sb, KERN_INFO, in parse_options() 352 f2fs_msg(sb, KERN_INFO, in parse_options() 356 f2fs_msg(sb, KERN_INFO, in parse_options() [all …]
|
/linux-4.4.14/fs/9p/ |
D | vfs_super.c | 76 v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, in v9fs_fill_super() argument 79 sb->s_maxbytes = MAX_LFS_FILESIZE; in v9fs_fill_super() 80 sb->s_blocksize_bits = fls(v9ses->maxdata - 1); in v9fs_fill_super() 81 sb->s_blocksize = 1 << sb->s_blocksize_bits; in v9fs_fill_super() 82 sb->s_magic = V9FS_MAGIC; in v9fs_fill_super() 84 sb->s_op = &v9fs_super_ops_dotl; in v9fs_fill_super() 85 sb->s_xattr = v9fs_xattr_handlers; in v9fs_fill_super() 87 sb->s_op = &v9fs_super_ops; in v9fs_fill_super() 88 sb->s_bdi = &v9ses->bdi; in v9fs_fill_super() 90 sb->s_bdi->ra_pages = (VM_MAX_READAHEAD * 1024)/PAGE_CACHE_SIZE; in v9fs_fill_super() [all …]
|
D | v9fs.h | 154 struct super_block *sb, int new); 160 struct super_block *sb, int new); 199 struct super_block *sb) in v9fs_get_inode_from_fid() argument 202 return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 0); in v9fs_get_inode_from_fid() 204 return v9fs_inode_from_fid(v9ses, fid, sb, 0); in v9fs_get_inode_from_fid() 217 struct super_block *sb) in v9fs_get_new_inode_from_fid() argument 220 return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 1); in v9fs_get_new_inode_from_fid() 222 return v9fs_inode_from_fid(v9ses, fid, sb, 1); in v9fs_get_new_inode_from_fid()
|
/linux-4.4.14/fs/qnx6/ |
D | super_mmi.c | 18 struct qnx6_mmi_super_block *sb) in qnx6_mmi_copy_sb() argument 20 qsb->sb_magic = sb->sb_magic; in qnx6_mmi_copy_sb() 21 qsb->sb_checksum = sb->sb_checksum; in qnx6_mmi_copy_sb() 22 qsb->sb_serial = sb->sb_serial; in qnx6_mmi_copy_sb() 23 qsb->sb_blocksize = sb->sb_blocksize; in qnx6_mmi_copy_sb() 24 qsb->sb_num_inodes = sb->sb_num_inodes; in qnx6_mmi_copy_sb() 25 qsb->sb_free_inodes = sb->sb_free_inodes; in qnx6_mmi_copy_sb() 26 qsb->sb_num_blocks = sb->sb_num_blocks; in qnx6_mmi_copy_sb() 27 qsb->sb_free_blocks = sb->sb_free_blocks; in qnx6_mmi_copy_sb() 30 memcpy(&qsb->Inode, &sb->Inode, sizeof(sb->Inode)); in qnx6_mmi_copy_sb() [all …]
|
D | inode.c | 30 static void qnx6_put_super(struct super_block *sb); 31 static struct inode *qnx6_alloc_inode(struct super_block *sb); 33 static int qnx6_remount(struct super_block *sb, int *flags, char *data); 48 struct super_block *sb = root->d_sb; in qnx6_show_options() local 49 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_show_options() 56 static int qnx6_remount(struct super_block *sb, int *flags, char *data) in qnx6_remount() argument 58 sync_filesystem(sb); in qnx6_remount() 63 static unsigned qnx6_get_devblock(struct super_block *sb, __fs32 block) in qnx6_get_devblock() argument 65 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_get_devblock() 157 struct super_block *sb = dentry->d_sb; in qnx6_statfs() local [all …]
|
/linux-4.4.14/fs/hfsplus/ |
D | super.c | 20 static struct inode *hfsplus_alloc_inode(struct super_block *sb); 57 struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino) in hfsplus_iget() argument 63 inode = iget_locked(sb, ino); in hfsplus_iget() 174 static int hfsplus_sync_fs(struct super_block *sb, int wait) in hfsplus_sync_fs() argument 176 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_sync_fs() 220 error2 = hfsplus_submit_bio(sb, in hfsplus_sync_fs() 228 error2 = hfsplus_submit_bio(sb, in hfsplus_sync_fs() 238 blkdev_issue_flush(sb->s_bdev, GFP_KERNEL, NULL); in hfsplus_sync_fs() 259 void hfsplus_mark_mdb_dirty(struct super_block *sb) in hfsplus_mark_mdb_dirty() argument 261 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_mark_mdb_dirty() [all …]
|
D | wrapper.c | 46 int hfsplus_submit_bio(struct super_block *sb, sector_t sector, in hfsplus_submit_bio() argument 60 io_size = hfsplus_min_io_size(sb); in hfsplus_submit_bio() 67 bio->bi_bdev = sb->s_bdev; in hfsplus_submit_bio() 124 static int hfsplus_get_last_session(struct super_block *sb, in hfsplus_get_last_session() argument 133 *size = sb->s_bdev->bd_inode->i_size >> 9; in hfsplus_get_last_session() 135 if (HFSPLUS_SB(sb)->session >= 0) { in hfsplus_get_last_session() 136 te.cdte_track = HFSPLUS_SB(sb)->session; in hfsplus_get_last_session() 138 res = ioctl_by_bdev(sb->s_bdev, in hfsplus_get_last_session() 148 res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, in hfsplus_get_last_session() 157 int hfsplus_read_wrapper(struct super_block *sb) in hfsplus_read_wrapper() argument [all …]
|
D | part_tbl.c | 70 static int hfs_parse_old_pmap(struct super_block *sb, struct old_pmap *pm, in hfs_parse_old_pmap() argument 73 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfs_parse_old_pmap() 91 static int hfs_parse_new_pmap(struct super_block *sb, void *buf, in hfs_parse_new_pmap() argument 94 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfs_parse_new_pmap() 96 int buf_size = hfsplus_min_io_size(sb); in hfs_parse_new_pmap() 113 res = hfsplus_submit_bio(sb, in hfs_parse_new_pmap() 128 int hfs_part_find(struct super_block *sb, in hfs_part_find() argument 134 buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfs_part_find() 138 res = hfsplus_submit_bio(sb, *part_start + HFS_PMAP_BLK, in hfs_part_find() 145 res = hfs_parse_old_pmap(sb, data, part_start, part_size); in hfs_part_find() [all …]
|
D | attributes.c | 49 int hfsplus_attr_build_key(struct super_block *sb, hfsplus_btree_key *key, in hfsplus_attr_build_key() argument 57 int res = hfsplus_asc2uni(sb, in hfsplus_attr_build_key() 136 int hfsplus_find_attr(struct super_block *sb, u32 cnid, in hfsplus_find_attr() argument 143 if (!HFSPLUS_SB(sb)->attr_tree) { in hfsplus_find_attr() 149 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name); in hfsplus_find_attr() 156 err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL); in hfsplus_find_attr() 171 struct super_block *sb = inode->i_sb; in hfsplus_attr_exists() local 174 if (!HFSPLUS_SB(sb)->attr_tree) in hfsplus_attr_exists() 177 err = hfs_find_init(HFSPLUS_SB(sb)->attr_tree, &fd); in hfsplus_attr_exists() 181 err = hfsplus_find_attr(sb, inode->i_ino, name, &fd); in hfsplus_attr_exists() [all …]
|
D | catalog.c | 42 int hfsplus_cat_build_key(struct super_block *sb, in hfsplus_cat_build_key() argument 48 err = hfsplus_asc2uni(sb, &key->cat.name, HFSPLUS_MAX_STRLEN, in hfsplus_cat_build_key() 59 void hfsplus_cat_build_key_with_cnid(struct super_block *sb, in hfsplus_cat_build_key_with_cnid() argument 175 static int hfsplus_fill_cat_thread(struct super_block *sb, in hfsplus_fill_cat_thread() argument 184 err = hfsplus_asc2uni(sb, &entry->thread.nodeName, HFSPLUS_MAX_STRLEN, in hfsplus_fill_cat_thread() 193 int hfsplus_find_cat(struct super_block *sb, u32 cnid, in hfsplus_find_cat() argument 200 hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid); in hfsplus_find_cat() 255 struct super_block *sb = dir->i_sb; in hfsplus_create_cat() local 263 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd); in hfsplus_create_cat() 267 hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid); in hfsplus_create_cat() [all …]
|
D | hfsplus_fs.h | 74 struct super_block *sb; member 202 static inline struct hfsplus_sb_info *HFSPLUS_SB(struct super_block *sb) in HFSPLUS_SB() argument 204 return sb->s_fs_info; in HFSPLUS_SB() 304 static inline unsigned short hfsplus_min_io_size(struct super_block *sb) in hfsplus_min_io_size() argument 306 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size() 374 int hfsplus_attr_build_key(struct super_block *sb, hfsplus_btree_key *key, 378 int hfsplus_find_attr(struct super_block *sb, u32 cnid, const char *name, 387 int hfsplus_block_allocate(struct super_block *sb, u32 size, u32 offset, 389 int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count); 394 struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id); [all …]
|
D | extents.c | 223 struct super_block *sb = inode->i_sb; in hfsplus_get_block() local 224 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_get_block() 277 map_bh(bh_result, sb, sector); in hfsplus_get_block() 281 hip->phys_size += sb->s_blocksize; in hfsplus_get_block() 283 inode_add_bytes(inode, sb->s_blocksize); in hfsplus_get_block() 330 static int hfsplus_free_extents(struct super_block *sb, in hfsplus_free_extents() argument 353 err = hfsplus_block_free(sb, start, count); in hfsplus_free_extents() 364 err = hfsplus_block_free(sb, start + count, block_nr); in hfsplus_free_extents() 386 int hfsplus_free_fork(struct super_block *sb, u32 cnid, in hfsplus_free_fork() argument 402 res = hfsplus_free_extents(sb, fork->extents, blocks, blocks); in hfsplus_free_fork() [all …]
|
D | unicode.c | 121 int hfsplus_uni2asc(struct super_block *sb, in hfsplus_uni2asc() argument 126 struct nls_table *nls = HFSPLUS_SB(sb)->nls; in hfsplus_uni2asc() 137 compose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); in hfsplus_uni2asc() 255 static inline int asc2unichar(struct super_block *sb, const char *astr, int len, in asc2unichar() argument 258 int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc); in asc2unichar() 298 int hfsplus_asc2uni(struct super_block *sb, in hfsplus_asc2uni() argument 306 decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); in hfsplus_asc2uni() 308 size = asc2unichar(sb, astr, len, &c); in hfsplus_asc2uni() 339 struct super_block *sb = dentry->d_sb; in hfsplus_hash_dentry() local 347 casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags); in hfsplus_hash_dentry() [all …]
|
/linux-4.4.14/fs/afs/ |
D | super.c | 36 static void afs_kill_super(struct super_block *sb); 37 static struct inode *afs_alloc_inode(struct super_block *sb); 290 static int afs_test_super(struct super_block *sb, void *data) in afs_test_super() argument 293 struct afs_super_info *as = sb->s_fs_info; in afs_test_super() 298 static int afs_set_super(struct super_block *sb, void *data) in afs_set_super() argument 300 sb->s_fs_info = data; in afs_set_super() 301 return set_anon_super(sb, NULL); in afs_set_super() 307 static int afs_fill_super(struct super_block *sb, in afs_fill_super() argument 310 struct afs_super_info *as = sb->s_fs_info; in afs_fill_super() 318 sb->s_blocksize = PAGE_CACHE_SIZE; in afs_fill_super() [all …]
|
/linux-4.4.14/sound/isa/sb/ |
D | sb_mixer.c | 73 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_get_single() local 80 spin_lock_irqsave(&sb->mixer_lock, flags); in snd_sbmixer_get_single() 81 val = (snd_sbmixer_read(sb, reg) >> shift) & mask; in snd_sbmixer_get_single() 82 spin_unlock_irqrestore(&sb->mixer_lock, flags); in snd_sbmixer_get_single() 89 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_put_single() local 98 spin_lock_irqsave(&sb->mixer_lock, flags); in snd_sbmixer_put_single() 99 oval = snd_sbmixer_read(sb, reg); in snd_sbmixer_put_single() 103 snd_sbmixer_write(sb, reg, val); in snd_sbmixer_put_single() 104 spin_unlock_irqrestore(&sb->mixer_lock, flags); in snd_sbmixer_put_single() 125 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_get_double() local [all …]
|
/linux-4.4.14/fs/nfs/ |
D | getroot.c | 43 static int nfs_superblock_set_dummy_root(struct super_block *sb, struct inode *inode) in nfs_superblock_set_dummy_root() argument 46 if (sb->s_root == NULL) { in nfs_superblock_set_dummy_root() 47 sb->s_root = d_make_root(inode); in nfs_superblock_set_dummy_root() 48 if (sb->s_root == NULL) in nfs_superblock_set_dummy_root() 59 spin_lock(&d_inode(sb->s_root)->i_lock); in nfs_superblock_set_dummy_root() 60 spin_lock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root() 61 hlist_del_init(&sb->s_root->d_u.d_alias); in nfs_superblock_set_dummy_root() 62 spin_unlock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root() 63 spin_unlock(&d_inode(sb->s_root)->i_lock); in nfs_superblock_set_dummy_root() 71 struct dentry *nfs_get_root(struct super_block *sb, struct nfs_fh *mntfh, in nfs_get_root() argument [all …]
|
/linux-4.4.14/fs/omfs/ |
D | bitmap.c | 7 unsigned long omfs_count_free(struct super_block *sb) in omfs_count_free() argument 11 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_count_free() 12 int nbits = sb->s_blocksize * 8; in omfs_count_free() 47 static int set_run(struct super_block *sb, int map, in set_run() argument 53 struct omfs_sb_info *sbi = OMFS_SB(sb); in set_run() 56 bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map); in set_run() 67 bh = sb_bread(sb, in set_run() 90 int omfs_allocate_block(struct super_block *sb, u64 block) in omfs_allocate_block() argument 93 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_allocate_block() 94 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_block() [all …]
|
D | omfs.h | 34 static inline struct omfs_sb_info *OMFS_SB(struct super_block *sb) in OMFS_SB() argument 36 return sb->s_fs_info; in OMFS_SB() 40 extern unsigned long omfs_count_free(struct super_block *sb); 41 extern int omfs_allocate_block(struct super_block *sb, u64 block); 42 extern int omfs_allocate_range(struct super_block *sb, int min_request, 44 extern int omfs_clear_range(struct super_block *sb, u64 block, int count); 49 extern int omfs_make_empty(struct inode *inode, struct super_block *sb); 61 extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block); 62 extern struct inode *omfs_iget(struct super_block *sb, ino_t inode); 64 extern int omfs_reserve_block(struct super_block *sb, sector_t block); [all …]
|
D | inode.c | 22 struct buffer_head *omfs_bread(struct super_block *sb, sector_t block) in omfs_bread() argument 24 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_bread() 28 return sb_bread(sb, clus_to_blk(sbi, block)); in omfs_bread() 200 struct inode *omfs_iget(struct super_block *sb, ino_t ino) in omfs_iget() argument 202 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_iget() 209 inode = iget_locked(sb, ino); in omfs_iget() 264 static void omfs_put_super(struct super_block *sb) in omfs_put_super() argument 266 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_put_super() 269 sb->s_fs_info = NULL; in omfs_put_super() 307 static int omfs_get_imap(struct super_block *sb) in omfs_get_imap() argument [all …]
|
/linux-4.4.14/fs/squashfs/ |
D | super.c | 79 static int squashfs_fill_super(struct super_block *sb, void *data, int silent) in squashfs_fill_super() argument 93 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL); in squashfs_fill_super() 94 if (sb->s_fs_info == NULL) { in squashfs_fill_super() 98 msblk = sb->s_fs_info; in squashfs_fill_super() 100 msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE); in squashfs_fill_super() 112 sblk = squashfs_read_table(sb, SQUASHFS_START, sizeof(*sblk)); in squashfs_fill_super() 124 sb->s_magic = le32_to_cpu(sblk->s_magic); in squashfs_fill_super() 125 if (sb->s_magic != SQUASHFS_MAGIC) { in squashfs_fill_super() 128 bdevname(sb->s_bdev, b)); in squashfs_fill_super() 144 i_size_read(sb->s_bdev->bd_inode)) in squashfs_fill_super() [all …]
|
D | export.c | 52 static long long squashfs_inode_lookup(struct super_block *sb, int ino_num) in squashfs_inode_lookup() argument 54 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_inode_lookup() 63 err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino)); in squashfs_inode_lookup() 74 static struct dentry *squashfs_export_iget(struct super_block *sb, in squashfs_export_iget() argument 82 ino = squashfs_inode_lookup(sb, ino_num); in squashfs_export_iget() 84 dentry = d_obtain_alias(squashfs_iget(sb, ino, ino_num)); in squashfs_export_iget() 90 static struct dentry *squashfs_fh_to_dentry(struct super_block *sb, in squashfs_fh_to_dentry() argument 97 return squashfs_export_iget(sb, fid->i32.ino); in squashfs_fh_to_dentry() 101 static struct dentry *squashfs_fh_to_parent(struct super_block *sb, in squashfs_fh_to_parent() argument 107 return squashfs_export_iget(sb, fid->i32.parent_ino); in squashfs_fh_to_parent() [all …]
|
D | xattr.c | 43 struct super_block *sb = inode->i_sb; in squashfs_listxattr() local 44 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_listxattr() 63 err = squashfs_read_metadata(sb, &entry, &start, &offset, in squashfs_listxattr() 81 err = squashfs_read_metadata(sb, buffer, &start, in squashfs_listxattr() 92 err = squashfs_read_metadata(sb, NULL, &start, in squashfs_listxattr() 100 err = squashfs_read_metadata(sb, &val, &start, &offset, in squashfs_listxattr() 105 err = squashfs_read_metadata(sb, NULL, &start, &offset, in squashfs_listxattr() 120 struct super_block *sb = inode->i_sb; in squashfs_xattr_get() local 121 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_xattr_get() 139 err = squashfs_read_metadata(sb, &entry, &start, &offset, in squashfs_xattr_get() [all …]
|
D | inode.c | 56 static int squashfs_new_inode(struct super_block *sb, struct inode *inode, in squashfs_new_inode() argument 63 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid); in squashfs_new_inode() 67 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid); in squashfs_new_inode() 84 struct inode *squashfs_iget(struct super_block *sb, long long ino, in squashfs_iget() argument 87 struct inode *inode = iget_locked(sb, ino_number); in squashfs_iget() 114 struct super_block *sb = inode->i_sb; in squashfs_read_inode() local 115 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_inode() 127 err = squashfs_read_metadata(sb, sqshb_ino, &block, in squashfs_read_inode() 132 err = squashfs_new_inode(sb, inode, sqshb_ino); in squashfs_read_inode() 147 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode() [all …]
|
D | xattr_id.c | 41 int squashfs_xattr_lookup(struct super_block *sb, unsigned int index, in squashfs_xattr_lookup() argument 44 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_xattr_lookup() 51 err = squashfs_read_metadata(sb, &id, &start_block, &offset, in squashfs_xattr_lookup() 66 __le64 *squashfs_read_xattr_id_table(struct super_block *sb, u64 start, in squashfs_read_xattr_id_table() argument 72 id_table = squashfs_read_table(sb, start, sizeof(*id_table)); in squashfs_read_xattr_id_table() 94 return squashfs_read_table(sb, start + sizeof(*id_table), len); in squashfs_read_xattr_id_table()
|
D | block.c | 45 static struct buffer_head *get_block_length(struct super_block *sb, in get_block_length() argument 48 struct squashfs_sb_info *msblk = sb->s_fs_info; in get_block_length() 51 bh = sb_bread(sb, *cur_index); in get_block_length() 58 bh = sb_bread(sb, ++(*cur_index)); in get_block_length() 70 bh = sb_bread(sb, ++(*cur_index)); in get_block_length() 90 int squashfs_read_data(struct super_block *sb, u64 index, int length, in squashfs_read_data() argument 93 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_data() 122 bh[b] = sb_getblk(sb, cur_index); in squashfs_read_data() 135 bh[0] = get_block_length(sb, &cur_index, &offset, &length); in squashfs_read_data() 154 bh[b] = sb_getblk(sb, ++cur_index); in squashfs_read_data()
|
D | id.c | 45 int squashfs_get_id(struct super_block *sb, unsigned int index, in squashfs_get_id() argument 48 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_get_id() 55 err = squashfs_read_metadata(sb, &disk_id, &start_block, &offset, in squashfs_get_id() 68 __le64 *squashfs_read_id_index_table(struct super_block *sb, in squashfs_read_id_index_table() argument 90 table = squashfs_read_table(sb, id_table_start, length); in squashfs_read_id_index_table()
|
D | fragment.c | 48 int squashfs_frag_lookup(struct super_block *sb, unsigned int fragment, in squashfs_frag_lookup() argument 51 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_frag_lookup() 58 size = squashfs_read_metadata(sb, &fragment_entry, &start_block, in squashfs_frag_lookup() 73 __le64 *squashfs_read_fragment_index_table(struct super_block *sb, in squashfs_read_fragment_index_table() argument 87 table = squashfs_read_table(sb, fragment_table_start, length); in squashfs_read_fragment_index_table()
|
/linux-4.4.14/fs/efs/ |
D | super.c | 67 static struct inode *efs_alloc_inode(struct super_block *sb) in efs_alloc_inode() argument 115 static int efs_remount(struct super_block *sb, int *flags, char *data) in efs_remount() argument 117 sync_filesystem(sb); in efs_remount() 238 static int efs_validate_super(struct efs_sb_info *sb, struct efs_super *super) { in efs_validate_super() argument 243 sb->fs_magic = be32_to_cpu(super->fs_magic); in efs_validate_super() 244 sb->total_blocks = be32_to_cpu(super->fs_size); in efs_validate_super() 245 sb->first_block = be32_to_cpu(super->fs_firstcg); in efs_validate_super() 246 sb->group_size = be32_to_cpu(super->fs_cgfsize); in efs_validate_super() 247 sb->data_free = be32_to_cpu(super->fs_tfree); in efs_validate_super() 248 sb->inode_free = be32_to_cpu(super->fs_tinode); in efs_validate_super() [all …]
|
/linux-4.4.14/fs/coda/ |
D | inode.c | 42 static struct inode *coda_alloc_inode(struct super_block *sb) in coda_alloc_inode() argument 95 static int coda_remount(struct super_block *sb, int *flags, char *data) in coda_remount() argument 97 sync_filesystem(sb); in coda_remount() 152 static int coda_fill_super(struct super_block *sb, void *data, int silent) in coda_fill_super() argument 190 vc->vc_sb = sb; in coda_fill_super() 193 sb->s_fs_info = vc; in coda_fill_super() 194 sb->s_flags |= MS_NOATIME; in coda_fill_super() 195 sb->s_blocksize = 4096; /* XXXXX what do we put here?? */ in coda_fill_super() 196 sb->s_blocksize_bits = 12; in coda_fill_super() 197 sb->s_magic = CODA_SUPER_MAGIC; in coda_fill_super() [all …]
|
D | upcall.c | 74 int venus_rootfid(struct super_block *sb, struct CodaFid *fidp) in venus_rootfid() argument 83 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_rootfid() 91 int venus_getattr(struct super_block *sb, struct CodaFid *fid, in venus_getattr() argument 102 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_getattr() 110 int venus_setattr(struct super_block *sb, struct CodaFid *fid, in venus_setattr() argument 123 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_setattr() 129 int venus_lookup(struct super_block *sb, struct CodaFid *fid, in venus_lookup() argument 149 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_lookup() 159 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, in venus_close() argument 173 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_close() [all …]
|
D | cnode.c | 59 struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid, in coda_iget() argument 66 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget() 91 struct inode *coda_cnode_make(struct CodaFid *fid, struct super_block *sb) in coda_cnode_make() argument 98 error = venus_getattr(sb, fid, &attr); in coda_cnode_make() 102 inode = coda_iget(sb, fid, &attr); in coda_cnode_make() 134 struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb) in coda_fid_to_inode() argument 139 if ( !sb ) { in coda_fid_to_inode() 144 inode = ilookup5(sb, hash, coda_test_inode, fid); in coda_fid_to_inode() 156 struct inode *coda_cnode_makectl(struct super_block *sb) in coda_cnode_makectl() argument 158 struct inode *inode = new_inode(sb); in coda_cnode_makectl()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmutil/ |
D | d11.c | 24 static u16 d11n_sb(enum brcmu_chan_sb sb) in d11n_sb() argument 26 switch (sb) { in d11n_sb() 55 ch->sb = BRCMU_CHAN_SB_NONE; in brcmu_d11n_encchspec() 61 0, d11n_sb(ch->sb)); in brcmu_d11n_encchspec() 88 if (ch->bw == BRCMU_CHAN_BW_20 || ch->sb == BRCMU_CHAN_SB_NONE) in brcmu_d11ac_encchspec() 89 ch->sb = BRCMU_CHAN_SB_L; in brcmu_d11ac_encchspec() 94 BRCMU_CHSPEC_D11AC_SB_SHIFT, ch->sb); in brcmu_d11ac_encchspec() 114 ch->sb = BRCMU_CHAN_SB_NONE; in brcmu_d11n_decchspec() 120 ch->sb = BRCMU_CHAN_SB_L; in brcmu_d11n_decchspec() 123 ch->sb = BRCMU_CHAN_SB_U; in brcmu_d11n_decchspec() [all …]
|
/linux-4.4.14/mm/ |
D | cleancache.c | 37 static void cleancache_register_ops_sb(struct super_block *sb, void *unused) in cleancache_register_ops_sb() argument 39 switch (sb->cleancache_poolid) { in cleancache_register_ops_sb() 41 __cleancache_init_fs(sb); in cleancache_register_ops_sb() 44 __cleancache_init_shared_fs(sb); in cleancache_register_ops_sb() 114 void __cleancache_init_fs(struct super_block *sb) in __cleancache_init_fs() argument 123 sb->cleancache_poolid = pool_id; in __cleancache_init_fs() 128 void __cleancache_init_shared_fs(struct super_block *sb) in __cleancache_init_shared_fs() argument 133 pool_id = cleancache_ops->init_shared_fs(sb->s_uuid, PAGE_SIZE); in __cleancache_init_shared_fs() 137 sb->cleancache_poolid = pool_id; in __cleancache_init_shared_fs() 150 struct super_block *sb = inode->i_sb; in cleancache_get_key() local [all …]
|
/linux-4.4.14/fs/ramfs/ |
D | inode.c | 53 struct inode *ramfs_get_inode(struct super_block *sb, in ramfs_get_inode() argument 56 struct inode * inode = new_inode(sb); in ramfs_get_inode() 207 int ramfs_fill_super(struct super_block *sb, void *data, int silent) in ramfs_fill_super() argument 213 save_mount_options(sb, data); in ramfs_fill_super() 216 sb->s_fs_info = fsi; in ramfs_fill_super() 224 sb->s_maxbytes = MAX_LFS_FILESIZE; in ramfs_fill_super() 225 sb->s_blocksize = PAGE_CACHE_SIZE; in ramfs_fill_super() 226 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in ramfs_fill_super() 227 sb->s_magic = RAMFS_MAGIC; in ramfs_fill_super() 228 sb->s_op = &ramfs_ops; in ramfs_fill_super() [all …]
|
/linux-4.4.14/fs/xfs/ |
D | xfs_quotaops.c | 69 struct super_block *sb, in xfs_fs_get_quota_state() argument 72 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_get_quota_state() 121 struct super_block *sb, in xfs_fs_set_info() argument 125 struct xfs_mount *mp = XFS_M(sb); in xfs_fs_set_info() 128 if (sb->s_flags & MS_RDONLY) in xfs_fs_set_info() 173 struct super_block *sb, in xfs_quota_enable() argument 176 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_enable() 178 if (sb->s_flags & MS_RDONLY) in xfs_quota_enable() 188 struct super_block *sb, in xfs_quota_disable() argument 191 struct xfs_mount *mp = XFS_M(sb); in xfs_quota_disable() [all …]
|
D | xfs_super.h | 33 # define set_posix_acl_flag(sb) ((sb)->s_flags |= MS_POSIXACL) argument 36 # define set_posix_acl_flag(sb) do { } while (0) argument 77 #define XFS_M(sb) ((struct xfs_mount *)((sb)->s_fs_info)) argument
|
/linux-4.4.14/arch/s390/hypfs/ |
D | inode.c | 48 static void hypfs_update_update(struct super_block *sb) in hypfs_update_update() argument 50 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_update_update() 92 static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) in hypfs_make_inode() argument 94 struct inode *ret = new_inode(sb); in hypfs_make_inode() 97 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_make_inode() 165 struct super_block *sb = file_inode(iocb->ki_filp)->i_sb; in hypfs_write_iter() local 166 struct hypfs_sb_info *fs_info = sb->s_fs_info; in hypfs_write_iter() 184 hypfs_delete_tree(sb->s_root); in hypfs_write_iter() 186 rc = hypfs_vm_create_files(sb->s_root); in hypfs_write_iter() 188 rc = hypfs_diag_create_files(sb->s_root); in hypfs_write_iter() [all …]
|
/linux-4.4.14/fs/cramfs/ |
D | inode.c | 41 static inline struct cramfs_sb_info *CRAMFS_SB(struct super_block *sb) in CRAMFS_SB() argument 43 return sb->s_fs_info; in CRAMFS_SB() 80 static struct inode *get_cramfs_inode(struct super_block *sb, in get_cramfs_inode() argument 86 inode = iget_locked(sb, cramino(cramfs_inode, offset)); in get_cramfs_inode() 165 static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned int len) in cramfs_read() argument 167 struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; in cramfs_read() 182 if (buffer_dev[i] != sb) in cramfs_read() 224 buffer_dev[buffer] = sb; in cramfs_read() 241 static void cramfs_kill_sb(struct super_block *sb) in cramfs_kill_sb() argument 243 struct cramfs_sb_info *sbi = CRAMFS_SB(sb); in cramfs_kill_sb() [all …]
|
/linux-4.4.14/fs/qnx4/ |
D | inode.c | 30 static struct inode *qnx4_alloc_inode(struct super_block *sb); 32 static int qnx4_remount(struct super_block *sb, int *flags, char *data); 43 static int qnx4_remount(struct super_block *sb, int *flags, char *data) in qnx4_remount() argument 47 sync_filesystem(sb); in qnx4_remount() 48 qs = qnx4_sb(sb); in qnx4_remount() 130 struct super_block *sb = dentry->d_sb; in qnx4_statfs() local 131 u64 id = huge_encode_dev(sb->s_bdev->bd_dev); in qnx4_statfs() 133 buf->f_type = sb->s_magic; in qnx4_statfs() 134 buf->f_bsize = sb->s_blocksize; in qnx4_statfs() 135 buf->f_blocks = le32_to_cpu(qnx4_sb(sb)->BitMap->di_size) * 8; in qnx4_statfs() [all …]
|
/linux-4.4.14/fs/efivarfs/ |
D | super.c | 115 struct super_block *sb = (struct super_block *)data; in efivarfs_callback() local 118 struct dentry *dentry, *root = sb->s_root; in efivarfs_callback() 150 inode = efivarfs_get_inode(sb, d_inode(root), S_IFREG | 0644, 0, in efivarfs_callback() 191 static int efivarfs_fill_super(struct super_block *sb, void *data, int silent) in efivarfs_fill_super() argument 197 efivarfs_sb = sb; in efivarfs_fill_super() 199 sb->s_maxbytes = MAX_LFS_FILESIZE; in efivarfs_fill_super() 200 sb->s_blocksize = PAGE_CACHE_SIZE; in efivarfs_fill_super() 201 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in efivarfs_fill_super() 202 sb->s_magic = EFIVARFS_MAGIC; in efivarfs_fill_super() 203 sb->s_op = &efivarfs_ops; in efivarfs_fill_super() [all …]
|
/linux-4.4.14/fs/fuse/ |
D | inode.c | 79 static struct inode *fuse_alloc_inode(struct super_block *sb) in fuse_alloc_inode() argument 136 static int fuse_remount_fs(struct super_block *sb, int *flags, char *data) in fuse_remount_fs() argument 138 sync_filesystem(sb); in fuse_remount_fs() 293 struct inode *fuse_iget(struct super_block *sb, u64 nodeid, in fuse_iget() argument 299 struct fuse_conn *fc = get_fuse_conn_super(sb); in fuse_iget() 302 inode = iget5_locked(sb, nodeid, fuse_inode_eq, fuse_inode_set, &nodeid); in fuse_iget() 329 int fuse_reverse_inval_inode(struct super_block *sb, u64 nodeid, in fuse_reverse_inval_inode() argument 336 inode = ilookup5(sb, nodeid, fuse_inode_eq, &nodeid); in fuse_reverse_inval_inode() 354 static void fuse_umount_begin(struct super_block *sb) in fuse_umount_begin() argument 356 fuse_abort_conn(get_fuse_conn_super(sb)); in fuse_umount_begin() [all …]
|
/linux-4.4.14/fs/gfs2/ |
D | ops_fstype.c | 65 static struct gfs2_sbd *init_sbd(struct super_block *sb) in init_sbd() argument 74 sb->s_fs_info = sdp; in init_sbd() 75 sdp->sd_vfs = sb; in init_sbd() 111 mapping->host = sb->s_bdev->bd_inode; in init_sbd() 154 struct gfs2_sb_host *sb = &sdp->sd_sb; in gfs2_check_sb() local 156 if (sb->sb_magic != GFS2_MAGIC || in gfs2_check_sb() 157 sb->sb_type != GFS2_METATYPE_SB) { in gfs2_check_sb() 165 if (sb->sb_fs_format == GFS2_FORMAT_FS && in gfs2_check_sb() 166 sb->sb_multihost_format == GFS2_FORMAT_MULTI) in gfs2_check_sb() 187 struct gfs2_sb_host *sb = &sdp->sd_sb; in gfs2_sb_in() local [all …]
|
/linux-4.4.14/arch/x86/platform/sfi/ |
D | sfi.c | 54 struct sfi_table_simple *sb; in sfi_parse_cpus() local 59 sb = (struct sfi_table_simple *)table; in sfi_parse_cpus() 60 cpu_num = SFI_GET_NUM_ENTRIES(sb, struct sfi_cpu_table_entry); in sfi_parse_cpus() 61 pentry = (struct sfi_cpu_table_entry *)sb->pentry; in sfi_parse_cpus() 77 struct sfi_table_simple *sb; in sfi_parse_ioapic() local 85 sb = (struct sfi_table_simple *)table; in sfi_parse_ioapic() 86 num = SFI_GET_NUM_ENTRIES(sb, struct sfi_apic_table_entry); in sfi_parse_ioapic() 87 pentry = (struct sfi_apic_table_entry *)sb->pentry; in sfi_parse_ioapic()
|
/linux-4.4.14/fs/cifs/ |
D | cifsfs.c | 97 cifs_sb_active(struct super_block *sb) in cifs_sb_active() argument 99 struct cifs_sb_info *server = CIFS_SB(sb); in cifs_sb_active() 102 atomic_inc(&sb->s_active); in cifs_sb_active() 106 cifs_sb_deactive(struct super_block *sb) in cifs_sb_deactive() argument 108 struct cifs_sb_info *server = CIFS_SB(sb); in cifs_sb_deactive() 111 deactivate_super(sb); in cifs_sb_deactive() 115 cifs_read_super(struct super_block *sb) in cifs_read_super() argument 122 cifs_sb = CIFS_SB(sb); in cifs_read_super() 126 sb->s_flags |= MS_POSIXACL; in cifs_read_super() 129 sb->s_maxbytes = MAX_LFS_FILESIZE; in cifs_read_super() [all …]
|
D | xattr.c | 48 struct super_block *sb; in cifs_removexattr() local 55 sb = d_inode(direntry)->i_sb; in cifs_removexattr() 56 if (sb == NULL) in cifs_removexattr() 59 cifs_sb = CIFS_SB(sb); in cifs_removexattr() 109 struct super_block *sb; in cifs_setxattr() local 116 sb = d_inode(direntry)->i_sb; in cifs_setxattr() 117 if (sb == NULL) in cifs_setxattr() 120 cifs_sb = CIFS_SB(sb); in cifs_setxattr() 197 if (sb->s_flags & MS_POSIXACL) in cifs_setxattr() 209 if (sb->s_flags & MS_POSIXACL) in cifs_setxattr() [all …]
|
/linux-4.4.14/fs/devpts/ |
D | inode.c | 134 static inline struct pts_fs_info *DEVPTS_SB(struct super_block *sb) in DEVPTS_SB() argument 136 return sb->s_fs_info; in DEVPTS_SB() 241 static int mknod_ptmx(struct super_block *sb) in mknod_ptmx() argument 247 struct dentry *root = sb->s_root; in mknod_ptmx() 248 struct pts_fs_info *fsi = DEVPTS_SB(sb); in mknod_ptmx() 275 inode = new_inode(sb); in mknod_ptmx() 314 static int devpts_remount(struct super_block *sb, int *flags, char *data) in devpts_remount() argument 317 struct pts_fs_info *fsi = DEVPTS_SB(sb); in devpts_remount() 320 sync_filesystem(sb); in devpts_remount() 504 static void devpts_kill_sb(struct super_block *sb) in devpts_kill_sb() argument [all …]
|
/linux-4.4.14/fs/jbd2/ |
D | journal.c | 125 static int jbd2_verify_csum_type(journal_t *j, journal_superblock_t *sb) in jbd2_verify_csum_type() argument 130 return sb->s_checksum_type == JBD2_CRC32C_CHKSUM; in jbd2_verify_csum_type() 133 static __be32 jbd2_superblock_csum(journal_t *j, journal_superblock_t *sb) in jbd2_superblock_csum() argument 138 old_csum = sb->s_checksum; in jbd2_superblock_csum() 139 sb->s_checksum = 0; in jbd2_superblock_csum() 140 csum = jbd2_chksum(j, ~0, (char *)sb, sizeof(journal_superblock_t)); in jbd2_superblock_csum() 141 sb->s_checksum = old_csum; in jbd2_superblock_csum() 146 static int jbd2_superblock_csum_verify(journal_t *j, journal_superblock_t *sb) in jbd2_superblock_csum_verify() argument 151 return sb->s_checksum == jbd2_superblock_csum(j, sb); in jbd2_superblock_csum_verify() 154 static void jbd2_superblock_csum_set(journal_t *j, journal_superblock_t *sb) in jbd2_superblock_csum_set() argument [all …]
|
/linux-4.4.14/fs/configfs/ |
D | mount.c | 69 static int configfs_fill_super(struct super_block *sb, void *data, int silent) in configfs_fill_super() argument 74 sb->s_blocksize = PAGE_CACHE_SIZE; in configfs_fill_super() 75 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in configfs_fill_super() 76 sb->s_magic = CONFIGFS_MAGIC; in configfs_fill_super() 77 sb->s_op = &configfs_ops; in configfs_fill_super() 78 sb->s_time_gran = 1; in configfs_fill_super() 81 &configfs_root, sb); in configfs_fill_super() 100 sb->s_root = root; in configfs_fill_super() 101 sb->s_d_op = &configfs_dentry_ops; /* the rest get that */ in configfs_fill_super()
|
/linux-4.4.14/fs/bfs/ |
D | file.c | 33 struct super_block *sb) in bfs_move_block() argument 37 bh = sb_bread(sb, from); in bfs_move_block() 40 new = sb_getblk(sb, to); in bfs_move_block() 48 static int bfs_move_blocks(struct super_block *sb, unsigned long start, in bfs_move_blocks() argument 55 if(bfs_move_block(i, where + i, sb)) { in bfs_move_blocks() 68 struct super_block *sb = inode->i_sb; in bfs_get_block() local 69 struct bfs_sb_info *info = BFS_SB(sb); in bfs_get_block() 77 map_bh(bh_result, sb, phys); in bfs_get_block() 89 map_bh(bh_result, sb, phys); in bfs_get_block() 108 map_bh(bh_result, sb, phys); in bfs_get_block() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
D | obd_mount.c | 55 static int (*client_fill_super)(struct super_block *sb, 58 static void (*kill_super_cb)(struct super_block *sb); 74 int lustre_process_log(struct super_block *sb, char *logname, in lustre_process_log() argument 79 struct lustre_sb_info *lsi = s2lsi(sb); in lustre_process_log() 94 lustre_cfg_bufs_set(bufs, 3, &sb, sizeof(sb)); in lustre_process_log() 116 int lustre_end_log(struct super_block *sb, char *logname, in lustre_end_log() argument 121 struct lustre_sb_info *lsi = s2lsi(sb); in lustre_end_log() 203 int lustre_start_mgc(struct super_block *sb) in lustre_start_mgc() argument 206 struct lustre_sb_info *lsi = s2lsi(sb); in lustre_start_mgc() 417 static int lustre_stop_mgc(struct super_block *sb) in lustre_stop_mgc() argument [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | llite_lib.c | 67 static struct ll_sb_info *ll_init_sbi(struct super_block *sb) in ll_init_sbi() argument 131 sbi->ll_sb = sb; in ll_init_sbi() 136 static void ll_free_sbi(struct super_block *sb) in ll_free_sbi() argument 138 struct ll_sb_info *sbi = ll_s2sbi(sb); in ll_free_sbi() 143 static int client_common_fill_super(struct super_block *sb, char *md, char *dt, in client_common_fill_super() argument 147 struct ll_sb_info *sbi = ll_s2sbi(sb); in client_common_fill_super() 175 err = ldebugfs_register_mountpoint(llite_root, sb, dt, md); in client_common_fill_super() 213 if (sb->s_flags & MS_RDONLY) in client_common_fill_super() 298 sb->s_blocksize = osfs->os_bsize; in client_common_fill_super() 299 sb->s_blocksize_bits = log2(osfs->os_bsize); in client_common_fill_super() [all …]
|
/linux-4.4.14/fs/exofs/ |
D | super.c | 154 static struct inode *exofs_alloc_inode(struct super_block *sb) in exofs_alloc_inode() argument 363 static int exofs_sync_fs(struct super_block *sb, int wait) in exofs_sync_fs() argument 376 sbi = sb->s_fs_info; in exofs_sync_fs() 396 fscb->s_magic = cpu_to_le16(sb->s_magic); in exofs_sync_fs() 444 static void exofs_put_super(struct super_block *sb) in exofs_put_super() argument 447 struct exofs_sb_info *sbi = sb->s_fs_info; in exofs_put_super() 469 sb->s_fs_info = NULL; in exofs_put_super() 705 static int exofs_fill_super(struct super_block *sb, void *data, int silent) in exofs_fill_super() argument 752 memset(sb->s_id, 0, sizeof(sb->s_id)); in exofs_fill_super() 753 strcpy(sb->s_id, "exofs"); in exofs_fill_super() [all …]
|
/linux-4.4.14/drivers/hwmon/ |
D | hwmon.c | 237 struct pci_dev *sb; in hwmon_pci_quirks() local 242 sb = pci_get_device(PCI_VENDOR_ID_ATI, 0x436c, NULL); in hwmon_pci_quirks() 243 if (sb) { in hwmon_pci_quirks() 244 if (sb->subsystem_vendor == 0x1462 && /* MSI */ in hwmon_pci_quirks() 245 sb->subsystem_device == 0x0031) { /* MS-7031 */ in hwmon_pci_quirks() 246 pci_read_config_byte(sb, 0x48, &enable); in hwmon_pci_quirks() 247 pci_read_config_word(sb, 0x64, &base); in hwmon_pci_quirks() 250 dev_info(&sb->dev, in hwmon_pci_quirks() 252 pci_write_config_word(sb, 0x64, 0x295); in hwmon_pci_quirks() 253 pci_write_config_byte(sb, 0x48, in hwmon_pci_quirks() [all …]
|
/linux-4.4.14/arch/mn10300/boot/tools/ |
D | build.c | 74 struct stat sb; in main() local 84 if (stat("/", &sb)) { in main() 88 major_root = major(sb.st_dev); in main() 89 minor_root = minor(sb.st_dev); in main() 91 if (stat(argv[4], &sb)) { in main() 95 major_root = major(sb.st_rdev); in main() 96 minor_root = minor(sb.st_rdev); in main() 146 if (fstat(fd, &sb)) in main() 148 sz = sb.st_size; in main()
|
/linux-4.4.14/fs/pstore/ |
D | inode.c | 229 static struct inode *pstore_get_inode(struct super_block *sb) in pstore_get_inode() argument 231 struct inode *inode = new_inode(sb); in pstore_get_inode() 273 static int pstore_remount(struct super_block *sb, int *flags, char *data) in pstore_remount() argument 275 sync_filesystem(sb); in pstore_remount() 414 static int pstore_fill_super(struct super_block *sb, void *data, int silent) in pstore_fill_super() argument 418 save_mount_options(sb, data); in pstore_fill_super() 420 pstore_sb = sb; in pstore_fill_super() 422 sb->s_maxbytes = MAX_LFS_FILESIZE; in pstore_fill_super() 423 sb->s_blocksize = PAGE_CACHE_SIZE; in pstore_fill_super() 424 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in pstore_fill_super() [all …]
|
/linux-4.4.14/drivers/oprofile/ |
D | oprofilefs.c | 26 static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) in oprofilefs_get_inode() argument 28 struct inode *inode = new_inode(sb); in oprofilefs_get_inode() 238 static int oprofilefs_fill_super(struct super_block *sb, void *data, int silent) in oprofilefs_fill_super() argument 242 sb->s_blocksize = PAGE_CACHE_SIZE; in oprofilefs_fill_super() 243 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in oprofilefs_fill_super() 244 sb->s_magic = OPROFILEFS_MAGIC; in oprofilefs_fill_super() 245 sb->s_op = &s_ops; in oprofilefs_fill_super() 246 sb->s_time_gran = 1; in oprofilefs_fill_super() 248 root_inode = oprofilefs_get_inode(sb, S_IFDIR | 0755); in oprofilefs_fill_super() 253 sb->s_root = d_make_root(root_inode); in oprofilefs_fill_super() [all …]
|
/linux-4.4.14/security/tomoyo/ |
D | realpath.c | 150 struct super_block *sb = dentry->d_sb; in tomoyo_get_local_path() local 155 if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') { in tomoyo_get_local_path() 159 task_tgid_nr_ns(current, sb->s_fs_info)) { in tomoyo_get_local_path() 168 if (!MAJOR(sb->s_dev)) in tomoyo_get_local_path() 171 struct inode *inode = d_backing_inode(sb->s_root); in tomoyo_get_local_path() 183 const dev_t dev = sb->s_dev; in tomoyo_get_local_path() 197 const char *name = sb->s_type->name; in tomoyo_get_local_path() 256 struct super_block *sb; in tomoyo_realpath_from_path() local 259 sb = dentry->d_sb; in tomoyo_realpath_from_path() 271 if (sb->s_magic == SOCKFS_MAGIC) { in tomoyo_realpath_from_path() [all …]
|
/linux-4.4.14/fs/isofs/ |
D | isofs.h | 62 static inline struct isofs_sb_info *ISOFS_SB(struct super_block *sb) in ISOFS_SB() argument 64 return sb->s_fs_info; in ISOFS_SB() 121 struct inode *__isofs_iget(struct super_block *sb, 126 static inline struct inode *isofs_iget(struct super_block *sb, in isofs_iget() argument 130 return __isofs_iget(sb, block, offset, 0); in isofs_iget() 133 static inline struct inode *isofs_iget_reloc(struct super_block *sb, in isofs_iget_reloc() argument 137 return __isofs_iget(sb, block, offset, 1); in isofs_iget_reloc()
|
/linux-4.4.14/fs/btrfs/ |
D | super.c | 70 static int btrfs_remount(struct super_block *sb, int *flags, char *data); 112 struct super_block *sb = fs_info->sb; in btrfs_handle_error() local 114 if (sb->s_flags & MS_RDONLY) in btrfs_handle_error() 118 sb->s_flags |= MS_RDONLY; in btrfs_handle_error() 141 struct super_block *sb = fs_info->sb; in __btrfs_std_error() local 150 if (errno == -EROFS && (sb->s_flags & MS_RDONLY)) in __btrfs_std_error() 165 sb->s_id, function, line, errno, errstr, &vaf); in __btrfs_std_error() 169 sb->s_id, function, line, errno, errstr); in __btrfs_std_error() 175 if (sb->s_flags & MS_BORN) in __btrfs_std_error() 193 struct super_block *sb = fs_info->sb; in btrfs_printk() local [all …]
|
/linux-4.4.14/fs/nfsd/ |
D | blocklayout.c | 17 nfsd4_block_get_device_info_simple(struct super_block *sb, in nfsd4_block_get_device_info_simple() argument 34 return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len, in nfsd4_block_get_device_info_simple() 39 nfsd4_block_proc_getdeviceinfo(struct super_block *sb, in nfsd4_block_proc_getdeviceinfo() argument 42 if (sb->s_bdev != sb->s_bdev->bd_contains) in nfsd4_block_proc_getdeviceinfo() 44 return nfserrno(nfsd4_block_get_device_info_simple(sb, gdp)); in nfsd4_block_proc_getdeviceinfo() 52 struct super_block *sb = inode->i_sb; in nfsd4_block_proc_layoutget() local 74 error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length, in nfsd4_block_proc_layoutget()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 305 struct ip_vs_sync_buff *sb; in sb_dequeue() local 309 sb = NULL; in sb_dequeue() 312 sb = list_entry(ms->sync_queue.next, struct ip_vs_sync_buff, in sb_dequeue() 314 list_del(&sb->list); in sb_dequeue() 321 return sb; in sb_dequeue() 330 struct ip_vs_sync_buff *sb; in ip_vs_sync_buff_create() local 332 if (!(sb=kmalloc(sizeof(struct ip_vs_sync_buff), GFP_ATOMIC))) in ip_vs_sync_buff_create() 337 sb->mesg = kmalloc(len, GFP_ATOMIC); in ip_vs_sync_buff_create() 338 if (!sb->mesg) { in ip_vs_sync_buff_create() 339 kfree(sb); in ip_vs_sync_buff_create() [all …]
|