sb                 50 arch/arm/include/asm/uaccess-asm.h 	.if	\isb
sb                 64 arch/arm/include/asm/uaccess-asm.h 	.if	\isb
sb                116 arch/arm64/include/asm/assembler.h 	.macro	sb
sb                 17 arch/mips/boot/compressed/calc_vmlinuz_load_addr.c 	struct stat sb;
sb                 25 arch/mips/boot/compressed/calc_vmlinuz_load_addr.c 	if (stat(argv[1], &sb) == -1) {
sb                 41 arch/mips/boot/compressed/calc_vmlinuz_load_addr.c 	vmlinux_size = (uint64_t)sb.st_size;
sb                118 arch/mips/include/asm/asm-eva.h #define kernel_sb(reg, addr)		sb reg, addr
sb                 32 arch/mips/include/asm/sibyte/board.h 	sb	t1, 0x18(t0); \
sb                 34 arch/mips/include/asm/sibyte/board.h 	sb	t1, 0x10(t0); \
sb                 36 arch/mips/include/asm/sibyte/board.h 	sb	t1, 0x08(t0); \
sb                 38 arch/mips/include/asm/sibyte/board.h 	sb	t1, 0x00(t0)
sb               1375 arch/mips/net/ebpf_jit.c 			emit_instr(ctx, sb, MIPS_R_AT, mem_off, dst);
sb               1485 arch/mips/net/ebpf_jit.c 				emit_instr(ctx, sb, src, mem_off, dst);
sb                392 arch/powerpc/kvm/book3s_xive.c 			     struct kvmppc_xive_src_block *sb,
sb                405 arch/powerpc/kvm/book3s_xive.c 		arch_spin_lock(&sb->lock);
sb                412 arch/powerpc/kvm/book3s_xive.c 		arch_spin_unlock(&sb->lock);
sb                457 arch/powerpc/kvm/book3s_xive.c static void xive_lock_for_unmask(struct kvmppc_xive_src_block *sb,
sb                464 arch/powerpc/kvm/book3s_xive.c 		arch_spin_lock(&sb->lock);
sb                467 arch/powerpc/kvm/book3s_xive.c 		arch_spin_unlock(&sb->lock);
sb                472 arch/powerpc/kvm/book3s_xive.c 			       struct kvmppc_xive_src_block *sb,
sb                617 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb                641 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb                642 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb                644 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb                661 arch/powerpc/kvm/book3s_xive.c 		xive_lock_and_mask(xive, sb, state);
sb                663 arch/powerpc/kvm/book3s_xive.c 		xive_lock_for_unmask(sb, state);
sb                702 arch/powerpc/kvm/book3s_xive.c 		xive_finish_unmask(xive, sb, state, priority);
sb                710 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb                718 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb                725 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb                726 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb                728 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb                729 arch/powerpc/kvm/book3s_xive.c 	arch_spin_lock(&sb->lock);
sb                732 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb                740 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb                747 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb                748 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb                750 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb                769 arch/powerpc/kvm/book3s_xive.c 	xive_lock_for_unmask(sb, state);
sb                770 arch/powerpc/kvm/book3s_xive.c 	xive_finish_unmask(xive, sb, state, state->saved_priority);
sb                771 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb                779 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb                786 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb                787 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb                789 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb                796 arch/powerpc/kvm/book3s_xive.c 	state->saved_priority = xive_lock_and_mask(xive, sb, state);
sb                797 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb                804 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb                808 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb                809 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb                811 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb                900 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb                914 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, guest_irq, &idx);
sb                915 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb                917 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb                943 arch/powerpc/kvm/book3s_xive.c 	prio = xive_lock_and_mask(xive, sb, state);
sb                987 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb                997 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb               1009 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, guest_irq, &idx);
sb               1010 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb               1012 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb               1019 arch/powerpc/kvm/book3s_xive.c 	prio = xive_lock_and_mask(xive, sb, state);
sb               1068 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb               1082 arch/powerpc/kvm/book3s_xive.c 		struct kvmppc_xive_src_block *sb = xive->src_blocks[i];
sb               1084 arch/powerpc/kvm/book3s_xive.c 		if (!sb)
sb               1087 arch/powerpc/kvm/book3s_xive.c 			struct kvmppc_xive_irq_state *state = &sb->irq_state[j];
sb               1097 arch/powerpc/kvm/book3s_xive.c 			arch_spin_lock(&sb->lock);
sb               1105 arch/powerpc/kvm/book3s_xive.c 			arch_spin_unlock(&sb->lock);
sb               1351 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb               1355 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb               1356 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb               1359 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb               1380 arch/powerpc/kvm/book3s_xive.c 				   struct kvmppc_xive_src_block *sb,
sb               1383 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_irq_state *state = &sb->irq_state[irq];
sb               1389 arch/powerpc/kvm/book3s_xive.c 	state->saved_scan_prio = xive_lock_and_mask(xive, sb, state);
sb               1396 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb               1400 arch/powerpc/kvm/book3s_xive.c 				     struct kvmppc_xive_src_block *sb,
sb               1403 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_irq_state *state = &sb->irq_state[irq];
sb               1413 arch/powerpc/kvm/book3s_xive.c 	xive_lock_for_unmask(sb, state);
sb               1417 arch/powerpc/kvm/book3s_xive.c 		xive_finish_unmask(xive, sb, state, state->saved_scan_prio);
sb               1420 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb               1446 arch/powerpc/kvm/book3s_xive.c 		struct kvmppc_xive_src_block *sb = xive->src_blocks[i];
sb               1447 arch/powerpc/kvm/book3s_xive.c 		if (!sb)
sb               1450 arch/powerpc/kvm/book3s_xive.c 			xive_pre_save_mask_irq(xive, sb, j);
sb               1466 arch/powerpc/kvm/book3s_xive.c 		struct kvmppc_xive_src_block *sb = xive->src_blocks[i];
sb               1467 arch/powerpc/kvm/book3s_xive.c 		if (!sb)
sb               1470 arch/powerpc/kvm/book3s_xive.c 			xive_pre_save_unmask_irq(xive, sb, j);
sb               1480 arch/powerpc/kvm/book3s_xive.c 		struct kvmppc_xive_src_block *sb = xive->src_blocks[i];
sb               1481 arch/powerpc/kvm/book3s_xive.c 		if (!sb)
sb               1484 arch/powerpc/kvm/book3s_xive.c 			sb->irq_state[j].in_queue = false;
sb               1496 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb               1502 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb               1503 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb               1506 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb               1580 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb               1592 arch/powerpc/kvm/book3s_xive.c 	sb = kzalloc(sizeof(*sb), GFP_KERNEL);
sb               1593 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb               1596 arch/powerpc/kvm/book3s_xive.c 	sb->id = bid;
sb               1599 arch/powerpc/kvm/book3s_xive.c 		sb->irq_state[i].number = (bid << KVMPPC_XICS_ICS_SHIFT) | i;
sb               1600 arch/powerpc/kvm/book3s_xive.c 		sb->irq_state[i].eisn = 0;
sb               1601 arch/powerpc/kvm/book3s_xive.c 		sb->irq_state[i].guest_priority = MASKED;
sb               1602 arch/powerpc/kvm/book3s_xive.c 		sb->irq_state[i].saved_priority = MASKED;
sb               1603 arch/powerpc/kvm/book3s_xive.c 		sb->irq_state[i].act_priority = MASKED;
sb               1606 arch/powerpc/kvm/book3s_xive.c 	xive->src_blocks[bid] = sb;
sb               1639 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb               1654 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb               1655 arch/powerpc/kvm/book3s_xive.c 	if (!sb) {
sb               1657 arch/powerpc/kvm/book3s_xive.c 		sb = kvmppc_xive_create_src_block(xive, irq);
sb               1658 arch/powerpc/kvm/book3s_xive.c 		if (!sb) {
sb               1663 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb               1699 arch/powerpc/kvm/book3s_xive.c 	xive_lock_and_mask(xive, sb, state);
sb               1717 arch/powerpc/kvm/book3s_xive.c 	arch_spin_unlock(&sb->lock);
sb               1788 arch/powerpc/kvm/book3s_xive.c 		xive_finish_unmask(xive, sb, state, guest_prio);
sb               1804 arch/powerpc/kvm/book3s_xive.c 	struct kvmppc_xive_src_block *sb;
sb               1811 arch/powerpc/kvm/book3s_xive.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb               1812 arch/powerpc/kvm/book3s_xive.c 	if (!sb)
sb               1816 arch/powerpc/kvm/book3s_xive.c 	state = &sb->irq_state[idx];
sb               1880 arch/powerpc/kvm/book3s_xive.c void kvmppc_xive_free_sources(struct kvmppc_xive_src_block *sb)
sb               1885 arch/powerpc/kvm/book3s_xive.c 		struct kvmppc_xive_irq_state *state = &sb->irq_state[i];
sb                292 arch/powerpc/kvm/book3s_xive.h void kvmppc_xive_free_sources(struct kvmppc_xive_src_block *sb);
sb                232 arch/powerpc/kvm/book3s_xive_native.c 	struct kvmppc_xive_src_block *sb;
sb                248 arch/powerpc/kvm/book3s_xive_native.c 	sb = kvmppc_xive_find_source(xive, irq, &src);
sb                249 arch/powerpc/kvm/book3s_xive_native.c 	if (!sb) {
sb                254 arch/powerpc/kvm/book3s_xive_native.c 	state = &sb->irq_state[src];
sb                257 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_lock(&sb->lock);
sb                264 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_unlock(&sb->lock);
sb                334 arch/powerpc/kvm/book3s_xive_native.c 	struct kvmppc_xive_src_block *sb;
sb                346 arch/powerpc/kvm/book3s_xive_native.c 	sb = kvmppc_xive_find_source(xive, irq, &idx);
sb                347 arch/powerpc/kvm/book3s_xive_native.c 	if (!sb) {
sb                349 arch/powerpc/kvm/book3s_xive_native.c 		sb = kvmppc_xive_create_src_block(xive, irq);
sb                350 arch/powerpc/kvm/book3s_xive_native.c 		if (!sb) {
sb                355 arch/powerpc/kvm/book3s_xive_native.c 	state = &sb->irq_state[idx];
sb                362 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_lock(&sb->lock);
sb                403 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_unlock(&sb->lock);
sb                409 arch/powerpc/kvm/book3s_xive_native.c 					struct kvmppc_xive_src_block *sb,
sb                418 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_lock(&sb->lock);
sb                451 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_unlock(&sb->lock);
sb                458 arch/powerpc/kvm/book3s_xive_native.c 	struct kvmppc_xive_src_block *sb;
sb                468 arch/powerpc/kvm/book3s_xive_native.c 	sb = kvmppc_xive_find_source(xive, irq, &src);
sb                469 arch/powerpc/kvm/book3s_xive_native.c 	if (!sb)
sb                472 arch/powerpc/kvm/book3s_xive_native.c 	state = &sb->irq_state[src];
sb                497 arch/powerpc/kvm/book3s_xive_native.c 	return kvmppc_xive_native_update_source_config(xive, sb, state, server,
sb                504 arch/powerpc/kvm/book3s_xive_native.c 	struct kvmppc_xive_src_block *sb;
sb                513 arch/powerpc/kvm/book3s_xive_native.c 	sb = kvmppc_xive_find_source(xive, irq, &src);
sb                514 arch/powerpc/kvm/book3s_xive_native.c 	if (!sb)
sb                517 arch/powerpc/kvm/book3s_xive_native.c 	state = &sb->irq_state[src];
sb                521 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_lock(&sb->lock);
sb                529 arch/powerpc/kvm/book3s_xive_native.c 	arch_spin_unlock(&sb->lock);
sb                771 arch/powerpc/kvm/book3s_xive_native.c static void kvmppc_xive_reset_sources(struct kvmppc_xive_src_block *sb)
sb                776 arch/powerpc/kvm/book3s_xive_native.c 		struct kvmppc_xive_irq_state *state = &sb->irq_state[i];
sb                834 arch/powerpc/kvm/book3s_xive_native.c 		struct kvmppc_xive_src_block *sb = xive->src_blocks[i];
sb                836 arch/powerpc/kvm/book3s_xive_native.c 		if (sb) {
sb                837 arch/powerpc/kvm/book3s_xive_native.c 			arch_spin_lock(&sb->lock);
sb                838 arch/powerpc/kvm/book3s_xive_native.c 			kvmppc_xive_reset_sources(sb);
sb                839 arch/powerpc/kvm/book3s_xive_native.c 			arch_spin_unlock(&sb->lock);
sb                848 arch/powerpc/kvm/book3s_xive_native.c static void kvmppc_xive_native_sync_sources(struct kvmppc_xive_src_block *sb)
sb                853 arch/powerpc/kvm/book3s_xive_native.c 		struct kvmppc_xive_irq_state *state = &sb->irq_state[j];
sb                916 arch/powerpc/kvm/book3s_xive_native.c 		struct kvmppc_xive_src_block *sb = xive->src_blocks[i];
sb                918 arch/powerpc/kvm/book3s_xive_native.c 		if (sb) {
sb                919 arch/powerpc/kvm/book3s_xive_native.c 			arch_spin_lock(&sb->lock);
sb                920 arch/powerpc/kvm/book3s_xive_native.c 			kvmppc_xive_native_sync_sources(sb);
sb                921 arch/powerpc/kvm/book3s_xive_native.c 			arch_spin_unlock(&sb->lock);
sb                382 arch/powerpc/kvm/book3s_xive_template.c 		struct kvmppc_xive_src_block *sb;
sb                406 arch/powerpc/kvm/book3s_xive_template.c 			sb = kvmppc_xive_find_source(xive, irq, &src);
sb                407 arch/powerpc/kvm/book3s_xive_template.c 			if (!sb)
sb                409 arch/powerpc/kvm/book3s_xive_template.c 			state = &sb->irq_state[src];
sb                501 arch/powerpc/kvm/book3s_xive_template.c 	struct kvmppc_xive_src_block *sb;
sb                533 arch/powerpc/kvm/book3s_xive_template.c 	sb = kvmppc_xive_find_source(xive, irq, &src);
sb                534 arch/powerpc/kvm/book3s_xive_template.c 	if (!sb) {
sb                541 arch/powerpc/kvm/book3s_xive_template.c 	state = &sb->irq_state[src];
sb                556 arch/powerpc/kvm/book3s_xive_template.c 		arch_spin_lock(&sb->lock);
sb                558 arch/powerpc/kvm/book3s_xive_template.c 			arch_spin_unlock(&sb->lock);
sb                566 arch/powerpc/kvm/book3s_xive_template.c 		arch_spin_unlock(&sb->lock);
sb                 41 arch/powerpc/platforms/cell/spufs/inode.c static struct spufs_sb_info *spufs_get_sb_info(struct super_block *sb)
sb                 43 arch/powerpc/platforms/cell/spufs/inode.c 	return sb->s_fs_info;
sb                 47 arch/powerpc/platforms/cell/spufs/inode.c spufs_alloc_inode(struct super_block *sb)
sb                 76 arch/powerpc/platforms/cell/spufs/inode.c spufs_new_inode(struct super_block *sb, umode_t mode)
sb                 80 arch/powerpc/platforms/cell/spufs/inode.c 	inode = new_inode(sb);
sb                108 arch/powerpc/platforms/cell/spufs/inode.c spufs_new_file(struct super_block *sb, struct dentry *dentry,
sb                119 arch/powerpc/platforms/cell/spufs/inode.c 	inode = spufs_new_inode(sb, S_IFREG | mode);
sb                687 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_create_root(struct super_block *sb, struct fs_context *fc)
sb                695 arch/powerpc/platforms/cell/spufs/inode.c 	inode = spufs_new_inode(sb, S_IFDIR | ctx->mode);
sb                706 arch/powerpc/platforms/cell/spufs/inode.c 	sb->s_root = d_make_root(inode);
sb                707 arch/powerpc/platforms/cell/spufs/inode.c 	if (!sb->s_root)
sb                720 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                722 arch/powerpc/platforms/cell/spufs/inode.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                723 arch/powerpc/platforms/cell/spufs/inode.c 	sb->s_blocksize = PAGE_SIZE;
sb                724 arch/powerpc/platforms/cell/spufs/inode.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                725 arch/powerpc/platforms/cell/spufs/inode.c 	sb->s_magic = SPUFS_MAGIC;
sb                726 arch/powerpc/platforms/cell/spufs/inode.c 	sb->s_op = &spufs_ops;
sb                728 arch/powerpc/platforms/cell/spufs/inode.c 	return spufs_create_root(sb, fc);
sb                 50 arch/s390/hypfs/inode.c static void hypfs_update_update(struct super_block *sb)
sb                 52 arch/s390/hypfs/inode.c 	struct hypfs_sb_info *sb_info = sb->s_fs_info;
sb                 94 arch/s390/hypfs/inode.c static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode)
sb                 96 arch/s390/hypfs/inode.c 	struct inode *ret = new_inode(sb);
sb                 99 arch/s390/hypfs/inode.c 		struct hypfs_sb_info *hypfs_info = sb->s_fs_info;
sb                167 arch/s390/hypfs/inode.c 	struct super_block *sb = file_inode(iocb->ki_filp)->i_sb;
sb                168 arch/s390/hypfs/inode.c 	struct hypfs_sb_info *fs_info = sb->s_fs_info;
sb                186 arch/s390/hypfs/inode.c 	hypfs_delete_tree(sb->s_root);
sb                188 arch/s390/hypfs/inode.c 		rc = hypfs_vm_create_files(sb->s_root);
sb                190 arch/s390/hypfs/inode.c 		rc = hypfs_diag_create_files(sb->s_root);
sb                193 arch/s390/hypfs/inode.c 		hypfs_delete_tree(sb->s_root);
sb                196 arch/s390/hypfs/inode.c 	hypfs_update_update(sb);
sb                261 arch/s390/hypfs/inode.c static int hypfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                263 arch/s390/hypfs/inode.c 	struct hypfs_sb_info *sbi = sb->s_fs_info;
sb                268 arch/s390/hypfs/inode.c 	sb->s_blocksize = PAGE_SIZE;
sb                269 arch/s390/hypfs/inode.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                270 arch/s390/hypfs/inode.c 	sb->s_magic = HYPFS_MAGIC;
sb                271 arch/s390/hypfs/inode.c 	sb->s_op = &hypfs_s_ops;
sb                273 arch/s390/hypfs/inode.c 	root_inode = hypfs_make_inode(sb, S_IFDIR | 0755);
sb                278 arch/s390/hypfs/inode.c 	sb->s_root = root_dentry = d_make_root(root_inode);
sb                291 arch/s390/hypfs/inode.c 	hypfs_update_update(sb);
sb                329 arch/s390/hypfs/inode.c static void hypfs_kill_super(struct super_block *sb)
sb                331 arch/s390/hypfs/inode.c 	struct hypfs_sb_info *sb_info = sb->s_fs_info;
sb                333 arch/s390/hypfs/inode.c 	if (sb->s_root)
sb                334 arch/s390/hypfs/inode.c 		hypfs_delete_tree(sb->s_root);
sb                337 arch/s390/hypfs/inode.c 	kfree(sb->s_fs_info);
sb                338 arch/s390/hypfs/inode.c 	sb->s_fs_info = NULL;
sb                339 arch/s390/hypfs/inode.c 	kill_litter_super(sb);
sb                337 arch/x86/boot/tools/build.c 	struct stat sb;
sb                386 arch/x86/boot/tools/build.c 	if (fstat(fd, &sb))
sb                388 arch/x86/boot/tools/build.c 	sz = sb.st_size;
sb                855 arch/x86/kernel/acpi/boot.c 	struct acpi_table_boot *sb = (struct acpi_table_boot *)table;
sb                857 arch/x86/kernel/acpi/boot.c 	sbf_port = sb->cmos_index;	/* Save CMOS port */
sb               2277 arch/x86/kernel/cpu/resctrl/rdtgroup.c static void rdt_kill_sb(struct super_block *sb)
sb               2296 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	kernfs_kill_sb(sb);
sb                120 arch/x86/mm/pageattr-test.c 	struct split_state sa, sb, sc;
sb                216 arch/x86/mm/pageattr-test.c 	failed += print_split(&sb);
sb                 73 arch/x86/platform/intel-mid/sfi.c 	struct sfi_table_simple *sb;
sb                 78 arch/x86/platform/intel-mid/sfi.c 	sb = (struct sfi_table_simple *)table;
sb                 80 arch/x86/platform/intel-mid/sfi.c 		sfi_mtimer_num = SFI_GET_NUM_ENTRIES(sb,
sb                 82 arch/x86/platform/intel-mid/sfi.c 		pentry = (struct sfi_timer_table_entry *) sb->pentry;
sb                144 arch/x86/platform/intel-mid/sfi.c 	struct sfi_table_simple *sb;
sb                150 arch/x86/platform/intel-mid/sfi.c 	sb = (struct sfi_table_simple *)table;
sb                152 arch/x86/platform/intel-mid/sfi.c 		sfi_mrtc_num = SFI_GET_NUM_ENTRIES(sb,
sb                154 arch/x86/platform/intel-mid/sfi.c 		pentry = (struct sfi_rtc_table_entry *)sb->pentry;
sb                184 arch/x86/platform/intel-mid/sfi.c 	struct sfi_table_simple *sb;
sb                190 arch/x86/platform/intel-mid/sfi.c 	sb = (struct sfi_table_simple *)table;
sb                191 arch/x86/platform/intel-mid/sfi.c 	num = SFI_GET_NUM_ENTRIES(sb, struct sfi_gpio_table_entry);
sb                192 arch/x86/platform/intel-mid/sfi.c 	pentry = (struct sfi_gpio_table_entry *)sb->pentry;
sb                466 arch/x86/platform/intel-mid/sfi.c 	struct sfi_table_simple *sb;
sb                473 arch/x86/platform/intel-mid/sfi.c 	sb = (struct sfi_table_simple *)table;
sb                474 arch/x86/platform/intel-mid/sfi.c 	num = SFI_GET_NUM_ENTRIES(sb, struct sfi_device_table_entry);
sb                475 arch/x86/platform/intel-mid/sfi.c 	pentry = (struct sfi_device_table_entry *)sb->pentry;
sb                 41 arch/x86/platform/sfi/sfi.c 	struct sfi_table_simple *sb;
sb                 46 arch/x86/platform/sfi/sfi.c 	sb = (struct sfi_table_simple *)table;
sb                 47 arch/x86/platform/sfi/sfi.c 	cpu_num = SFI_GET_NUM_ENTRIES(sb, struct sfi_cpu_table_entry);
sb                 48 arch/x86/platform/sfi/sfi.c 	pentry = (struct sfi_cpu_table_entry *)sb->pentry;
sb                 64 arch/x86/platform/sfi/sfi.c 	struct sfi_table_simple *sb;
sb                 72 arch/x86/platform/sfi/sfi.c 	sb = (struct sfi_table_simple *)table;
sb                 73 arch/x86/platform/sfi/sfi.c 	num = SFI_GET_NUM_ENTRIES(sb, struct sfi_apic_table_entry);
sb                 74 arch/x86/platform/sfi/sfi.c 	pentry = (struct sfi_apic_table_entry *)sb->pentry;
sb               6335 block/bfq-iosched.c 	bfqd->word_depths[0][0] = max((1U << bt->sb.shift) >> 1, 1U);
sb               6341 block/bfq-iosched.c 	bfqd->word_depths[0][1] = max(((1U << bt->sb.shift) * 3) >> 2, 1U);
sb               6351 block/bfq-iosched.c 	bfqd->word_depths[1][0] = max(((1U << bt->sb.shift) * 3) >> 4, 1U);
sb               6353 block/bfq-iosched.c 	bfqd->word_depths[1][1] = max(((1U << bt->sb.shift) * 6) >> 4, 1U);
sb                487 block/blk-mq-debugfs.c 		sbitmap_bitmap_show(&hctx->tags->bitmap_tags.sb, m);
sb                521 block/blk-mq-debugfs.c 		sbitmap_bitmap_show(&hctx->sched_tags->bitmap_tags.sb, m);
sb                 23 block/blk-mq-tag.c 	return sbitmap_any_bit_clear(&tags->bitmap_tags.sb);
sb                 84 block/blk-mq-tag.c 	if (bt->sb.depth == 1)
sb                 94 block/blk-mq-tag.c 	depth = max((bt->sb.depth + users - 1) / users, 4U);
sb                260 block/blk-mq-tag.c 	sbitmap_for_each_set(&bt->sb, bt_iter, &iter_data);
sb                315 block/blk-mq-tag.c 		sbitmap_for_each_set(&bt->sb, bt_tags_iter, &iter_data);
sb                979 block/blk-mq.c static bool flush_busy_ctx(struct sbitmap *sb, unsigned int bitnr, void *data)
sb                988 block/blk-mq.c 	sbitmap_clear_bit(sb, bitnr);
sb               1013 block/blk-mq.c static bool dispatch_rq_from_ctx(struct sbitmap *sb, unsigned int bitnr,
sb               1026 block/blk-mq.c 			sbitmap_clear_bit(sb, bitnr);
sb                269 block/kyber-iosched.c 	if (depth != kqd->domain_tokens[sched_domain].sb.depth) {
sb                349 block/kyber-iosched.c 			orig_depth = kqd->domain_tokens[sched_domain].sb.depth;
sb                362 block/kyber-iosched.c 	return q->queue_hw_ctx[0]->sched_tags->bitmap_tags.sb.shift;
sb                663 block/kyber-iosched.c static bool flush_busy_kcq(struct sbitmap *sb, unsigned int bitnr, void *data)
sb                671 block/kyber-iosched.c 	sbitmap_clear_bit(sb, bitnr);
sb                485 crypto/twofish_common.c    ctx->s[1][i] = mds[1][q0[(b) ^ sb] ^ sf]; \
sb                493 crypto/twofish_common.c    ctx->s[1][i] = mds[1][q0[q1[(b) ^ sb] ^ sf] ^ sj]; \
sb                501 crypto/twofish_common.c    ctx->s[1][i] = mds[1][q0[q1[q1[(a) ^ sb] ^ sf] ^ sj] ^ sn]; \
sb                579 crypto/twofish_common.c 	u8 sa = 0, sb = 0, sc = 0, sd = 0, se = 0, sf = 0, sg = 0, sh = 0;
sb                596 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 0, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */
sb                597 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 1, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */
sb                598 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 2, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */
sb                599 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 3, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */
sb                600 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 4, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */
sb                601 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 5, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */
sb                602 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 6, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */
sb                603 crypto/twofish_common.c 	CALC_S (sa, sb, sc, sd, 7, 0xE0, 0xD0, 0x8C, 0x17); /* 9E E5 19 03 */
sb                109 drivers/android/binderfs.c 	struct super_block *sb = ref_inode->i_sb;
sb                110 drivers/android/binderfs.c 	struct binderfs_info *info = sb->s_fs_info;
sb                138 drivers/android/binderfs.c 	inode = new_inode(sb);
sb                173 drivers/android/binderfs.c 	root = sb->s_root;
sb                321 drivers/android/binderfs.c static int binderfs_remount(struct super_block *sb, int *flags, char *data)
sb                324 drivers/android/binderfs.c 	struct binderfs_info *info = sb->s_fs_info;
sb                402 drivers/android/binderfs.c static int binderfs_binder_ctl_create(struct super_block *sb)
sb                408 drivers/android/binderfs.c 	struct dentry *root = sb->s_root;
sb                409 drivers/android/binderfs.c 	struct binderfs_info *info = sb->s_fs_info;
sb                427 drivers/android/binderfs.c 	inode = new_inode(sb);
sb                478 drivers/android/binderfs.c static struct inode *binderfs_make_inode(struct super_block *sb, int mode)
sb                482 drivers/android/binderfs.c 	ret = new_inode(sb);
sb                484 drivers/android/binderfs.c 		ret->i_ino = iunique(sb, BINDERFS_MAX_MINOR + INODE_OFFSET);
sb                530 drivers/android/binderfs.c 	struct super_block *sb;
sb                539 drivers/android/binderfs.c 	sb = parent_inode->i_sb;
sb                540 drivers/android/binderfs.c 	new_inode = binderfs_make_inode(sb, S_IFREG | 0444);
sb                562 drivers/android/binderfs.c 	struct super_block *sb;
sb                571 drivers/android/binderfs.c 	sb = parent_inode->i_sb;
sb                572 drivers/android/binderfs.c 	new_inode = binderfs_make_inode(sb, S_IFDIR | 0755);
sb                592 drivers/android/binderfs.c static int init_binder_logs(struct super_block *sb)
sb                598 drivers/android/binderfs.c 	binder_logs_root_dir = binderfs_create_dir(sb->s_root,
sb                649 drivers/android/binderfs.c 	info = sb->s_fs_info;
sb                656 drivers/android/binderfs.c static int binderfs_fill_super(struct super_block *sb, void *data, int silent)
sb                665 drivers/android/binderfs.c 	sb->s_blocksize = PAGE_SIZE;
sb                666 drivers/android/binderfs.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                679 drivers/android/binderfs.c 	sb->s_iflags &= ~SB_I_NODEV;
sb                680 drivers/android/binderfs.c 	sb->s_iflags |= SB_I_NOEXEC;
sb                681 drivers/android/binderfs.c 	sb->s_magic = BINDERFS_SUPER_MAGIC;
sb                682 drivers/android/binderfs.c 	sb->s_op = &binderfs_super_ops;
sb                683 drivers/android/binderfs.c 	sb->s_time_gran = 1;
sb                685 drivers/android/binderfs.c 	sb->s_fs_info = kzalloc(sizeof(struct binderfs_info), GFP_KERNEL);
sb                686 drivers/android/binderfs.c 	if (!sb->s_fs_info)
sb                688 drivers/android/binderfs.c 	info = sb->s_fs_info;
sb                696 drivers/android/binderfs.c 	info->root_gid = make_kgid(sb->s_user_ns, 0);
sb                699 drivers/android/binderfs.c 	info->root_uid = make_kuid(sb->s_user_ns, 0);
sb                703 drivers/android/binderfs.c 	inode = new_inode(sb);
sb                714 drivers/android/binderfs.c 	sb->s_root = d_make_root(inode);
sb                715 drivers/android/binderfs.c 	if (!sb->s_root)
sb                718 drivers/android/binderfs.c 	ret = binderfs_binder_ctl_create(sb);
sb                734 drivers/android/binderfs.c 		return init_binder_logs(sb);
sb                746 drivers/android/binderfs.c static void binderfs_kill_super(struct super_block *sb)
sb                748 drivers/android/binderfs.c 	struct binderfs_info *info = sb->s_fs_info;
sb                750 drivers/android/binderfs.c 	kill_litter_super(sb);
sb               1072 drivers/ata/libata-scsi.c 	unsigned char *sb = cmd->sense_buffer;
sb               1073 drivers/ata/libata-scsi.c 	unsigned char *desc = sb + 8;
sb               1077 drivers/ata/libata-scsi.c 	memset(sb, 0, SCSI_SENSE_BUFFERSIZE);
sb               1103 drivers/ata/libata-scsi.c 		len = sb[7];
sb               1104 drivers/ata/libata-scsi.c 		desc = (char *)scsi_sense_desc_find(sb, len + 8, 9);
sb               1108 drivers/ata/libata-scsi.c 			sb[7] = len + 14;
sb               1109 drivers/ata/libata-scsi.c 			desc = sb + 8 + len;
sb               1171 drivers/ata/libata-scsi.c 	unsigned char *sb = cmd->sense_buffer;
sb               1176 drivers/ata/libata-scsi.c 	memset(sb, 0, SCSI_SENSE_BUFFERSIZE);
sb               1206 drivers/ata/libata-scsi.c 	scsi_set_sense_information(sb, SCSI_SENSE_BUFFERSIZE, block);
sb               1067 drivers/atm/idt77252.c 		struct sk_buff *sb;
sb               1073 drivers/atm/idt77252.c 			if ((sb = dev_alloc_skb(64)) == NULL) {
sb               1079 drivers/atm/idt77252.c 			if (!atm_charge(vcc, sb->truesize)) {
sb               1083 drivers/atm/idt77252.c 				dev_kfree_skb(sb);
sb               1091 drivers/atm/idt77252.c 			*((u32 *) sb->data) = aal0;
sb               1092 drivers/atm/idt77252.c 			skb_put(sb, sizeof(u32));
sb               1093 drivers/atm/idt77252.c 			skb_put_data(sb, cell, ATM_CELL_PAYLOAD);
sb               1095 drivers/atm/idt77252.c 			ATM_SKB(sb)->vcc = vcc;
sb               1096 drivers/atm/idt77252.c 			__net_timestamp(sb);
sb               1097 drivers/atm/idt77252.c 			vcc->push(vcc, sb);
sb               1145 drivers/atm/idt77252.c 			struct sk_buff *sb;
sb               1160 drivers/atm/idt77252.c 			skb_queue_walk(&rpp->queue, sb)
sb               1161 drivers/atm/idt77252.c 				skb_put_data(skb, sb->data, sb->len);
sb               1242 drivers/atm/idt77252.c 	struct sk_buff	*sb;
sb               1307 drivers/atm/idt77252.c 		if ((sb = dev_alloc_skb(64)) == NULL) {
sb               1314 drivers/atm/idt77252.c 		if (!atm_charge(vcc, sb->truesize)) {
sb               1317 drivers/atm/idt77252.c 			dev_kfree_skb(sb);
sb               1321 drivers/atm/idt77252.c 		*((u32 *) sb->data) = header;
sb               1322 drivers/atm/idt77252.c 		skb_put(sb, sizeof(u32));
sb               1323 drivers/atm/idt77252.c 		skb_put_data(sb, &(queue->data[16]), ATM_CELL_PAYLOAD);
sb               1325 drivers/atm/idt77252.c 		ATM_SKB(sb)->vcc = vcc;
sb               1326 drivers/atm/idt77252.c 		__net_timestamp(sb);
sb               1327 drivers/atm/idt77252.c 		vcc->push(vcc, sb);
sb                142 drivers/atm/nicstar.c static void dequeue_sm_buf(ns_dev * card, struct sk_buff *sb);
sb                203 drivers/atm/nicstar.c 	struct sk_buff *sb;
sb                240 drivers/atm/nicstar.c 	while ((sb = skb_dequeue(&card->sbpool.queue)) != NULL)
sb                241 drivers/atm/nicstar.c 		dev_kfree_skb_any(sb);
sb                701 drivers/atm/nicstar.c 		struct sk_buff *sb;
sb                702 drivers/atm/nicstar.c 		sb = __dev_alloc_skb(NS_SMSKBSIZE, GFP_KERNEL);
sb                703 drivers/atm/nicstar.c 		if (sb == NULL) {
sb                711 drivers/atm/nicstar.c 		NS_PRV_BUFTYPE(sb) = BUF_SM;
sb                712 drivers/atm/nicstar.c 		skb_queue_tail(&card->sbpool.queue, sb);
sb                713 drivers/atm/nicstar.c 		skb_reserve(sb, NS_AAL0_HEADER);
sb                714 drivers/atm/nicstar.c 		push_rxbufs(card, sb);
sb                824 drivers/atm/nicstar.c 		struct sk_buff *sb;
sb                825 drivers/atm/nicstar.c 		while ((sb = skb_dequeue(&card->sbpool.queue)) != NULL)
sb                826 drivers/atm/nicstar.c 			dev_kfree_skb_any(sb);
sb               1169 drivers/atm/nicstar.c 		struct sk_buff *sb;
sb               1175 drivers/atm/nicstar.c 			sb = dev_alloc_skb(NS_SMSKBSIZE);
sb               1176 drivers/atm/nicstar.c 			if (sb == NULL) {
sb               1182 drivers/atm/nicstar.c 			NS_PRV_BUFTYPE(sb) = BUF_SM;
sb               1183 drivers/atm/nicstar.c 			skb_queue_tail(&card->sbpool.queue, sb);
sb               1184 drivers/atm/nicstar.c 			skb_reserve(sb, NS_AAL0_HEADER);
sb               1185 drivers/atm/nicstar.c 			push_rxbufs(card, sb);
sb               2018 drivers/atm/nicstar.c 		struct sk_buff *sb;
sb               2024 drivers/atm/nicstar.c 			sb = dev_alloc_skb(NS_SMSKBSIZE);
sb               2025 drivers/atm/nicstar.c 			if (!sb) {
sb               2032 drivers/atm/nicstar.c 			if (!atm_charge(vcc, sb->truesize)) {
sb               2037 drivers/atm/nicstar.c 				dev_kfree_skb_any(sb);
sb               2041 drivers/atm/nicstar.c 			*((u32 *) sb->data) = le32_to_cpu(rsqe->word_1) << 4 |
sb               2044 drivers/atm/nicstar.c 				*((u32 *) sb->data) |= 0x00000002;
sb               2045 drivers/atm/nicstar.c 			skb_put(sb, NS_AAL0_HEADER);
sb               2046 drivers/atm/nicstar.c 			memcpy(skb_tail_pointer(sb), cell, ATM_CELL_PAYLOAD);
sb               2047 drivers/atm/nicstar.c 			skb_put(sb, ATM_CELL_PAYLOAD);
sb               2048 drivers/atm/nicstar.c 			ATM_SKB(sb)->vcc = vcc;
sb               2049 drivers/atm/nicstar.c 			__net_timestamp(sb);
sb               2050 drivers/atm/nicstar.c 			vcc->push(vcc, sb);
sb               2172 drivers/atm/nicstar.c 			struct sk_buff *sb;
sb               2174 drivers/atm/nicstar.c 			sb = (struct sk_buff *)(iov - 1)->iov_base;
sb               2178 drivers/atm/nicstar.c 				if (!atm_charge(vcc, sb->truesize)) {
sb               2179 drivers/atm/nicstar.c 					push_rxbufs(card, sb);
sb               2182 drivers/atm/nicstar.c 					skb_put(sb, len);
sb               2183 drivers/atm/nicstar.c 					dequeue_sm_buf(card, sb);
sb               2184 drivers/atm/nicstar.c 					ATM_SKB(sb)->vcc = vcc;
sb               2185 drivers/atm/nicstar.c 					__net_timestamp(sb);
sb               2186 drivers/atm/nicstar.c 					vcc->push(vcc, sb);
sb               2200 drivers/atm/nicstar.c 					skb_copy_from_linear_data(sb, skb->data,
sb               2209 drivers/atm/nicstar.c 				push_rxbufs(card, sb);
sb               2215 drivers/atm/nicstar.c 			struct sk_buff *hb, *sb, *lb;
sb               2281 drivers/atm/nicstar.c 				sb = (struct sk_buff *)iov->iov_base;
sb               2282 drivers/atm/nicstar.c 				skb_copy_from_linear_data(sb, hb->data,
sb               2288 drivers/atm/nicstar.c 				push_rxbufs(card, sb);
sb               2347 drivers/atm/nicstar.c static void dequeue_sm_buf(ns_dev * card, struct sk_buff *sb)
sb               2349 drivers/atm/nicstar.c 	skb_unlink(sb, &card->sbpool.queue);
sb               2573 drivers/atm/nicstar.c 				struct sk_buff *sb;
sb               2575 drivers/atm/nicstar.c 				sb = __dev_alloc_skb(NS_SMSKBSIZE, GFP_KERNEL);
sb               2576 drivers/atm/nicstar.c 				if (sb == NULL)
sb               2578 drivers/atm/nicstar.c 				NS_PRV_BUFTYPE(sb) = BUF_SM;
sb               2579 drivers/atm/nicstar.c 				skb_queue_tail(&card->sbpool.queue, sb);
sb               2580 drivers/atm/nicstar.c 				skb_reserve(sb, NS_AAL0_HEADER);
sb               2581 drivers/atm/nicstar.c 				push_rxbufs(card, sb);
sb               1102 drivers/block/pktcdvd.c 	struct super_block *sb = NULL;
sb               1108 drivers/block/pktcdvd.c 		sb = get_super(pkt_bdev);
sb               1112 drivers/block/pktcdvd.c 	if (!sb)
sb               1115 drivers/block/pktcdvd.c 	if (!sb->s_op->relocate_blocks)
sb               1119 drivers/block/pktcdvd.c 	if (sb->s_op->relocate_blocks(sb, old_block, &new_block))
sb               1135 drivers/block/pktcdvd.c 	drop_super(sb);
sb               1139 drivers/block/pktcdvd.c 	drop_super(sb);
sb                865 drivers/bluetooth/hci_bcm.c 	struct acpi_resource_uart_serialbus *sb;
sb                885 drivers/bluetooth/hci_bcm.c 		sb = &ares->data.uart_serial_bus;
sb                886 drivers/bluetooth/hci_bcm.c 		if (sb->type == ACPI_RESOURCE_SERIAL_TYPE_UART) {
sb                887 drivers/bluetooth/hci_bcm.c 			dev->init_speed = sb->default_baud_rate;
sb                387 drivers/clk/spear/spear3xx_clock.c static inline void spear320_clk_init(void __iomem *sb, struct clk *rc) { }
sb                 25 drivers/cpufreq/sfi-cpufreq.c 	struct sfi_table_simple *sb;
sb                 29 drivers/cpufreq/sfi-cpufreq.c 	sb = (struct sfi_table_simple *)table;
sb                 30 drivers/cpufreq/sfi-cpufreq.c 	num_freq_table_entries = SFI_GET_NUM_ENTRIES(sb,
sb                 37 drivers/cpufreq/sfi-cpufreq.c 	pentry = (struct sfi_freq_table_entry *)sb->pentry;
sb                 27 drivers/crypto/ccp/ccp-dev-v3.c 		start = (u32)bitmap_find_next_zero_area(ccp->sb,
sb                 32 drivers/crypto/ccp/ccp-dev-v3.c 			bitmap_set(ccp->sb, start, count);
sb                 60 drivers/crypto/ccp/ccp-dev-v3.c 	bitmap_clear(ccp->sb, start - KSB_START, count);
sb                275 drivers/crypto/ccp/ccp-dev-v3.c 		cr[2] = op->src.u.sb * CCP_SB_BYTES;
sb                284 drivers/crypto/ccp/ccp-dev-v3.c 		cr[4] = op->dst.u.sb * CCP_SB_BYTES;
sb                530 drivers/crypto/ccp/ccp-dev-v5.c 		u32 key_addr = op->src.u.sb * CCP_SB_BYTES;
sb                542 drivers/crypto/ccp/ccp-dev-v5.c 		u32 key_addr = op->dst.u.sb * CCP_SB_BYTES;
sb                418 drivers/crypto/ccp/ccp-dev.h 	DECLARE_BITMAP(sb, KSB_COUNT);
sb                488 drivers/crypto/ccp/ccp-dev.h 		u32 sb;
sb                411 drivers/crypto/ccp/ccp-ops.c 			       struct ccp_dm_workarea *wa, u32 jobid, u32 sb,
sb                425 drivers/crypto/ccp/ccp-ops.c 		op.src.u.sb = sb;
sb                434 drivers/crypto/ccp/ccp-ops.c 		op.dst.u.sb = sb;
sb                443 drivers/crypto/ccp/ccp-ops.c 			  struct ccp_dm_workarea *wa, u32 jobid, u32 sb,
sb                446 drivers/crypto/ccp/ccp-ops.c 	return ccp_copy_to_from_sb(cmd_q, wa, jobid, sb, byte_swap, false);
sb                450 drivers/crypto/ccp/ccp-ops.c 			    struct ccp_dm_workarea *wa, u32 jobid, u32 sb,
sb                453 drivers/crypto/ccp/ccp-ops.c 	return ccp_copy_to_from_sb(cmd_q, wa, jobid, sb, byte_swap, true);
sb                429 drivers/dax/super.c static struct inode *dax_alloc_inode(struct super_block *sb)
sb               4182 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		out->sb[0] = buf[3]; /* checksum */
sb               4192 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		out->sb[0] = 0x01; /* version */
sb               4193 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		out->sb[1] = 0x1A; /* length */
sb               4201 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	memcpy(&out->sb[i], &buf[4], 26);
sb               4204 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 	print_hex_dump(KERN_DEBUG, "HDR SB:", DUMP_PREFIX_NONE, 16, 1, out->sb,
sb               4205 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 		       sizeof(out->sb), false);
sb                323 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c 	struct clk_state_registers_and_bypass sb = { 0 };
sb                326 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c 	rn_dump_clk_registers(&sb, clk_mgr_base, &log_info);
sb                328 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c 	s->dprefclk_khz = sb.dprefclk;
sb               2108 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		ptr = &gamut_packet->sb[3];
sb               2110 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		for (i = 0; i <= gamut_packet->sb[1]; i++)
sb               2113 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		gamut_packet->sb[2] = (uint8_t) (0x100 - chk_sum);
sb               2355 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	check_sum = &hdmi_info.packet_raw_data.sb[0];
sb               2360 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		*check_sum += hdmi_info.packet_raw_data.sb[byte_index];
sb               2370 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 	for (byte_index = 0; byte_index < sizeof(hdmi_info.packet_raw_data.sb); byte_index++)
sb               2371 drivers/gpu/drm/amd/display/dc/core/dc_resource.c 		info_packet->sb[byte_index] = hdmi_info.packet_raw_data.sb[byte_index];
sb                575 drivers/gpu/drm/amd/display/dc/dc_types.h 	uint8_t sb[32];
sb                584 drivers/gpu/drm/amd/display/dc/dc_types.h 	uint8_t sb[128];
sb                122 drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c 			(const uint32_t *) &info_packet->sb[0];
sb                751 drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c 				(const uint32_t *) &info_frame->avi.sb[0];
sb                109 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c 			(const uint32_t *) &info_packet->sb[0];
sb                221 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c 	const uint32_t *content = (const uint32_t *) &info_packet->sb[0];
sb                309 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_stream_encoder.c 		memcpy(&pps_sdp.sb[0], dsc_packed_pps, sizeof(pps_sdp.sb));
sb                 53 drivers/gpu/drm/amd/display/include/set_mode_types.h 	uint8_t sb[28]; /* sb0~sb27 */
sb                494 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[1] = 0x1A;
sb                497 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[2] = 0x00;
sb                500 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[3] = 0x00;
sb                510 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 		infopacket->sb[6] |= 0x01;
sb                515 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 		infopacket->sb[6] |= 0x02;
sb                520 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 		infopacket->sb[6] |= 0x04;
sb                523 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[7] = (unsigned char)(vrr->min_refresh_in_uhz / 1000000);
sb                528 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[8] = (unsigned char)(vrr->max_refresh_in_uhz / 1000000);
sb                532 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[9] = 0;
sb                533 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[10] = 0;
sb                542 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 		infopacket->sb[6] |= 0x08;  // PB6 = [Bit 3 = Native Color Active]
sb                545 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 			infopacket->sb[9] |= 0x04;  // PB6 = [Bit 2 = Gamma 2.2 EOTF Active]
sb                661 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 		checksum += infopacket->sb[idx];
sb                664 drivers/gpu/drm/amd/display/modules/freesync/freesync.c 	infopacket->sb[0] = (unsigned char)(0x100 - checksum);
sb                163 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[i] = 0;
sb                211 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[0] = 0x02; // Stacked Frame, Left view is on top and right view on bottom.
sb                215 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[0] = 0x01; // Frame/Field Sequential, L + R view indication based on MISC1 bit 2:1
sb                219 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[0] = 0x04; // Side-by-side
sb                222 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[0] = 0x00; // No Stereo Video, Shall be cleared to 0x0.
sb                351 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 		info_packet->sb[16] = (pixelEncoding << 4) | colorimetryFormat;
sb                359 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] = 0;
sb                362 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] = 1;
sb                365 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] = 2;
sb                368 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] = 3;
sb                372 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] = 4;
sb                375 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] = 0;
sb                383 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 			info_packet->sb[17] |= 0x80; /* DB17 bit 7 set to 1 for CEA timing. */
sb                393 drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c 		info_packet->sb[18] = 0;
sb                414 drivers/gpu/drm/drm_blend.c 	const struct drm_plane_state *sb = *(struct drm_plane_state **)b;
sb                416 drivers/gpu/drm/drm_blend.c 	if (sa->zpos != sb->zpos)
sb                417 drivers/gpu/drm/drm_blend.c 		return sa->zpos - sb->zpos;
sb                419 drivers/gpu/drm/drm_blend.c 		return sa->plane->base.id - sb->plane->base.id;
sb               1693 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 	struct nvkm_secboot *sb = device->secboot;
sb               1701 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 	if (nvkm_secboot_is_managed(sb, NVKM_SECBOOT_FALCON_FECS))
sb               1706 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 	if (nvkm_secboot_is_managed(sb, NVKM_SECBOOT_FALCON_GPCCS))
sb               1712 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 		int ret = nvkm_secboot_reset(sb, secboot_mask);
sb                495 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c 		  const struct nvkm_secboot *sb, struct nvkm_msgqueue **queue)
sb                502 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c 		ret = msgqueue_0137c63d_new(falcon, sb, queue);
sb                505 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c 		ret = msgqueue_0137bca5_new(falcon, sb, queue);
sb                510 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c 		ret = msgqueue_0148cdec_new(falcon, sb, queue);
sb                390 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c msgqueue_0137c63d_new(struct nvkm_falcon *falcon, const struct nvkm_secboot *sb,
sb                416 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c msgqueue_0137bca5_new(struct nvkm_falcon *falcon, const struct nvkm_secboot *sb,
sb                250 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c msgqueue_0148cdec_new(struct nvkm_falcon *falcon, const struct nvkm_secboot *sb,
sb                244 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 			   const struct nvkm_secboot *sb,
sb                258 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = func->load(sb, func->version_max, &img->base);
sb                481 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_prepare_ls_blob(struct acr_r352 *acr, struct nvkm_secboot *sb)
sb                487 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	u64 wpr_addr = sb->wpr_addr;
sb                488 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	u32 wpr_size = sb->wpr_size;
sb                500 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		img = acr->func->ls_ucode_img_load(acr, sb, falcon_id);
sb                597 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_fixup_hs_desc(struct acr_r352 *acr, struct nvkm_secboot *sb,
sb                604 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (sb->wpr_size == 0) {
sb                653 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_prepare_hs_blob(struct acr_r352 *acr, struct nvkm_secboot *sb,
sb                657 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	struct nvkm_subdev *subdev = &sb->subdev;
sb                665 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	acr_image = hs_ucode_load_blob(subdev, sb->boot_falcon, fw);
sb                679 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		acr->func->fixup_hs_desc(acr, sb, desc);
sb                715 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_load_blobs(struct acr_r352 *acr, struct nvkm_secboot *sb)
sb                717 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	struct nvkm_subdev *subdev = &sb->subdev;
sb                725 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = acr_r352_prepare_ls_blob(acr, sb);
sb                731 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		ret = acr_r352_prepare_hs_blob(acr, sb, "acr/ucode_load",
sb                739 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (sb->wpr_size == 0) {
sb                740 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		ret = acr_r352_prepare_hs_blob(acr, sb, "acr/ucode_unload",
sb                770 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	nvkm_debug(&sb->subdev, "LS blob successfully created\n");
sb                840 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_shutdown(struct acr_r352 *acr, struct nvkm_secboot *sb)
sb                842 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	struct nvkm_subdev *subdev = &sb->subdev;
sb                846 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (acr->unload_blob && sb->wpr_set) {
sb                850 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		ret = sb->func->run_blob(sb, acr->unload_blob, sb->halt_falcon);
sb                867 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	sb->wpr_set = false;
sb                877 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_wpr_is_set(const struct acr_r352 *acr, const struct nvkm_secboot *sb)
sb                879 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	const struct nvkm_subdev *subdev = &sb->subdev;
sb                891 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (sb->wpr_size != 0) {
sb                892 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		wpr_range_lo = sb->wpr_addr;
sb                893 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		wpr_range_hi = wpr_range_lo + sb->wpr_size;
sb                904 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_bootstrap(struct acr_r352 *acr, struct nvkm_secboot *sb)
sb                906 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	const struct nvkm_subdev *subdev = &sb->subdev;
sb                911 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (sb->wpr_set)
sb                915 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = acr_r352_load_blobs(acr, sb);
sb                920 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = sb->func->run_blob(sb, acr->load_blob, sb->boot_falcon);
sb                922 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	nvkm_falcon_clear_interrupt(sb->boot_falcon, 0x10);
sb                923 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	sb->wpr_set = acr_r352_wpr_is_set(acr, sb);
sb                932 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (!sb->wpr_set) {
sb                943 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 			ret = func->post_run(&acr->base, sb);
sb                959 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_reset_nopmu(struct acr_r352 *acr, struct nvkm_secboot *sb,
sb                972 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = acr_r352_shutdown(acr, sb);
sb                976 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = acr_r352_bootstrap(acr, sb);
sb                995 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_reset(struct nvkm_acr *_acr, struct nvkm_secboot *sb,
sb               1001 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	bool wpr_already_set = sb->wpr_set;
sb               1005 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	ret = acr_r352_bootstrap(acr, sb);
sb               1010 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	if (!nvkm_secboot_is_managed(sb, _acr->boot_falcon)) {
sb               1013 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 			return acr_r352_reset_nopmu(acr, sb, falcon_mask);
sb               1021 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		queue = sb->subdev.device->pmu->queue;
sb               1024 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		queue = sb->subdev.device->sec2->queue;
sb               1032 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		nvkm_debug(&sb->subdev, "resetting %s falcon\n",
sb               1036 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 		nvkm_error(&sb->subdev, "error during falcon reset: %d\n", ret);
sb               1039 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	nvkm_debug(&sb->subdev, "falcon reset done\n");
sb               1045 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c acr_r352_fini(struct nvkm_acr *_acr, struct nvkm_secboot *sb, bool suspend)
sb               1049 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c 	return acr_r352_shutdown(acr, sb);
sb                 63 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r364.c acr_r364_fixup_hs_desc(struct acr_r352 *acr, struct nvkm_secboot *sb,
sb                 70 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r364.c 	if (sb->wpr_size == 0) {
sb                113 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c 			   const struct nvkm_secboot *sb,
sb                127 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c 	ret = func->load(sb, func->version_max, &img->base);
sb                352 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c acr_r367_fixup_hs_desc(struct acr_r352 *acr, struct nvkm_secboot *sb,
sb                359 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r367.c 	if (sb->wpr_size == 0) {
sb                105 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c nvkm_secboot_reset(struct nvkm_secboot *sb, unsigned long falcon_mask)
sb                108 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	if ((falcon_mask | sb->acr->managed_falcons) != sb->acr->managed_falcons) {
sb                109 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		nvkm_error(&sb->subdev, "cannot reset unmanaged falcon!\n");
sb                113 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	return sb->acr->func->reset(sb->acr, sb, falcon_mask);
sb                120 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c nvkm_secboot_is_managed(struct nvkm_secboot *sb, enum nvkm_secboot_falcon fid)
sb                122 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	if (!sb)
sb                125 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	return sb->acr->managed_falcons & BIT(fid);
sb                131 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	struct nvkm_secboot *sb = nvkm_secboot(subdev);
sb                134 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	switch (sb->acr->boot_falcon) {
sb                136 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		sb->halt_falcon = sb->boot_falcon = subdev->device->pmu->falcon;
sb                141 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		sb->boot_falcon = subdev->device->sec2->falcon;
sb                142 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		sb->halt_falcon = subdev->device->pmu->falcon;
sb                146 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 			                nvkm_secboot_falcon_name[sb->acr->boot_falcon]);
sb                149 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	nvkm_debug(subdev, "using %s falcon for ACR\n", sb->boot_falcon->name);
sb                152 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	if (sb->func->oneinit)
sb                153 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		ret = sb->func->oneinit(sb);
sb                166 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	struct nvkm_secboot *sb = nvkm_secboot(subdev);
sb                169 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	if (sb->func->fini)
sb                170 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		ret = sb->func->fini(sb, suspend);
sb                178 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	struct nvkm_secboot *sb = nvkm_secboot(subdev);
sb                181 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	if (sb->func->dtor)
sb                182 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		ret = sb->func->dtor(sb);
sb                197 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		  struct nvkm_secboot *sb)
sb                201 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	nvkm_subdev_ctor(&nvkm_secboot, device, index, &sb->subdev);
sb                202 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	sb->func = func;
sb                203 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	sb->acr = acr;
sb                204 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	acr->subdev = &sb->subdev;
sb                206 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	nvkm_debug(&sb->subdev, "securely managed falcons:\n");
sb                207 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 	for_each_set_bit(fid, &sb->acr->managed_falcons,
sb                209 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/base.c 		nvkm_debug(&sb->subdev, "- %s\n",
sb                 37 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c gm200_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob,
sb                 40 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	struct gm200_secboot *gsb = gm200_secboot(sb);
sb                 68 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	ret = sb->acr->func->load(sb->acr, falcon, blob, vma->addr);
sb                 75 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	nvkm_mc_intr_mask(sb->subdev.device, falcon->owner->index, false);
sb                 95 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	nvkm_mc_intr_mask(sb->subdev.device, falcon->owner->index, true);
sb                105 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c gm200_secboot_oneinit(struct nvkm_secboot *sb)
sb                107 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	struct gm200_secboot *gsb = gm200_secboot(sb);
sb                108 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	struct nvkm_device *device = sb->subdev.device;
sb                129 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	if (sb->acr->func->oneinit) {
sb                130 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 		ret = sb->acr->func->oneinit(sb->acr, sb);
sb                139 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c gm200_secboot_fini(struct nvkm_secboot *sb, bool suspend)
sb                143 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	if (sb->acr->func->fini)
sb                144 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 		ret = sb->acr->func->fini(sb->acr, sb, suspend);
sb                150 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c gm200_secboot_dtor(struct nvkm_secboot *sb)
sb                152 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	struct gm200_secboot *gsb = gm200_secboot(sb);
sb                154 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c 	sb->acr->func->dtor(sb->acr);
sb                 35 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.h #define gm200_secboot(sb) container_of(sb, struct gm200_secboot, base)
sb                 44 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 	struct nvkm_secboot *sb = &gsb->base;
sb                 50 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 		nvkm_error(&sb->subdev, "Cannot map Tegra MC registers\n");
sb                 53 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 	sb->wpr_addr = ioread32_native(mc + MC_SECURITY_CARVEOUT2_BOM_0) |
sb                 55 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 	sb->wpr_size = ioread32_native(mc + MC_SECURITY_CARVEOUT2_SIZE_128K)
sb                 61 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 	if (sb->wpr_size == 0) {
sb                 62 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 		nvkm_error(&sb->subdev, "WPR region is empty\n");
sb                 67 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 		nvkm_error(&sb->subdev, "WPR region not locked\n");
sb                 83 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c gm20b_secboot_oneinit(struct nvkm_secboot *sb)
sb                 85 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 	struct gm200_secboot *gsb = gm200_secboot(sb);
sb                 92 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c 	return gm200_secboot_oneinit(sb);
sb                 34 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c gp102_secboot_scrub_required(struct nvkm_secboot *sb)
sb                 36 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	struct nvkm_subdev *subdev = &sb->subdev;
sb                 47 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c gp102_run_secure_scrub(struct nvkm_secboot *sb)
sb                 49 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	struct nvkm_subdev *subdev = &sb->subdev;
sb                 67 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	nvkm_falcon_get(falcon, &sb->subdev);
sb                106 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	if (gp102_secboot_scrub_required(sb)) {
sb                115 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	nvkm_falcon_put(falcon, &sb->subdev);
sb                121 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c gp102_secboot_run_blob(struct nvkm_secboot *sb, struct nvkm_gpuobj *blob,
sb                127 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	if (gp102_secboot_scrub_required(sb)) {
sb                128 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 		ret = gp102_run_secure_scrub(sb);
sb                133 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp102.c 	return gm200_secboot_run_blob(sb, blob, falcon);
sb                 29 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp10b.c gp10b_secboot_oneinit(struct nvkm_secboot *sb)
sb                 31 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp10b.c 	struct gm200_secboot *gsb = gm200_secboot(sb);
sb                 38 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gp10b.c 	return gm200_secboot_oneinit(sb);
sb                149 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c acr_ls_ucode_load_fecs(const struct nvkm_secboot *sb, int maxver,
sb                152 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c 	return ls_ucode_img_load_gr(&sb->subdev, maxver, img, "fecs");
sb                156 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c acr_ls_ucode_load_gpccs(const struct nvkm_secboot *sb, int maxver,
sb                159 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c 	return ls_ucode_img_load_gr(&sb->subdev, maxver, img, "gpccs");
sb                102 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c acr_ls_ucode_load_pmu(const struct nvkm_secboot *sb, int maxver,
sb                105 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	struct nvkm_pmu *pmu = sb->subdev.device->pmu;
sb                108 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	ret = acr_ls_ucode_load_msgqueue(&sb->subdev, "pmu", maxver, img);
sb                114 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 				sb, &pmu->queue);
sb                122 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c acr_ls_pmu_post_run(const struct nvkm_acr *acr, const struct nvkm_secboot *sb)
sb                124 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	struct nvkm_device *device = sb->subdev.device;
sb                133 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	nvkm_debug(&sb->subdev, "%s started\n",
sb                140 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c acr_ls_ucode_load_sec2(const struct nvkm_secboot *sb, int maxver,
sb                143 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	struct nvkm_sec2 *sec = sb->subdev.device->sec2;
sb                146 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	ver = acr_ls_ucode_load_msgqueue(&sb->subdev, "sec2", maxver, img);
sb                152 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 				sb, &sec->queue);
sb                160 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c acr_ls_sec2_post_run(const struct nvkm_acr *acr, const struct nvkm_secboot *sb)
sb                162 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	const struct nvkm_subdev *subdev = &sb->subdev;
sb                173 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c 	nvkm_debug(&sb->subdev, "%s started\n",
sb                113 drivers/gpu/drm/qxl/qxl_kms.c 	int r, sb;
sb                145 drivers/gpu/drm/qxl/qxl_kms.c 		sb = 4;
sb                146 drivers/gpu/drm/qxl/qxl_kms.c 		qdev->surfaceram_base = pci_resource_start(pdev, sb);
sb                147 drivers/gpu/drm/qxl/qxl_kms.c 		qdev->surfaceram_size = pci_resource_len(pdev, sb);
sb                154 drivers/gpu/drm/qxl/qxl_kms.c 		sb = 1;
sb                155 drivers/gpu/drm/qxl/qxl_kms.c 		qdev->surfaceram_base = pci_resource_start(pdev, sb);
sb                156 drivers/gpu/drm/qxl/qxl_kms.c 		qdev->surfaceram_size = pci_resource_len(pdev, sb);
sb                173 drivers/gpu/drm/qxl/qxl_kms.c 		 (unsigned long long)pci_resource_end(pdev, sb),
sb                176 drivers/gpu/drm/qxl/qxl_kms.c 		 (sb == 4) ? "64bit" : "32bit");
sb                899 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	struct vmw_dx_shader_bindings *sb = &cbs->per_shader[0];
sb                903 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	for (i = 0; i < SVGA3D_NUM_SHADERTYPE_DX10; ++i, ++sb) {
sb                904 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		if (!test_bit(VMW_BINDING_PS_SR_BIT, &sb->dirty))
sb                911 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		__clear_bit(VMW_BINDING_PS_SR_BIT, &sb->dirty);
sb                890 drivers/hwmon/hwmon.c 	struct pci_dev *sb;
sb                895 drivers/hwmon/hwmon.c 	sb = pci_get_device(PCI_VENDOR_ID_ATI, 0x436c, NULL);
sb                896 drivers/hwmon/hwmon.c 	if (sb) {
sb                897 drivers/hwmon/hwmon.c 		if (sb->subsystem_vendor == 0x1462 &&	/* MSI */
sb                898 drivers/hwmon/hwmon.c 		    sb->subsystem_device == 0x0031) {	/* MS-7031 */
sb                899 drivers/hwmon/hwmon.c 			pci_read_config_byte(sb, 0x48, &enable);
sb                900 drivers/hwmon/hwmon.c 			pci_read_config_word(sb, 0x64, &base);
sb                903 drivers/hwmon/hwmon.c 				dev_info(&sb->dev,
sb                905 drivers/hwmon/hwmon.c 				pci_write_config_word(sb, 0x64, 0x295);
sb                906 drivers/hwmon/hwmon.c 				pci_write_config_byte(sb, 0x48,
sb                910 drivers/hwmon/hwmon.c 		pci_dev_put(sb);
sb                155 drivers/i2c/algos/i2c-algo-bit.c 	int sb;
sb                161 drivers/i2c/algos/i2c-algo-bit.c 		sb = (c >> i) & 1;
sb                162 drivers/i2c/algos/i2c-algo-bit.c 		setsda(adap, sb);
sb                 92 drivers/i2c/busses/i2c-nomadik.c #define GEN_MASK(val, mask, sb)  (((val) << (sb)) & (mask))
sb                 58 drivers/i2c/i2c-core-acpi.c 	struct acpi_resource_i2c_serialbus *sb;
sb                 63 drivers/i2c/i2c-core-acpi.c 	sb = &ares->data.i2c_serial_bus;
sb                 64 drivers/i2c/i2c-core-acpi.c 	if (sb->type != ACPI_RESOURCE_SERIAL_TYPE_I2C)
sb                 67 drivers/i2c/i2c-core-acpi.c 	*i2c = sb;
sb                 76 drivers/i2c/i2c-core-acpi.c 	struct acpi_resource_i2c_serialbus *sb;
sb                 79 drivers/i2c/i2c-core-acpi.c 	if (info->addr || !i2c_acpi_get_i2c_resource(ares, &sb))
sb                 86 drivers/i2c/i2c-core-acpi.c 				 sb->resource_source.string_ptr,
sb                 91 drivers/i2c/i2c-core-acpi.c 	info->addr = sb->slave_address;
sb                 92 drivers/i2c/i2c-core-acpi.c 	lookup->speed = sb->connection_speed;
sb                 93 drivers/i2c/i2c-core-acpi.c 	if (sb->access_mode == ACPI_I2C_10BIT_MODE)
sb                593 drivers/i2c/i2c-core-acpi.c 	struct acpi_resource_i2c_serialbus *sb;
sb                612 drivers/i2c/i2c-core-acpi.c 	if (!value64 || !i2c_acpi_get_i2c_resource(ares, &sb)) {
sb                618 drivers/i2c/i2c-core-acpi.c 	client->addr = sb->slave_address;
sb                620 drivers/i2c/i2c-core-acpi.c 	if (sb->access_mode == ACPI_I2C_10BIT_MODE)
sb                 86 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c 	struct acpi_resource_i2c_serialbus *sb;
sb                 89 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c 	if (i2c_acpi_get_i2c_resource(ares, &sb)) {
sb                 91 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c 			*addr |= (sb->slave_address << 16);
sb                 93 drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c 			*addr = sb->slave_address;
sb                640 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct creq_query_srq_resp_sb *sb;
sb                648 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb));
sb                651 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sb = sbuf->sb;
sb                654 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	srq->threshold = le16_to_cpu(sb->srq_limit);
sb               1294 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	struct creq_query_qp_resp_sb *sb;
sb               1301 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb));
sb               1304 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	sb = sbuf->sb;
sb               1307 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	req.resp_size = sizeof(*sb) / BNXT_QPLIB_CMDQE_UNITS;
sb               1313 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->state = sb->en_sqd_async_notify_state &
sb               1315 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->en_sqd_async_notify = sb->en_sqd_async_notify_state &
sb               1318 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->access = sb->access;
sb               1319 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->pkey_index = le16_to_cpu(sb->pkey);
sb               1320 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->qkey = le32_to_cpu(sb->qkey);
sb               1322 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	temp32[0] = le32_to_cpu(sb->dgid[0]);
sb               1323 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	temp32[1] = le32_to_cpu(sb->dgid[1]);
sb               1324 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	temp32[2] = le32_to_cpu(sb->dgid[2]);
sb               1325 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	temp32[3] = le32_to_cpu(sb->dgid[3]);
sb               1328 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->ah.flow_label = le32_to_cpu(sb->flow_label);
sb               1332 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) {
sb               1340 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->ah.hop_limit = sb->hop_limit;
sb               1341 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->ah.traffic_class = sb->traffic_class;
sb               1342 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	memcpy(qp->ah.dmac, sb->dest_mac, 6);
sb               1343 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->ah.vlan_id = (le16_to_cpu(sb->path_mtu_dest_vlan_id) &
sb               1346 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->path_mtu = (le16_to_cpu(sb->path_mtu_dest_vlan_id) &
sb               1349 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->timeout = sb->timeout;
sb               1350 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->retry_cnt = sb->retry_cnt;
sb               1351 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->rnr_retry = sb->rnr_retry;
sb               1352 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->min_rnr_timer = sb->min_rnr_timer;
sb               1353 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->rq.psn = le32_to_cpu(sb->rq_psn);
sb               1354 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->max_rd_atomic = ORRQ_SLOTS_TO_ORD_LIMIT(sb->max_rd_atomic);
sb               1355 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->sq.psn = le32_to_cpu(sb->sq_psn);
sb               1357 drivers/infiniband/hw/bnxt_re/qplib_fp.c 			IRRQ_SLOTS_TO_IRD_LIMIT(sb->max_dest_rd_atomic);
sb               1360 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->sq.max_sge = le16_to_cpu(sb->sq_sge);
sb               1361 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->rq.max_sge = le16_to_cpu(sb->rq_sge);
sb               1362 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->max_inline_data = le32_to_cpu(sb->max_inline_data);
sb               1363 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->dest_qpn = le32_to_cpu(sb->dest_qp_id);
sb               1364 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	memcpy(qp->smac, sb->src_mac, 6);
sb               1365 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->vlan_id = le16_to_cpu(sb->vlan_pcp_vlan_dei_vlan_id);
sb                 85 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 			  struct creq_base *resp, void *sb, u8 is_block)
sb                150 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	if (req->resp_size && sb) {
sb                151 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 		struct bnxt_qplib_rcfw_sbuf *sbuf = sb;
sb                207 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 				 void *sb, u8 is_block)
sb                216 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 		rc = __send_message(rcfw, req, resp, sb, is_block);
sb                787 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	sbuf->sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf->size,
sb                789 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	if (!sbuf->sb)
sb                801 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	if (sbuf->sb)
sb                803 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 				  sbuf->sb, sbuf->dma_addr);
sb                216 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h 	void *sb;
sb                 83 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct creq_query_func_resp_sb *sb;
sb                 91 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb));
sb                 98 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	sb = sbuf->sb;
sb                 99 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	req.resp_size = sizeof(*sb) / BNXT_QPLIB_CMDQE_UNITS;
sb                106 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_qp = le32_to_cpu(sb->max_qp);
sb                111 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		sb->max_qp_rd_atom > BNXT_QPLIB_MAX_OUT_RD_ATOM ?
sb                112 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		BNXT_QPLIB_MAX_OUT_RD_ATOM : sb->max_qp_rd_atom;
sb                114 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		sb->max_qp_init_rd_atom > BNXT_QPLIB_MAX_OUT_RD_ATOM ?
sb                115 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		BNXT_QPLIB_MAX_OUT_RD_ATOM : sb->max_qp_init_rd_atom;
sb                116 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_qp_wqes = le16_to_cpu(sb->max_qp_wr);
sb                123 drivers/infiniband/hw/bnxt_re/qplib_sp.c 			    6 : sb->max_sge;
sb                124 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_cq = le32_to_cpu(sb->max_cq);
sb                125 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_cq_wqes = le32_to_cpu(sb->max_cqe);
sb                127 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_mr = le32_to_cpu(sb->max_mr);
sb                128 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_mw = le32_to_cpu(sb->max_mw);
sb                130 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_mr_size = le64_to_cpu(sb->max_mr_size);
sb                132 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_raw_ethy_qp = le32_to_cpu(sb->max_raw_eth_qp);
sb                133 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_ah = le32_to_cpu(sb->max_ah);
sb                135 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_fmr = le32_to_cpu(sb->max_fmr);
sb                136 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_map_per_fmr = sb->max_map_per_fmr;
sb                138 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_srq = le16_to_cpu(sb->max_srq);
sb                139 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_srq_wqes = le32_to_cpu(sb->max_srq_wr) - 1;
sb                140 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_srq_sges = sb->max_srq_sge;
sb                141 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_pkey = le32_to_cpu(sb->max_pkeys);
sb                152 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_inline_data = le32_to_cpu(sb->max_inline_data);
sb                153 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->l2_db_size = (sb->l2_db_space_size + 1) *
sb                155 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_sgid = le32_to_cpu(sb->max_gid);
sb                160 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		temp = le32_to_cpu(sb->tqm_alloc_reqs[i]);
sb                794 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	struct creq_query_roce_stats_resp_sb *sb;
sb                800 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	sbuf = bnxt_qplib_rcfw_alloc_sbuf(rcfw, sizeof(*sb));
sb                807 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	sb = sbuf->sb;
sb                808 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	req.resp_size = sizeof(*sb) / BNXT_QPLIB_CMDQE_UNITS;
sb                814 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->to_retransmits = le64_to_cpu(sb->to_retransmits);
sb                815 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->seq_err_naks_rcvd = le64_to_cpu(sb->seq_err_naks_rcvd);
sb                816 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->max_retry_exceeded = le64_to_cpu(sb->max_retry_exceeded);
sb                817 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->rnr_naks_rcvd = le64_to_cpu(sb->rnr_naks_rcvd);
sb                818 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->missing_resp = le64_to_cpu(sb->missing_resp);
sb                819 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->unrecoverable_err = le64_to_cpu(sb->unrecoverable_err);
sb                820 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->bad_resp_err = le64_to_cpu(sb->bad_resp_err);
sb                821 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->local_qp_op_err = le64_to_cpu(sb->local_qp_op_err);
sb                822 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->local_protection_err = le64_to_cpu(sb->local_protection_err);
sb                823 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->mem_mgmt_op_err = le64_to_cpu(sb->mem_mgmt_op_err);
sb                824 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->remote_invalid_req_err = le64_to_cpu(sb->remote_invalid_req_err);
sb                825 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->remote_access_err = le64_to_cpu(sb->remote_access_err);
sb                826 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->remote_op_err = le64_to_cpu(sb->remote_op_err);
sb                827 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->dup_req = le64_to_cpu(sb->dup_req);
sb                828 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_exceed_max = le64_to_cpu(sb->res_exceed_max);
sb                829 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_length_mismatch = le64_to_cpu(sb->res_length_mismatch);
sb                830 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_exceeds_wqe = le64_to_cpu(sb->res_exceeds_wqe);
sb                831 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_opcode_err = le64_to_cpu(sb->res_opcode_err);
sb                832 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_rx_invalid_rkey = le64_to_cpu(sb->res_rx_invalid_rkey);
sb                833 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_rx_domain_err = le64_to_cpu(sb->res_rx_domain_err);
sb                834 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_rx_no_perm = le64_to_cpu(sb->res_rx_no_perm);
sb                835 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_rx_range_err = le64_to_cpu(sb->res_rx_range_err);
sb                836 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_tx_invalid_rkey = le64_to_cpu(sb->res_tx_invalid_rkey);
sb                837 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_tx_domain_err = le64_to_cpu(sb->res_tx_domain_err);
sb                838 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_tx_no_perm = le64_to_cpu(sb->res_tx_no_perm);
sb                839 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_tx_range_err = le64_to_cpu(sb->res_tx_range_err);
sb                840 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_irrq_oflow = le64_to_cpu(sb->res_irrq_oflow);
sb                841 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_unsup_opcode = le64_to_cpu(sb->res_unsup_opcode);
sb                842 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_unaligned_atomic = le64_to_cpu(sb->res_unaligned_atomic);
sb                843 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_rem_inv_err = le64_to_cpu(sb->res_rem_inv_err);
sb                844 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_mem_error = le64_to_cpu(sb->res_mem_error);
sb                845 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_srq_err = le64_to_cpu(sb->res_srq_err);
sb                846 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_cmp_err = le64_to_cpu(sb->res_cmp_err);
sb                847 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_invalid_dup_rkey = le64_to_cpu(sb->res_invalid_dup_rkey);
sb                848 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_wqe_format_err = le64_to_cpu(sb->res_wqe_format_err);
sb                849 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_cq_load_err = le64_to_cpu(sb->res_cq_load_err);
sb                850 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_srq_load_err = le64_to_cpu(sb->res_srq_load_err);
sb                851 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_tx_pci_err = le64_to_cpu(sb->res_tx_pci_err);
sb                852 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	stats->res_rx_pci_err = le64_to_cpu(sb->res_rx_pci_err);
sb                854 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		rcfw->oos_prev = le64_to_cpu(sb->res_oos_drop_count);
sb                858 drivers/infiniband/hw/bnxt_re/qplib_sp.c 				(le64_to_cpu(sb->res_oos_drop_count) -
sb                860 drivers/infiniband/hw/bnxt_re/qplib_sp.c 		rcfw->oos_prev = le64_to_cpu(sb->res_oos_drop_count);
sb                405 drivers/infiniband/hw/qedr/main.c 		cnq->sb = &dev->sb_array[i];
sb                456 drivers/infiniband/hw/qedr/main.c 	qed_sb_ack(cnq->sb, IGU_INT_DISABLE, 0);
sb                458 drivers/infiniband/hw/qedr/main.c 	qed_sb_update_sb_idx(cnq->sb);
sb                509 drivers/infiniband/hw/qedr/main.c 	qed_sb_ack(cnq->sb, IGU_INT_ENABLE, 1);
sb                 76 drivers/infiniband/hw/qedr/qedr.h 	struct qed_sb_info	*sb;
sb                360 drivers/infiniband/hw/qib/qib_fs.c static int add_cntr_files(struct super_block *sb, struct qib_devdata *dd)
sb                368 drivers/infiniband/hw/qib/qib_fs.c 	ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir,
sb                461 drivers/infiniband/hw/qib/qib_fs.c static int remove_device_files(struct super_block *sb,
sb                468 drivers/infiniband/hw/qib/qib_fs.c 	root = dget(sb->s_root);
sb                510 drivers/infiniband/hw/qib/qib_fs.c static int qibfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                522 drivers/infiniband/hw/qib/qib_fs.c 	ret = simple_fill_super(sb, QIBFS_MAGIC, files);
sb                529 drivers/infiniband/hw/qib/qib_fs.c 		ret = add_cntr_files(sb, dd);
sb                 90 drivers/md/bcache/alloc.c 	unsigned int next = c->nbuckets * c->sb.bucket_size / 1024;
sb                223 drivers/md/bcache/alloc.c 		if (ca->fifo_last_bucket <  ca->sb.first_bucket ||
sb                224 drivers/md/bcache/alloc.c 		    ca->fifo_last_bucket >= ca->sb.nbuckets)
sb                225 drivers/md/bcache/alloc.c 			ca->fifo_last_bucket = ca->sb.first_bucket;
sb                232 drivers/md/bcache/alloc.c 		if (++checked >= ca->sb.nbuckets) {
sb                250 drivers/md/bcache/alloc.c 		n %= (size_t) (ca->sb.nbuckets - ca->sb.first_bucket);
sb                251 drivers/md/bcache/alloc.c 		n += ca->sb.first_bucket;
sb                258 drivers/md/bcache/alloc.c 		if (++checked >= ca->sb.nbuckets / 2) {
sb                270 drivers/md/bcache/alloc.c 	switch (CACHE_REPLACEMENT(&ca->sb)) {
sb                340 drivers/md/bcache/alloc.c 					ca->sb.bucket_size, GFP_KERNEL, 0);
sb                365 drivers/md/bcache/alloc.c 		if (CACHE_SYNC(&ca->set->sb)) {
sb                450 drivers/md/bcache/alloc.c 	SET_GC_SECTORS_USED(b, ca->sb.bucket_size);
sb                515 drivers/md/bcache/alloc.c 				ca->sb.nr_this_dev);
sb                592 drivers/md/bcache/alloc.c 		ret->sectors_free = c->sb.bucket_size;
sb                686 drivers/md/bcache/alloc.c 	if (b->sectors_free < c->sb.block_size)
sb                303 drivers/md/bcache/bcache.h 	struct cache_sb		sb;
sb                408 drivers/md/bcache/bcache.h 	struct cache_sb		sb;
sb                518 drivers/md/bcache/bcache.h 	struct cache_sb		sb;
sb                757 drivers/md/bcache/bcache.h #define bucket_pages(c)		((c)->sb.bucket_size / PAGE_SECTORS)
sb                758 drivers/md/bcache/bcache.h #define bucket_bytes(c)		((c)->sb.bucket_size << 9)
sb                759 drivers/md/bcache/bcache.h #define block_bytes(c)		((c)->sb.block_size << 9)
sb                765 drivers/md/bcache/bcache.h 	DIV_ROUND_UP((size_t) (c)->sb.nbuckets, prios_per_bucket(c))
sb                779 drivers/md/bcache/bcache.h 	return s & (c->sb.bucket_size - 1);
sb                868 drivers/md/bcache/bcache.h 	for (iter = 0; ca = cs->cache[iter], iter < (cs)->sb.nr_in_set; iter++)
sb                871 drivers/md/bcache/bcache.h 	for (b = (ca)->buckets + (ca)->sb.first_bucket;			\
sb                872 drivers/md/bcache/bcache.h 	     b < (ca)->buckets + (ca)->sb.nbuckets; b++)
sb               1016 drivers/md/bcache/bcache.h struct cache_set *bch_cache_set_alloc(struct cache_sb *sb);
sb                178 drivers/md/bcache/btree.c 				   bset_magic(&b->c->sb));
sb                216 drivers/md/bcache/btree.c 	iter->size = b->c->sb.bucket_size / b->c->sb.block_size;
sb                239 drivers/md/bcache/btree.c 		if (i->magic != bset_magic(&b->c->sb))
sb                280 drivers/md/bcache/btree.c 				   bset_magic(&b->c->sb));
sb                484 drivers/md/bcache/btree.c 	atomic_long_add(set_blocks(i, block_bytes(b->c)) * b->c->sb.block_size,
sb               1156 drivers/md/bcache/btree.c 	bch_bset_init_next(&b->keys, b->keys.set->data, bset_magic(&b->c->sb));
sb               1805 drivers/md/bcache/btree.c 		for (i = ca->sb.d; i < ca->sb.d + ca->sb.keys; i++)
sb                196 drivers/md/bcache/btree.h 	atomic_set(&c->sectors_to_gc, c->sb.bucket_size * c->nbuckets / 16);
sb                241 drivers/md/bcache/debug.c 		snprintf(name, 50, "bcache-%pU", c->sb.set_uuid);
sb                 57 drivers/md/bcache/extents.c 			if (KEY_SIZE(k) + r > c->sb.bucket_size ||
sb                 58 drivers/md/bcache/extents.c 			    bucket <  ca->sb.first_bucket ||
sb                 59 drivers/md/bcache/extents.c 			    bucket >= ca->sb.nbuckets)
sb                 78 drivers/md/bcache/extents.c 			if (KEY_SIZE(k) + r > c->sb.bucket_size)
sb                 80 drivers/md/bcache/extents.c 			if (bucket <  ca->sb.first_bucket)
sb                 82 drivers/md/bcache/extents.c 			if (bucket >= ca->sb.nbuckets)
sb                139 drivers/md/bcache/extents.c 		if (n >= b->c->sb.first_bucket && n < b->c->sb.nbuckets)
sb                 46 drivers/md/bcache/journal.c 	sector_t bucket = bucket_to_sector(ca->set, ca->sb.d[bucket_index]);
sb                 52 drivers/md/bcache/journal.c 	while (offset < ca->sb.bucket_size) {
sb                 53 drivers/md/bcache/journal.c reread:		left = ca->sb.bucket_size - offset;
sb                 80 drivers/md/bcache/journal.c 			if (j->magic != jset_magic(&ca->sb)) {
sb                162 drivers/md/bcache/journal.c 			offset	+= blocks * ca->sb.block_size;
sb                163 drivers/md/bcache/journal.c 			len	-= blocks * ca->sb.block_size;
sb                193 drivers/md/bcache/journal.c 		pr_debug("%u journal buckets", ca->sb.njournal_buckets);
sb                199 drivers/md/bcache/journal.c 		for (i = 0; i < ca->sb.njournal_buckets; i++) {
sb                205 drivers/md/bcache/journal.c 			l = (i * 2654435769U) % ca->sb.njournal_buckets;
sb                220 drivers/md/bcache/journal.c 		for (l = find_first_zero_bit(bitmap, ca->sb.njournal_buckets);
sb                221 drivers/md/bcache/journal.c 		     l < ca->sb.njournal_buckets;
sb                222 drivers/md/bcache/journal.c 		     l = find_next_zero_bit(bitmap, ca->sb.njournal_buckets,
sb                228 drivers/md/bcache/journal.c 		if (l == ca->sb.njournal_buckets)
sb                235 drivers/md/bcache/journal.c 		r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1);
sb                257 drivers/md/bcache/journal.c 			 m, ca->sb.njournal_buckets);
sb                262 drivers/md/bcache/journal.c 				l = ca->sb.njournal_buckets - 1;
sb                276 drivers/md/bcache/journal.c 		for (i = 0; i < ca->sb.njournal_buckets; i++)
sb                286 drivers/md/bcache/journal.c 					ca->sb.njournal_buckets;
sb                614 drivers/md/bcache/journal.c 			ca->sb.njournal_buckets;
sb                628 drivers/md/bcache/journal.c 						ca->sb.d[ja->discard_idx]);
sb                662 drivers/md/bcache/journal.c 				ca->sb.njournal_buckets;
sb                678 drivers/md/bcache/journal.c 		unsigned int next = (ja->cur_idx + 1) % ca->sb.njournal_buckets;
sb                686 drivers/md/bcache/journal.c 				  bucket_to_sector(c, ca->sb.d[ja->cur_idx]),
sb                687 drivers/md/bcache/journal.c 				  ca->sb.nr_this_dev);
sb                694 drivers/md/bcache/journal.c 		c->journal.blocks_free = c->sb.bucket_size >> c->block_bits;
sb                763 drivers/md/bcache/journal.c 		c->sb.block_size;
sb                790 drivers/md/bcache/journal.c 		w->data->prio_bucket[ca->sb.nr_this_dev] = ca->prio_buckets[0];
sb                792 drivers/md/bcache/journal.c 	w->data->magic		= jset_magic(&c->sb);
sb                877 drivers/md/bcache/journal.c 				       block_bytes(c)) * c->sb.block_size;
sb                880 drivers/md/bcache/journal.c 				     c->journal.blocks_free * c->sb.block_size,
sb                945 drivers/md/bcache/journal.c 	if (!CACHE_SYNC(&c->sb))
sb                210 drivers/md/bcache/movinggc.c 		unsigned int reserve_sectors = ca->sb.bucket_size *
sb                218 drivers/md/bcache/movinggc.c 			    GC_SECTORS_USED(b) == ca->sb.bucket_size ||
sb                 32 drivers/md/bcache/request.c 	return BDEV_CACHE_MODE(&dc->sb);
sb                409 drivers/md/bcache/request.c 	if (bio->bi_iter.bi_sector & (c->sb.block_size - 1) ||
sb                410 drivers/md/bcache/request.c 	    bio_sectors(bio) & (c->sb.block_size - 1)) {
sb               1212 drivers/md/bcache/request.c 	bio->bi_iter.bi_sector += dc->sb.data_offset;
sb                 62 drivers/md/bcache/super.c static const char *read_super(struct cache_sb *sb, struct block_device *bdev,
sb                 75 drivers/md/bcache/super.c 	sb->offset		= le64_to_cpu(s->offset);
sb                 76 drivers/md/bcache/super.c 	sb->version		= le64_to_cpu(s->version);
sb                 78 drivers/md/bcache/super.c 	memcpy(sb->magic,	s->magic, 16);
sb                 79 drivers/md/bcache/super.c 	memcpy(sb->uuid,	s->uuid, 16);
sb                 80 drivers/md/bcache/super.c 	memcpy(sb->set_uuid,	s->set_uuid, 16);
sb                 81 drivers/md/bcache/super.c 	memcpy(sb->label,	s->label, SB_LABEL_SIZE);
sb                 83 drivers/md/bcache/super.c 	sb->flags		= le64_to_cpu(s->flags);
sb                 84 drivers/md/bcache/super.c 	sb->seq			= le64_to_cpu(s->seq);
sb                 85 drivers/md/bcache/super.c 	sb->last_mount		= le32_to_cpu(s->last_mount);
sb                 86 drivers/md/bcache/super.c 	sb->first_bucket	= le16_to_cpu(s->first_bucket);
sb                 87 drivers/md/bcache/super.c 	sb->keys		= le16_to_cpu(s->keys);
sb                 90 drivers/md/bcache/super.c 		sb->d[i] = le64_to_cpu(s->d[i]);
sb                 93 drivers/md/bcache/super.c 		 sb->version, sb->flags, sb->seq, sb->keys);
sb                 96 drivers/md/bcache/super.c 	if (sb->offset != SB_SECTOR)
sb                 99 drivers/md/bcache/super.c 	if (memcmp(sb->magic, bcache_magic, 16))
sb                103 drivers/md/bcache/super.c 	if (sb->keys > SB_JOURNAL_BUCKETS)
sb                111 drivers/md/bcache/super.c 	if (bch_is_zero(sb->uuid, 16))
sb                114 drivers/md/bcache/super.c 	sb->block_size	= le16_to_cpu(s->block_size);
sb                117 drivers/md/bcache/super.c 	if (sb->block_size << 9 < bdev_logical_block_size(bdev))
sb                120 drivers/md/bcache/super.c 	switch (sb->version) {
sb                122 drivers/md/bcache/super.c 		sb->data_offset	= BDEV_DATA_START_DEFAULT;
sb                125 drivers/md/bcache/super.c 		sb->data_offset	= le64_to_cpu(s->data_offset);
sb                128 drivers/md/bcache/super.c 		if (sb->data_offset < BDEV_DATA_START_DEFAULT)
sb                134 drivers/md/bcache/super.c 		sb->nbuckets	= le64_to_cpu(s->nbuckets);
sb                135 drivers/md/bcache/super.c 		sb->bucket_size	= le16_to_cpu(s->bucket_size);
sb                137 drivers/md/bcache/super.c 		sb->nr_in_set	= le16_to_cpu(s->nr_in_set);
sb                138 drivers/md/bcache/super.c 		sb->nr_this_dev	= le16_to_cpu(s->nr_this_dev);
sb                141 drivers/md/bcache/super.c 		if (sb->nbuckets > LONG_MAX)
sb                145 drivers/md/bcache/super.c 		if (sb->nbuckets < 1 << 7)
sb                149 drivers/md/bcache/super.c 		if (!is_power_of_2(sb->block_size) ||
sb                150 drivers/md/bcache/super.c 		    sb->block_size > PAGE_SECTORS ||
sb                151 drivers/md/bcache/super.c 		    !is_power_of_2(sb->bucket_size) ||
sb                152 drivers/md/bcache/super.c 		    sb->bucket_size < PAGE_SECTORS)
sb                157 drivers/md/bcache/super.c 		    sb->bucket_size * sb->nbuckets)
sb                161 drivers/md/bcache/super.c 		if (bch_is_zero(sb->set_uuid, 16))
sb                165 drivers/md/bcache/super.c 		if (!sb->nr_in_set ||
sb                166 drivers/md/bcache/super.c 		    sb->nr_in_set <= sb->nr_this_dev ||
sb                167 drivers/md/bcache/super.c 		    sb->nr_in_set > MAX_CACHES_PER_SET)
sb                171 drivers/md/bcache/super.c 		for (i = 0; i < sb->keys; i++)
sb                172 drivers/md/bcache/super.c 			if (sb->d[i] != sb->first_bucket + i)
sb                176 drivers/md/bcache/super.c 		if (sb->first_bucket + sb->keys > sb->nbuckets)
sb                180 drivers/md/bcache/super.c 		if (sb->first_bucket * sb->bucket_size < 16)
sb                189 drivers/md/bcache/super.c 	sb->last_mount = (u32)ktime_get_real_seconds();
sb                209 drivers/md/bcache/super.c static void __write_super(struct cache_sb *sb, struct bio *bio)
sb                219 drivers/md/bcache/super.c 	out->offset		= cpu_to_le64(sb->offset);
sb                220 drivers/md/bcache/super.c 	out->version		= cpu_to_le64(sb->version);
sb                222 drivers/md/bcache/super.c 	memcpy(out->uuid,	sb->uuid, 16);
sb                223 drivers/md/bcache/super.c 	memcpy(out->set_uuid,	sb->set_uuid, 16);
sb                224 drivers/md/bcache/super.c 	memcpy(out->label,	sb->label, SB_LABEL_SIZE);
sb                226 drivers/md/bcache/super.c 	out->flags		= cpu_to_le64(sb->flags);
sb                227 drivers/md/bcache/super.c 	out->seq		= cpu_to_le64(sb->seq);
sb                229 drivers/md/bcache/super.c 	out->last_mount		= cpu_to_le32(sb->last_mount);
sb                230 drivers/md/bcache/super.c 	out->first_bucket	= cpu_to_le16(sb->first_bucket);
sb                231 drivers/md/bcache/super.c 	out->keys		= cpu_to_le16(sb->keys);
sb                233 drivers/md/bcache/super.c 	for (i = 0; i < sb->keys; i++)
sb                234 drivers/md/bcache/super.c 		out->d[i] = cpu_to_le64(sb->d[i]);
sb                239 drivers/md/bcache/super.c 		 sb->version, sb->flags, sb->seq);
sb                266 drivers/md/bcache/super.c 	__write_super(&dc->sb, bio);
sb                297 drivers/md/bcache/super.c 	c->sb.seq++;
sb                302 drivers/md/bcache/super.c 		ca->sb.version		= BCACHE_SB_VERSION_CDEV_WITH_UUID;
sb                303 drivers/md/bcache/super.c 		ca->sb.seq		= c->sb.seq;
sb                304 drivers/md/bcache/super.c 		ca->sb.last_mount	= c->sb.last_mount;
sb                306 drivers/md/bcache/super.c 		SET_CACHE_SYNC(&ca->sb, CACHE_SYNC(&c->sb));
sb                314 drivers/md/bcache/super.c 		__write_super(&ca->sb, bio);
sb                433 drivers/md/bcache/super.c 	SET_KEY_SIZE(&k.key, c->sb.bucket_size);
sb                439 drivers/md/bcache/super.c 	atomic_long_add(ca->sb.bucket_size, &ca->meta_sectors_written);
sb                519 drivers/md/bcache/super.c 	bio->bi_iter.bi_sector	= bucket * ca->sb.bucket_size;
sb                561 drivers/md/bcache/super.c 	atomic_long_add(ca->sb.bucket_size * prio_buckets(ca),
sb                571 drivers/md/bcache/super.c 		     b < ca->buckets + ca->sb.nbuckets && d < end;
sb                578 drivers/md/bcache/super.c 		p->magic	= pset_magic(&ca->sb);
sb                621 drivers/md/bcache/super.c 	     b < ca->buckets + ca->sb.nbuckets;
sb                634 drivers/md/bcache/super.c 			if (p->magic != pset_magic(&ca->sb))
sb                946 drivers/md/bcache/super.c 	char *buf = kmemdup_nul(dc->sb.label, SB_LABEL_SIZE, GFP_KERNEL);
sb                949 drivers/md/bcache/super.c 		kasprintf(GFP_KERNEL, "CACHED_UUID=%pU", dc->sb.uuid),
sb                973 drivers/md/bcache/super.c 	    BDEV_STATE(&dc->sb) != BDEV_STATE_NONE) {
sb                978 drivers/md/bcache/super.c 		SET_BDEV_STATE(&dc->sb, BDEV_STATE_STALE);
sb               1056 drivers/md/bcache/super.c 	memset(&dc->sb.set_uuid, 0, 16);
sb               1057 drivers/md/bcache/super.c 	SET_BDEV_STATE(&dc->sb, BDEV_STATE_NONE);
sb               1108 drivers/md/bcache/super.c 	if ((set_uuid && memcmp(set_uuid, c->sb.set_uuid, 16)) ||
sb               1109 drivers/md/bcache/super.c 	    (!set_uuid && memcmp(dc->sb.set_uuid, c->sb.set_uuid, 16)))
sb               1124 drivers/md/bcache/super.c 	if (dc->sb.block_size < c->sb.block_size) {
sb               1133 drivers/md/bcache/super.c 		if (!memcmp(dc->sb.uuid, exist_dc->sb.uuid, 16)) {
sb               1141 drivers/md/bcache/super.c 	u = uuid_find(c, dc->sb.uuid);
sb               1144 drivers/md/bcache/super.c 	    (BDEV_STATE(&dc->sb) == BDEV_STATE_STALE ||
sb               1145 drivers/md/bcache/super.c 	     BDEV_STATE(&dc->sb) == BDEV_STATE_NONE)) {
sb               1152 drivers/md/bcache/super.c 		if (BDEV_STATE(&dc->sb) == BDEV_STATE_DIRTY) {
sb               1176 drivers/md/bcache/super.c 		memcpy(u->uuid, dc->sb.uuid, 16);
sb               1177 drivers/md/bcache/super.c 		memcpy(u->label, dc->sb.label, SB_LABEL_SIZE);
sb               1181 drivers/md/bcache/super.c 		memcpy(dc->sb.set_uuid, c->sb.set_uuid, 16);
sb               1182 drivers/md/bcache/super.c 		SET_BDEV_STATE(&dc->sb, BDEV_STATE_CLEAN);
sb               1211 drivers/md/bcache/super.c 	if (BDEV_STATE(&dc->sb) == BDEV_STATE_DIRTY) {
sb               1243 drivers/md/bcache/super.c 		dc->disk.c->sb.set_uuid);
sb               1334 drivers/md/bcache/super.c 			 dc->bdev->bd_part->nr_sects - dc->sb.data_offset);
sb               1355 drivers/md/bcache/super.c static int register_bdev(struct cache_sb *sb, struct page *sb_page,
sb               1364 drivers/md/bcache/super.c 	memcpy(&dc->sb, sb, sizeof(struct cache_sb));
sb               1373 drivers/md/bcache/super.c 	if (cached_dev_init(dc, sb->block_size << 9))
sb               1390 drivers/md/bcache/super.c 	if (BDEV_STATE(&dc->sb) == BDEV_STATE_NONE ||
sb               1391 drivers/md/bcache/super.c 	    BDEV_STATE(&dc->sb) == BDEV_STATE_STALE) {
sb               1546 drivers/md/bcache/super.c 	pr_err("bcache: error on %pU: ", c->sb.set_uuid);
sb               1586 drivers/md/bcache/super.c 			c->cache[ca->sb.nr_this_dev] = NULL;
sb               1604 drivers/md/bcache/super.c 	pr_info("Cache set %pU unregistered", c->sb.set_uuid);
sb               1676 drivers/md/bcache/super.c 			d->disk->disk_name, c->sb.set_uuid);
sb               1756 drivers/md/bcache/super.c struct cache_set *bch_cache_set_alloc(struct cache_sb *sb)
sb               1780 drivers/md/bcache/super.c 	memcpy(c->sb.set_uuid, sb->set_uuid, 16);
sb               1781 drivers/md/bcache/super.c 	c->sb.block_size	= sb->block_size;
sb               1782 drivers/md/bcache/super.c 	c->sb.bucket_size	= sb->bucket_size;
sb               1783 drivers/md/bcache/super.c 	c->sb.nr_in_set		= sb->nr_in_set;
sb               1784 drivers/md/bcache/super.c 	c->sb.last_mount	= sb->last_mount;
sb               1785 drivers/md/bcache/super.c 	c->bucket_bits		= ilog2(sb->bucket_size);
sb               1786 drivers/md/bcache/super.c 	c->block_bits		= ilog2(sb->block_size);
sb               1815 drivers/md/bcache/super.c 	iter_size = (sb->bucket_size / sb->block_size + 1) *
sb               1859 drivers/md/bcache/super.c 		c->nbuckets += ca->sb.nbuckets;
sb               1862 drivers/md/bcache/super.c 	if (CACHE_SYNC(&c->sb)) {
sb               1880 drivers/md/bcache/super.c 			prio_read(ca, j->prio_bucket[ca->sb.nr_this_dev]);
sb               1967 drivers/md/bcache/super.c 			ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7,
sb               1970 drivers/md/bcache/super.c 			for (j = 0; j < ca->sb.keys; j++)
sb               1971 drivers/md/bcache/super.c 				ca->sb.d[j] = ca->sb.first_bucket + j;
sb               2008 drivers/md/bcache/super.c 		SET_CACHE_SYNC(&c->sb, true);
sb               2019 drivers/md/bcache/super.c 	c->sb.last_mount = (u32)ktime_get_real_seconds();
sb               2045 drivers/md/bcache/super.c 	return ca->sb.block_size	== c->sb.block_size &&
sb               2046 drivers/md/bcache/super.c 		ca->sb.bucket_size	== c->sb.bucket_size &&
sb               2047 drivers/md/bcache/super.c 		ca->sb.nr_in_set	== c->sb.nr_in_set;
sb               2057 drivers/md/bcache/super.c 		if (!memcmp(c->sb.set_uuid, ca->sb.set_uuid, 16)) {
sb               2058 drivers/md/bcache/super.c 			if (c->cache[ca->sb.nr_this_dev])
sb               2064 drivers/md/bcache/super.c 			if (!CACHE_SYNC(&ca->sb))
sb               2065 drivers/md/bcache/super.c 				SET_CACHE_SYNC(&c->sb, false);
sb               2070 drivers/md/bcache/super.c 	c = bch_cache_set_alloc(&ca->sb);
sb               2075 drivers/md/bcache/super.c 	if (kobject_add(&c->kobj, bcache_kobj, "%pU", c->sb.set_uuid) ||
sb               2086 drivers/md/bcache/super.c 	sprintf(buf, "cache%i", ca->sb.nr_this_dev);
sb               2091 drivers/md/bcache/super.c 	if (ca->sb.seq > c->sb.seq) {
sb               2092 drivers/md/bcache/super.c 		c->sb.version		= ca->sb.version;
sb               2093 drivers/md/bcache/super.c 		memcpy(c->sb.set_uuid, ca->sb.set_uuid, 16);
sb               2094 drivers/md/bcache/super.c 		c->sb.flags             = ca->sb.flags;
sb               2095 drivers/md/bcache/super.c 		c->sb.seq		= ca->sb.seq;
sb               2096 drivers/md/bcache/super.c 		pr_debug("set version = %llu", c->sb.version);
sb               2101 drivers/md/bcache/super.c 	ca->set->cache[ca->sb.nr_this_dev] = ca;
sb               2104 drivers/md/bcache/super.c 	if (c->caches_loaded == c->sb.nr_in_set) {
sb               2125 drivers/md/bcache/super.c 		BUG_ON(ca->set->cache[ca->sb.nr_this_dev] != ca);
sb               2126 drivers/md/bcache/super.c 		ca->set->cache[ca->sb.nr_this_dev] = NULL;
sb               2171 drivers/md/bcache/super.c 	btree_buckets = ca->sb.njournal_buckets ?: 8;
sb               2172 drivers/md/bcache/super.c 	free = roundup_pow_of_two(ca->sb.nbuckets) >> 10;
sb               2212 drivers/md/bcache/super.c 			      ca->sb.nbuckets));
sb               2262 drivers/md/bcache/super.c static int register_cache(struct cache_sb *sb, struct page *sb_page,
sb               2269 drivers/md/bcache/super.c 	memcpy(&ca->sb, sb, sizeof(struct cache_sb));
sb               2278 drivers/md/bcache/super.c 		ca->discard = CACHE_DISCARD(&ca->sb);
sb               2377 drivers/md/bcache/super.c 	struct cache_sb *sb;
sb               2399 drivers/md/bcache/super.c 	sb = kmalloc(sizeof(struct cache_sb), GFP_KERNEL);
sb               2400 drivers/md/bcache/super.c 	if (!sb)
sb               2407 drivers/md/bcache/super.c 				  sb);
sb               2429 drivers/md/bcache/super.c 	err = read_super(sb, bdev, &sb_page);
sb               2434 drivers/md/bcache/super.c 	if (SB_IS_BDEV(sb)) {
sb               2441 drivers/md/bcache/super.c 		ret = register_bdev(sb, sb_page, bdev, dc);
sb               2455 drivers/md/bcache/super.c 		if (register_cache(sb, sb_page, bdev, ca) != 0) {
sb               2463 drivers/md/bcache/super.c 	kfree(sb);
sb               2474 drivers/md/bcache/super.c 	kfree(sb);
sb               2513 drivers/md/bcache/super.c 			char *pdev_set_uuid = pdev->dc->sb.set_uuid;
sb               2514 drivers/md/bcache/super.c 			char *set_uuid = c->sb.uuid;
sb                175 drivers/md/bcache/sysfs.c 					       BDEV_CACHE_MODE(&dc->sb));
sb                253 drivers/md/bcache/sysfs.c 	sysfs_print(state,		states[BDEV_STATE(&dc->sb)]);
sb                256 drivers/md/bcache/sysfs.c 		memcpy(buf, dc->sb.label, SB_LABEL_SIZE);
sb                270 drivers/md/bcache/sysfs.c 		snprintf(buf, 36+1, "%pU", dc->sb.uuid);
sb                361 drivers/md/bcache/sysfs.c 		if ((unsigned int) v != BDEV_CACHE_MODE(&dc->sb)) {
sb                362 drivers/md/bcache/sysfs.c 			SET_BDEV_CACHE_MODE(&dc->sb, v);
sb                387 drivers/md/bcache/sysfs.c 		memcpy(dc->sb.label, buf, size);
sb                389 drivers/md/bcache/sysfs.c 			dc->sb.label[size] = '\0';
sb                390 drivers/md/bcache/sysfs.c 		if (size && dc->sb.label[size - 1] == '\n')
sb                391 drivers/md/bcache/sysfs.c 			dc->sb.label[size - 1] = '\0';
sb                402 drivers/md/bcache/sysfs.c 		add_uevent_var(env, "CACHED_UUID=%pU", dc->sb.uuid),
sb                709 drivers/md/bcache/sysfs.c 	sysfs_print(synchronous,		CACHE_SYNC(&c->sb));
sb                801 drivers/md/bcache/sysfs.c 		if (sync != CACHE_SYNC(&c->sb)) {
sb                802 drivers/md/bcache/sysfs.c 			SET_CACHE_SYNC(&c->sb, sync);
sb                999 drivers/md/bcache/sysfs.c 	sysfs_print(nbuckets,		ca->sb.nbuckets);
sb               1014 drivers/md/bcache/sysfs.c 					       CACHE_REPLACEMENT(&ca->sb));
sb               1018 drivers/md/bcache/sysfs.c 		size_t n = ca->sb.nbuckets, i;
sb               1026 drivers/md/bcache/sysfs.c 						ca->sb.nbuckets));
sb               1042 drivers/md/bcache/sysfs.c 		for (i = ca->sb.first_bucket; i < n; i++)
sb               1076 drivers/md/bcache/sysfs.c 				unused * 100 / (size_t) ca->sb.nbuckets,
sb               1077 drivers/md/bcache/sysfs.c 				available * 100 / (size_t) ca->sb.nbuckets,
sb               1078 drivers/md/bcache/sysfs.c 				dirty * 100 / (size_t) ca->sb.nbuckets,
sb               1079 drivers/md/bcache/sysfs.c 				meta * 100 / (size_t) ca->sb.nbuckets, sum,
sb               1080 drivers/md/bcache/sysfs.c 				n * ca->sb.bucket_size / (ARRAY_SIZE(q) + 1));
sb               1111 drivers/md/bcache/sysfs.c 		if (v != CACHE_DISCARD(&ca->sb)) {
sb               1112 drivers/md/bcache/sysfs.c 			SET_CACHE_DISCARD(&ca->sb, v);
sb               1122 drivers/md/bcache/sysfs.c 		if ((unsigned int) v != CACHE_REPLACEMENT(&ca->sb)) {
sb               1124 drivers/md/bcache/sysfs.c 			SET_CACHE_REPLACEMENT(&ca->sb, v);
sb                 38 drivers/md/bcache/writeback.c 	uint64_t cache_sectors = c->nbuckets * c->sb.bucket_size -
sb                693 drivers/md/bcache/writeback.c 			SET_BDEV_STATE(&dc->sb, BDEV_STATE_CLEAN);
sb                100 drivers/md/bcache/writeback.h 		if (BDEV_STATE(&dc->sb) != BDEV_STATE_DIRTY) {
sb                101 drivers/md/bcache/writeback.h 			SET_BDEV_STATE(&dc->sb, BDEV_STATE_DIRTY);
sb               1104 drivers/md/dm-cache-target.c 	sector_t sb = bio->bi_iter.bi_sector;
sb               1107 drivers/md/dm-cache-target.c 	*b = to_dblock(dm_sector_div_up(sb, cache->discard_block_size));
sb               1109 drivers/md/dm-cache-target.c 	if (se - sb < cache->discard_block_size)
sb                169 drivers/md/dm-clone-metadata.c 	struct superblock_disk *sb;
sb                172 drivers/md/dm-clone-metadata.c 	sb = dm_block_data(b);
sb                173 drivers/md/dm-clone-metadata.c 	sb->blocknr = cpu_to_le64(dm_block_location(b));
sb                175 drivers/md/dm-clone-metadata.c 	csum = dm_bm_checksum(&sb->flags, sb_block_size - sizeof(__le32),
sb                177 drivers/md/dm-clone-metadata.c 	sb->csum = cpu_to_le32(csum);
sb                183 drivers/md/dm-clone-metadata.c 	struct superblock_disk *sb;
sb                186 drivers/md/dm-clone-metadata.c 	sb = dm_block_data(b);
sb                188 drivers/md/dm-clone-metadata.c 	if (dm_block_location(b) != le64_to_cpu(sb->blocknr)) {
sb                190 drivers/md/dm-clone-metadata.c 		      le64_to_cpu(sb->blocknr),
sb                195 drivers/md/dm-clone-metadata.c 	if (le64_to_cpu(sb->magic) != SUPERBLOCK_MAGIC) {
sb                197 drivers/md/dm-clone-metadata.c 		      le64_to_cpu(sb->magic),
sb                202 drivers/md/dm-clone-metadata.c 	csum = dm_bm_checksum(&sb->flags, sb_block_size - sizeof(__le32),
sb                204 drivers/md/dm-clone-metadata.c 	if (sb->csum != cpu_to_le32(csum)) {
sb                206 drivers/md/dm-clone-metadata.c 		      csum, le32_to_cpu(sb->csum));
sb                211 drivers/md/dm-clone-metadata.c 	metadata_version = le32_to_cpu(sb->version);
sb                305 drivers/md/dm-clone-metadata.c 				 struct superblock_disk *sb)
sb                307 drivers/md/dm-clone-metadata.c 	sb->flags = cpu_to_le32(0UL);
sb                310 drivers/md/dm-clone-metadata.c 	memset(sb->uuid, 0, sizeof(sb->uuid));
sb                312 drivers/md/dm-clone-metadata.c 	sb->magic = cpu_to_le64(SUPERBLOCK_MAGIC);
sb                313 drivers/md/dm-clone-metadata.c 	sb->version = cpu_to_le32(DM_CLONE_MAX_METADATA_VERSION);
sb                316 drivers/md/dm-clone-metadata.c 	memcpy(&sb->metadata_space_map_root, &cmd->metadata_space_map_root,
sb                319 drivers/md/dm-clone-metadata.c 	sb->region_size = cpu_to_le64(cmd->region_size);
sb                320 drivers/md/dm-clone-metadata.c 	sb->target_size = cpu_to_le64(cmd->target_size);
sb                321 drivers/md/dm-clone-metadata.c 	sb->bitset_root = cpu_to_le64(cmd->bitset_root);
sb                328 drivers/md/dm-clone-metadata.c 	struct superblock_disk *sb;
sb                337 drivers/md/dm-clone-metadata.c 	sb = dm_block_data(sblock);
sb                340 drivers/md/dm-clone-metadata.c 	if (cmd->region_size != le64_to_cpu(sb->region_size) ||
sb                341 drivers/md/dm-clone-metadata.c 	    cmd->target_size != le64_to_cpu(sb->target_size)) {
sb                348 drivers/md/dm-clone-metadata.c 			       sb->metadata_space_map_root,
sb                349 drivers/md/dm-clone-metadata.c 			       sizeof(sb->metadata_space_map_root),
sb                358 drivers/md/dm-clone-metadata.c 	cmd->bitset_root = le64_to_cpu(sb->bitset_root);
sb                370 drivers/md/dm-clone-metadata.c 	struct superblock_disk *sb;
sb                412 drivers/md/dm-clone-metadata.c 	sb = dm_block_data(sblock);
sb                413 drivers/md/dm-clone-metadata.c 	__prepare_superblock(cmd, sb);
sb                698 drivers/md/dm-clone-metadata.c 	struct superblock_disk *sb;
sb                729 drivers/md/dm-clone-metadata.c 	sb = dm_block_data(sblock);
sb                730 drivers/md/dm-clone-metadata.c 	__prepare_superblock(cmd, sb);
sb                161 drivers/md/dm-integrity.c 	struct superblock *sb;
sb                398 drivers/md/dm-integrity.c 		__u8 log2_interleave_sectors = ic->sb->log2_interleave_sectors;
sb                410 drivers/md/dm-integrity.c 	(n) >>= (ic)->sb->log2_sectors_per_block;			\
sb                419 drivers/md/dm-integrity.c 	ms = area << ic->sb->log2_interleave_sectors;
sb                446 drivers/md/dm-integrity.c 	result = area << ic->sb->log2_interleave_sectors;
sb                466 drivers/md/dm-integrity.c 	if (ic->mode == 'B' || ic->sb->flags & cpu_to_le32(SB_FLAG_DIRTY_BITMAP))
sb                467 drivers/md/dm-integrity.c 		ic->sb->version = SB_VERSION_3;
sb                468 drivers/md/dm-integrity.c 	else if (ic->meta_dev || ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
sb                469 drivers/md/dm-integrity.c 		ic->sb->version = SB_VERSION_2;
sb                471 drivers/md/dm-integrity.c 		ic->sb->version = SB_VERSION_1;
sb                482 drivers/md/dm-integrity.c 	io_req.mem.ptr.addr = ic->sb;
sb                506 drivers/md/dm-integrity.c 	if (unlikely(((sector | n_sectors) & ((1 << ic->sb->log2_sectors_per_block) - 1)) != 0)) {
sb                510 drivers/md/dm-integrity.c 			ic->sb->log2_sectors_per_block,
sb                519 drivers/md/dm-integrity.c 	bit = sector >> (ic->sb->log2_sectors_per_block + ic->log2_blocks_per_bitmap_bit);
sb                521 drivers/md/dm-integrity.c 		(ic->sb->log2_sectors_per_block + ic->log2_blocks_per_bitmap_bit);
sb                619 drivers/md/dm-integrity.c 	unsigned bit = sector >> (ic->sb->log2_sectors_per_block + ic->log2_blocks_per_bitmap_bit);
sb                691 drivers/md/dm-integrity.c 	n <<= ic->sb->log2_sectors_per_block;
sb               1524 drivers/md/dm-integrity.c 		checksums = kmalloc((PAGE_SIZE >> SECTOR_SHIFT >> ic->sb->log2_sectors_per_block) * ic->tag_size + extra_space,
sb               1667 drivers/md/dm-integrity.c 			unsigned wanted_tag_size = bio_sectors(bio) >> ic->sb->log2_sectors_per_block;
sb               1878 drivers/md/dm-integrity.c 						   (sector_t)ic->free_sectors << ic->sb->log2_sectors_per_block);
sb               1885 drivers/md/dm-integrity.c 			range_sectors = dio->range.n_sectors >> ic->sb->log2_sectors_per_block;
sb               2009 drivers/md/dm-integrity.c 		if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING) &&
sb               2010 drivers/md/dm-integrity.c 		    dio->range.logical_sector + dio->range.n_sectors > le64_to_cpu(ic->sb->recalc_sector))
sb               2201 drivers/md/dm-integrity.c 				if (area2 != area || offset2 != offset + ((k - j) << ic->sb->log2_sectors_per_block))
sb               2210 drivers/md/dm-integrity.c 			io->range.n_sectors = (k - j) << ic->sb->log2_sectors_per_block;
sb               2259 drivers/md/dm-integrity.c 					integrity_sector_checksum(ic, sec + ((l - j) << ic->sb->log2_sectors_per_block),
sb               2274 drivers/md/dm-integrity.c 			copy_from_journal(ic, i, j << ic->sb->log2_sectors_per_block,
sb               2275 drivers/md/dm-integrity.c 					  (k - j) << ic->sb->log2_sectors_per_block,
sb               2356 drivers/md/dm-integrity.c 	DEBUG_print("start recalculation... (position %llx)\n", le64_to_cpu(ic->sb->recalc_sector));
sb               2365 drivers/md/dm-integrity.c 	range.logical_sector = le64_to_cpu(ic->sb->recalc_sector);
sb               2377 drivers/md/dm-integrity.c 		range.n_sectors = min(range.n_sectors, ((sector_t)1U << ic->sb->log2_interleave_sectors) - (unsigned)offset);
sb               2450 drivers/md/dm-integrity.c 	ic->sb->recalc_sector = cpu_to_le64(range.logical_sector + range.n_sectors);
sb               2537 drivers/md/dm-integrity.c 	if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING)) {
sb               2538 drivers/md/dm-integrity.c 		limit = le64_to_cpu(ic->sb->recalc_sector)
sb               2539 drivers/md/dm-integrity.c 			>> (ic->sb->log2_sectors_per_block + ic->log2_blocks_per_bitmap_bit)
sb               2540 drivers/md/dm-integrity.c 			<< (ic->sb->log2_sectors_per_block + ic->log2_blocks_per_bitmap_bit);
sb               2811 drivers/md/dm-integrity.c 		ic->sb->flags &= ~cpu_to_le32(SB_FLAG_DIRTY_BITMAP);
sb               2829 drivers/md/dm-integrity.c 	if (ic->sb->flags & cpu_to_le32(SB_FLAG_DIRTY_BITMAP)) {
sb               2834 drivers/md/dm-integrity.c 			if (ic->sb->log2_blocks_per_bitmap_bit == ic->log2_blocks_per_bitmap_bit) {
sb               2839 drivers/md/dm-integrity.c 					ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
sb               2840 drivers/md/dm-integrity.c 					ic->sb->recalc_sector = cpu_to_le64(0);
sb               2844 drivers/md/dm-integrity.c 					    ic->sb->log2_blocks_per_bitmap_bit, ic->log2_blocks_per_bitmap_bit);
sb               2845 drivers/md/dm-integrity.c 				ic->sb->log2_blocks_per_bitmap_bit = ic->log2_blocks_per_bitmap_bit;
sb               2851 drivers/md/dm-integrity.c 				ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
sb               2852 drivers/md/dm-integrity.c 				ic->sb->recalc_sector = cpu_to_le64(0);
sb               2855 drivers/md/dm-integrity.c 			if (!(ic->sb->log2_blocks_per_bitmap_bit == ic->log2_blocks_per_bitmap_bit &&
sb               2857 drivers/md/dm-integrity.c 				ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
sb               2858 drivers/md/dm-integrity.c 				ic->sb->recalc_sector = cpu_to_le64(0);
sb               2862 drivers/md/dm-integrity.c 			ic->sb->flags &= ~cpu_to_le32(SB_FLAG_DIRTY_BITMAP);
sb               2870 drivers/md/dm-integrity.c 			ic->sb->flags |= cpu_to_le32(SB_FLAG_DIRTY_BITMAP);
sb               2871 drivers/md/dm-integrity.c 			ic->sb->log2_blocks_per_bitmap_bit = ic->log2_blocks_per_bitmap_bit;
sb               2879 drivers/md/dm-integrity.c 			if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING) &&
sb               2880 drivers/md/dm-integrity.c 			    le64_to_cpu(ic->sb->recalc_sector) < ic->provided_data_sectors) {
sb               2881 drivers/md/dm-integrity.c 				block_bitmap_op(ic, ic->journal, le64_to_cpu(ic->sb->recalc_sector),
sb               2882 drivers/md/dm-integrity.c 						ic->provided_data_sectors - le64_to_cpu(ic->sb->recalc_sector), BITMAP_OP_SET);
sb               2883 drivers/md/dm-integrity.c 				block_bitmap_op(ic, ic->recalc_bitmap, le64_to_cpu(ic->sb->recalc_sector),
sb               2884 drivers/md/dm-integrity.c 						ic->provided_data_sectors - le64_to_cpu(ic->sb->recalc_sector), BITMAP_OP_SET);
sb               2885 drivers/md/dm-integrity.c 				block_bitmap_op(ic, ic->may_write_bitmap, le64_to_cpu(ic->sb->recalc_sector),
sb               2886 drivers/md/dm-integrity.c 						ic->provided_data_sectors - le64_to_cpu(ic->sb->recalc_sector), BITMAP_OP_SET);
sb               2893 drivers/md/dm-integrity.c 	DEBUG_print("testing recalc: %x\n", ic->sb->flags);
sb               2894 drivers/md/dm-integrity.c 	if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING)) {
sb               2895 drivers/md/dm-integrity.c 		__u64 recalc_pos = le64_to_cpu(ic->sb->recalc_sector);
sb               2900 drivers/md/dm-integrity.c 			ic->sb->recalc_sector = cpu_to_le64(ic->provided_data_sectors);
sb               2928 drivers/md/dm-integrity.c 		if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
sb               2929 drivers/md/dm-integrity.c 			DMEMIT(" %llu", (unsigned long long)le64_to_cpu(ic->sb->recalc_sector));
sb               2941 drivers/md/dm-integrity.c 		arg_count += !!(ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING));
sb               2955 drivers/md/dm-integrity.c 		if (ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))
sb               2958 drivers/md/dm-integrity.c 		DMEMIT(" interleave_sectors:%u", 1U << ic->sb->log2_interleave_sectors);
sb               3011 drivers/md/dm-integrity.c 	ic->journal_sections = le32_to_cpu(ic->sb->journal_sections);
sb               3015 drivers/md/dm-integrity.c 	if (ic->sb->flags & cpu_to_le32(SB_FLAG_HAVE_JOURNAL_MAC))
sb               3019 drivers/md/dm-integrity.c 	ic->journal_section_sectors = (ic->journal_section_entries << ic->sb->log2_sectors_per_block) + JOURNAL_BLOCK_SECTORS;
sb               3036 drivers/md/dm-integrity.c 		ic->metadata_run = roundup((__u64)ic->tag_size << (ic->sb->log2_interleave_sectors - ic->sb->log2_sectors_per_block),
sb               3048 drivers/md/dm-integrity.c 		__u64 meta_size = (ic->provided_data_sectors >> ic->sb->log2_sectors_per_block) * ic->tag_size;
sb               3067 drivers/md/dm-integrity.c 	memset(ic->sb, 0, SB_SECTORS << SECTOR_SHIFT);
sb               3068 drivers/md/dm-integrity.c 	memcpy(ic->sb->magic, SB_MAGIC, 8);
sb               3069 drivers/md/dm-integrity.c 	ic->sb->integrity_tag_size = cpu_to_le16(ic->tag_size);
sb               3070 drivers/md/dm-integrity.c 	ic->sb->log2_sectors_per_block = __ffs(ic->sectors_per_block);
sb               3072 drivers/md/dm-integrity.c 		ic->sb->flags |= cpu_to_le32(SB_FLAG_HAVE_JOURNAL_MAC);
sb               3080 drivers/md/dm-integrity.c 		ic->sb->journal_sections = cpu_to_le32(journal_sections);
sb               3083 drivers/md/dm-integrity.c 		ic->sb->log2_interleave_sectors = __fls(interleave_sectors);
sb               3084 drivers/md/dm-integrity.c 		ic->sb->log2_interleave_sectors = max((__u8)MIN_LOG2_INTERLEAVE_SECTORS, ic->sb->log2_interleave_sectors);
sb               3085 drivers/md/dm-integrity.c 		ic->sb->log2_interleave_sectors = min((__u8)MAX_LOG2_INTERLEAVE_SECTORS, ic->sb->log2_interleave_sectors);
sb               3098 drivers/md/dm-integrity.c 		ic->sb->log2_interleave_sectors = 0;
sb               3103 drivers/md/dm-integrity.c 		ic->sb->journal_sections = cpu_to_le32(0);
sb               3105 drivers/md/dm-integrity.c 			__u32 prev_journal_sections = le32_to_cpu(ic->sb->journal_sections);
sb               3109 drivers/md/dm-integrity.c 			ic->sb->journal_sections = cpu_to_le32(test_journal_sections);
sb               3111 drivers/md/dm-integrity.c 				ic->sb->journal_sections = cpu_to_le32(prev_journal_sections);
sb               3114 drivers/md/dm-integrity.c 		if (!le32_to_cpu(ic->sb->journal_sections)) {
sb               3123 drivers/md/dm-integrity.c 	ic->sb->provided_data_sectors = cpu_to_le64(ic->provided_data_sectors);
sb               3139 drivers/md/dm-integrity.c 	bi.interval_exp = ic->sb->log2_sectors_per_block + SECTOR_SHIFT;
sb               3839 drivers/md/dm-integrity.c 	ic->sb = alloc_pages_exact(SB_SECTORS << SECTOR_SHIFT, GFP_KERNEL);
sb               3840 drivers/md/dm-integrity.c 	if (!ic->sb) {
sb               3852 drivers/md/dm-integrity.c 	if (memcmp(ic->sb->magic, SB_MAGIC, 8)) {
sb               3854 drivers/md/dm-integrity.c 			if (memchr_inv(ic->sb, 0, SB_SECTORS << SECTOR_SHIFT)) {
sb               3870 drivers/md/dm-integrity.c 	if (!ic->sb->version || ic->sb->version > SB_VERSION_3) {
sb               3875 drivers/md/dm-integrity.c 	if (le16_to_cpu(ic->sb->integrity_tag_size) != ic->tag_size) {
sb               3880 drivers/md/dm-integrity.c 	if (ic->sb->log2_sectors_per_block != __ffs(ic->sectors_per_block)) {
sb               3885 drivers/md/dm-integrity.c 	if (!le32_to_cpu(ic->sb->journal_sections)) {
sb               3892 drivers/md/dm-integrity.c 		if (ic->sb->log2_interleave_sectors < MIN_LOG2_INTERLEAVE_SECTORS ||
sb               3893 drivers/md/dm-integrity.c 		    ic->sb->log2_interleave_sectors > MAX_LOG2_INTERLEAVE_SECTORS) {
sb               3899 drivers/md/dm-integrity.c 		if (ic->sb->log2_interleave_sectors) {
sb               3905 drivers/md/dm-integrity.c 	ic->provided_data_sectors = le64_to_cpu(ic->sb->provided_data_sectors);
sb               3906 drivers/md/dm-integrity.c 	if (ic->provided_data_sectors != le64_to_cpu(ic->sb->provided_data_sectors)) {
sb               3912 drivers/md/dm-integrity.c 	if (!!(ic->sb->flags & cpu_to_le32(SB_FLAG_HAVE_JOURNAL_MAC)) != !!ic->journal_mac_alg.alg_string) {
sb               3933 drivers/md/dm-integrity.c 	if (log2_sectors_per_bitmap_bit < ic->sb->log2_sectors_per_block)
sb               3934 drivers/md/dm-integrity.c 		log2_sectors_per_bitmap_bit = ic->sb->log2_sectors_per_block;
sb               3942 drivers/md/dm-integrity.c 	log2_blocks_per_bitmap_bit = log2_sectors_per_bitmap_bit - ic->sb->log2_sectors_per_block;
sb               3945 drivers/md/dm-integrity.c 		ic->sb->log2_blocks_per_bitmap_bit = log2_blocks_per_bitmap_bit;
sb               3947 drivers/md/dm-integrity.c 	n_bitmap_bits = ((ic->provided_data_sectors >> ic->sb->log2_sectors_per_block)
sb               3967 drivers/md/dm-integrity.c 	DEBUG_print("	integrity_tag_size %u\n", le16_to_cpu(ic->sb->integrity_tag_size));
sb               3972 drivers/md/dm-integrity.c 	DEBUG_print("	journal_sections %u\n", (unsigned)le32_to_cpu(ic->sb->journal_sections));
sb               3974 drivers/md/dm-integrity.c 	DEBUG_print("	log2_interleave_sectors %d\n", ic->sb->log2_interleave_sectors);
sb               3984 drivers/md/dm-integrity.c 	if (ic->recalculate_flag && !(ic->sb->flags & cpu_to_le32(SB_FLAG_RECALCULATING))) {
sb               3985 drivers/md/dm-integrity.c 		ic->sb->flags |= cpu_to_le32(SB_FLAG_RECALCULATING);
sb               3986 drivers/md/dm-integrity.c 		ic->sb->recalc_sector = cpu_to_le64(0);
sb               4003 drivers/md/dm-integrity.c 		ic->recalc_tags = kvmalloc_array(RECALC_SECTORS >> ic->sb->log2_sectors_per_block,
sb               4085 drivers/md/dm-integrity.c 		r = dm_set_target_max_io_len(ti, 1U << ic->sb->log2_interleave_sectors);
sb               4167 drivers/md/dm-integrity.c 	if (ic->sb)
sb               4168 drivers/md/dm-integrity.c 		free_pages_exact(ic->sb, SB_SECTORS << SECTOR_SHIFT);
sb               2069 drivers/md/dm-raid.c static void sb_retrieve_failed_devices(struct dm_raid_superblock *sb, uint64_t *failed_devices)
sb               2071 drivers/md/dm-raid.c 	failed_devices[0] = le64_to_cpu(sb->failed_devices);
sb               2072 drivers/md/dm-raid.c 	memset(failed_devices + 1, 0, sizeof(sb->extended_failed_devices));
sb               2074 drivers/md/dm-raid.c 	if (le32_to_cpu(sb->compat_features) & FEATURE_FLAG_SUPPORTS_V190) {
sb               2075 drivers/md/dm-raid.c 		int i = ARRAY_SIZE(sb->extended_failed_devices);
sb               2078 drivers/md/dm-raid.c 			failed_devices[i+1] = le64_to_cpu(sb->extended_failed_devices[i]);
sb               2082 drivers/md/dm-raid.c static void sb_update_failed_devices(struct dm_raid_superblock *sb, uint64_t *failed_devices)
sb               2084 drivers/md/dm-raid.c 	int i = ARRAY_SIZE(sb->extended_failed_devices);
sb               2086 drivers/md/dm-raid.c 	sb->failed_devices = cpu_to_le64(failed_devices[0]);
sb               2088 drivers/md/dm-raid.c 		sb->extended_failed_devices[i] = cpu_to_le64(failed_devices[i+1]);
sb               2101 drivers/md/dm-raid.c 	struct dm_raid_superblock *sb;
sb               2110 drivers/md/dm-raid.c 	sb = page_address(rdev->sb_page);
sb               2112 drivers/md/dm-raid.c 	sb_retrieve_failed_devices(sb, failed_devices);
sb               2121 drivers/md/dm-raid.c 		sb_update_failed_devices(sb, failed_devices);
sb               2123 drivers/md/dm-raid.c 	sb->magic = cpu_to_le32(DM_RAID_MAGIC);
sb               2124 drivers/md/dm-raid.c 	sb->compat_features = cpu_to_le32(FEATURE_FLAG_SUPPORTS_V190);
sb               2126 drivers/md/dm-raid.c 	sb->num_devices = cpu_to_le32(mddev->raid_disks);
sb               2127 drivers/md/dm-raid.c 	sb->array_position = cpu_to_le32(rdev->raid_disk);
sb               2129 drivers/md/dm-raid.c 	sb->events = cpu_to_le64(mddev->events);
sb               2131 drivers/md/dm-raid.c 	sb->disk_recovery_offset = cpu_to_le64(rdev->recovery_offset);
sb               2132 drivers/md/dm-raid.c 	sb->array_resync_offset = cpu_to_le64(mddev->recovery_cp);
sb               2134 drivers/md/dm-raid.c 	sb->level = cpu_to_le32(mddev->level);
sb               2135 drivers/md/dm-raid.c 	sb->layout = cpu_to_le32(mddev->layout);
sb               2136 drivers/md/dm-raid.c 	sb->stripe_sectors = cpu_to_le32(mddev->chunk_sectors);
sb               2143 drivers/md/dm-raid.c 	sb->new_level = cpu_to_le32(mddev->new_level);
sb               2144 drivers/md/dm-raid.c 	sb->new_layout = cpu_to_le32(mddev->new_layout);
sb               2145 drivers/md/dm-raid.c 	sb->new_stripe_sectors = cpu_to_le32(mddev->new_chunk_sectors);
sb               2147 drivers/md/dm-raid.c 	sb->delta_disks = cpu_to_le32(mddev->delta_disks);
sb               2150 drivers/md/dm-raid.c 	sb->reshape_position = cpu_to_le64(mddev->reshape_position);
sb               2151 drivers/md/dm-raid.c 	if (le64_to_cpu(sb->reshape_position) != MaxSector) {
sb               2153 drivers/md/dm-raid.c 		sb->flags |= cpu_to_le32(SB_FLAG_RESHAPE_ACTIVE);
sb               2156 drivers/md/dm-raid.c 			sb->flags |= cpu_to_le32(SB_FLAG_RESHAPE_BACKWARDS);
sb               2159 drivers/md/dm-raid.c 		sb->flags &= ~(cpu_to_le32(SB_FLAG_RESHAPE_ACTIVE|SB_FLAG_RESHAPE_BACKWARDS));
sb               2162 drivers/md/dm-raid.c 	sb->array_sectors = cpu_to_le64(mddev->array_sectors);
sb               2163 drivers/md/dm-raid.c 	sb->data_offset = cpu_to_le64(rdev->data_offset);
sb               2164 drivers/md/dm-raid.c 	sb->new_data_offset = cpu_to_le64(rdev->new_data_offset);
sb               2165 drivers/md/dm-raid.c 	sb->sectors = cpu_to_le64(rdev->sectors);
sb               2166 drivers/md/dm-raid.c 	sb->incompat_features = cpu_to_le32(0);
sb               2169 drivers/md/dm-raid.c 	memset(sb + 1, 0, rdev->sb_size - sizeof(*sb));
sb               2183 drivers/md/dm-raid.c 	struct dm_raid_superblock *sb;
sb               2191 drivers/md/dm-raid.c 	sb = page_address(rdev->sb_page);
sb               2198 drivers/md/dm-raid.c 	if ((sb->magic != cpu_to_le32(DM_RAID_MAGIC)) ||
sb               2203 drivers/md/dm-raid.c 		sb->compat_features = cpu_to_le32(FEATURE_FLAG_SUPPORTS_V190);
sb               2215 drivers/md/dm-raid.c 	events_sb = le64_to_cpu(sb->events);
sb               2230 drivers/md/dm-raid.c 	struct dm_raid_superblock *sb;
sb               2235 drivers/md/dm-raid.c 	sb = page_address(rdev->sb_page);
sb               2236 drivers/md/dm-raid.c 	events_sb = le64_to_cpu(sb->events);
sb               2245 drivers/md/dm-raid.c 	mddev->raid_disks = le32_to_cpu(sb->num_devices);
sb               2246 drivers/md/dm-raid.c 	mddev->level = le32_to_cpu(sb->level);
sb               2247 drivers/md/dm-raid.c 	mddev->layout = le32_to_cpu(sb->layout);
sb               2248 drivers/md/dm-raid.c 	mddev->chunk_sectors = le32_to_cpu(sb->stripe_sectors);
sb               2254 drivers/md/dm-raid.c 	if (le32_to_cpu(sb->compat_features) & FEATURE_FLAG_SUPPORTS_V190) {
sb               2256 drivers/md/dm-raid.c 		mddev->new_level = le32_to_cpu(sb->new_level);
sb               2257 drivers/md/dm-raid.c 		mddev->new_layout = le32_to_cpu(sb->new_layout);
sb               2258 drivers/md/dm-raid.c 		mddev->new_chunk_sectors = le32_to_cpu(sb->new_stripe_sectors);
sb               2259 drivers/md/dm-raid.c 		mddev->delta_disks = le32_to_cpu(sb->delta_disks);
sb               2260 drivers/md/dm-raid.c 		mddev->array_sectors = le64_to_cpu(sb->array_sectors);
sb               2263 drivers/md/dm-raid.c 		if (le32_to_cpu(sb->flags) & SB_FLAG_RESHAPE_ACTIVE) {
sb               2270 drivers/md/dm-raid.c 			    (!mddev->delta_disks && (le32_to_cpu(sb->flags) & SB_FLAG_RESHAPE_BACKWARDS)))
sb               2275 drivers/md/dm-raid.c 			mddev->reshape_position = le64_to_cpu(sb->reshape_position);
sb               2301 drivers/md/dm-raid.c 					      le32_to_cpu(sb->layout), mddev->new_layout);
sb               2324 drivers/md/dm-raid.c 		mddev->recovery_cp = le64_to_cpu(sb->array_resync_offset);
sb               2399 drivers/md/dm-raid.c 	sb_retrieve_failed_devices(sb, failed_devices);
sb               2452 drivers/md/dm-raid.c 	struct dm_raid_superblock *sb;
sb               2457 drivers/md/dm-raid.c 	sb = page_address(rdev->sb_page);
sb               2466 drivers/md/dm-raid.c 	if (le32_to_cpu(sb->compat_features) &&
sb               2467 drivers/md/dm-raid.c 	    le32_to_cpu(sb->compat_features) != FEATURE_FLAG_SUPPORTS_V190) {
sb               2472 drivers/md/dm-raid.c 	if (sb->incompat_features) {
sb               2487 drivers/md/dm-raid.c 		if (le32_to_cpu(sb->compat_features) & FEATURE_FLAG_SUPPORTS_V190)
sb               2488 drivers/md/dm-raid.c 			rdev->sectors = le64_to_cpu(sb->sectors);
sb               2490 drivers/md/dm-raid.c 		rdev->recovery_offset = le64_to_cpu(sb->disk_recovery_offset);
sb               2511 drivers/md/dm-raid.c 	rdev->data_offset = le64_to_cpu(sb->data_offset);
sb               2512 drivers/md/dm-raid.c 	rdev->new_data_offset = le64_to_cpu(sb->new_data_offset);
sb               3777 drivers/md/dm-raid.c 	struct dm_raid_superblock *sb;
sb               3843 drivers/md/dm-raid.c 			sb = page_address(r->sb_page);
sb               3844 drivers/md/dm-raid.c 			sb_retrieve_failed_devices(sb, failed_devices);
sb               3849 drivers/md/dm-raid.c 			sb_update_failed_devices(sb, failed_devices);
sb                351 drivers/md/dm-writecache.c 	return &sb(wc)->entries[e->index];
sb                739 drivers/md/dm-writecache.c 	pmem_assign(sb(wc)->seq_count, cpu_to_le64(wc->seq_count));
sb                740 drivers/md/dm-writecache.c 	writecache_flush_region(wc, &sb(wc)->seq_count, sizeof sb(wc)->seq_count);
sb                932 drivers/md/dm-writecache.c 	r = memcpy_mcsafe(&sb_seq_count, &sb(wc)->seq_count, sizeof(uint64_t));
sb               1796 drivers/md/dm-writecache.c 	for (b = 0; b < ARRAY_SIZE(sb(wc)->padding); b++)
sb               1797 drivers/md/dm-writecache.c 		pmem_assign(sb(wc)->padding[b], cpu_to_le64(0));
sb               1798 drivers/md/dm-writecache.c 	pmem_assign(sb(wc)->version, cpu_to_le32(MEMORY_SUPERBLOCK_VERSION));
sb               1799 drivers/md/dm-writecache.c 	pmem_assign(sb(wc)->block_size, cpu_to_le32(wc->block_size));
sb               1800 drivers/md/dm-writecache.c 	pmem_assign(sb(wc)->n_blocks, cpu_to_le64(wc->n_blocks));
sb               1801 drivers/md/dm-writecache.c 	pmem_assign(sb(wc)->seq_count, cpu_to_le64(0));
sb               1810 drivers/md/dm-writecache.c 	pmem_assign(sb(wc)->magic, cpu_to_le32(MEMORY_SUPERBLOCK_MAGIC));
sb               1811 drivers/md/dm-writecache.c 	writecache_flush_region(wc, &sb(wc)->magic, sizeof sb(wc)->magic);
sb               2172 drivers/md/dm-writecache.c 	r = memcpy_mcsafe(&s, sb(wc), sizeof(struct wc_memory_superblock));
sb               2183 drivers/md/dm-writecache.c 		r = memcpy_mcsafe(&s, sb(wc), sizeof(struct wc_memory_superblock));
sb               2211 drivers/md/dm-writecache.c 	if (offset / sizeof(struct wc_memory_entry) != le64_to_cpu(sb(wc)->n_blocks)) {
sb               2232 drivers/md/dm-writecache.c 	wc->block_start = (char *)sb(wc) + offset;
sb                126 drivers/md/dm-zoned-metadata.c 	struct dmz_super	*sb;
sb                154 drivers/md/dm-zoned-metadata.c 	struct dmz_sb		sb[2];
sb                404 drivers/md/dm-zoned-metadata.c 	sector_t block = zmd->sb[zmd->mblk_primary].block + mblk_no;
sb                582 drivers/md/dm-zoned-metadata.c 	sector_t block = zmd->sb[set].block + mblk->no;
sb                640 drivers/md/dm-zoned-metadata.c 	sector_t block = zmd->sb[set].block;
sb                641 drivers/md/dm-zoned-metadata.c 	struct dmz_mblock *mblk = zmd->sb[set].mblk;
sb                642 drivers/md/dm-zoned-metadata.c 	struct dmz_super *sb = zmd->sb[set].sb;
sb                646 drivers/md/dm-zoned-metadata.c 	sb->magic = cpu_to_le32(DMZ_MAGIC);
sb                647 drivers/md/dm-zoned-metadata.c 	sb->version = cpu_to_le32(DMZ_META_VER);
sb                649 drivers/md/dm-zoned-metadata.c 	sb->gen = cpu_to_le64(sb_gen);
sb                651 drivers/md/dm-zoned-metadata.c 	sb->sb_block = cpu_to_le64(block);
sb                652 drivers/md/dm-zoned-metadata.c 	sb->nr_meta_blocks = cpu_to_le32(zmd->nr_meta_blocks);
sb                653 drivers/md/dm-zoned-metadata.c 	sb->nr_reserved_seq = cpu_to_le32(zmd->nr_reserved_seq);
sb                654 drivers/md/dm-zoned-metadata.c 	sb->nr_chunks = cpu_to_le32(zmd->nr_chunks);
sb                656 drivers/md/dm-zoned-metadata.c 	sb->nr_map_blocks = cpu_to_le32(zmd->nr_map_blocks);
sb                657 drivers/md/dm-zoned-metadata.c 	sb->nr_bitmap_blocks = cpu_to_le32(zmd->nr_bitmap_blocks);
sb                659 drivers/md/dm-zoned-metadata.c 	sb->crc = 0;
sb                660 drivers/md/dm-zoned-metadata.c 	sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, DMZ_BLOCK_SIZE));
sb                832 drivers/md/dm-zoned-metadata.c static int dmz_check_sb(struct dmz_metadata *zmd, struct dmz_super *sb)
sb                839 drivers/md/dm-zoned-metadata.c 	gen = le64_to_cpu(sb->gen);
sb                840 drivers/md/dm-zoned-metadata.c 	stored_crc = le32_to_cpu(sb->crc);
sb                841 drivers/md/dm-zoned-metadata.c 	sb->crc = 0;
sb                842 drivers/md/dm-zoned-metadata.c 	crc = crc32_le(gen, (unsigned char *)sb, DMZ_BLOCK_SIZE);
sb                849 drivers/md/dm-zoned-metadata.c 	if (le32_to_cpu(sb->magic) != DMZ_MAGIC) {
sb                851 drivers/md/dm-zoned-metadata.c 			    DMZ_MAGIC, le32_to_cpu(sb->magic));
sb                855 drivers/md/dm-zoned-metadata.c 	if (le32_to_cpu(sb->version) != DMZ_META_VER) {
sb                857 drivers/md/dm-zoned-metadata.c 			    DMZ_META_VER, le32_to_cpu(sb->version));
sb                861 drivers/md/dm-zoned-metadata.c 	nr_meta_zones = (le32_to_cpu(sb->nr_meta_blocks) + dev->zone_nr_blocks - 1)
sb                869 drivers/md/dm-zoned-metadata.c 	if (!le32_to_cpu(sb->nr_reserved_seq) ||
sb                870 drivers/md/dm-zoned-metadata.c 	    le32_to_cpu(sb->nr_reserved_seq) >= (zmd->nr_useable_zones - nr_meta_zones)) {
sb                876 drivers/md/dm-zoned-metadata.c 		(nr_meta_zones * 2 + le32_to_cpu(sb->nr_reserved_seq));
sb                877 drivers/md/dm-zoned-metadata.c 	if (le32_to_cpu(sb->nr_chunks) > nr_data_zones) {
sb                879 drivers/md/dm-zoned-metadata.c 			    le32_to_cpu(sb->nr_chunks), nr_data_zones);
sb                884 drivers/md/dm-zoned-metadata.c 	zmd->nr_meta_blocks = le32_to_cpu(sb->nr_meta_blocks);
sb                885 drivers/md/dm-zoned-metadata.c 	zmd->nr_reserved_seq = le32_to_cpu(sb->nr_reserved_seq);
sb                886 drivers/md/dm-zoned-metadata.c 	zmd->nr_chunks = le32_to_cpu(sb->nr_chunks);
sb                887 drivers/md/dm-zoned-metadata.c 	zmd->nr_map_blocks = le32_to_cpu(sb->nr_map_blocks);
sb                888 drivers/md/dm-zoned-metadata.c 	zmd->nr_bitmap_blocks = le32_to_cpu(sb->nr_bitmap_blocks);
sb                900 drivers/md/dm-zoned-metadata.c 	return dmz_rdwr_block(zmd, REQ_OP_READ, zmd->sb[set].block,
sb                901 drivers/md/dm-zoned-metadata.c 			      zmd->sb[set].mblk->page);
sb                920 drivers/md/dm-zoned-metadata.c 	zmd->sb[1].mblk = mblk;
sb                921 drivers/md/dm-zoned-metadata.c 	zmd->sb[1].sb = mblk->data;
sb                924 drivers/md/dm-zoned-metadata.c 	zmd->sb[1].block = zmd->sb[0].block + zone_nr_blocks;
sb                928 drivers/md/dm-zoned-metadata.c 		if (le32_to_cpu(zmd->sb[1].sb->magic) == DMZ_MAGIC)
sb                930 drivers/md/dm-zoned-metadata.c 		zmd->sb[1].block += zone_nr_blocks;
sb                934 drivers/md/dm-zoned-metadata.c 	zmd->sb[1].mblk = NULL;
sb                952 drivers/md/dm-zoned-metadata.c 	zmd->sb[set].mblk = mblk;
sb                953 drivers/md/dm-zoned-metadata.c 	zmd->sb[set].sb = mblk->data;
sb                959 drivers/md/dm-zoned-metadata.c 		zmd->sb[set].mblk = NULL;
sb                978 drivers/md/dm-zoned-metadata.c 		zmd->sb[0].block = dmz_start_block(zmd, zmd->sb_zone);
sb                980 drivers/md/dm-zoned-metadata.c 		zmd->sb[1].block = zmd->sb[0].block +
sb                991 drivers/md/dm-zoned-metadata.c 				     zmd->sb[src_set].block + i, page);
sb                995 drivers/md/dm-zoned-metadata.c 				     zmd->sb[dst_set].block + i, page);
sb               1001 drivers/md/dm-zoned-metadata.c 	if (!zmd->sb[dst_set].mblk) {
sb               1002 drivers/md/dm-zoned-metadata.c 		zmd->sb[dst_set].mblk = dmz_alloc_mblock(zmd, 0);
sb               1003 drivers/md/dm-zoned-metadata.c 		if (!zmd->sb[dst_set].mblk) {
sb               1007 drivers/md/dm-zoned-metadata.c 		zmd->sb[dst_set].sb = zmd->sb[dst_set].mblk->data;
sb               1027 drivers/md/dm-zoned-metadata.c 	zmd->sb[0].block = dmz_start_block(zmd, zmd->sb_zone);
sb               1034 drivers/md/dm-zoned-metadata.c 	ret = dmz_check_sb(zmd, zmd->sb[0].sb);
sb               1039 drivers/md/dm-zoned-metadata.c 		zmd->sb[1].block = zmd->sb[0].block +
sb               1050 drivers/md/dm-zoned-metadata.c 	ret = dmz_check_sb(zmd, zmd->sb[1].sb);
sb               1061 drivers/md/dm-zoned-metadata.c 		sb_gen[0] = le64_to_cpu(zmd->sb[0].sb->gen);
sb               1066 drivers/md/dm-zoned-metadata.c 		sb_gen[1] = le64_to_cpu(zmd->sb[1].sb->gen);
sb               2354 drivers/md/dm-zoned-metadata.c 		if (zmd->sb[i].mblk) {
sb               2355 drivers/md/dm-zoned-metadata.c 			dmz_free_mblock(zmd, zmd->sb[i].mblk);
sb               2356 drivers/md/dm-zoned-metadata.c 			zmd->sb[i].mblk = NULL;
sb                449 drivers/md/md-bitmap.c 	bitmap_super_t *sb;
sb                457 drivers/md/md-bitmap.c 	sb = kmap_atomic(bitmap->storage.sb_page);
sb                458 drivers/md/md-bitmap.c 	sb->events = cpu_to_le64(bitmap->mddev->events);
sb                462 drivers/md/md-bitmap.c 	sb->events_cleared = cpu_to_le64(bitmap->events_cleared);
sb                467 drivers/md/md-bitmap.c 	sb->state = cpu_to_le32(bitmap->flags & ~BIT(BITMAP_WRITE_ERROR));
sb                469 drivers/md/md-bitmap.c 	sb->daemon_sleep = cpu_to_le32(bitmap->mddev->bitmap_info.daemon_sleep/HZ);
sb                470 drivers/md/md-bitmap.c 	sb->write_behind = cpu_to_le32(bitmap->mddev->bitmap_info.max_write_behind);
sb                472 drivers/md/md-bitmap.c 	sb->sync_size = cpu_to_le64(bitmap->mddev->resync_max_sectors);
sb                473 drivers/md/md-bitmap.c 	sb->chunksize = cpu_to_le32(bitmap->mddev->bitmap_info.chunksize);
sb                474 drivers/md/md-bitmap.c 	sb->nodes = cpu_to_le32(bitmap->mddev->bitmap_info.nodes);
sb                475 drivers/md/md-bitmap.c 	sb->sectors_reserved = cpu_to_le32(bitmap->mddev->
sb                477 drivers/md/md-bitmap.c 	kunmap_atomic(sb);
sb                485 drivers/md/md-bitmap.c 	bitmap_super_t *sb;
sb                489 drivers/md/md-bitmap.c 	sb = kmap_atomic(bitmap->storage.sb_page);
sb                491 drivers/md/md-bitmap.c 	pr_debug("         magic: %08x\n", le32_to_cpu(sb->magic));
sb                492 drivers/md/md-bitmap.c 	pr_debug("       version: %d\n", le32_to_cpu(sb->version));
sb                494 drivers/md/md-bitmap.c 		 le32_to_cpu(*(__le32 *)(sb->uuid+0)),
sb                495 drivers/md/md-bitmap.c 		 le32_to_cpu(*(__le32 *)(sb->uuid+4)),
sb                496 drivers/md/md-bitmap.c 		 le32_to_cpu(*(__le32 *)(sb->uuid+8)),
sb                497 drivers/md/md-bitmap.c 		 le32_to_cpu(*(__le32 *)(sb->uuid+12)));
sb                499 drivers/md/md-bitmap.c 		 (unsigned long long) le64_to_cpu(sb->events));
sb                501 drivers/md/md-bitmap.c 		 (unsigned long long) le64_to_cpu(sb->events_cleared));
sb                502 drivers/md/md-bitmap.c 	pr_debug("         state: %08x\n", le32_to_cpu(sb->state));
sb                503 drivers/md/md-bitmap.c 	pr_debug("     chunksize: %d B\n", le32_to_cpu(sb->chunksize));
sb                504 drivers/md/md-bitmap.c 	pr_debug("  daemon sleep: %ds\n", le32_to_cpu(sb->daemon_sleep));
sb                506 drivers/md/md-bitmap.c 		 (unsigned long long)le64_to_cpu(sb->sync_size)/2);
sb                507 drivers/md/md-bitmap.c 	pr_debug("max write behind: %d\n", le32_to_cpu(sb->write_behind));
sb                508 drivers/md/md-bitmap.c 	kunmap_atomic(sb);
sb                524 drivers/md/md-bitmap.c 	bitmap_super_t *sb;
sb                532 drivers/md/md-bitmap.c 	sb = kmap_atomic(bitmap->storage.sb_page);
sb                534 drivers/md/md-bitmap.c 	sb->magic = cpu_to_le32(BITMAP_MAGIC);
sb                535 drivers/md/md-bitmap.c 	sb->version = cpu_to_le32(BITMAP_MAJOR_HI);
sb                540 drivers/md/md-bitmap.c 		kunmap_atomic(sb);
sb                544 drivers/md/md-bitmap.c 	sb->chunksize = cpu_to_le32(chunksize);
sb                551 drivers/md/md-bitmap.c 	sb->daemon_sleep = cpu_to_le32(daemon_sleep);
sb                561 drivers/md/md-bitmap.c 	sb->write_behind = cpu_to_le32(write_behind);
sb                565 drivers/md/md-bitmap.c 	sb->sync_size = cpu_to_le64(bitmap->mddev->resync_max_sectors);
sb                567 drivers/md/md-bitmap.c 	memcpy(sb->uuid, bitmap->mddev->uuid, 16);
sb                570 drivers/md/md-bitmap.c 	sb->state = cpu_to_le32(bitmap->flags);
sb                572 drivers/md/md-bitmap.c 	sb->events_cleared = cpu_to_le64(bitmap->mddev->events);
sb                575 drivers/md/md-bitmap.c 	kunmap_atomic(sb);
sb                584 drivers/md/md-bitmap.c 	bitmap_super_t *sb;
sb                639 drivers/md/md-bitmap.c 	sb = kmap_atomic(sb_page);
sb                641 drivers/md/md-bitmap.c 	chunksize = le32_to_cpu(sb->chunksize);
sb                642 drivers/md/md-bitmap.c 	daemon_sleep = le32_to_cpu(sb->daemon_sleep) * HZ;
sb                643 drivers/md/md-bitmap.c 	write_behind = le32_to_cpu(sb->write_behind);
sb                644 drivers/md/md-bitmap.c 	sectors_reserved = le32_to_cpu(sb->sectors_reserved);
sb                648 drivers/md/md-bitmap.c 	if (sb->version == cpu_to_le32(BITMAP_MAJOR_CLUSTERED)) {
sb                649 drivers/md/md-bitmap.c 		nodes = le32_to_cpu(sb->nodes);
sb                651 drivers/md/md-bitmap.c 				sb->cluster_name, 64);
sb                655 drivers/md/md-bitmap.c 	if (sb->magic != cpu_to_le32(BITMAP_MAGIC))
sb                657 drivers/md/md-bitmap.c 	else if (le32_to_cpu(sb->version) < BITMAP_MAJOR_LO ||
sb                658 drivers/md/md-bitmap.c 		 le32_to_cpu(sb->version) > BITMAP_MAJOR_CLUSTERED)
sb                675 drivers/md/md-bitmap.c 	sb->sync_size = cpu_to_le64(bitmap->mddev->resync_max_sectors);
sb                682 drivers/md/md-bitmap.c 		if (memcmp(sb->uuid, bitmap->mddev->uuid, 16)) {
sb                687 drivers/md/md-bitmap.c 		events = le64_to_cpu(sb->events);
sb                697 drivers/md/md-bitmap.c 	bitmap->flags |= le32_to_cpu(sb->state);
sb                698 drivers/md/md-bitmap.c 	if (le32_to_cpu(sb->version) == BITMAP_MAJOR_HOSTENDIAN)
sb                700 drivers/md/md-bitmap.c 	bitmap->events_cleared = le64_to_cpu(sb->events_cleared);
sb                701 drivers/md/md-bitmap.c 	strlcpy(bitmap->mddev->bitmap_info.cluster_name, sb->cluster_name, 64);
sb                705 drivers/md/md-bitmap.c 	kunmap_atomic(sb);
sb               1276 drivers/md/md-bitmap.c 		bitmap_super_t *sb;
sb               1279 drivers/md/md-bitmap.c 			sb = kmap_atomic(bitmap->storage.sb_page);
sb               1280 drivers/md/md-bitmap.c 			sb->events_cleared =
sb               1282 drivers/md/md-bitmap.c 			kunmap_atomic(sb);
sb                447 drivers/md/md-cluster.c 	struct mdp_superblock_1 *sb = NULL;
sb                464 drivers/md/md-cluster.c 			sb = page_address(rdev->sb_page);
sb                489 drivers/md/md-cluster.c 	if (sb && !(le32_to_cpu(sb->feature_map) & MD_FEATURE_RESHAPE_ACTIVE))
sb               1183 drivers/md/md-cluster.c 	bitmap_super_t *sb;
sb               1191 drivers/md/md-cluster.c 	sb = kmap_atomic(bitmap->storage.sb_page);
sb               1192 drivers/md/md-cluster.c 	my_sync_size = sb->sync_size;
sb               1193 drivers/md/md-cluster.c 	kunmap_atomic(sb);
sb               1222 drivers/md/md-cluster.c 		sb = kmap_atomic(bitmap->storage.sb_page);
sb               1224 drivers/md/md-cluster.c 			sync_size = sb->sync_size;
sb               1225 drivers/md/md-cluster.c 		else if (sync_size != sb->sync_size) {
sb               1226 drivers/md/md-cluster.c 			kunmap_atomic(sb);
sb               1230 drivers/md/md-cluster.c 		kunmap_atomic(sb);
sb               1401 drivers/md/md-cluster.c 	struct mdp_superblock_1 *sb = page_address(rdev->sb_page);
sb               1402 drivers/md/md-cluster.c 	char *uuid = sb->device_uuid;
sb               1006 drivers/md/md.c static unsigned int calc_sb_csum(mdp_super_t *sb)
sb               1009 drivers/md/md.c 	u32 *sb32 = (u32*)sb;
sb               1013 drivers/md/md.c 	disk_csum = sb->sb_csum;
sb               1014 drivers/md/md.c 	sb->sb_csum = 0;
sb               1029 drivers/md/md.c 	sb->sb_csum = md_csum_fold(disk_csum);
sb               1031 drivers/md/md.c 	sb->sb_csum = disk_csum;
sb               1106 drivers/md/md.c 	mdp_super_t *sb;
sb               1125 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               1127 drivers/md/md.c 	if (sb->md_magic != MD_SB_MAGIC) {
sb               1132 drivers/md/md.c 	if (sb->major_version != 0 ||
sb               1133 drivers/md/md.c 	    sb->minor_version < 90 ||
sb               1134 drivers/md/md.c 	    sb->minor_version > 91) {
sb               1136 drivers/md/md.c 			sb->major_version, sb->minor_version, b);
sb               1140 drivers/md/md.c 	if (sb->raid_disks <= 0)
sb               1143 drivers/md/md.c 	if (md_csum_fold(calc_sb_csum(sb)) != md_csum_fold(sb->sb_csum)) {
sb               1148 drivers/md/md.c 	rdev->preferred_minor = sb->md_minor;
sb               1154 drivers/md/md.c 	if (sb->level == LEVEL_MULTIPATH)
sb               1157 drivers/md/md.c 		rdev->desc_nr = sb->this_disk.number;
sb               1160 drivers/md/md.c 	if (sb->level == LEVEL_MULTIPATH ||
sb               1163 drivers/md/md.c 		 sb->disks[rdev->desc_nr].state &
sb               1175 drivers/md/md.c 		if (!md_uuid_equal(refsb, sb)) {
sb               1180 drivers/md/md.c 		if (!md_sb_equal(refsb, sb)) {
sb               1185 drivers/md/md.c 		ev1 = md_event(sb);
sb               1198 drivers/md/md.c 	if ((u64)rdev->sectors >= (2ULL << 32) && sb->level >= 1)
sb               1201 drivers/md/md.c 	if (rdev->sectors < ((sector_t)sb->size) * 2 && sb->level >= 1)
sb               1215 drivers/md/md.c 	mdp_super_t *sb = page_address(rdev->sb_page);
sb               1216 drivers/md/md.c 	__u64 ev1 = md_event(sb);
sb               1226 drivers/md/md.c 		mddev->minor_version = sb->minor_version;
sb               1227 drivers/md/md.c 		mddev->patch_version = sb->patch_version;
sb               1229 drivers/md/md.c 		mddev->chunk_sectors = sb->chunk_size >> 9;
sb               1230 drivers/md/md.c 		mddev->ctime = sb->ctime;
sb               1231 drivers/md/md.c 		mddev->utime = sb->utime;
sb               1232 drivers/md/md.c 		mddev->level = sb->level;
sb               1234 drivers/md/md.c 		mddev->layout = sb->layout;
sb               1235 drivers/md/md.c 		mddev->raid_disks = sb->raid_disks;
sb               1236 drivers/md/md.c 		mddev->dev_sectors = ((sector_t)sb->size) * 2;
sb               1246 drivers/md/md.c 			mddev->reshape_position = sb->reshape_position;
sb               1247 drivers/md/md.c 			mddev->delta_disks = sb->delta_disks;
sb               1248 drivers/md/md.c 			mddev->new_level = sb->new_level;
sb               1249 drivers/md/md.c 			mddev->new_layout = sb->new_layout;
sb               1250 drivers/md/md.c 			mddev->new_chunk_sectors = sb->new_chunk >> 9;
sb               1263 drivers/md/md.c 		if (sb->state & (1<<MD_SB_CLEAN))
sb               1266 drivers/md/md.c 			if (sb->events_hi == sb->cp_events_hi &&
sb               1267 drivers/md/md.c 				sb->events_lo == sb->cp_events_lo) {
sb               1268 drivers/md/md.c 				mddev->recovery_cp = sb->recovery_cp;
sb               1273 drivers/md/md.c 		memcpy(mddev->uuid+0, &sb->set_uuid0, 4);
sb               1274 drivers/md/md.c 		memcpy(mddev->uuid+4, &sb->set_uuid1, 4);
sb               1275 drivers/md/md.c 		memcpy(mddev->uuid+8, &sb->set_uuid2, 4);
sb               1276 drivers/md/md.c 		memcpy(mddev->uuid+12,&sb->set_uuid3, 4);
sb               1280 drivers/md/md.c 		if (sb->state & (1<<MD_SB_BITMAP_PRESENT) &&
sb               1292 drivers/md/md.c 		if (sb->disks[rdev->desc_nr].state & (
sb               1311 drivers/md/md.c 		desc = sb->disks + rdev->desc_nr;
sb               1343 drivers/md/md.c 	mdp_super_t *sb;
sb               1362 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               1364 drivers/md/md.c 	memset(sb, 0, sizeof(*sb));
sb               1366 drivers/md/md.c 	sb->md_magic = MD_SB_MAGIC;
sb               1367 drivers/md/md.c 	sb->major_version = mddev->major_version;
sb               1368 drivers/md/md.c 	sb->patch_version = mddev->patch_version;
sb               1369 drivers/md/md.c 	sb->gvalid_words  = 0; /* ignored */
sb               1370 drivers/md/md.c 	memcpy(&sb->set_uuid0, mddev->uuid+0, 4);
sb               1371 drivers/md/md.c 	memcpy(&sb->set_uuid1, mddev->uuid+4, 4);
sb               1372 drivers/md/md.c 	memcpy(&sb->set_uuid2, mddev->uuid+8, 4);
sb               1373 drivers/md/md.c 	memcpy(&sb->set_uuid3, mddev->uuid+12,4);
sb               1375 drivers/md/md.c 	sb->ctime = clamp_t(time64_t, mddev->ctime, 0, U32_MAX);
sb               1376 drivers/md/md.c 	sb->level = mddev->level;
sb               1377 drivers/md/md.c 	sb->size = mddev->dev_sectors / 2;
sb               1378 drivers/md/md.c 	sb->raid_disks = mddev->raid_disks;
sb               1379 drivers/md/md.c 	sb->md_minor = mddev->md_minor;
sb               1380 drivers/md/md.c 	sb->not_persistent = 0;
sb               1381 drivers/md/md.c 	sb->utime = clamp_t(time64_t, mddev->utime, 0, U32_MAX);
sb               1382 drivers/md/md.c 	sb->state = 0;
sb               1383 drivers/md/md.c 	sb->events_hi = (mddev->events>>32);
sb               1384 drivers/md/md.c 	sb->events_lo = (u32)mddev->events;
sb               1387 drivers/md/md.c 		sb->minor_version = 90;
sb               1389 drivers/md/md.c 		sb->minor_version = 91;
sb               1390 drivers/md/md.c 		sb->reshape_position = mddev->reshape_position;
sb               1391 drivers/md/md.c 		sb->new_level = mddev->new_level;
sb               1392 drivers/md/md.c 		sb->delta_disks = mddev->delta_disks;
sb               1393 drivers/md/md.c 		sb->new_layout = mddev->new_layout;
sb               1394 drivers/md/md.c 		sb->new_chunk = mddev->new_chunk_sectors << 9;
sb               1396 drivers/md/md.c 	mddev->minor_version = sb->minor_version;
sb               1399 drivers/md/md.c 		sb->recovery_cp = mddev->recovery_cp;
sb               1400 drivers/md/md.c 		sb->cp_events_hi = (mddev->events>>32);
sb               1401 drivers/md/md.c 		sb->cp_events_lo = (u32)mddev->events;
sb               1403 drivers/md/md.c 			sb->state = (1<< MD_SB_CLEAN);
sb               1405 drivers/md/md.c 		sb->recovery_cp = 0;
sb               1407 drivers/md/md.c 	sb->layout = mddev->layout;
sb               1408 drivers/md/md.c 	sb->chunk_size = mddev->chunk_sectors << 9;
sb               1411 drivers/md/md.c 		sb->state |= (1<<MD_SB_BITMAP_PRESENT);
sb               1413 drivers/md/md.c 	sb->disks[0].state = (1<<MD_DISK_REMOVED);
sb               1420 drivers/md/md.c 		    sb->minor_version >= 91)
sb               1434 drivers/md/md.c 		d = &sb->disks[rdev2->desc_nr];
sb               1463 drivers/md/md.c 		mdp_disk_t *d = &sb->disks[i];
sb               1472 drivers/md/md.c 	sb->nr_disks = nr_disks;
sb               1473 drivers/md/md.c 	sb->active_disks = active;
sb               1474 drivers/md/md.c 	sb->working_disks = working;
sb               1475 drivers/md/md.c 	sb->failed_disks = failed;
sb               1476 drivers/md/md.c 	sb->spare_disks = spare;
sb               1478 drivers/md/md.c 	sb->this_disk = sb->disks[rdev->desc_nr];
sb               1479 drivers/md/md.c 	sb->sb_csum = calc_sb_csum(sb);
sb               1518 drivers/md/md.c static __le32 calc_sb_1_csum(struct mdp_superblock_1 *sb)
sb               1523 drivers/md/md.c 	int size = 256 + le32_to_cpu(sb->max_dev)*2;
sb               1524 drivers/md/md.c 	__le32 *isuper = (__le32*)sb;
sb               1526 drivers/md/md.c 	disk_csum = sb->sb_csum;
sb               1527 drivers/md/md.c 	sb->sb_csum = 0;
sb               1536 drivers/md/md.c 	sb->sb_csum = disk_csum;
sb               1542 drivers/md/md.c 	struct mdp_superblock_1 *sb;
sb               1581 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               1583 drivers/md/md.c 	if (sb->magic != cpu_to_le32(MD_SB_MAGIC) ||
sb               1584 drivers/md/md.c 	    sb->major_version != cpu_to_le32(1) ||
sb               1585 drivers/md/md.c 	    le32_to_cpu(sb->max_dev) > (4096-256)/2 ||
sb               1586 drivers/md/md.c 	    le64_to_cpu(sb->super_offset) != rdev->sb_start ||
sb               1587 drivers/md/md.c 	    (le32_to_cpu(sb->feature_map) & ~MD_FEATURE_ALL) != 0)
sb               1590 drivers/md/md.c 	if (calc_sb_1_csum(sb) != sb->sb_csum) {
sb               1595 drivers/md/md.c 	if (le64_to_cpu(sb->data_size) < 10) {
sb               1600 drivers/md/md.c 	if (sb->pad0 ||
sb               1601 drivers/md/md.c 	    sb->pad3[0] ||
sb               1602 drivers/md/md.c 	    memcmp(sb->pad3, sb->pad3+1, sizeof(sb->pad3) - sizeof(sb->pad3[1])))
sb               1607 drivers/md/md.c 	rdev->data_offset = le64_to_cpu(sb->data_offset);
sb               1609 drivers/md/md.c 	if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_RESHAPE_ACTIVE) &&
sb               1610 drivers/md/md.c 	    (le32_to_cpu(sb->feature_map) & MD_FEATURE_NEW_OFFSET))
sb               1611 drivers/md/md.c 		rdev->new_data_offset += (s32)le32_to_cpu(sb->new_offset);
sb               1612 drivers/md/md.c 	atomic_set(&rdev->corrected_errors, le32_to_cpu(sb->cnt_corrected_read));
sb               1614 drivers/md/md.c 	rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256;
sb               1626 drivers/md/md.c 	if (sb->level == cpu_to_le32(LEVEL_MULTIPATH))
sb               1629 drivers/md/md.c 		rdev->desc_nr = le32_to_cpu(sb->dev_number);
sb               1636 drivers/md/md.c 	if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_BAD_BLOCKS) &&
sb               1645 drivers/md/md.c 		int sectors = le16_to_cpu(sb->bblog_size);
sb               1648 drivers/md/md.c 		offset = le32_to_cpu(sb->bblog_offset);
sb               1656 drivers/md/md.c 		rdev->badblocks.shift = sb->bblog_shift;
sb               1661 drivers/md/md.c 			sector <<= sb->bblog_shift;
sb               1662 drivers/md/md.c 			count <<= sb->bblog_shift;
sb               1668 drivers/md/md.c 	} else if (sb->bblog_offset != 0)
sb               1671 drivers/md/md.c 	if ((le32_to_cpu(sb->feature_map) &
sb               1673 drivers/md/md.c 		rdev->ppl.offset = (__s16)le16_to_cpu(sb->ppl.offset);
sb               1674 drivers/md/md.c 		rdev->ppl.size = le16_to_cpu(sb->ppl.size);
sb               1678 drivers/md/md.c 	if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_RAID0_LAYOUT) &&
sb               1679 drivers/md/md.c 	    sb->level != 0)
sb               1683 drivers/md/md.c 	if (sb->level == cpu_to_le32(LEVEL_MULTIPATH) ||
sb               1685 drivers/md/md.c 		rdev->desc_nr < le32_to_cpu(sb->max_dev) &&
sb               1686 drivers/md/md.c 		(le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX ||
sb               1687 drivers/md/md.c 		 le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL)))
sb               1699 drivers/md/md.c 		if (memcmp(sb->set_uuid, refsb->set_uuid, 16) != 0 ||
sb               1700 drivers/md/md.c 		    sb->level != refsb->level ||
sb               1701 drivers/md/md.c 		    sb->layout != refsb->layout ||
sb               1702 drivers/md/md.c 		    sb->chunksize != refsb->chunksize) {
sb               1708 drivers/md/md.c 		ev1 = le64_to_cpu(sb->events);
sb               1721 drivers/md/md.c 	if (sectors < le64_to_cpu(sb->data_size))
sb               1723 drivers/md/md.c 	rdev->sectors = le64_to_cpu(sb->data_size);
sb               1729 drivers/md/md.c 	struct mdp_superblock_1 *sb = page_address(rdev->sb_page);
sb               1730 drivers/md/md.c 	__u64 ev1 = le64_to_cpu(sb->events);
sb               1742 drivers/md/md.c 		mddev->chunk_sectors = le32_to_cpu(sb->chunksize);
sb               1743 drivers/md/md.c 		mddev->ctime = le64_to_cpu(sb->ctime);
sb               1744 drivers/md/md.c 		mddev->utime = le64_to_cpu(sb->utime);
sb               1745 drivers/md/md.c 		mddev->level = le32_to_cpu(sb->level);
sb               1747 drivers/md/md.c 		mddev->layout = le32_to_cpu(sb->layout);
sb               1748 drivers/md/md.c 		mddev->raid_disks = le32_to_cpu(sb->raid_disks);
sb               1749 drivers/md/md.c 		mddev->dev_sectors = le64_to_cpu(sb->size);
sb               1760 drivers/md/md.c 		mddev->recovery_cp = le64_to_cpu(sb->resync_offset);
sb               1761 drivers/md/md.c 		memcpy(mddev->uuid, sb->set_uuid, 16);
sb               1765 drivers/md/md.c 		if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_BITMAP_OFFSET) &&
sb               1768 drivers/md/md.c 				(__s32)le32_to_cpu(sb->bitmap_offset);
sb               1784 drivers/md/md.c 		if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_RESHAPE_ACTIVE)) {
sb               1785 drivers/md/md.c 			mddev->reshape_position = le64_to_cpu(sb->reshape_position);
sb               1786 drivers/md/md.c 			mddev->delta_disks = le32_to_cpu(sb->delta_disks);
sb               1787 drivers/md/md.c 			mddev->new_level = le32_to_cpu(sb->new_level);
sb               1788 drivers/md/md.c 			mddev->new_layout = le32_to_cpu(sb->new_layout);
sb               1789 drivers/md/md.c 			mddev->new_chunk_sectors = le32_to_cpu(sb->new_chunk);
sb               1792 drivers/md/md.c 			     (le32_to_cpu(sb->feature_map)
sb               1804 drivers/md/md.c 		    !(le32_to_cpu(sb->feature_map) & MD_FEATURE_RAID0_LAYOUT))
sb               1807 drivers/md/md.c 		if (le32_to_cpu(sb->feature_map) & MD_FEATURE_JOURNAL)
sb               1810 drivers/md/md.c 		if (le32_to_cpu(sb->feature_map) &
sb               1812 drivers/md/md.c 			if (le32_to_cpu(sb->feature_map) &
sb               1815 drivers/md/md.c 			if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_PPL) &&
sb               1816 drivers/md/md.c 			    (le32_to_cpu(sb->feature_map) &
sb               1826 drivers/md/md.c 		    rdev->desc_nr < le32_to_cpu(sb->max_dev) &&
sb               1827 drivers/md/md.c 		    (le16_to_cpu(sb->dev_roles[rdev->desc_nr]) < MD_DISK_ROLE_MAX ||
sb               1828 drivers/md/md.c 		     le16_to_cpu(sb->dev_roles[rdev->desc_nr]) == MD_DISK_ROLE_JOURNAL))
sb               1847 drivers/md/md.c 		    rdev->desc_nr >= le32_to_cpu(sb->max_dev)) {
sb               1851 drivers/md/md.c 			role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]);
sb               1859 drivers/md/md.c 			if (!(le32_to_cpu(sb->feature_map) & MD_FEATURE_JOURNAL)) {
sb               1865 drivers/md/md.c 			rdev->journal_tail = le64_to_cpu(sb->journal_tail);
sb               1870 drivers/md/md.c 			if ((le32_to_cpu(sb->feature_map) &
sb               1872 drivers/md/md.c 				rdev->recovery_offset = le64_to_cpu(sb->recovery_offset);
sb               1873 drivers/md/md.c 				if (!(le32_to_cpu(sb->feature_map) &
sb               1888 drivers/md/md.c 		if (sb->devflags & WriteMostly1)
sb               1890 drivers/md/md.c 		if (sb->devflags & FailFast1)
sb               1892 drivers/md/md.c 		if (le32_to_cpu(sb->feature_map) & MD_FEATURE_REPLACEMENT)
sb               1902 drivers/md/md.c 	struct mdp_superblock_1 *sb;
sb               1907 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               1909 drivers/md/md.c 	sb->feature_map = 0;
sb               1910 drivers/md/md.c 	sb->pad0 = 0;
sb               1911 drivers/md/md.c 	sb->recovery_offset = cpu_to_le64(0);
sb               1912 drivers/md/md.c 	memset(sb->pad3, 0, sizeof(sb->pad3));
sb               1914 drivers/md/md.c 	sb->utime = cpu_to_le64((__u64)mddev->utime);
sb               1915 drivers/md/md.c 	sb->events = cpu_to_le64(mddev->events);
sb               1917 drivers/md/md.c 		sb->resync_offset = cpu_to_le64(mddev->recovery_cp);
sb               1919 drivers/md/md.c 		sb->resync_offset = cpu_to_le64(MaxSector);
sb               1921 drivers/md/md.c 		sb->resync_offset = cpu_to_le64(0);
sb               1923 drivers/md/md.c 	sb->cnt_corrected_read = cpu_to_le32(atomic_read(&rdev->corrected_errors));
sb               1925 drivers/md/md.c 	sb->raid_disks = cpu_to_le32(mddev->raid_disks);
sb               1926 drivers/md/md.c 	sb->size = cpu_to_le64(mddev->dev_sectors);
sb               1927 drivers/md/md.c 	sb->chunksize = cpu_to_le32(mddev->chunk_sectors);
sb               1928 drivers/md/md.c 	sb->level = cpu_to_le32(mddev->level);
sb               1929 drivers/md/md.c 	sb->layout = cpu_to_le32(mddev->layout);
sb               1931 drivers/md/md.c 		sb->devflags |= FailFast1;
sb               1933 drivers/md/md.c 		sb->devflags &= ~FailFast1;
sb               1936 drivers/md/md.c 		sb->devflags |= WriteMostly1;
sb               1938 drivers/md/md.c 		sb->devflags &= ~WriteMostly1;
sb               1939 drivers/md/md.c 	sb->data_offset = cpu_to_le64(rdev->data_offset);
sb               1940 drivers/md/md.c 	sb->data_size = cpu_to_le64(rdev->sectors);
sb               1943 drivers/md/md.c 		sb->bitmap_offset = cpu_to_le32((__u32)mddev->bitmap_info.offset);
sb               1944 drivers/md/md.c 		sb->feature_map = cpu_to_le32(MD_FEATURE_BITMAP_OFFSET);
sb               1949 drivers/md/md.c 		sb->feature_map |=
sb               1951 drivers/md/md.c 		sb->recovery_offset =
sb               1954 drivers/md/md.c 			sb->feature_map |=
sb               1959 drivers/md/md.c 		sb->journal_tail = cpu_to_le64(rdev->journal_tail);
sb               1961 drivers/md/md.c 		sb->feature_map |=
sb               1965 drivers/md/md.c 		sb->feature_map |= cpu_to_le32(MD_FEATURE_RESHAPE_ACTIVE);
sb               1966 drivers/md/md.c 		sb->reshape_position = cpu_to_le64(mddev->reshape_position);
sb               1967 drivers/md/md.c 		sb->new_layout = cpu_to_le32(mddev->new_layout);
sb               1968 drivers/md/md.c 		sb->delta_disks = cpu_to_le32(mddev->delta_disks);
sb               1969 drivers/md/md.c 		sb->new_level = cpu_to_le32(mddev->new_level);
sb               1970 drivers/md/md.c 		sb->new_chunk = cpu_to_le32(mddev->new_chunk_sectors);
sb               1973 drivers/md/md.c 			sb->feature_map
sb               1976 drivers/md/md.c 			sb->feature_map
sb               1978 drivers/md/md.c 			sb->new_offset = cpu_to_le32((__u32)(rdev->new_data_offset
sb               1984 drivers/md/md.c 		sb->feature_map |= cpu_to_le32(MD_FEATURE_CLUSTERED);
sb               1988 drivers/md/md.c 	else if (sb->bblog_offset == 0)
sb               1995 drivers/md/md.c 		sb->feature_map |= cpu_to_le32(MD_FEATURE_BAD_BLOCKS);
sb               2015 drivers/md/md.c 				      (int)le32_to_cpu(sb->bblog_offset));
sb               2016 drivers/md/md.c 			bb->size = le16_to_cpu(sb->bblog_size);
sb               2025 drivers/md/md.c 	if (max_dev > le32_to_cpu(sb->max_dev)) {
sb               2027 drivers/md/md.c 		sb->max_dev = cpu_to_le32(max_dev);
sb               2033 drivers/md/md.c 		max_dev = le32_to_cpu(sb->max_dev);
sb               2036 drivers/md/md.c 		sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE);
sb               2039 drivers/md/md.c 		sb->feature_map |= cpu_to_le32(MD_FEATURE_JOURNAL);
sb               2043 drivers/md/md.c 			sb->feature_map |=
sb               2046 drivers/md/md.c 			sb->feature_map |= cpu_to_le32(MD_FEATURE_PPL);
sb               2047 drivers/md/md.c 		sb->ppl.offset = cpu_to_le16(rdev->ppl.offset);
sb               2048 drivers/md/md.c 		sb->ppl.size = cpu_to_le16(rdev->ppl.size);
sb               2054 drivers/md/md.c 			sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_FAULTY);
sb               2056 drivers/md/md.c 			sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk);
sb               2058 drivers/md/md.c 			sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_JOURNAL);
sb               2060 drivers/md/md.c 			sb->dev_roles[i] = cpu_to_le16(rdev2->raid_disk);
sb               2062 drivers/md/md.c 			sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_SPARE);
sb               2065 drivers/md/md.c 	sb->sb_csum = calc_sb_1_csum(sb);
sb               2071 drivers/md/md.c 	struct mdp_superblock_1 *sb;
sb               2096 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               2097 drivers/md/md.c 	sb->data_size = cpu_to_le64(num_sectors);
sb               2098 drivers/md/md.c 	sb->super_offset = cpu_to_le64(rdev->sb_start);
sb               2099 drivers/md/md.c 	sb->sb_csum = calc_sb_1_csum(sb);
sb               2511 drivers/md/md.c 	struct mdp_superblock_1 *sb;
sb               2523 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               2526 drivers/md/md.c 		role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]);
sb               2537 drivers/md/md.c 	if ((mddev->dev_sectors != le64_to_cpu(sb->size)) ||
sb               2538 drivers/md/md.c 	    (mddev->reshape_position != le64_to_cpu(sb->reshape_position)) ||
sb               2539 drivers/md/md.c 	    (mddev->layout != le32_to_cpu(sb->layout)) ||
sb               2540 drivers/md/md.c 	    (mddev->raid_disks != le32_to_cpu(sb->raid_disks)) ||
sb               2541 drivers/md/md.c 	    (mddev->chunk_sectors != le32_to_cpu(sb->chunksize)))
sb               9358 drivers/md/md.c 	struct mdp_superblock_1 *sb = page_address(rdev->sb_page);
sb               9367 drivers/md/md.c 	if (mddev->dev_sectors != le64_to_cpu(sb->size)) {
sb               9368 drivers/md/md.c 		ret = mddev->pers->resize(mddev, le64_to_cpu(sb->size));
sb               9381 drivers/md/md.c 		role = le16_to_cpu(sb->dev_roles[rdev2->desc_nr]);
sb               9398 drivers/md/md.c 			    !(le32_to_cpu(sb->feature_map) &
sb               9421 drivers/md/md.c 	if (mddev->raid_disks != le32_to_cpu(sb->raid_disks))
sb               9422 drivers/md/md.c 		update_raid_disks(mddev, le32_to_cpu(sb->raid_disks));
sb               9429 drivers/md/md.c 	    (le32_to_cpu(sb->feature_map) & MD_FEATURE_RESHAPE_ACTIVE)) {
sb               9434 drivers/md/md.c 		mddev->reshape_position = le64_to_cpu(sb->reshape_position);
sb               9441 drivers/md/md.c 		   !(le32_to_cpu(sb->feature_map) & MD_FEATURE_RESHAPE_ACTIVE)) {
sb               9449 drivers/md/md.c 	mddev->events = le64_to_cpu(sb->events);
sb               9456 drivers/md/md.c 	struct mdp_superblock_1 *sb;
sb               9479 drivers/md/md.c 	sb = page_address(rdev->sb_page);
sb               9484 drivers/md/md.c 	if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_RECOVERY_OFFSET))
sb               9485 drivers/md/md.c 		rdev->recovery_offset = le64_to_cpu(sb->recovery_offset);
sb               4259 drivers/md/raid10.c 		struct mdp_superblock_1 *sb = NULL;
sb               4276 drivers/md/raid10.c 				sb = page_address(rdev->sb_page);
sb               4284 drivers/md/raid10.c 		if ((sb && (le32_to_cpu(sb->feature_map) &
sb               4580 drivers/md/raid10.c 		struct mdp_superblock_1 *sb = NULL;
sb               4585 drivers/md/raid10.c 		sb = page_address(rdev->sb_page);
sb               4586 drivers/md/raid10.c 		if (sb) {
sb               4587 drivers/md/raid10.c 			sb_reshape_pos = le64_to_cpu(sb->reshape_position);
sb                 76 drivers/misc/ibmasm/ibmasmfs.c static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode);
sb                 77 drivers/misc/ibmasm/ibmasmfs.c static void ibmasmfs_create_files (struct super_block *sb);
sb                 78 drivers/misc/ibmasm/ibmasmfs.c static int ibmasmfs_fill_super(struct super_block *sb, struct fs_context *fc);
sb                110 drivers/misc/ibmasm/ibmasmfs.c static int ibmasmfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                114 drivers/misc/ibmasm/ibmasmfs.c 	sb->s_blocksize = PAGE_SIZE;
sb                115 drivers/misc/ibmasm/ibmasmfs.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                116 drivers/misc/ibmasm/ibmasmfs.c 	sb->s_magic = IBMASMFS_MAGIC;
sb                117 drivers/misc/ibmasm/ibmasmfs.c 	sb->s_op = &ibmasmfs_s_ops;
sb                118 drivers/misc/ibmasm/ibmasmfs.c 	sb->s_time_gran = 1;
sb                120 drivers/misc/ibmasm/ibmasmfs.c 	root = ibmasmfs_make_inode (sb, S_IFDIR | 0500);
sb                127 drivers/misc/ibmasm/ibmasmfs.c 	sb->s_root = d_make_root(root);
sb                128 drivers/misc/ibmasm/ibmasmfs.c 	if (!sb->s_root)
sb                131 drivers/misc/ibmasm/ibmasmfs.c 	ibmasmfs_create_files(sb);
sb                135 drivers/misc/ibmasm/ibmasmfs.c static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode)
sb                137 drivers/misc/ibmasm/ibmasmfs.c 	struct inode *ret = new_inode(sb);
sb                578 drivers/misc/ibmasm/ibmasmfs.c static void ibmasmfs_create_files (struct super_block *sb)
sb                587 drivers/misc/ibmasm/ibmasmfs.c 		dir = ibmasmfs_create_dir(sb->s_root, sp->dirname);
sb                 25 drivers/mtd/mtdsuper.c static int mtd_test_super(struct super_block *sb, struct fs_context *fc)
sb                 29 drivers/mtd/mtdsuper.c 	if (sb->s_mtd == fc->sget_key) {
sb                 36 drivers/mtd/mtdsuper.c 		 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name);
sb                 45 drivers/mtd/mtdsuper.c static int mtd_set_super(struct super_block *sb, struct fs_context *fc)
sb                 47 drivers/mtd/mtdsuper.c 	sb->s_mtd = fc->sget_key;
sb                 48 drivers/mtd/mtdsuper.c 	sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, sb->s_mtd->index);
sb                 49 drivers/mtd/mtdsuper.c 	sb->s_bdi = bdi_get(mtd_bdi);
sb                 61 drivers/mtd/mtdsuper.c 	struct super_block *sb;
sb                 65 drivers/mtd/mtdsuper.c 	sb = sget_fc(fc, mtd_test_super, mtd_set_super);
sb                 66 drivers/mtd/mtdsuper.c 	if (IS_ERR(sb))
sb                 67 drivers/mtd/mtdsuper.c 		return PTR_ERR(sb);
sb                 69 drivers/mtd/mtdsuper.c 	if (sb->s_root) {
sb                 79 drivers/mtd/mtdsuper.c 		ret = fill_super(sb, fc);
sb                 83 drivers/mtd/mtdsuper.c 		sb->s_flags |= SB_ACTIVE;
sb                 87 drivers/mtd/mtdsuper.c 	fc->root = dget(sb->s_root);
sb                 91 drivers/mtd/mtdsuper.c 	deactivate_locked_super(sb);
sb                119 drivers/mtd/mtdsuper.c 	      int (*fill_super)(struct super_block *sb,
sb                199 drivers/mtd/mtdsuper.c void kill_mtd_super(struct super_block *sb)
sb                201 drivers/mtd/mtdsuper.c 	generic_shutdown_super(sb);
sb                202 drivers/mtd/mtdsuper.c 	put_mtd_device(sb->s_mtd);
sb                203 drivers/mtd/mtdsuper.c 	sb->s_mtd = NULL;
sb                267 drivers/mtd/nand/raw/marvell_nand.c #define MARVELL_LAYOUT(ws, dc, ds, nc, fcc, db, sb, eb, ldb, lsb, leb)	\
sb                275 drivers/mtd/nand/raw/marvell_nand.c 		.spare_bytes = sb,					\
sb               4348 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	union host_hc_status_block *sb = &bnx2x_fp(bp, fp_index, status_blk);
sb               4355 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 		memset(sb, 0, sizeof(union host_hc_status_block));
sb               4360 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			BNX2X_PCI_FREE(sb->e2_sb,
sb               4365 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			BNX2X_PCI_FREE(sb->e1x_sb,
sb               4431 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			(__le16 *)status_blk.e2_sb->sb.index_values;
sb               4433 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			(__le16 *)status_blk.e2_sb->sb.running_index;
sb               4436 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			(__le16 *)status_blk.e1x_sb->sb.index_values;
sb               4438 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			(__le16 *)status_blk.e1x_sb->sb.running_index;
sb               4500 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	union host_hc_status_block *sb;
sb               4534 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	sb = &bnx2x_fp(bp, index, status_blk);
sb               4539 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			sb->e2_sb = BNX2X_PCI_ALLOC(&bnx2x_fp(bp, index, status_blk_mapping),
sb               4541 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			if (!sb->e2_sb)
sb               4544 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			sb->e1x_sb = BNX2X_PCI_ALLOC(&bnx2x_fp(bp, index, status_blk_mapping),
sb               4546 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 			if (!sb->e1x_sb)
sb               3210 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h 	struct hc_status_block_e1x sb;
sb               3227 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h 	struct hc_status_block_e2 sb;
sb               4799 drivers/net/ethernet/broadcom/cnic.c 		u32 sb = BNX2_L2CTX_L5_STATUSB_NUM(sb_id);
sb               4806 drivers/net/ethernet/broadcom/cnic.c 		cnic_ctx_wr(dev, kwq_cid_addr, L5_KRNLQ_HOST_QIDX, sb);
sb               4807 drivers/net/ethernet/broadcom/cnic.c 		cnic_ctx_wr(dev, kcq_cid_addr, L5_KRNLQ_HOST_QIDX, sb);
sb               4925 drivers/net/ethernet/broadcom/cnic.c 	struct host_sp_status_block *sb = cp->bnx2x_def_status_blk;
sb               4980 drivers/net/ethernet/broadcom/cnic.c 		&sb->sp_sb.index_values[HC_SP_INDEX_ETH_ISCSI_CQ_CONS];
sb               4993 drivers/net/ethernet/broadcom/cnic.c 	struct host_sp_status_block *sb = cp->bnx2x_def_status_blk;
sb               5047 drivers/net/ethernet/broadcom/cnic.c 		&sb->sp_sb.index_values[HC_SP_INDEX_ETH_ISCSI_RX_CQ_CONS];
sb               5062 drivers/net/ethernet/broadcom/cnic.c 		struct host_hc_status_block_e2 *sb = cp->status_blk.gen;
sb               5065 drivers/net/ethernet/broadcom/cnic.c 			&sb->sb.index_values[HC_INDEX_ISCSI_EQ_CONS];
sb               5067 drivers/net/ethernet/broadcom/cnic.c 			&sb->sb.running_index[SM_RX_ID];
sb               5069 drivers/net/ethernet/broadcom/cnic.c 		struct host_hc_status_block_e1x *sb = cp->status_blk.gen;
sb               5072 drivers/net/ethernet/broadcom/cnic.c 			&sb->sb.index_values[HC_INDEX_ISCSI_EQ_CONS];
sb               5074 drivers/net/ethernet/broadcom/cnic.c 			&sb->sb.running_index[SM_RX_ID];
sb               5078 drivers/net/ethernet/broadcom/cnic.c 		struct host_hc_status_block_e2 *sb = cp->status_blk.gen;
sb               5084 drivers/net/ethernet/broadcom/cnic.c 			&sb->sb.index_values[HC_INDEX_FCOE_EQ_CONS];
sb               5086 drivers/net/ethernet/broadcom/cnic.c 			&sb->sb.running_index[SM_RX_ID];
sb                772 drivers/net/ethernet/broadcom/sb1250-mac.c 			       struct sk_buff *sb)
sb                814 drivers/net/ethernet/broadcom/sb1250-mac.c 	if (sb == NULL) {
sb                824 drivers/net/ethernet/broadcom/sb1250-mac.c 		sb_new = sb;
sb                887 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbdma_add_txbuffer(struct sbmacdma *d, struct sk_buff *sb)
sb                916 drivers/net/ethernet/broadcom/sb1250-mac.c 	length = sb->len;
sb                925 drivers/net/ethernet/broadcom/sb1250-mac.c 	phys = virt_to_phys(sb->data);
sb                944 drivers/net/ethernet/broadcom/sb1250-mac.c 	d->sbdma_ctxtable[dsc-d->sbdma_dscrtable] = sb;
sb                979 drivers/net/ethernet/broadcom/sb1250-mac.c 	struct sk_buff *sb;
sb                982 drivers/net/ethernet/broadcom/sb1250-mac.c 		sb = d->sbdma_ctxtable[idx];
sb                983 drivers/net/ethernet/broadcom/sb1250-mac.c 		if (sb) {
sb                984 drivers/net/ethernet/broadcom/sb1250-mac.c 			dev_kfree_skb(sb);
sb               1059 drivers/net/ethernet/broadcom/sb1250-mac.c 	struct sk_buff *sb;
sb               1107 drivers/net/ethernet/broadcom/sb1250-mac.c 		sb = d->sbdma_ctxtable[curidx];
sb               1130 drivers/net/ethernet/broadcom/sb1250-mac.c 				sbdma_add_rcvbuffer(sc, d, sb);
sb               1139 drivers/net/ethernet/broadcom/sb1250-mac.c 				skb_put(sb,len);
sb               1146 drivers/net/ethernet/broadcom/sb1250-mac.c 				sb->protocol = eth_type_trans(sb,d->sbdma_eth->sbm_dev);
sb               1151 drivers/net/ethernet/broadcom/sb1250-mac.c 						sb->ip_summed = CHECKSUM_UNNECESSARY;
sb               1154 drivers/net/ethernet/broadcom/sb1250-mac.c 						skb_checksum_none_assert(sb);
sb               1157 drivers/net/ethernet/broadcom/sb1250-mac.c 				prefetch(sb->data);
sb               1158 drivers/net/ethernet/broadcom/sb1250-mac.c 				prefetch((const void *)(((char *)sb->data)+32));
sb               1160 drivers/net/ethernet/broadcom/sb1250-mac.c 					dropped = netif_receive_skb(sb);
sb               1162 drivers/net/ethernet/broadcom/sb1250-mac.c 					dropped = netif_rx(sb);
sb               1180 drivers/net/ethernet/broadcom/sb1250-mac.c 			sbdma_add_rcvbuffer(sc, d, sb);
sb               1224 drivers/net/ethernet/broadcom/sb1250-mac.c 	struct sk_buff *sb;
sb               1264 drivers/net/ethernet/broadcom/sb1250-mac.c 		sb = d->sbdma_ctxtable[curidx];
sb               1271 drivers/net/ethernet/broadcom/sb1250-mac.c 		dev->stats.tx_bytes += sb->len;
sb               1278 drivers/net/ethernet/broadcom/sb1250-mac.c 		dev_consume_skb_irq(sb);
sb                174 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h 	u32 sb;
sb               1751 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 		tid->sb = t4_read_reg(padap, LE_DB_SERVER_INDEX_A) / 4;
sb               1755 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 		tid->sb = t4_read_reg(padap, LE_DB_SRVR_START_INDEX_A);
sb               3133 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		unsigned int sb;
sb               3138 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 			sb = t4_read_reg(adap, LE_DB_SERVER_INDEX_A) / 4;
sb               3140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 			sb = t4_read_reg(adap, LE_DB_SRVR_START_INDEX_A);
sb               3142 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 		if (sb) {
sb               3144 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c 				   sb - 1, adap->tids.hash_base,
sb                761 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 		unsigned int sb;
sb                772 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 		sb = t4_read_reg(adapter, LE_DB_SRVR_START_INDEX_A);
sb                773 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 		for (i = 0; i < sb; i++) {
sb                176 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 	struct mlx5dr_ste_build *sb;
sb                183 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		sb = nic_matcher->ste_builder6;
sb                186 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		sb = nic_matcher->ste_builder4;
sb                221 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_general_purpose(&sb[idx++], &mask, inner, rx);
sb                224 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_register_0(&sb[idx++], &mask, inner, rx);
sb                227 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_register_1(&sb[idx++], &mask, inner, rx);
sb                232 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			ret = mlx5dr_ste_build_src_gvmi_qpn(&sb[idx++], &mask,
sb                240 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			ret = mlx5dr_ste_build_eth_l2_src_des(&sb[idx++], &mask,
sb                247 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l2_src(&sb[idx++], &mask, inner, rx);
sb                250 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l2_dst(&sb[idx++], &mask, inner, rx);
sb                254 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv6_dst(&sb[idx++], &mask,
sb                258 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv6_src(&sb[idx++], &mask,
sb                262 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_ipv6_l3_l4(&sb[idx++], &mask,
sb                266 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv4_5_tuple(&sb[idx++], &mask,
sb                270 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv4_misc(&sb[idx++], &mask,
sb                276 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_flex_parser_tnl(&sb[idx++], &mask,
sb                280 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l4_misc(&sb[idx++], &mask, inner, rx);
sb                283 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_mpls(&sb[idx++], &mask, inner, rx);
sb                286 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_flex_parser_0(&sb[idx++], &mask,
sb                294 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			ret = mlx5dr_ste_build_flex_parser_1(&sb[idx++],
sb                301 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_gre(&sb[idx++], &mask, inner, rx);
sb                312 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l2_tnl(&sb[idx++], &mask, inner, rx);
sb                316 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			ret = mlx5dr_ste_build_eth_l2_src_des(&sb[idx++],
sb                323 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l2_src(&sb[idx++], &mask, inner, rx);
sb                326 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l2_dst(&sb[idx++], &mask, inner, rx);
sb                330 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv6_dst(&sb[idx++], &mask,
sb                334 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv6_src(&sb[idx++], &mask,
sb                338 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_ipv6_l3_l4(&sb[idx++], &mask,
sb                342 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv4_5_tuple(&sb[idx++], &mask,
sb                346 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 				mlx5dr_ste_build_eth_l3_ipv4_misc(&sb[idx++], &mask,
sb                351 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_eth_l4_misc(&sb[idx++], &mask, inner, rx);
sb                354 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_mpls(&sb[idx++], &mask, inner, rx);
sb                357 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 			mlx5dr_ste_build_flex_parser_0(&sb[idx++], &mask, inner, rx);
sb                361 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_matcher.c 		mlx5dr_ste_build_empty_always_hit(&sb[idx++], rx);
sb                738 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_ste_build *sb;
sb                746 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb = nic_matcher->ste_builder;
sb                749 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				sb->lu_type,
sb                753 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		mlx5dr_ste_set_bit_mask(ste_arr, sb->bit_mask);
sb                755 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		ret = sb->ste_build_tag_func(value, sb, ste_arr);
sb                764 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			sb++;
sb                765 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			MLX5_SET(ste_general, ste_arr, next_lu_type, sb->lu_type);
sb                766 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 			MLX5_SET(ste_general, ste_arr, byte_mask, sb->byte_mask);
sb               1054 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					   struct mlx5dr_ste_build *sb,
sb               1057 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1100 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c int mlx5dr_ste_build_eth_l2_src_des(struct mlx5dr_ste_build *sb,
sb               1106 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	ret = dr_ste_build_eth_l2_src_des_bit_mask(mask, inner, sb->bit_mask);
sb               1110 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1111 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1112 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL2_SRC_DST, rx, inner);
sb               1113 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1114 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l2_src_des_tag;
sb               1131 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					    struct mlx5dr_ste_build *sb,
sb               1135 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1146 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l3_ipv6_dst(struct mlx5dr_ste_build *sb,
sb               1150 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l3_ipv6_dst_bit_mask(mask, inner, sb->bit_mask);
sb               1152 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1153 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1154 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL3_IPV6_DST, rx, inner);
sb               1155 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1156 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l3_ipv6_dst_tag;
sb               1171 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					    struct mlx5dr_ste_build *sb,
sb               1174 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1186 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l3_ipv6_src(struct mlx5dr_ste_build *sb,
sb               1190 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l3_ipv6_src_bit_mask(mask, inner, sb->bit_mask);
sb               1192 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1193 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1194 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL3_IPV6_SRC, rx, inner);
sb               1195 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1196 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l3_ipv6_src_tag;
sb               1233 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 						struct mlx5dr_ste_build *sb,
sb               1237 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1259 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l3_ipv4_5_tuple(struct mlx5dr_ste_build *sb,
sb               1263 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l3_ipv4_5_tuple_bit_mask(mask, inner, sb->bit_mask);
sb               1265 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1266 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1267 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL3_IPV4_5_TUPLE, rx, inner);
sb               1268 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1269 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l3_ipv4_5_tuple_tag;
sb               1398 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				       struct mlx5dr_ste_build *sb,
sb               1402 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1408 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	return dr_ste_build_eth_l2_src_or_dst_tag(value, sb->inner, hw_ste_p);
sb               1411 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l2_src(struct mlx5dr_ste_build *sb,
sb               1415 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l2_src_bit_mask(mask, inner, sb->bit_mask);
sb               1416 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1417 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1418 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL2_SRC, rx, inner);
sb               1419 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1420 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l2_src_tag;
sb               1435 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				       struct mlx5dr_ste_build *sb,
sb               1439 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1445 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	return dr_ste_build_eth_l2_src_or_dst_tag(value, sb->inner, hw_ste_p);
sb               1448 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l2_dst(struct mlx5dr_ste_build *sb,
sb               1452 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l2_dst_bit_mask(mask, inner, sb->bit_mask);
sb               1454 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1455 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1456 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL2_DST, rx, inner);
sb               1457 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1458 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l2_dst_tag;
sb               1490 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				       struct mlx5dr_ste_build *sb,
sb               1493 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1535 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l2_tnl(struct mlx5dr_ste_build *sb,
sb               1538 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l2_tnl_bit_mask(mask, inner, sb->bit_mask);
sb               1540 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1541 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1542 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_ETHL2_TUNNELING_I;
sb               1543 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1544 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l2_tnl_tag;
sb               1556 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					     struct mlx5dr_ste_build *sb,
sb               1560 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1568 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l3_ipv4_misc(struct mlx5dr_ste_build *sb,
sb               1572 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l3_ipv4_misc_bit_mask(mask, inner, sb->bit_mask);
sb               1574 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1575 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1576 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL3_IPV4_MISC, rx, inner);
sb               1577 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1578 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l3_ipv4_misc_tag;
sb               1603 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				       struct mlx5dr_ste_build *sb,
sb               1606 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_match_spec *spec = sb->inner ? &value->inner : &value->outer;
sb               1628 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_ipv6_l3_l4(struct mlx5dr_ste_build *sb,
sb               1632 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_ipv6_l3_l4_bit_mask(mask, inner, sb->bit_mask);
sb               1634 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1635 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1636 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL4, rx, inner);
sb               1637 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1638 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_ipv6_l3_l4_tag;
sb               1642 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					     struct mlx5dr_ste_build *sb,
sb               1648 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_empty_always_hit(struct mlx5dr_ste_build *sb, bool rx)
sb               1650 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1651 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_DONT_CARE;
sb               1652 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = 0;
sb               1653 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_empty_always_hit_tag;
sb               1668 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				 struct mlx5dr_ste_build *sb,
sb               1675 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (sb->inner)
sb               1683 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_mpls(struct mlx5dr_ste_build *sb,
sb               1687 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_mpls_bit_mask(mask, inner, sb->bit_mask);
sb               1689 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1690 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1691 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(MPLS_FIRST, rx, inner);
sb               1692 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1693 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_mpls_tag;
sb               1711 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				struct mlx5dr_ste_build *sb,
sb               1731 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_gre(struct mlx5dr_ste_build *sb,
sb               1734 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_gre_bit_mask(mask, inner, sb->bit_mask);
sb               1736 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1737 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1738 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_GRE;
sb               1739 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1740 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_gre_tag;
sb               1776 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					  struct mlx5dr_ste_build *sb,
sb               1811 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_flex_parser_0(struct mlx5dr_ste_build *sb,
sb               1815 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_flex_parser_0_bit_mask(mask, inner, sb->bit_mask);
sb               1817 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1818 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1819 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_FLEX_PARSER_0;
sb               1820 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1821 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_flex_parser_0_tag;
sb               1898 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					  struct mlx5dr_ste_build *sb,
sb               1916 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		dw0_location		= sb->caps->flex_parser_id_icmp_dw0;
sb               1917 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		dw1_location		= sb->caps->flex_parser_id_icmp_dw1;
sb               1922 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		dw0_location		= sb->caps->flex_parser_id_icmpv6_dw0;
sb               1923 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 		dw1_location		= sb->caps->flex_parser_id_icmpv6_dw1;
sb               1970 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c int mlx5dr_ste_build_flex_parser_1(struct mlx5dr_ste_build *sb,
sb               1977 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	ret = dr_ste_build_flex_parser_1_bit_mask(mask, caps, sb->bit_mask);
sb               1981 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               1982 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               1983 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->caps = caps;
sb               1984 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_FLEX_PARSER_1;
sb               1985 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               1986 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_flex_parser_1_tag;
sb               2002 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					    struct mlx5dr_ste_build *sb,
sb               2015 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_general_purpose(struct mlx5dr_ste_build *sb,
sb               2019 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_general_purpose_bit_mask(mask, inner, sb->bit_mask);
sb               2021 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               2022 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               2023 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_GENERAL_PURPOSE;
sb               2024 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               2025 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_general_purpose_tag;
sb               2047 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					struct mlx5dr_ste_build *sb,
sb               2054 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (sb->inner) {
sb               2065 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_eth_l4_misc(struct mlx5dr_ste_build *sb,
sb               2069 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_eth_l4_misc_bit_mask(mask, inner, sb->bit_mask);
sb               2071 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               2072 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               2073 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = DR_STE_CALC_LU_TYPE(ETHL4_MISC, rx, inner);
sb               2074 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               2075 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_eth_l4_misc_tag;
sb               2102 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					    struct mlx5dr_ste_build *sb,
sb               2129 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_flex_parser_tnl(struct mlx5dr_ste_build *sb,
sb               2133 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_flex_parser_tnl_bit_mask(mask, inner, sb->bit_mask);
sb               2135 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               2136 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               2137 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_FLEX_PARSER_TNL_HEADER;
sb               2138 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               2139 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_flex_parser_tnl_tag;
sb               2158 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				       struct mlx5dr_ste_build *sb,
sb               2173 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_register_0(struct mlx5dr_ste_build *sb,
sb               2177 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_register_0_bit_mask(mask, sb->bit_mask);
sb               2179 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               2180 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               2181 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_STEERING_REGISTERS_0;
sb               2182 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               2183 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_register_0_tag;
sb               2202 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 				       struct mlx5dr_ste_build *sb,
sb               2217 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c void mlx5dr_ste_build_register_1(struct mlx5dr_ste_build *sb,
sb               2221 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	dr_ste_build_register_1_bit_mask(mask, sb->bit_mask);
sb               2223 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               2224 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               2225 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_STEERING_REGISTERS_1;
sb               2226 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               2227 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_register_1_tag;
sb               2252 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 					 struct mlx5dr_ste_build *sb,
sb               2258 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	struct mlx5dr_domain *dmn = sb->dmn;
sb               2260 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	u8 *bit_mask = sb->bit_mask;
sb               2266 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	if (sb->vhca_id_valid) {
sb               2293 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c int mlx5dr_ste_build_src_gvmi_qpn(struct mlx5dr_ste_build *sb,
sb               2301 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->vhca_id_valid = mask->misc.source_eswitch_owner_vhca_id;
sb               2303 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	ret = dr_ste_build_src_gvmi_qpn_bit_mask(mask, sb->bit_mask);
sb               2307 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->rx = rx;
sb               2308 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->dmn = dmn;
sb               2309 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->inner = inner;
sb               2310 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->lu_type = MLX5DR_STE_LU_TYPE_SRC_GVMI_AND_QP;
sb               2311 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->byte_mask = dr_ste_conv_bit_to_byte_mask(sb->bit_mask);
sb               2312 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c 	sb->ste_build_tag_func = &dr_ste_build_src_gvmi_qpn_tag;
sb                190 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h 				  struct mlx5dr_ste_build *sb,
sb                284 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l3_ipv4_5_tuple(struct mlx5dr_ste_build *sb,
sb                287 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l3_ipv4_misc(struct mlx5dr_ste_build *sb,
sb                290 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l3_ipv6_dst(struct mlx5dr_ste_build *sb,
sb                293 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l3_ipv6_src(struct mlx5dr_ste_build *sb,
sb                296 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l2_src(struct mlx5dr_ste_build *sb,
sb                299 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l2_dst(struct mlx5dr_ste_build *sb,
sb                302 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l2_tnl(struct mlx5dr_ste_build *sb,
sb                305 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_ipv6_l3_l4(struct mlx5dr_ste_build *sb,
sb                308 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_eth_l4_misc(struct mlx5dr_ste_build *sb,
sb                311 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_gre(struct mlx5dr_ste_build *sb,
sb                314 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_mpls(struct mlx5dr_ste_build *sb,
sb                317 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_flex_parser_0(struct mlx5dr_ste_build *sb,
sb                320 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h int mlx5dr_ste_build_flex_parser_1(struct mlx5dr_ste_build *sb,
sb                324 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_flex_parser_tnl(struct mlx5dr_ste_build *sb,
sb                327 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_general_purpose(struct mlx5dr_ste_build *sb,
sb                330 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_register_0(struct mlx5dr_ste_build *sb,
sb                333 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_register_1(struct mlx5dr_ste_build *sb,
sb                336 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h int mlx5dr_ste_build_src_gvmi_qpn(struct mlx5dr_ste_build *sb,
sb                340 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h void mlx5dr_ste_build_empty_always_hit(struct mlx5dr_ste_build *sb, bool rx);
sb                150 drivers/net/ethernet/mellanox/mlxsw/spectrum.h 	struct mlxsw_sp_sb *sb;
sb                125 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return mlxsw_sp->sb->cell_size * cells;
sb                130 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return DIV_ROUND_UP(bytes, mlxsw_sp->sb->cell_size);
sb                135 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return mlxsw_sp->sb->max_headroom_cells;
sb                141 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return &mlxsw_sp->sb->prs[pool_index];
sb                156 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	struct mlxsw_sp_sb_port *sb_port = &mlxsw_sp->sb->ports[local_port];
sb                168 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	return &mlxsw_sp->sb->ports[local_port].pms[pool_index];
sb                188 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 		size = mlxsw_sp_bytes_cells(mlxsw_sp, mlxsw_sp->sb->sb_size);
sb                214 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 							mlxsw_sp->sb->sb_size);
sb                368 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->ports = kcalloc(max_ports,
sb                371 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (!mlxsw_sp->sb->ports)
sb                380 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->prs = prs;
sb                383 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 		err = mlxsw_sp_sb_port_init(mlxsw_sp, &mlxsw_sp->sb->ports[i]);
sb                392 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 		mlxsw_sp_sb_port_fini(&mlxsw_sp->sb->ports[i]);
sb                393 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	kfree(mlxsw_sp->sb->prs);
sb                395 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	kfree(mlxsw_sp->sb->ports);
sb                405 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 		mlxsw_sp_sb_port_fini(&mlxsw_sp->sb->ports[i]);
sb                406 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	kfree(mlxsw_sp->sb->prs);
sb                407 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	kfree(mlxsw_sp->sb->ports);
sb                913 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb = kzalloc(sizeof(*mlxsw_sp->sb), GFP_KERNEL);
sb                914 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	if (!mlxsw_sp->sb)
sb                916 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->cell_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, CELL_SIZE);
sb                917 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->sb_size = MLXSW_CORE_RES_GET(mlxsw_sp->core,
sb                922 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	mlxsw_sp->sb->max_headroom_cells = max_headroom_size /
sb                923 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 						mlxsw_sp->sb->cell_size;
sb                943 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 				  mlxsw_sp->sb->sb_size,
sb                960 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	kfree(mlxsw_sp->sb);
sb                968 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	kfree(mlxsw_sp->sb);
sb                999 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c 	pool_info->cell_size = mlxsw_sp->sb->cell_size;
sb                185 drivers/net/ethernet/netronome/nfp/nfp_main.h int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index,
sb                187 drivers/net/ethernet/netronome/nfp/nfp_main.h int nfp_shared_buf_pool_set(struct nfp_pf *pf, unsigned int sb,
sb                 13 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c static u32 nfp_shared_buf_pool_unit(struct nfp_pf *pf, unsigned int sb)
sb                 15 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 	__le32 sb_id = cpu_to_le32(sb);
sb                 26 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index,
sb                 31 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 		.shared_buf	= cpu_to_le32(sb),
sb                 37 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 	unit_size = nfp_shared_buf_pool_unit(pf, sb);
sb                 56 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c int nfp_shared_buf_pool_set(struct nfp_pf *pf, unsigned int sb,
sb                 62 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 			.shared_buf	= cpu_to_le32(sb),
sb                 69 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 	unit_size = nfp_shared_buf_pool_unit(pf, sb);
sb                110 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 		struct nfp_shared_buf *sb = &pf->shared_bufs[i];
sb                113 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 		memcpy_fromio(sb, sb_desc + i * entry_sz, sizeof(*sb));
sb                116 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 					  le32_to_cpu(sb->id),
sb                117 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 					  le32_to_cpu(sb->size),
sb                118 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 					  le16_to_cpu(sb->ingress_pools_count),
sb                119 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 					  le16_to_cpu(sb->egress_pools_count),
sb                120 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 					  le16_to_cpu(sb->ingress_tc_count),
sb                121 drivers/net/ethernet/netronome/nfp/nfp_shared_buf.c 					  le16_to_cpu(sb->egress_tc_count));
sb                330 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c 	u16 sb = qed_int_get_sp_sb_id(p_hwfn);
sb                354 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c 	p_ramrod->event_ring_sb_id	= cpu_to_le16(sb);
sb                435 drivers/net/ethernet/qlogic/qed/qed_sp_commands.c 		   sb, sb_index, p_ramrod->outer_tag_config.outer_tag.tci);
sb                264 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_U;
sb                266 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_L;
sb                271 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_LL;
sb                273 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_LU;
sb                275 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_UL;
sb                277 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_UU;
sb                282 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_LLL;
sb                284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_LLU;
sb                286 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_LUL;
sb                288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_LUU;
sb                290 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_ULL;
sb                292 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_ULU;
sb                294 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_UUL;
sb                296 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 			ch_inf.sb = BRCMU_CHAN_SB_UUU;
sb               6001 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 	if (ch->sb == BRCMU_CHAN_SB_U) {
sb               6183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c 		ch.sb = BRCMU_CHAN_SB_NONE;
sb                 13 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c static u16 d11n_sb(enum brcmu_chan_sb sb)
sb                 15 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	switch (sb) {
sb                 44 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_NONE;
sb                 50 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			0, d11n_sb(ch->sb));
sb                 79 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 	if (ch->bw == BRCMU_CHAN_BW_20 || ch->sb == BRCMU_CHAN_SB_NONE)
sb                 80 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_L;
sb                 85 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			BRCMU_CHSPEC_D11AC_SB_SHIFT, ch->sb);
sb                106 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_NONE;
sb                112 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_L;
sb                115 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_U;
sb                147 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = BRCMU_CHAN_SB_NONE;
sb                153 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_L;
sb                156 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 			ch->sb = BRCMU_CHAN_SB_U;
sb                164 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK,
sb                166 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		switch (ch->sb) {
sb                186 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		ch->sb = brcmu_maskget16(ch->chspec, BRCMU_CHSPEC_D11AC_SB_MASK,
sb                188 drivers/net/wireless/broadcom/brcm80211/brcmutil/d11.c 		switch (ch->sb) {
sb                136 drivers/net/wireless/broadcom/brcm80211/include/brcmu_d11.h 	enum brcmu_chan_sb sb;
sb               1461 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	struct iwl_stored_beacon_notif *sb = (void *)pkt->data;
sb               1464 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	u32 size = le32_to_cpu(sb->byte_count);
sb               1477 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	rx_status.mactime = le64_to_cpu(sb->tsf);
sb               1480 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	rx_status.device_timestamp = le32_to_cpu(sb->system_time);
sb               1482 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 		(sb->band & cpu_to_le16(RX_RES_PHY_FLAGS_BAND_24)) ?
sb               1485 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 		ieee80211_channel_to_frequency(le16_to_cpu(sb->channel),
sb               1489 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c 	skb_put_data(skb, sb->data, size);
sb                266 drivers/nvdimm/nd.h u64 nd_sb_checksum(struct nd_gen_sb *sb);
sb                 27 drivers/oprofile/oprofilefs.c static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode)
sb                 29 drivers/oprofile/oprofilefs.c 	struct inode *inode = new_inode(sb);
sb                242 drivers/oprofile/oprofilefs.c static int oprofilefs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                246 drivers/oprofile/oprofilefs.c 	sb->s_blocksize = PAGE_SIZE;
sb                247 drivers/oprofile/oprofilefs.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                248 drivers/oprofile/oprofilefs.c 	sb->s_magic = OPROFILEFS_MAGIC;
sb                249 drivers/oprofile/oprofilefs.c 	sb->s_op = &s_ops;
sb                250 drivers/oprofile/oprofilefs.c 	sb->s_time_gran = 1;
sb                252 drivers/oprofile/oprofilefs.c 	root_inode = oprofilefs_get_inode(sb, S_IFDIR | 0755);
sb                257 drivers/oprofile/oprofilefs.c 	sb->s_root = d_make_root(root_inode);
sb                258 drivers/oprofile/oprofilefs.c 	if (!sb->s_root)
sb                261 drivers/oprofile/oprofilefs.c 	oprofile_create_files(sb->s_root);
sb                 36 drivers/platform/x86/i2c-multi-instantiate.c 	struct acpi_resource_i2c_serialbus *sb;
sb                 39 drivers/platform/x86/i2c-multi-instantiate.c 	if (i2c_acpi_get_i2c_resource(ares, &sb))
sb                323 drivers/s390/block/dasd_diag.c 	unsigned int sb, bsize;
sb                442 drivers/s390/block/dasd_diag.c 	for (sb = 512; sb < bsize; sb = sb << 1)
sb               2257 drivers/s390/block/dasd_eckd.c 	unsigned int sb, blk_per_trk;
sb               2333 drivers/s390/block/dasd_eckd.c 	for (sb = 512; sb < block->bp_block; sb = sb << 1)
sb                198 drivers/s390/block/dasd_fba.c 	int sb, rc;
sb                209 drivers/s390/block/dasd_fba.c 	for (sb = 512; sb < private->rdc_data.blk_size; sb = sb << 1)
sb                351 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_copy_rdma(l, sa, sb, da, db) \
sb                352 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h 		plpar_hcall_norets(H_COPY_RDMA, l, sa, sb, da, db)
sb               3572 drivers/scsi/lpfc/lpfc_init.c 	struct lpfc_io_buf *sb, *sb_next;
sb               3582 drivers/scsi/lpfc/lpfc_init.c 	list_for_each_entry_safe(sb, sb_next, &phba->lpfc_scsi_buf_list_put,
sb               3584 drivers/scsi/lpfc/lpfc_init.c 		list_del(&sb->list);
sb               3585 drivers/scsi/lpfc/lpfc_init.c 		dma_pool_free(phba->lpfc_sg_dma_buf_pool, sb->data,
sb               3586 drivers/scsi/lpfc/lpfc_init.c 			      sb->dma_handle);
sb               3587 drivers/scsi/lpfc/lpfc_init.c 		kfree(sb);
sb               3593 drivers/scsi/lpfc/lpfc_init.c 	list_for_each_entry_safe(sb, sb_next, &phba->lpfc_scsi_buf_list_get,
sb               3595 drivers/scsi/lpfc/lpfc_init.c 		list_del(&sb->list);
sb               3596 drivers/scsi/lpfc/lpfc_init.c 		dma_pool_free(phba->lpfc_sg_dma_buf_pool, sb->data,
sb               3597 drivers/scsi/lpfc/lpfc_init.c 			      sb->dma_handle);
sb               3598 drivers/scsi/lpfc/lpfc_init.c 		kfree(sb);
sb               2065 drivers/scsi/qedf/qedf_main.c 	struct status_block_e4 *sb = sb_info->sb_virt;
sb               2075 drivers/scsi/qedf/qedf_main.c 	prod_idx = sb->pi_array[QEDF_FCOE_PARAMS_GL_RQ_PI];
sb               2092 drivers/scsi/qedf/qedf_main.c 	struct status_block_e4 *sb = sb_info->sb_virt;
sb               2105 drivers/scsi/qedf/qedf_main.c 	prod_idx = sb->pi_array[QEDF_FCOE_PARAMS_GL_RQ_PI];
sb                139 drivers/scsi/qedi/qedi_debugfs.c 	struct status_block_e4 *sb = NULL;
sb                153 drivers/scsi/qedi/qedi_debugfs.c 		sb = sb_info->sb_virt;
sb                154 drivers/scsi/qedi/qedi_debugfs.c 		prod_idx = (sb->pi_array[QEDI_PROTO_CQ_PROD_IDX] &
sb               1199 drivers/scsi/qedi/qedi_main.c 	struct status_block_e4 *sb = sb_info->sb_virt;
sb               1209 drivers/scsi/qedi/qedi_main.c 	prod_idx = sb->pi_array[QEDI_PROTO_CQ_PROD_IDX];
sb               1255 drivers/scsi/qedi/qedi_main.c 	struct status_block_e4 *sb = sb_info->sb_virt;
sb               1261 drivers/scsi/qedi/qedi_main.c 	prod_idx = sb->pi_array[QEDI_PROTO_CQ_PROD_IDX];
sb               5613 drivers/scsi/scsi_debug.c 		int n, len, sb;
sb               5616 drivers/scsi/scsi_debug.c 		sb = (int)sizeof(b);
sb               5620 drivers/scsi/scsi_debug.c 			for (k = 0, n = 0; k < len && n < sb; ++k)
sb               5621 drivers/scsi/scsi_debug.c 				n += scnprintf(b + n, sb - n, "%02x ",
sb                133 drivers/spi/spi-mpc52xx-psc.c 	unsigned sb = 0;	/* number of bytes sent */
sb                151 drivers/spi/spi-mpc52xx-psc.c 			send_at_once = t->len - sb;
sb                157 drivers/spi/spi-mpc52xx-psc.c 		for (; send_at_once; sb++, send_at_once--) {
sb                163 drivers/spi/spi-mpc52xx-psc.c 				out_8(&psc->mpc52xx_psc_buffer_8, tx_buf[sb]);
sb                 43 drivers/spi/spi-pl022.c #define SSP_WRITE_BITS(reg, val, mask, sb) \
sb                 44 drivers/spi/spi-pl022.c  ((reg) = (((reg) & ~(mask)) | (((val)<<(sb)) & (mask))))
sb                 51 drivers/spi/spi-pl022.c #define GEN_MASK_BITS(val, mask, sb) \
sb                 52 drivers/spi/spi-pl022.c  (((val)<<(sb)) & (mask))
sb               1920 drivers/spi/spi.c 		struct acpi_resource_spi_serialbus *sb;
sb               1924 drivers/spi/spi.c 		sb = &ares->data.spi_serial_bus;
sb               1925 drivers/spi/spi.c 		if (sb->type == ACPI_RESOURCE_SERIAL_TYPE_SPI) {
sb               1928 drivers/spi/spi.c 						 sb->resource_source.string_ptr,
sb               1944 drivers/spi/spi.c 						sb->device_selection);
sb               1949 drivers/spi/spi.c 				lookup->chip_select = sb->device_selection;
sb               1952 drivers/spi/spi.c 			lookup->max_speed_hz = sb->connection_speed;
sb               1954 drivers/spi/spi.c 			if (sb->clock_phase == ACPI_SPI_SECOND_PHASE)
sb               1956 drivers/spi/spi.c 			if (sb->clock_polarity == ACPI_SPI_START_HIGH)
sb               1958 drivers/spi/spi.c 			if (sb->device_polarity == ACPI_SPI_ACTIVE_HIGH)
sb                540 drivers/staging/exfat/exfat.h 	s32	(*alloc_cluster)(struct super_block *sb, s32 num_alloc,
sb                542 drivers/staging/exfat/exfat.h 	void	(*free_cluster)(struct super_block *sb, struct chain_t *p_chain,
sb                544 drivers/staging/exfat/exfat.h 	s32	(*count_used_clusters)(struct super_block *sb);
sb                546 drivers/staging/exfat/exfat.h 	s32	(*init_dir_entry)(struct super_block *sb, struct chain_t *p_dir,
sb                548 drivers/staging/exfat/exfat.h 	s32	(*init_ext_entry)(struct super_block *sb, struct chain_t *p_dir,
sb                552 drivers/staging/exfat/exfat.h 	s32	(*find_dir_entry)(struct super_block *sb, struct chain_t *p_dir,
sb                555 drivers/staging/exfat/exfat.h 	void	(*delete_dir_entry)(struct super_block *sb,
sb                558 drivers/staging/exfat/exfat.h 	void	(*get_uni_name_from_ext_entry)(struct super_block *sb,
sb                561 drivers/staging/exfat/exfat.h 	s32	(*count_ext_entries)(struct super_block *sb,
sb                743 drivers/staging/exfat/exfat.h #define EXFAT_SB(sb)		((struct exfat_sb_info *)((sb)->s_fs_info))
sb                751 drivers/staging/exfat/exfat.h u16 nls_upper(struct super_block *sb, u16 a);
sb                752 drivers/staging/exfat/exfat.h int nls_dosname_cmp(struct super_block *sb, u8 *a, u8 *b);
sb                753 drivers/staging/exfat/exfat.h int nls_uniname_cmp(struct super_block *sb, u16 *a, u16 *b);
sb                754 drivers/staging/exfat/exfat.h void nls_uniname_to_dosname(struct super_block *sb,
sb                757 drivers/staging/exfat/exfat.h void nls_dosname_to_uniname(struct super_block *sb,
sb                760 drivers/staging/exfat/exfat.h void nls_uniname_to_cstring(struct super_block *sb, u8 *p_cstring,
sb                762 drivers/staging/exfat/exfat.h void nls_cstring_to_uniname(struct super_block *sb,
sb                767 drivers/staging/exfat/exfat.h void buf_init(struct super_block *sb);
sb                768 drivers/staging/exfat/exfat.h void buf_shutdown(struct super_block *sb);
sb                769 drivers/staging/exfat/exfat.h int FAT_read(struct super_block *sb, u32 loc, u32 *content);
sb                770 drivers/staging/exfat/exfat.h s32 FAT_write(struct super_block *sb, u32 loc, u32 content);
sb                771 drivers/staging/exfat/exfat.h u8 *FAT_getblk(struct super_block *sb, sector_t sec);
sb                772 drivers/staging/exfat/exfat.h void FAT_modify(struct super_block *sb, sector_t sec);
sb                773 drivers/staging/exfat/exfat.h void FAT_release_all(struct super_block *sb);
sb                774 drivers/staging/exfat/exfat.h void FAT_sync(struct super_block *sb);
sb                775 drivers/staging/exfat/exfat.h u8 *buf_getblk(struct super_block *sb, sector_t sec);
sb                776 drivers/staging/exfat/exfat.h void buf_modify(struct super_block *sb, sector_t sec);
sb                777 drivers/staging/exfat/exfat.h void buf_lock(struct super_block *sb, sector_t sec);
sb                778 drivers/staging/exfat/exfat.h void buf_unlock(struct super_block *sb, sector_t sec);
sb                779 drivers/staging/exfat/exfat.h void buf_release(struct super_block *sb, sector_t sec);
sb                780 drivers/staging/exfat/exfat.h void buf_release_all(struct super_block *sb);
sb                781 drivers/staging/exfat/exfat.h void buf_sync(struct super_block *sb);
sb                784 drivers/staging/exfat/exfat.h void fs_set_vol_flags(struct super_block *sb, u32 new_flag);
sb                785 drivers/staging/exfat/exfat.h void fs_error(struct super_block *sb);
sb                788 drivers/staging/exfat/exfat.h s32 clear_cluster(struct super_block *sb, u32 clu);
sb                789 drivers/staging/exfat/exfat.h s32 fat_alloc_cluster(struct super_block *sb, s32 num_alloc,
sb                791 drivers/staging/exfat/exfat.h s32 exfat_alloc_cluster(struct super_block *sb, s32 num_alloc,
sb                793 drivers/staging/exfat/exfat.h void fat_free_cluster(struct super_block *sb, struct chain_t *p_chain,
sb                795 drivers/staging/exfat/exfat.h void exfat_free_cluster(struct super_block *sb, struct chain_t *p_chain,
sb                797 drivers/staging/exfat/exfat.h u32 find_last_cluster(struct super_block *sb, struct chain_t *p_chain);
sb                798 drivers/staging/exfat/exfat.h s32 count_num_clusters(struct super_block *sb, struct chain_t *dir);
sb                799 drivers/staging/exfat/exfat.h s32 fat_count_used_clusters(struct super_block *sb);
sb                800 drivers/staging/exfat/exfat.h s32 exfat_count_used_clusters(struct super_block *sb);
sb                801 drivers/staging/exfat/exfat.h void exfat_chain_cont_cluster(struct super_block *sb, u32 chain, s32 len);
sb                804 drivers/staging/exfat/exfat.h s32 load_alloc_bitmap(struct super_block *sb);
sb                805 drivers/staging/exfat/exfat.h void free_alloc_bitmap(struct super_block *sb);
sb                806 drivers/staging/exfat/exfat.h s32 set_alloc_bitmap(struct super_block *sb, u32 clu);
sb                807 drivers/staging/exfat/exfat.h s32 clr_alloc_bitmap(struct super_block *sb, u32 clu);
sb                808 drivers/staging/exfat/exfat.h u32 test_alloc_bitmap(struct super_block *sb, u32 clu);
sb                809 drivers/staging/exfat/exfat.h void sync_alloc_bitmap(struct super_block *sb);
sb                812 drivers/staging/exfat/exfat.h s32 load_upcase_table(struct super_block *sb);
sb                813 drivers/staging/exfat/exfat.h void free_upcase_table(struct super_block *sb);
sb                845 drivers/staging/exfat/exfat.h s32 fat_init_dir_entry(struct super_block *sb, struct chain_t *p_dir, s32 entry,
sb                847 drivers/staging/exfat/exfat.h s32 exfat_init_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                849 drivers/staging/exfat/exfat.h s32 fat_init_ext_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                853 drivers/staging/exfat/exfat.h s32 exfat_init_ext_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                864 drivers/staging/exfat/exfat.h void fat_delete_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                866 drivers/staging/exfat/exfat.h void exfat_delete_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                869 drivers/staging/exfat/exfat.h s32 find_location(struct super_block *sb, struct chain_t *p_dir, s32 entry,
sb                871 drivers/staging/exfat/exfat.h struct dentry_t *get_entry_with_sector(struct super_block *sb, sector_t sector,
sb                873 drivers/staging/exfat/exfat.h struct dentry_t *get_entry_in_dir(struct super_block *sb, struct chain_t *p_dir,
sb                875 drivers/staging/exfat/exfat.h struct entry_set_cache_t *get_entry_set_in_dir(struct super_block *sb,
sb                880 drivers/staging/exfat/exfat.h s32 write_whole_entry_set(struct super_block *sb, struct entry_set_cache_t *es);
sb                881 drivers/staging/exfat/exfat.h s32 write_partial_entries_in_entry_set(struct super_block *sb,
sb                884 drivers/staging/exfat/exfat.h s32 search_deleted_or_unused_entry(struct super_block *sb,
sb                888 drivers/staging/exfat/exfat.h s32 fat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                891 drivers/staging/exfat/exfat.h s32 exfat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb                894 drivers/staging/exfat/exfat.h s32 fat_count_ext_entries(struct super_block *sb, struct chain_t *p_dir,
sb                896 drivers/staging/exfat/exfat.h s32 exfat_count_ext_entries(struct super_block *sb, struct chain_t *p_dir,
sb                898 drivers/staging/exfat/exfat.h s32 count_dos_name_entries(struct super_block *sb, struct chain_t *p_dir,
sb                900 drivers/staging/exfat/exfat.h void update_dir_checksum(struct super_block *sb, struct chain_t *p_dir,
sb                902 drivers/staging/exfat/exfat.h void update_dir_checksum_with_entry_set(struct super_block *sb,
sb                904 drivers/staging/exfat/exfat.h bool is_dir_empty(struct super_block *sb, struct chain_t *p_dir);
sb                907 drivers/staging/exfat/exfat.h s32 get_num_entries_and_dos_name(struct super_block *sb, struct chain_t *p_dir,
sb                910 drivers/staging/exfat/exfat.h void get_uni_name_from_dos_entry(struct super_block *sb,
sb                913 drivers/staging/exfat/exfat.h void fat_get_uni_name_from_ext_entry(struct super_block *sb,
sb                916 drivers/staging/exfat/exfat.h void exfat_get_uni_name_from_ext_entry(struct super_block *sb,
sb                923 drivers/staging/exfat/exfat.h s32 fat_generate_dos_name(struct super_block *sb, struct chain_t *p_dir,
sb                938 drivers/staging/exfat/exfat.h s32 fat16_mount(struct super_block *sb, struct pbr_sector_t *p_pbr);
sb                939 drivers/staging/exfat/exfat.h s32 fat32_mount(struct super_block *sb, struct pbr_sector_t *p_pbr);
sb                940 drivers/staging/exfat/exfat.h s32 exfat_mount(struct super_block *sb, struct pbr_sector_t *p_pbr);
sb                953 drivers/staging/exfat/exfat.h int sector_read(struct super_block *sb, sector_t sec,
sb                955 drivers/staging/exfat/exfat.h int sector_write(struct super_block *sb, sector_t sec,
sb                957 drivers/staging/exfat/exfat.h int multi_sector_read(struct super_block *sb, sector_t sec,
sb                959 drivers/staging/exfat/exfat.h int multi_sector_write(struct super_block *sb, sector_t sec,
sb                962 drivers/staging/exfat/exfat.h void bdev_open(struct super_block *sb);
sb                963 drivers/staging/exfat/exfat.h void bdev_close(struct super_block *sb);
sb                964 drivers/staging/exfat/exfat.h int bdev_read(struct super_block *sb, sector_t secno,
sb                966 drivers/staging/exfat/exfat.h int bdev_write(struct super_block *sb, sector_t secno,
sb                968 drivers/staging/exfat/exfat.h int bdev_sync(struct super_block *sb);
sb                 11 drivers/staging/exfat/exfat_blkdev.c void bdev_open(struct super_block *sb)
sb                 13 drivers/staging/exfat/exfat_blkdev.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                 18 drivers/staging/exfat/exfat_blkdev.c 	p_bd->sector_size      = bdev_logical_block_size(sb->s_bdev);
sb                 21 drivers/staging/exfat/exfat_blkdev.c 	p_bd->num_sectors      = i_size_read(sb->s_bdev->bd_inode) >>
sb                 26 drivers/staging/exfat/exfat_blkdev.c void bdev_close(struct super_block *sb)
sb                 28 drivers/staging/exfat/exfat_blkdev.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                 33 drivers/staging/exfat/exfat_blkdev.c int bdev_read(struct super_block *sb, sector_t secno, struct buffer_head **bh,
sb                 36 drivers/staging/exfat/exfat_blkdev.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                 37 drivers/staging/exfat/exfat_blkdev.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                 39 drivers/staging/exfat/exfat_blkdev.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                 53 drivers/staging/exfat/exfat_blkdev.c 		*bh = __bread(sb->s_bdev, secno,
sb                 56 drivers/staging/exfat/exfat_blkdev.c 		*bh = __getblk(sb->s_bdev, secno,
sb                 68 drivers/staging/exfat/exfat_blkdev.c int bdev_write(struct super_block *sb, sector_t secno, struct buffer_head *bh,
sb                 73 drivers/staging/exfat/exfat_blkdev.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                 74 drivers/staging/exfat/exfat_blkdev.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                 76 drivers/staging/exfat/exfat_blkdev.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                 96 drivers/staging/exfat/exfat_blkdev.c 		bh2 = __getblk(sb->s_bdev, secno, count);
sb                121 drivers/staging/exfat/exfat_blkdev.c int bdev_sync(struct super_block *sb)
sb                123 drivers/staging/exfat/exfat_blkdev.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                125 drivers/staging/exfat/exfat_blkdev.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                135 drivers/staging/exfat/exfat_blkdev.c 	return sync_blockdev(sb->s_bdev);
sb                 18 drivers/staging/exfat/exfat_cache.c static struct buf_cache_t *FAT_cache_find(struct super_block *sb, sector_t sec)
sb                 22 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                 70 drivers/staging/exfat/exfat_cache.c static struct buf_cache_t *FAT_cache_get(struct super_block *sb, sector_t sec)
sb                 73 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                 81 drivers/staging/exfat/exfat_cache.c static void FAT_cache_insert_hash(struct super_block *sb,
sb                 88 drivers/staging/exfat/exfat_cache.c 	p_fs = &(EXFAT_SB(sb)->fs_info);
sb                106 drivers/staging/exfat/exfat_cache.c static void buf_cache_insert_hash(struct super_block *sb,
sb                113 drivers/staging/exfat/exfat_cache.c 	p_fs = &(EXFAT_SB(sb)->fs_info);
sb                131 drivers/staging/exfat/exfat_cache.c void buf_init(struct super_block *sb)
sb                133 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                177 drivers/staging/exfat/exfat_cache.c 		FAT_cache_insert_hash(sb, &p_fs->FAT_cache_array[i]);
sb                189 drivers/staging/exfat/exfat_cache.c 		buf_cache_insert_hash(sb, &p_fs->buf_cache_array[i]);
sb                192 drivers/staging/exfat/exfat_cache.c void buf_shutdown(struct super_block *sb)
sb                196 drivers/staging/exfat/exfat_cache.c static int __FAT_read(struct super_block *sb, u32 loc, u32 *content)
sb                202 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                203 drivers/staging/exfat/exfat_cache.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                211 drivers/staging/exfat/exfat_cache.c 			fat_sector = FAT_getblk(sb, sec);
sb                217 drivers/staging/exfat/exfat_cache.c 			fat_sector = FAT_getblk(sb, ++sec);
sb                223 drivers/staging/exfat/exfat_cache.c 			fat_sector = FAT_getblk(sb, sec);
sb                247 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                268 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                289 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                314 drivers/staging/exfat/exfat_cache.c int FAT_read(struct super_block *sb, u32 loc, u32 *content)
sb                319 drivers/staging/exfat/exfat_cache.c 	ret = __FAT_read(sb, loc, content);
sb                325 drivers/staging/exfat/exfat_cache.c static s32 __FAT_write(struct super_block *sb, u32 loc, u32 content)
sb                330 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                331 drivers/staging/exfat/exfat_cache.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                340 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                351 drivers/staging/exfat/exfat_cache.c 				FAT_modify(sb, sec);
sb                353 drivers/staging/exfat/exfat_cache.c 				fat_sector = FAT_getblk(sb, ++sec);
sb                369 drivers/staging/exfat/exfat_cache.c 				FAT_modify(sb, sec);
sb                371 drivers/staging/exfat/exfat_cache.c 				fat_sector = FAT_getblk(sb, ++sec);
sb                392 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                406 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                420 drivers/staging/exfat/exfat_cache.c 		fat_sector = FAT_getblk(sb, sec);
sb                429 drivers/staging/exfat/exfat_cache.c 	FAT_modify(sb, sec);
sb                433 drivers/staging/exfat/exfat_cache.c int FAT_write(struct super_block *sb, u32 loc, u32 content)
sb                438 drivers/staging/exfat/exfat_cache.c 	ret = __FAT_write(sb, loc, content);
sb                444 drivers/staging/exfat/exfat_cache.c u8 *FAT_getblk(struct super_block *sb, sector_t sec)
sb                447 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                449 drivers/staging/exfat/exfat_cache.c 	bp = FAT_cache_find(sb, sec);
sb                455 drivers/staging/exfat/exfat_cache.c 	bp = FAT_cache_get(sb, sec);
sb                463 drivers/staging/exfat/exfat_cache.c 	FAT_cache_insert_hash(sb, bp);
sb                465 drivers/staging/exfat/exfat_cache.c 	if (sector_read(sb, sec, &bp->buf_bh, 1) != FFS_SUCCESS) {
sb                479 drivers/staging/exfat/exfat_cache.c void FAT_modify(struct super_block *sb, sector_t sec)
sb                483 drivers/staging/exfat/exfat_cache.c 	bp = FAT_cache_find(sb, sec);
sb                485 drivers/staging/exfat/exfat_cache.c 		sector_write(sb, sec, bp->buf_bh, 0);
sb                488 drivers/staging/exfat/exfat_cache.c void FAT_release_all(struct super_block *sb)
sb                491 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                513 drivers/staging/exfat/exfat_cache.c void FAT_sync(struct super_block *sb)
sb                516 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                532 drivers/staging/exfat/exfat_cache.c static struct buf_cache_t *buf_cache_find(struct super_block *sb, sector_t sec)
sb                536 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                551 drivers/staging/exfat/exfat_cache.c static struct buf_cache_t *buf_cache_get(struct super_block *sb, sector_t sec)
sb                554 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                564 drivers/staging/exfat/exfat_cache.c static u8 *__buf_getblk(struct super_block *sb, sector_t sec)
sb                567 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                569 drivers/staging/exfat/exfat_cache.c 	bp = buf_cache_find(sb, sec);
sb                575 drivers/staging/exfat/exfat_cache.c 	bp = buf_cache_get(sb, sec);
sb                583 drivers/staging/exfat/exfat_cache.c 	buf_cache_insert_hash(sb, bp);
sb                585 drivers/staging/exfat/exfat_cache.c 	if (sector_read(sb, sec, &bp->buf_bh, 1) != FFS_SUCCESS) {
sb                599 drivers/staging/exfat/exfat_cache.c u8 *buf_getblk(struct super_block *sb, sector_t sec)
sb                604 drivers/staging/exfat/exfat_cache.c 	buf = __buf_getblk(sb, sec);
sb                610 drivers/staging/exfat/exfat_cache.c void buf_modify(struct super_block *sb, sector_t sec)
sb                616 drivers/staging/exfat/exfat_cache.c 	bp = buf_cache_find(sb, sec);
sb                618 drivers/staging/exfat/exfat_cache.c 		sector_write(sb, sec, bp->buf_bh, 0);
sb                626 drivers/staging/exfat/exfat_cache.c void buf_lock(struct super_block *sb, sector_t sec)
sb                632 drivers/staging/exfat/exfat_cache.c 	bp = buf_cache_find(sb, sec);
sb                642 drivers/staging/exfat/exfat_cache.c void buf_unlock(struct super_block *sb, sector_t sec)
sb                648 drivers/staging/exfat/exfat_cache.c 	bp = buf_cache_find(sb, sec);
sb                658 drivers/staging/exfat/exfat_cache.c void buf_release(struct super_block *sb, sector_t sec)
sb                661 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                665 drivers/staging/exfat/exfat_cache.c 	bp = buf_cache_find(sb, sec);
sb                682 drivers/staging/exfat/exfat_cache.c void buf_release_all(struct super_block *sb)
sb                685 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                707 drivers/staging/exfat/exfat_cache.c void buf_sync(struct super_block *sb)
sb                710 drivers/staging/exfat/exfat_cache.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                 14 drivers/staging/exfat/exfat_core.c static void __set_sb_dirty(struct super_block *sb)
sb                 16 drivers/staging/exfat/exfat_core.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                 91 drivers/staging/exfat/exfat_core.c void fs_set_vol_flags(struct super_block *sb, u32 new_flag)
sb                 95 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                104 drivers/staging/exfat/exfat_core.c 			if (sector_read(sb, p_fs->PBR_sector,
sb                117 drivers/staging/exfat/exfat_core.c 			sector_write(sb, p_fs->PBR_sector, p_fs->pbr_bh, 1);
sb                119 drivers/staging/exfat/exfat_core.c 			sector_write(sb, p_fs->PBR_sector, p_fs->pbr_bh, 0);
sb                123 drivers/staging/exfat/exfat_core.c void fs_error(struct super_block *sb)
sb                125 drivers/staging/exfat/exfat_core.c 	struct exfat_mount_options *opts = &EXFAT_SB(sb)->options;
sb                129 drivers/staging/exfat/exfat_core.c 	} else if ((opts->errors == EXFAT_ERRORS_RO) && !sb_rdonly(sb)) {
sb                130 drivers/staging/exfat/exfat_core.c 		sb->s_flags |= SB_RDONLY;
sb                139 drivers/staging/exfat/exfat_core.c s32 clear_cluster(struct super_block *sb, u32 clu)
sb                144 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                145 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                156 drivers/staging/exfat/exfat_core.c 		ret = sector_read(sb, s, &tmp_bh, 0);
sb                161 drivers/staging/exfat/exfat_core.c 		ret = sector_write(sb, s, tmp_bh, 0);
sb                170 drivers/staging/exfat/exfat_core.c s32 fat_alloc_cluster(struct super_block *sb, s32 num_alloc,
sb                175 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                183 drivers/staging/exfat/exfat_core.c 	__set_sb_dirty(sb);
sb                188 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, new_clu, &read_clu) != 0)
sb                192 drivers/staging/exfat/exfat_core.c 			if (FAT_write(sb, new_clu, CLUSTER_32(~0)) < 0)
sb                199 drivers/staging/exfat/exfat_core.c 				if (FAT_write(sb, last_clu, new_clu) < 0)
sb                224 drivers/staging/exfat/exfat_core.c s32 exfat_alloc_cluster(struct super_block *sb, s32 num_alloc,
sb                229 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                233 drivers/staging/exfat/exfat_core.c 		hint_clu = test_alloc_bitmap(sb, p_fs->clu_srch_ptr - 2);
sb                241 drivers/staging/exfat/exfat_core.c 	__set_sb_dirty(sb);
sb                245 drivers/staging/exfat/exfat_core.c 	while ((new_clu = test_alloc_bitmap(sb, hint_clu - 2)) != CLUSTER_32(~0)) {
sb                248 drivers/staging/exfat/exfat_core.c 				exfat_chain_cont_cluster(sb, p_chain->dir,
sb                254 drivers/staging/exfat/exfat_core.c 		if (set_alloc_bitmap(sb, new_clu - 2) != FFS_SUCCESS)
sb                260 drivers/staging/exfat/exfat_core.c 			if (FAT_write(sb, new_clu, CLUSTER_32(~0)) < 0)
sb                268 drivers/staging/exfat/exfat_core.c 				if (FAT_write(sb, last_clu, new_clu) < 0)
sb                288 drivers/staging/exfat/exfat_core.c 				exfat_chain_cont_cluster(sb, p_chain->dir,
sb                303 drivers/staging/exfat/exfat_core.c void fat_free_cluster(struct super_block *sb, struct chain_t *p_chain,
sb                308 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                314 drivers/staging/exfat/exfat_core.c 	__set_sb_dirty(sb);
sb                327 drivers/staging/exfat/exfat_core.c 				buf_release(sb, sector + i);
sb                331 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, clu, &clu) == -1)
sb                334 drivers/staging/exfat/exfat_core.c 		if (FAT_write(sb, prev, CLUSTER_32(0)) < 0)
sb                344 drivers/staging/exfat/exfat_core.c void exfat_free_cluster(struct super_block *sb, struct chain_t *p_chain,
sb                349 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                362 drivers/staging/exfat/exfat_core.c 	__set_sb_dirty(sb);
sb                370 drivers/staging/exfat/exfat_core.c 					buf_release(sb, sector + i);
sb                373 drivers/staging/exfat/exfat_core.c 			if (clr_alloc_bitmap(sb, clu - 2) != FFS_SUCCESS)
sb                387 drivers/staging/exfat/exfat_core.c 					buf_release(sb, sector + i);
sb                390 drivers/staging/exfat/exfat_core.c 			if (clr_alloc_bitmap(sb, clu - 2) != FFS_SUCCESS)
sb                393 drivers/staging/exfat/exfat_core.c 			if (FAT_read(sb, clu, &clu) == -1)
sb                403 drivers/staging/exfat/exfat_core.c u32 find_last_cluster(struct super_block *sb, struct chain_t *p_chain)
sb                406 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                413 drivers/staging/exfat/exfat_core.c 		while ((FAT_read(sb, clu, &next) == 0) &&
sb                424 drivers/staging/exfat/exfat_core.c s32 count_num_clusters(struct super_block *sb, struct chain_t *p_chain)
sb                428 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                440 drivers/staging/exfat/exfat_core.c 			if (FAT_read(sb, clu, &clu) != 0)
sb                450 drivers/staging/exfat/exfat_core.c s32 fat_count_used_clusters(struct super_block *sb)
sb                454 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                457 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, i, &clu) != 0)
sb                466 drivers/staging/exfat/exfat_core.c s32 exfat_count_used_clusters(struct super_block *sb)
sb                470 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                471 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                488 drivers/staging/exfat/exfat_core.c void exfat_chain_cont_cluster(struct super_block *sb, u32 chain, s32 len)
sb                494 drivers/staging/exfat/exfat_core.c 		if (FAT_write(sb, chain, chain + 1) < 0)
sb                499 drivers/staging/exfat/exfat_core.c 	FAT_write(sb, chain, CLUSTER_32(~0));
sb                506 drivers/staging/exfat/exfat_core.c s32 load_alloc_bitmap(struct super_block *sb)
sb                514 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                515 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                525 drivers/staging/exfat/exfat_core.c 			ep = (struct bmap_dentry_t *)get_entry_in_dir(sb, &clu,
sb                553 drivers/staging/exfat/exfat_core.c 					ret = sector_read(sb, sector + j, &(p_fs->vol_amap[j]), 1);
sb                571 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb                578 drivers/staging/exfat/exfat_core.c void free_alloc_bitmap(struct super_block *sb)
sb                581 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                592 drivers/staging/exfat/exfat_core.c s32 set_alloc_bitmap(struct super_block *sb, u32 clu)
sb                596 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                597 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                606 drivers/staging/exfat/exfat_core.c 	return sector_write(sb, sector, p_fs->vol_amap[i], 0);
sb                609 drivers/staging/exfat/exfat_core.c s32 clr_alloc_bitmap(struct super_block *sb, u32 clu)
sb                614 drivers/staging/exfat/exfat_core.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                618 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                619 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                628 drivers/staging/exfat/exfat_core.c 	return sector_write(sb, sector, p_fs->vol_amap[i], 0);
sb                632 drivers/staging/exfat/exfat_core.c 		ret = sb_issue_discard(sb, START_SECTOR(clu),
sb                643 drivers/staging/exfat/exfat_core.c u32 test_alloc_bitmap(struct super_block *sb, u32 clu)
sb                648 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                649 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                683 drivers/staging/exfat/exfat_core.c void sync_alloc_bitmap(struct super_block *sb)
sb                686 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                698 drivers/staging/exfat/exfat_core.c static s32 __load_upcase_table(struct super_block *sb, sector_t sector,
sb                703 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                704 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                722 drivers/staging/exfat/exfat_core.c 		ret = sector_read(sb, sector, &tmp_bh, 1);
sb                780 drivers/staging/exfat/exfat_core.c 	free_upcase_table(sb);
sb                784 drivers/staging/exfat/exfat_core.c static s32 __load_default_upcase_table(struct super_block *sb)
sb                788 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                839 drivers/staging/exfat/exfat_core.c 	free_upcase_table(sb);
sb                843 drivers/staging/exfat/exfat_core.c s32 load_upcase_table(struct super_block *sb)
sb                851 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                852 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                862 drivers/staging/exfat/exfat_core.c 			ep = (struct case_dentry_t *)get_entry_in_dir(sb, &clu,
sb                879 drivers/staging/exfat/exfat_core.c 			if (__load_upcase_table(sb, sector, num_sectors,
sb                884 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb                888 drivers/staging/exfat/exfat_core.c 	return __load_default_upcase_table(sb);
sb                891 drivers/staging/exfat/exfat_core.c void free_upcase_table(struct super_block *sb)
sb                894 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1239 drivers/staging/exfat/exfat_core.c s32 fat_init_dir_entry(struct super_block *sb, struct chain_t *p_dir, s32 entry,
sb               1245 drivers/staging/exfat/exfat_core.c 	dos_ep = (struct dos_dentry_t *)get_entry_in_dir(sb, p_dir, entry,
sb               1251 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1256 drivers/staging/exfat/exfat_core.c s32 exfat_init_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb               1267 drivers/staging/exfat/exfat_core.c 	file_ep = (struct file_dentry_t *)get_entry_in_dir(sb, p_dir, entry,
sb               1272 drivers/staging/exfat/exfat_core.c 	strm_ep = (struct strm_dentry_t *)get_entry_in_dir(sb, p_dir, entry + 1,
sb               1278 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1281 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1286 drivers/staging/exfat/exfat_core.c static s32 fat_init_ext_entry(struct super_block *sb, struct chain_t *p_dir,
sb               1298 drivers/staging/exfat/exfat_core.c 	dos_ep = (struct dos_dentry_t *)get_entry_in_dir(sb, p_dir, entry,
sb               1305 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1312 drivers/staging/exfat/exfat_core.c 			ext_ep = (struct ext_dentry_t *)get_entry_in_dir(sb,
sb               1320 drivers/staging/exfat/exfat_core.c 			buf_modify(sb, sector);
sb               1324 drivers/staging/exfat/exfat_core.c 		ext_ep = (struct ext_dentry_t *)get_entry_in_dir(sb, p_dir,
sb               1331 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector);
sb               1337 drivers/staging/exfat/exfat_core.c static s32 exfat_init_ext_entry(struct super_block *sb, struct chain_t *p_dir,
sb               1349 drivers/staging/exfat/exfat_core.c 	file_ep = (struct file_dentry_t *)get_entry_in_dir(sb, p_dir, entry,
sb               1355 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1357 drivers/staging/exfat/exfat_core.c 	strm_ep = (struct strm_dentry_t *)get_entry_in_dir(sb, p_dir, entry + 1,
sb               1364 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1367 drivers/staging/exfat/exfat_core.c 		name_ep = (struct name_dentry_t *)get_entry_in_dir(sb, p_dir,
sb               1374 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector);
sb               1378 drivers/staging/exfat/exfat_core.c 	update_dir_checksum(sb, p_dir, entry);
sb               1486 drivers/staging/exfat/exfat_core.c void fat_delete_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb               1492 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1495 drivers/staging/exfat/exfat_core.c 		ep = get_entry_in_dir(sb, p_dir, entry - i, &sector);
sb               1500 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector);
sb               1504 drivers/staging/exfat/exfat_core.c void exfat_delete_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb               1510 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1513 drivers/staging/exfat/exfat_core.c 		ep = get_entry_in_dir(sb, p_dir, entry + i, &sector);
sb               1518 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector);
sb               1522 drivers/staging/exfat/exfat_core.c void update_dir_checksum(struct super_block *sb, struct chain_t *p_dir,
sb               1531 drivers/staging/exfat/exfat_core.c 	file_ep = (struct file_dentry_t *)get_entry_in_dir(sb, p_dir, entry,
sb               1536 drivers/staging/exfat/exfat_core.c 	buf_lock(sb, sector);
sb               1543 drivers/staging/exfat/exfat_core.c 		ep = get_entry_in_dir(sb, p_dir, entry + i, NULL);
sb               1545 drivers/staging/exfat/exfat_core.c 			buf_unlock(sb, sector);
sb               1554 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector);
sb               1555 drivers/staging/exfat/exfat_core.c 	buf_unlock(sb, sector);
sb               1558 drivers/staging/exfat/exfat_core.c void update_dir_checksum_with_entry_set(struct super_block *sb,
sb               1576 drivers/staging/exfat/exfat_core.c 	write_whole_entry_set(sb, es);
sb               1579 drivers/staging/exfat/exfat_core.c static s32 _walk_fat_chain(struct super_block *sb, struct chain_t *p_dir,
sb               1582 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1593 drivers/staging/exfat/exfat_core.c 			if (FAT_read(sb, cur_clu, &cur_clu) == -1)
sb               1604 drivers/staging/exfat/exfat_core.c s32 find_location(struct super_block *sb, struct chain_t *p_dir, s32 entry,
sb               1609 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1610 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               1619 drivers/staging/exfat/exfat_core.c 		ret = _walk_fat_chain(sb, p_dir, off, &clu);
sb               1636 drivers/staging/exfat/exfat_core.c struct dentry_t *get_entry_with_sector(struct super_block *sb, sector_t sector,
sb               1641 drivers/staging/exfat/exfat_core.c 	buf = buf_getblk(sb, sector);
sb               1649 drivers/staging/exfat/exfat_core.c struct dentry_t *get_entry_in_dir(struct super_block *sb, struct chain_t *p_dir,
sb               1656 drivers/staging/exfat/exfat_core.c 	if (find_location(sb, p_dir, entry, &sec, &off) != FFS_SUCCESS)
sb               1659 drivers/staging/exfat/exfat_core.c 	buf = buf_getblk(sb, sec);
sb               1687 drivers/staging/exfat/exfat_core.c struct entry_set_cache_t *get_entry_set_in_dir(struct super_block *sb,
sb               1696 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1697 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               1709 drivers/staging/exfat/exfat_core.c 	ret = _walk_fat_chain(sb, p_dir, byte_offset, &clu);
sb               1723 drivers/staging/exfat/exfat_core.c 	buf = buf_getblk(sb, sec);
sb               1815 drivers/staging/exfat/exfat_core.c 					if (FAT_read(sb, clu, &clu) == -1)
sb               1822 drivers/staging/exfat/exfat_core.c 			buf = buf_getblk(sb, sec);
sb               1853 drivers/staging/exfat/exfat_core.c static s32 __write_partial_entries_in_entry_set(struct super_block *sb,
sb               1859 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1860 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               1874 drivers/staging/exfat/exfat_core.c 		buf = buf_getblk(sb, sec);
sb               1883 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sec);
sb               1893 drivers/staging/exfat/exfat_core.c 					if (FAT_read(sb, clu, &clu) == -1)
sb               1913 drivers/staging/exfat/exfat_core.c s32 write_whole_entry_set(struct super_block *sb, struct entry_set_cache_t *es)
sb               1915 drivers/staging/exfat/exfat_core.c 	return __write_partial_entries_in_entry_set(sb, es, es->sector,
sb               1921 drivers/staging/exfat/exfat_core.c s32 write_partial_entries_in_entry_set(struct super_block *sb,
sb               1927 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1928 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               1943 drivers/staging/exfat/exfat_core.c 	ret = _walk_fat_chain(sb, &dir, byte_offset, &clu);
sb               1956 drivers/staging/exfat/exfat_core.c 	return __write_partial_entries_in_entry_set(sb, es, sec, off, count);
sb               1960 drivers/staging/exfat/exfat_core.c s32 search_deleted_or_unused_entry(struct super_block *sb,
sb               1968 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2004 drivers/staging/exfat/exfat_core.c 			ep = get_entry_in_dir(sb, &clu, i, NULL);
sb               2046 drivers/staging/exfat/exfat_core.c 			if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb               2062 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               2063 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2067 drivers/staging/exfat/exfat_core.c 		return search_deleted_or_unused_entry(sb, p_dir, num_entries);
sb               2069 drivers/staging/exfat/exfat_core.c 	while ((dentry = search_deleted_or_unused_entry(sb, p_dir, num_entries)) < 0) {
sb               2078 drivers/staging/exfat/exfat_core.c 		last_clu = find_last_cluster(sb, p_dir);
sb               2084 drivers/staging/exfat/exfat_core.c 		ret = p_fs->fs_func->alloc_cluster(sb, 1, &clu);
sb               2088 drivers/staging/exfat/exfat_core.c 		if (clear_cluster(sb, clu.dir) != FFS_SUCCESS)
sb               2093 drivers/staging/exfat/exfat_core.c 			exfat_chain_cont_cluster(sb, p_dir->dir, p_dir->size);
sb               2098 drivers/staging/exfat/exfat_core.c 			if (FAT_write(sb, last_clu, clu.dir) < 0)
sb               2117 drivers/staging/exfat/exfat_core.c 				ep = get_entry_in_dir(sb, &fid->dir,
sb               2123 drivers/staging/exfat/exfat_core.c 				buf_modify(sb, sector);
sb               2125 drivers/staging/exfat/exfat_core.c 				update_dir_checksum(sb, &(fid->dir),
sb               2145 drivers/staging/exfat/exfat_core.c s32 fat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb               2159 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2162 drivers/staging/exfat/exfat_core.c 		if ((!nls_uniname_cmp(sb, p_uniname->name,
sb               2164 drivers/staging/exfat/exfat_core.c 			(!nls_uniname_cmp(sb, p_uniname->name,
sb               2182 drivers/staging/exfat/exfat_core.c 			ep = get_entry_in_dir(sb, &clu, i, NULL);
sb               2194 drivers/staging/exfat/exfat_core.c 					if (!nls_dosname_cmp(sb, p_dosname->name, dos_ep->name))
sb               2215 drivers/staging/exfat/exfat_core.c 					if (nls_uniname_cmp(sb, uniname, entry_uniname))
sb               2231 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb               2243 drivers/staging/exfat/exfat_core.c s32 exfat_find_dir_entry(struct super_block *sb, struct chain_t *p_dir,
sb               2258 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2261 drivers/staging/exfat/exfat_core.c 		if ((!nls_uniname_cmp(sb, p_uniname->name,
sb               2263 drivers/staging/exfat/exfat_core.c 			(!nls_uniname_cmp(sb, p_uniname->name,
sb               2285 drivers/staging/exfat/exfat_core.c 			ep = get_entry_in_dir(sb, &clu, i, NULL);
sb               2347 drivers/staging/exfat/exfat_core.c 						if (nls_uniname_cmp(sb, uniname, entry_uniname)) {
sb               2378 drivers/staging/exfat/exfat_core.c 			if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb               2386 drivers/staging/exfat/exfat_core.c s32 fat_count_ext_entries(struct super_block *sb, struct chain_t *p_dir,
sb               2393 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2398 drivers/staging/exfat/exfat_core.c 		ext_ep = (struct ext_dentry_t *)get_entry_in_dir(sb, p_dir,
sb               2416 drivers/staging/exfat/exfat_core.c s32 exfat_count_ext_entries(struct super_block *sb, struct chain_t *p_dir,
sb               2423 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2426 drivers/staging/exfat/exfat_core.c 		ext_ep = get_entry_in_dir(sb, p_dir, entry, NULL);
sb               2440 drivers/staging/exfat/exfat_core.c s32 count_dos_name_entries(struct super_block *sb, struct chain_t *p_dir,
sb               2448 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2464 drivers/staging/exfat/exfat_core.c 			ep = get_entry_in_dir(sb, &clu, i, NULL);
sb               2489 drivers/staging/exfat/exfat_core.c 			if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb               2497 drivers/staging/exfat/exfat_core.c bool is_dir_empty(struct super_block *sb, struct chain_t *p_dir)
sb               2504 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2520 drivers/staging/exfat/exfat_core.c 			ep = get_entry_in_dir(sb, &clu, i, NULL);
sb               2549 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb               2563 drivers/staging/exfat/exfat_core.c s32 get_num_entries_and_dos_name(struct super_block *sb, struct chain_t *p_dir,
sb               2570 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2577 drivers/staging/exfat/exfat_core.c 		nls_uniname_to_dosname(sb, p_dosname, p_uniname, &lossy);
sb               2580 drivers/staging/exfat/exfat_core.c 			ret = fat_generate_dos_name(sb, p_dir, p_dosname);
sb               2602 drivers/staging/exfat/exfat_core.c void get_uni_name_from_dos_entry(struct super_block *sb,
sb               2614 drivers/staging/exfat/exfat_core.c 	nls_dosname_to_uniname(sb, p_uniname, &dos_name);
sb               2617 drivers/staging/exfat/exfat_core.c void fat_get_uni_name_from_ext_entry(struct super_block *sb,
sb               2623 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2626 drivers/staging/exfat/exfat_core.c 		ep = (struct ext_dentry_t *)get_entry_in_dir(sb, p_dir, entry,
sb               2644 drivers/staging/exfat/exfat_core.c void exfat_get_uni_name_from_ext_entry(struct super_block *sb,
sb               2651 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2653 drivers/staging/exfat/exfat_core.c 	es = get_entry_set_in_dir(sb, p_dir, entry, ES_ALL_ENTRIES, &ep);
sb               2743 drivers/staging/exfat/exfat_core.c s32 fat_generate_dos_name(struct super_block *sb, struct chain_t *p_dir,
sb               2753 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2771 drivers/staging/exfat/exfat_core.c 			ep = (struct dos_dentry_t *)get_entry_in_dir(sb, &clu,
sb               2812 drivers/staging/exfat/exfat_core.c 		if (FAT_read(sb, clu.dir, &clu.dir) != 0)
sb               2960 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               2961 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2967 drivers/staging/exfat/exfat_core.c 	nls_cstring_to_uniname(sb, p_uniname, name_buf, &lossy);
sb               3010 drivers/staging/exfat/exfat_core.c s32 fat16_mount(struct super_block *sb, struct pbr_sector_t *p_pbr)
sb               3014 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3015 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               3072 drivers/staging/exfat/exfat_core.c s32 fat32_mount(struct super_block *sb, struct pbr_sector_t *p_pbr)
sb               3076 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3077 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               3152 drivers/staging/exfat/exfat_core.c s32 exfat_mount(struct super_block *sb, struct pbr_sector_t *p_pbr)
sb               3155 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3156 drivers/staging/exfat/exfat_core.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               3207 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               3208 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3211 drivers/staging/exfat/exfat_core.c 	ret = get_num_entries_and_dos_name(sb, p_dir, p_uniname, &num_entries,
sb               3226 drivers/staging/exfat/exfat_core.c 	ret = fs_func->alloc_cluster(sb, 1, &clu);
sb               3232 drivers/staging/exfat/exfat_core.c 	ret = clear_cluster(sb, clu.dir);
sb               3249 drivers/staging/exfat/exfat_core.c 		ret = fs_func->init_dir_entry(sb, &clu, 0, TYPE_DIR, clu.dir,
sb               3254 drivers/staging/exfat/exfat_core.c 		ret = fs_func->init_ext_entry(sb, &clu, 0, 1, NULL, &dot_name);
sb               3261 drivers/staging/exfat/exfat_core.c 			ret = fs_func->init_dir_entry(sb, &clu, 1, TYPE_DIR,
sb               3264 drivers/staging/exfat/exfat_core.c 			ret = fs_func->init_dir_entry(sb, &clu, 1, TYPE_DIR,
sb               3270 drivers/staging/exfat/exfat_core.c 		ret = p_fs->fs_func->init_ext_entry(sb, &clu, 1, 1, NULL,
sb               3278 drivers/staging/exfat/exfat_core.c 	ret = fs_func->init_dir_entry(sb, p_dir, dentry, TYPE_DIR, clu.dir,
sb               3283 drivers/staging/exfat/exfat_core.c 	ret = fs_func->init_ext_entry(sb, p_dir, dentry, num_entries, p_uniname,
sb               3310 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               3311 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3314 drivers/staging/exfat/exfat_core.c 	ret = get_num_entries_and_dos_name(sb, p_dir, p_uniname, &num_entries,
sb               3328 drivers/staging/exfat/exfat_core.c 	ret = fs_func->init_dir_entry(sb, p_dir, dentry, TYPE_FILE | mode,
sb               3333 drivers/staging/exfat/exfat_core.c 	ret = fs_func->init_ext_entry(sb, p_dir, dentry, num_entries, p_uniname,
sb               3360 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               3361 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3364 drivers/staging/exfat/exfat_core.c 	ep = get_entry_in_dir(sb, p_dir, entry, &sector);
sb               3368 drivers/staging/exfat/exfat_core.c 	buf_lock(sb, sector);
sb               3371 drivers/staging/exfat/exfat_core.c 	num_entries = fs_func->count_ext_entries(sb, p_dir, entry, ep);
sb               3373 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector);
sb               3378 drivers/staging/exfat/exfat_core.c 	buf_unlock(sb, sector);
sb               3381 drivers/staging/exfat/exfat_core.c 	fs_func->delete_dir_entry(sb, p_dir, entry, 0, num_entries);
sb               3391 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               3392 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3395 drivers/staging/exfat/exfat_core.c 	epold = get_entry_in_dir(sb, p_dir, oldentry, &sector_old);
sb               3399 drivers/staging/exfat/exfat_core.c 	buf_lock(sb, sector_old);
sb               3402 drivers/staging/exfat/exfat_core.c 	num_old_entries = fs_func->count_ext_entries(sb, p_dir, oldentry,
sb               3405 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_old);
sb               3410 drivers/staging/exfat/exfat_core.c 	ret = get_num_entries_and_dos_name(sb, p_dir, p_uniname,
sb               3413 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_old);
sb               3420 drivers/staging/exfat/exfat_core.c 			buf_unlock(sb, sector_old);
sb               3424 drivers/staging/exfat/exfat_core.c 		epnew = get_entry_in_dir(sb, p_dir, newentry, &sector_new);
sb               3426 drivers/staging/exfat/exfat_core.c 			buf_unlock(sb, sector_old);
sb               3437 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector_new);
sb               3438 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_old);
sb               3441 drivers/staging/exfat/exfat_core.c 			epold = get_entry_in_dir(sb, p_dir, oldentry + 1,
sb               3443 drivers/staging/exfat/exfat_core.c 			buf_lock(sb, sector_old);
sb               3444 drivers/staging/exfat/exfat_core.c 			epnew = get_entry_in_dir(sb, p_dir, newentry + 1,
sb               3448 drivers/staging/exfat/exfat_core.c 				buf_unlock(sb, sector_old);
sb               3453 drivers/staging/exfat/exfat_core.c 			buf_modify(sb, sector_new);
sb               3454 drivers/staging/exfat/exfat_core.c 			buf_unlock(sb, sector_old);
sb               3457 drivers/staging/exfat/exfat_core.c 		ret = fs_func->init_ext_entry(sb, p_dir, newentry,
sb               3463 drivers/staging/exfat/exfat_core.c 		fs_func->delete_dir_entry(sb, p_dir, oldentry, 0,
sb               3473 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector_old);
sb               3474 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_old);
sb               3476 drivers/staging/exfat/exfat_core.c 		ret = fs_func->init_ext_entry(sb, p_dir, oldentry,
sb               3482 drivers/staging/exfat/exfat_core.c 		fs_func->delete_dir_entry(sb, p_dir, oldentry, num_new_entries,
sb               3498 drivers/staging/exfat/exfat_core.c 	struct super_block *sb = inode->i_sb;
sb               3499 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3502 drivers/staging/exfat/exfat_core.c 	epmov = get_entry_in_dir(sb, p_olddir, oldentry, &sector_mov);
sb               3511 drivers/staging/exfat/exfat_core.c 	buf_lock(sb, sector_mov);
sb               3514 drivers/staging/exfat/exfat_core.c 	num_old_entries = fs_func->count_ext_entries(sb, p_olddir, oldentry,
sb               3517 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_mov);
sb               3522 drivers/staging/exfat/exfat_core.c 	ret = get_num_entries_and_dos_name(sb, p_newdir, p_uniname,
sb               3525 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_mov);
sb               3531 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_mov);
sb               3535 drivers/staging/exfat/exfat_core.c 	epnew = get_entry_in_dir(sb, p_newdir, newentry, &sector_new);
sb               3537 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_mov);
sb               3547 drivers/staging/exfat/exfat_core.c 	buf_modify(sb, sector_new);
sb               3548 drivers/staging/exfat/exfat_core.c 	buf_unlock(sb, sector_mov);
sb               3551 drivers/staging/exfat/exfat_core.c 		epmov = get_entry_in_dir(sb, p_olddir, oldentry + 1,
sb               3553 drivers/staging/exfat/exfat_core.c 		buf_lock(sb, sector_mov);
sb               3554 drivers/staging/exfat/exfat_core.c 		epnew = get_entry_in_dir(sb, p_newdir, newentry + 1,
sb               3557 drivers/staging/exfat/exfat_core.c 			buf_unlock(sb, sector_mov);
sb               3562 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector_new);
sb               3563 drivers/staging/exfat/exfat_core.c 		buf_unlock(sb, sector_mov);
sb               3569 drivers/staging/exfat/exfat_core.c 		epnew = get_entry_in_dir(sb, &clu, 1, &sector_new);
sb               3577 drivers/staging/exfat/exfat_core.c 		buf_modify(sb, sector_new);
sb               3580 drivers/staging/exfat/exfat_core.c 	ret = fs_func->init_ext_entry(sb, p_newdir, newentry, num_new_entries,
sb               3585 drivers/staging/exfat/exfat_core.c 	fs_func->delete_dir_entry(sb, p_olddir, oldentry, 0, num_old_entries);
sb               3600 drivers/staging/exfat/exfat_core.c int sector_read(struct super_block *sb, sector_t sec, struct buffer_head **bh,
sb               3604 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3610 drivers/staging/exfat/exfat_core.c 		fs_error(sb);
sb               3615 drivers/staging/exfat/exfat_core.c 		ret = bdev_read(sb, sec, bh, 1, read);
sb               3623 drivers/staging/exfat/exfat_core.c int sector_write(struct super_block *sb, sector_t sec, struct buffer_head *bh,
sb               3627 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3633 drivers/staging/exfat/exfat_core.c 		fs_error(sb);
sb               3639 drivers/staging/exfat/exfat_core.c 		fs_error(sb);
sb               3644 drivers/staging/exfat/exfat_core.c 		ret = bdev_write(sb, sec, bh, 1, sync);
sb               3652 drivers/staging/exfat/exfat_core.c int multi_sector_read(struct super_block *sb, sector_t sec,
sb               3656 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3662 drivers/staging/exfat/exfat_core.c 		fs_error(sb);
sb               3667 drivers/staging/exfat/exfat_core.c 		ret = bdev_read(sb, sec, bh, num_secs, read);
sb               3675 drivers/staging/exfat/exfat_core.c int multi_sector_write(struct super_block *sb, sector_t sec,
sb               3679 drivers/staging/exfat/exfat_core.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3685 drivers/staging/exfat/exfat_core.c 		fs_error(sb);
sb               3690 drivers/staging/exfat/exfat_core.c 		fs_error(sb);
sb               3695 drivers/staging/exfat/exfat_core.c 		ret = bdev_write(sb, sec, bh, num_secs, sync);
sb                 77 drivers/staging/exfat/exfat_nls.c u16 nls_upper(struct super_block *sb, u16 a)
sb                 79 drivers/staging/exfat/exfat_nls.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                 81 drivers/staging/exfat/exfat_nls.c 	if (EXFAT_SB(sb)->options.casesensitive)
sb                 99 drivers/staging/exfat/exfat_nls.c int nls_dosname_cmp(struct super_block *sb, u8 *a, u8 *b)
sb                104 drivers/staging/exfat/exfat_nls.c int nls_uniname_cmp(struct super_block *sb, u16 *a, u16 *b)
sb                109 drivers/staging/exfat/exfat_nls.c 		if (nls_upper(sb, *a) != nls_upper(sb, *b))
sb                117 drivers/staging/exfat/exfat_nls.c void nls_uniname_to_dosname(struct super_block *sb,
sb                128 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_disk;
sb                133 drivers/staging/exfat/exfat_nls.c 	if (!nls_uniname_cmp(sb, uniname, (u16 *)UNI_CUR_DIR_NAME)) {
sb                141 drivers/staging/exfat/exfat_nls.c 	if (!nls_uniname_cmp(sb, uniname, (u16 *)UNI_PAR_DIR_NAME)) {
sb                239 drivers/staging/exfat/exfat_nls.c void nls_dosname_to_uniname(struct super_block *sb,
sb                247 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_disk;
sb                297 drivers/staging/exfat/exfat_nls.c void nls_uniname_to_cstring(struct super_block *sb, u8 *p_cstring,
sb                303 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_io;
sb                334 drivers/staging/exfat/exfat_nls.c void nls_cstring_to_uniname(struct super_block *sb,
sb                343 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_io;
sb                371 drivers/staging/exfat/exfat_nls.c 			SET16_A(upname + j * 2, nls_upper(sb, uniname[j]));
sb                387 drivers/staging/exfat/exfat_nls.c 			SET16_A(upname + j * 2, nls_upper(sb, *uniname));
sb                 48 drivers/staging/exfat/exfat_super.c static struct inode *exfat_iget(struct super_block *sb, loff_t i_pos);
sb                 50 drivers/staging/exfat/exfat_super.c static struct inode *exfat_build_inode(struct super_block *sb,
sb                 54 drivers/staging/exfat/exfat_super.c static void exfat_write_super(struct super_block *sb);
sb                144 drivers/staging/exfat/exfat_super.c static void __lock_super(struct super_block *sb)
sb                146 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                151 drivers/staging/exfat/exfat_super.c static void __unlock_super(struct super_block *sb)
sb                153 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                158 drivers/staging/exfat/exfat_super.c static int __is_sb_dirty(struct super_block *sb)
sb                160 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                165 drivers/staging/exfat/exfat_super.c static void __set_sb_clean(struct super_block *sb)
sb                167 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb                225 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dentry->d_sb;
sb                235 drivers/staging/exfat/exfat_super.c 		hash = partial_name_hash(nls_upper(sb, *name++), hash);
sb                289 drivers/staging/exfat/exfat_super.c static inline void fs_sync(struct super_block *sb, bool do_sync)
sb                292 drivers/staging/exfat/exfat_super.c 		bdev_sync(sb);
sb                346 drivers/staging/exfat/exfat_super.c static int ffsMountVol(struct super_block *sb)
sb                351 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                352 drivers/staging/exfat/exfat_super.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                358 drivers/staging/exfat/exfat_super.c 	buf_init(sb);
sb                364 drivers/staging/exfat/exfat_super.c 	bdev_open(sb);
sb                366 drivers/staging/exfat/exfat_super.c 	if (p_bd->sector_size < sb->s_blocksize) {
sb                370 drivers/staging/exfat/exfat_super.c 	if (p_bd->sector_size > sb->s_blocksize)
sb                371 drivers/staging/exfat/exfat_super.c 		sb_set_blocksize(sb, p_bd->sector_size);
sb                374 drivers/staging/exfat/exfat_super.c 	if (sector_read(sb, 0, &tmp_bh, 1) != FFS_SUCCESS) {
sb                386 drivers/staging/exfat/exfat_super.c 		bdev_close(sb);
sb                403 drivers/staging/exfat/exfat_super.c 			ret = fat16_mount(sb, p_pbr);
sb                405 drivers/staging/exfat/exfat_super.c 			ret = fat32_mount(sb, p_pbr);
sb                408 drivers/staging/exfat/exfat_super.c 		ret = exfat_mount(sb, p_pbr);
sb                414 drivers/staging/exfat/exfat_super.c 		bdev_close(sb);
sb                419 drivers/staging/exfat/exfat_super.c 		ret = load_alloc_bitmap(sb);
sb                421 drivers/staging/exfat/exfat_super.c 			bdev_close(sb);
sb                424 drivers/staging/exfat/exfat_super.c 		ret = load_upcase_table(sb);
sb                426 drivers/staging/exfat/exfat_super.c 			free_alloc_bitmap(sb);
sb                427 drivers/staging/exfat/exfat_super.c 			bdev_close(sb);
sb                434 drivers/staging/exfat/exfat_super.c 			free_upcase_table(sb);
sb                435 drivers/staging/exfat/exfat_super.c 			free_alloc_bitmap(sb);
sb                437 drivers/staging/exfat/exfat_super.c 		bdev_close(sb);
sb                450 drivers/staging/exfat/exfat_super.c static int ffsUmountVol(struct super_block *sb)
sb                452 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                462 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb                463 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb                466 drivers/staging/exfat/exfat_super.c 		free_upcase_table(sb);
sb                467 drivers/staging/exfat/exfat_super.c 		free_alloc_bitmap(sb);
sb                470 drivers/staging/exfat/exfat_super.c 	FAT_release_all(sb);
sb                471 drivers/staging/exfat/exfat_super.c 	buf_release_all(sb);
sb                474 drivers/staging/exfat/exfat_super.c 	bdev_close(sb);
sb                481 drivers/staging/exfat/exfat_super.c 	buf_shutdown(sb);
sb                492 drivers/staging/exfat/exfat_super.c static int ffsGetVolInfo(struct super_block *sb, struct vol_info_t *info)
sb                495 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                505 drivers/staging/exfat/exfat_super.c 		p_fs->used_clusters = p_fs->fs_func->count_used_clusters(sb);
sb                522 drivers/staging/exfat/exfat_super.c static int ffsSyncVol(struct super_block *sb, bool do_sync)
sb                525 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                531 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, do_sync);
sb                532 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb                555 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb                556 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                572 drivers/staging/exfat/exfat_super.c 	ret = get_num_entries_and_dos_name(sb, &dir, &uni_name, &num_entries,
sb                578 drivers/staging/exfat/exfat_super.c 	dentry = p_fs->fs_func->find_dir_entry(sb, &dir, &uni_name, num_entries,
sb                601 drivers/staging/exfat/exfat_super.c 			es = get_entry_set_in_dir(sb, &dir, dentry,
sb                609 drivers/staging/exfat/exfat_super.c 			ep = get_entry_in_dir(sb, &dir, dentry, NULL);
sb                649 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb                650 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                665 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb                671 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb                672 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb                694 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb                695 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                696 drivers/staging/exfat/exfat_super.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                746 drivers/staging/exfat/exfat_super.c 				if (FAT_read(sb, clu, &clu) == -1)
sb                774 drivers/staging/exfat/exfat_super.c 			if (sector_read(sb, LogSector, &tmp_bh, 1) !=
sb                780 drivers/staging/exfat/exfat_super.c 			if (sector_read(sb, LogSector, &tmp_bh, 1) !=
sb                824 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb                825 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb                826 drivers/staging/exfat/exfat_super.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb                855 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb                889 drivers/staging/exfat/exfat_super.c 				if (FAT_read(sb, clu, &clu) == -1) {
sb                906 drivers/staging/exfat/exfat_super.c 			num_alloced = p_fs->fs_func->alloc_cluster(sb,
sb                924 drivers/staging/exfat/exfat_super.c 					exfat_chain_cont_cluster(sb,
sb                931 drivers/staging/exfat/exfat_super.c 					FAT_write(sb, last_clu, new_clu.dir);
sb                959 drivers/staging/exfat/exfat_super.c 			if (sector_read(sb, LogSector, &tmp_bh, 0) !=
sb                964 drivers/staging/exfat/exfat_super.c 			if (sector_write(sb, LogSector, tmp_bh, 0) !=
sb                972 drivers/staging/exfat/exfat_super.c 				if (sector_read(sb, LogSector, &tmp_bh, 1) !=
sb                976 drivers/staging/exfat/exfat_super.c 				if (sector_read(sb, LogSector, &tmp_bh, 0) !=
sb                983 drivers/staging/exfat/exfat_super.c 			if (sector_write(sb, LogSector, tmp_bh, 0) !=
sb               1006 drivers/staging/exfat/exfat_super.c 		es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry,
sb               1012 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, &sector);
sb               1022 drivers/staging/exfat/exfat_super.c 		buf_modify(sb, sector);
sb               1035 drivers/staging/exfat/exfat_super.c 			buf_modify(sb, sector);
sb               1039 drivers/staging/exfat/exfat_super.c 		update_dir_checksum_with_entry_set(sb, es);
sb               1044 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               1045 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               1075 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1076 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1102 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               1117 drivers/staging/exfat/exfat_super.c 				if (FAT_read(sb, clu.dir, &clu.dir) == -1) {
sb               1137 drivers/staging/exfat/exfat_super.c 		es = get_entry_set_in_dir(sb, &fid->dir, fid->entry,
sb               1145 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, &sector);
sb               1163 drivers/staging/exfat/exfat_super.c 		buf_modify(sb, sector);
sb               1165 drivers/staging/exfat/exfat_super.c 		update_dir_checksum_with_entry_set(sb, es);
sb               1172 drivers/staging/exfat/exfat_super.c 			FAT_write(sb, last_clu, CLUSTER_32(~0));
sb               1176 drivers/staging/exfat/exfat_super.c 	p_fs->fs_func->free_cluster(sb, &clu, 0);
sb               1184 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               1185 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               1225 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = old_parent_inode->i_sb;
sb               1226 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1260 drivers/staging/exfat/exfat_super.c 	ep = get_entry_in_dir(sb, &olddir, dentry, NULL);
sb               1282 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, p_dir, new_entry, NULL);
sb               1296 drivers/staging/exfat/exfat_super.c 			if (!is_dir_empty(sb, &new_clu)) {
sb               1308 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               1319 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, p_dir, new_entry, NULL);
sb               1323 drivers/staging/exfat/exfat_super.c 		num_entries = p_fs->fs_func->count_ext_entries(sb, p_dir,
sb               1327 drivers/staging/exfat/exfat_super.c 		p_fs->fs_func->delete_dir_entry(sb, p_dir, new_entry, 0,
sb               1332 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               1333 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               1351 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1352 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1367 drivers/staging/exfat/exfat_super.c 	ep = get_entry_in_dir(sb, &dir, dentry, NULL);
sb               1377 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               1387 drivers/staging/exfat/exfat_super.c 	p_fs->fs_func->free_cluster(sb, &clu_to_free, 0);
sb               1394 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               1395 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               1415 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1416 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1441 drivers/staging/exfat/exfat_super.c 		es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry,
sb               1448 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, &sector);
sb               1469 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               1476 drivers/staging/exfat/exfat_super.c 		buf_modify(sb, sector);
sb               1478 drivers/staging/exfat/exfat_super.c 		update_dir_checksum_with_entry_set(sb, es);
sb               1483 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               1484 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               1506 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1507 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1538 drivers/staging/exfat/exfat_super.c 				info->Size = count_num_clusters(sb, &dir) <<
sb               1542 drivers/staging/exfat/exfat_super.c 			count = count_dos_name_entries(sb, &dir, TYPE_DIR);
sb               1557 drivers/staging/exfat/exfat_super.c 		es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry,
sb               1565 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, &sector);
sb               1571 drivers/staging/exfat/exfat_super.c 		buf_lock(sb, sector);
sb               1601 drivers/staging/exfat/exfat_super.c 	p_fs->fs_func->get_uni_name_from_ext_entry(sb, &(fid->dir), fid->entry,
sb               1604 drivers/staging/exfat/exfat_super.c 		get_uni_name_from_dos_entry(sb, (struct dos_dentry_t *)ep,
sb               1606 drivers/staging/exfat/exfat_super.c 	nls_uniname_to_cstring(sb, info->Name, &uni_name);
sb               1611 drivers/staging/exfat/exfat_super.c 		buf_unlock(sb, sector);
sb               1612 drivers/staging/exfat/exfat_super.c 		get_uni_name_from_dos_entry(sb, (struct dos_dentry_t *)ep,
sb               1614 drivers/staging/exfat/exfat_super.c 		nls_uniname_to_cstring(sb, info->ShortName, &uni_name);
sb               1628 drivers/staging/exfat/exfat_super.c 			info->Size = (u64)count_num_clusters(sb, &dir) <<
sb               1631 drivers/staging/exfat/exfat_super.c 		count = count_dos_name_entries(sb, &dir, TYPE_DIR);
sb               1657 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1658 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1677 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               1681 drivers/staging/exfat/exfat_super.c 		es = get_entry_set_in_dir(sb, &(fid->dir), fid->entry,
sb               1690 drivers/staging/exfat/exfat_super.c 		ep = get_entry_in_dir(sb, &(fid->dir), fid->entry, &sector);
sb               1720 drivers/staging/exfat/exfat_super.c 		buf_modify(sb, sector);
sb               1722 drivers/staging/exfat/exfat_super.c 		update_dir_checksum_with_entry_set(sb, es);
sb               1748 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1749 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1788 drivers/staging/exfat/exfat_super.c 			if (FAT_read(sb, *clu, clu) == -1) {
sb               1797 drivers/staging/exfat/exfat_super.c 		fs_set_vol_flags(sb, VOL_DIRTY);
sb               1805 drivers/staging/exfat/exfat_super.c 		num_alloced = p_fs->fs_func->alloc_cluster(sb, 1, &new_clu);
sb               1822 drivers/staging/exfat/exfat_super.c 				exfat_chain_cont_cluster(sb, fid->start_clu,
sb               1828 drivers/staging/exfat/exfat_super.c 				FAT_write(sb, last_clu, new_clu.dir);
sb               1835 drivers/staging/exfat/exfat_super.c 			es = get_entry_set_in_dir(sb, &fid->dir, fid->entry,
sb               1848 drivers/staging/exfat/exfat_super.c 				ep = get_entry_in_dir(sb, &(fid->dir),
sb               1864 drivers/staging/exfat/exfat_super.c 				buf_modify(sb, sector);
sb               1868 drivers/staging/exfat/exfat_super.c 			update_dir_checksum_with_entry_set(sb, es);
sb               1899 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1900 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               1916 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               1921 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               1922 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               1945 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               1946 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2005 drivers/staging/exfat/exfat_super.c 				if (FAT_read(sb, clu.dir, &clu.dir) == -1) {
sb               2024 drivers/staging/exfat/exfat_super.c 			ep = get_entry_in_dir(sb, &clu, i, &sector);
sb               2037 drivers/staging/exfat/exfat_super.c 			buf_lock(sb, sector);
sb               2062 drivers/staging/exfat/exfat_super.c 			fs_func->get_uni_name_from_ext_entry(sb, &dir, dentry,
sb               2065 drivers/staging/exfat/exfat_super.c 				get_uni_name_from_dos_entry(sb,
sb               2068 drivers/staging/exfat/exfat_super.c 			nls_uniname_to_cstring(sb, dir_entry->Name, &uni_name);
sb               2069 drivers/staging/exfat/exfat_super.c 			buf_unlock(sb, sector);
sb               2072 drivers/staging/exfat/exfat_super.c 				ep = get_entry_in_dir(sb, &clu, i + 1, NULL);
sb               2078 drivers/staging/exfat/exfat_super.c 				get_uni_name_from_dos_entry(sb,
sb               2081 drivers/staging/exfat/exfat_super.c 				nls_uniname_to_cstring(sb, dir_entry->ShortName,
sb               2112 drivers/staging/exfat/exfat_super.c 			if (FAT_read(sb, clu.dir, &clu.dir) == -1) {
sb               2138 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               2139 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               2164 drivers/staging/exfat/exfat_super.c 	if (!is_dir_empty(sb, &clu_to_free)) {
sb               2169 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_DIRTY);
sb               2175 drivers/staging/exfat/exfat_super.c 	p_fs->fs_func->free_cluster(sb, &clu_to_free, 1);
sb               2182 drivers/staging/exfat/exfat_super.c 	fs_sync(sb, false);
sb               2183 drivers/staging/exfat/exfat_super.c 	fs_set_vol_flags(sb, VOL_CLEAN);
sb               2203 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               2204 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               2206 drivers/staging/exfat/exfat_super.c 	struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info);
sb               2212 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2268 drivers/staging/exfat/exfat_super.c 		struct inode *tmp = exfat_iget(sb, i_pos);
sb               2274 drivers/staging/exfat/exfat_super.c 			inum = iunique(sb, EXFAT_ROOT_INO);
sb               2288 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2294 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2295 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               2314 drivers/staging/exfat/exfat_super.c 		struct super_block *sb = inode->i_sb;
sb               2315 drivers/staging/exfat/exfat_super.c 		struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               2321 drivers/staging/exfat/exfat_super.c 		struct super_block *sb = inode->i_sb;
sb               2322 drivers/staging/exfat/exfat_super.c 		struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               2330 drivers/staging/exfat/exfat_super.c 		__lock_super(sb);
sb               2332 drivers/staging/exfat/exfat_super.c 		__unlock_super(sb);
sb               2353 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2359 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2386 drivers/staging/exfat/exfat_super.c 	inode = exfat_build_inode(sb, &fid, i_pos);
sb               2401 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2429 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2438 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2450 drivers/staging/exfat/exfat_super.c 	inode = exfat_build_inode(sb, &fid, i_pos);
sb               2475 drivers/staging/exfat/exfat_super.c 		__unlock_super(sb);
sb               2481 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2490 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2524 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2527 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2554 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2562 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2570 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2608 drivers/staging/exfat/exfat_super.c 	inode = exfat_build_inode(sb, &fid, i_pos);
sb               2627 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2634 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2640 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2668 drivers/staging/exfat/exfat_super.c 	inode = exfat_build_inode(sb, &fid, i_pos);
sb               2681 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2689 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dir->i_sb;
sb               2692 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2726 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2736 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = old_dir->i_sb;
sb               2743 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2808 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               2896 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               2897 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               2901 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               2926 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               3044 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               3047 drivers/staging/exfat/exfat_super.c 	ffsSyncVol(sb, false);
sb               3074 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               3075 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               3078 drivers/staging/exfat/exfat_super.c 	const unsigned long blocksize = sb->s_blocksize;
sb               3079 drivers/staging/exfat/exfat_super.c 	const unsigned char blocksize_bits = sb->s_blocksize_bits;
sb               3133 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               3139 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               3143 drivers/staging/exfat/exfat_super.c 		__unlock_super(sb);
sb               3151 drivers/staging/exfat/exfat_super.c 							sb->s_blocksize_bits;
sb               3154 drivers/staging/exfat/exfat_super.c 		map_bh(bh_result, sb, phys);
sb               3157 drivers/staging/exfat/exfat_super.c 	bh_result->b_size = max_blocks << sb->s_blocksize_bits;
sb               3158 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               3280 drivers/staging/exfat/exfat_super.c static struct inode *exfat_iget(struct super_block *sb, loff_t i_pos)
sb               3282 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               3289 drivers/staging/exfat/exfat_super.c 		BUG_ON(info->vfs_inode.i_sb != sb);
sb               3358 drivers/staging/exfat/exfat_super.c static struct inode *exfat_build_inode(struct super_block *sb,
sb               3364 drivers/staging/exfat/exfat_super.c 	inode = exfat_iget(sb, i_pos);
sb               3367 drivers/staging/exfat/exfat_super.c 	inode = new_inode(sb);
sb               3372 drivers/staging/exfat/exfat_super.c 	inode->i_ino = iunique(sb, EXFAT_ROOT_INO);
sb               3391 drivers/staging/exfat/exfat_super.c static struct inode *exfat_alloc_inode(struct super_block *sb)
sb               3457 drivers/staging/exfat/exfat_super.c static void exfat_put_super(struct super_block *sb)
sb               3459 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               3461 drivers/staging/exfat/exfat_super.c 	if (__is_sb_dirty(sb))
sb               3462 drivers/staging/exfat/exfat_super.c 		exfat_write_super(sb);
sb               3464 drivers/staging/exfat/exfat_super.c 	ffsUmountVol(sb);
sb               3466 drivers/staging/exfat/exfat_super.c 	sb->s_fs_info = NULL;
sb               3470 drivers/staging/exfat/exfat_super.c static void exfat_write_super(struct super_block *sb)
sb               3472 drivers/staging/exfat/exfat_super.c 	__lock_super(sb);
sb               3474 drivers/staging/exfat/exfat_super.c 	__set_sb_clean(sb);
sb               3476 drivers/staging/exfat/exfat_super.c 	if (!sb_rdonly(sb))
sb               3477 drivers/staging/exfat/exfat_super.c 		ffsSyncVol(sb, true);
sb               3479 drivers/staging/exfat/exfat_super.c 	__unlock_super(sb);
sb               3482 drivers/staging/exfat/exfat_super.c static int exfat_sync_fs(struct super_block *sb, int wait)
sb               3486 drivers/staging/exfat/exfat_super.c 	if (__is_sb_dirty(sb)) {
sb               3487 drivers/staging/exfat/exfat_super.c 		__lock_super(sb);
sb               3488 drivers/staging/exfat/exfat_super.c 		__set_sb_clean(sb);
sb               3489 drivers/staging/exfat/exfat_super.c 		err = ffsSyncVol(sb, true);
sb               3490 drivers/staging/exfat/exfat_super.c 		__unlock_super(sb);
sb               3498 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = dentry->d_sb;
sb               3499 drivers/staging/exfat/exfat_super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb               3500 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3504 drivers/staging/exfat/exfat_super.c 		if (ffsGetVolInfo(sb, &info) == FFS_MEDIAERR)
sb               3518 drivers/staging/exfat/exfat_super.c 	buf->f_type = sb->s_magic;
sb               3530 drivers/staging/exfat/exfat_super.c static int exfat_remount(struct super_block *sb, int *flags, char *data)
sb               3583 drivers/staging/exfat/exfat_super.c static struct inode *exfat_nfs_get_inode(struct super_block *sb, u64 ino,
sb               3590 drivers/staging/exfat/exfat_super.c 	inode = ilookup(sb, ino);
sb               3600 drivers/staging/exfat/exfat_super.c static struct dentry *exfat_fh_to_dentry(struct super_block *sb,
sb               3604 drivers/staging/exfat/exfat_super.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb               3608 drivers/staging/exfat/exfat_super.c static struct dentry *exfat_fh_to_parent(struct super_block *sb,
sb               3612 drivers/staging/exfat/exfat_super.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb               3776 drivers/staging/exfat/exfat_super.c static void exfat_hash_init(struct super_block *sb)
sb               3778 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               3788 drivers/staging/exfat/exfat_super.c 	struct super_block *sb = inode->i_sb;
sb               3789 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               3827 drivers/staging/exfat/exfat_super.c static void setup_dops(struct super_block *sb)
sb               3829 drivers/staging/exfat/exfat_super.c 	if (EXFAT_SB(sb)->options.casesensitive == 0)
sb               3830 drivers/staging/exfat/exfat_super.c 		sb->s_d_op = &exfat_ci_dentry_ops;
sb               3832 drivers/staging/exfat/exfat_super.c 		sb->s_d_op = &exfat_dentry_ops;
sb               3835 drivers/staging/exfat/exfat_super.c static int exfat_fill_super(struct super_block *sb, void *data, int silent)
sb               3853 drivers/staging/exfat/exfat_super.c 	sb->s_fs_info = sbi;
sb               3854 drivers/staging/exfat/exfat_super.c 	sb->s_flags |= SB_NODIRATIME;
sb               3855 drivers/staging/exfat/exfat_super.c 	sb->s_magic = EXFAT_SUPER_MAGIC;
sb               3856 drivers/staging/exfat/exfat_super.c 	sb->s_op = &exfat_sops;
sb               3857 drivers/staging/exfat/exfat_super.c 	sb->s_export_op = &exfat_export_ops;
sb               3863 drivers/staging/exfat/exfat_super.c 	setup_dops(sb);
sb               3866 drivers/staging/exfat/exfat_super.c 	sb_min_blocksize(sb, 512);
sb               3867 drivers/staging/exfat/exfat_super.c 	sb->s_maxbytes = 0x7fffffffffffffffLL;    /* maximum file size */
sb               3869 drivers/staging/exfat/exfat_super.c 	ret = ffsMountVol(sb);
sb               3878 drivers/staging/exfat/exfat_super.c 	exfat_hash_init(sb);
sb               3902 drivers/staging/exfat/exfat_super.c 	root_inode = new_inode(sb);
sb               3914 drivers/staging/exfat/exfat_super.c 	sb->s_root = d_make_root(root_inode);
sb               3915 drivers/staging/exfat/exfat_super.c 	if (!sb->s_root) {
sb               3923 drivers/staging/exfat/exfat_super.c 	ffsUmountVol(sb);
sb               3927 drivers/staging/exfat/exfat_super.c 	sb->s_fs_info = NULL;
sb               3971 drivers/staging/exfat/exfat_super.c static void exfat_debug_kill_sb(struct super_block *sb)
sb               3973 drivers/staging/exfat/exfat_super.c 	struct exfat_sb_info *sbi = EXFAT_SB(sb);
sb               3974 drivers/staging/exfat/exfat_super.c 	struct block_device *bdev = sb->s_bdev;
sb               3975 drivers/staging/exfat/exfat_super.c 	struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info);
sb               3988 drivers/staging/exfat/exfat_super.c 			FAT_release_all(sb);
sb               3989 drivers/staging/exfat/exfat_super.c 			buf_release_all(sb);
sb               3996 drivers/staging/exfat/exfat_super.c 	kill_block_super(sb);
sb                391 drivers/tty/hvc/hvc_iucv.c 	struct iucv_tty_buffer *sb;
sb                405 drivers/tty/hvc/hvc_iucv.c 	sb = alloc_tty_buffer(priv->sndbuf_len, GFP_ATOMIC);
sb                406 drivers/tty/hvc/hvc_iucv.c 	if (!sb)
sb                409 drivers/tty/hvc/hvc_iucv.c 	memcpy(sb->mbuf->data, priv->sndbuf, priv->sndbuf_len);
sb                410 drivers/tty/hvc/hvc_iucv.c 	sb->mbuf->datalen = (u16) priv->sndbuf_len;
sb                411 drivers/tty/hvc/hvc_iucv.c 	sb->msg.length = MSG_SIZE(sb->mbuf->datalen);
sb                413 drivers/tty/hvc/hvc_iucv.c 	list_add_tail(&sb->list, &priv->tty_outqueue);
sb                415 drivers/tty/hvc/hvc_iucv.c 	rc = __iucv_message_send(priv->path, &sb->msg, 0, 0,
sb                416 drivers/tty/hvc/hvc_iucv.c 				 (void *) sb->mbuf, sb->msg.length);
sb                420 drivers/tty/hvc/hvc_iucv.c 		list_del(&sb->list);
sb                421 drivers/tty/hvc/hvc_iucv.c 		destroy_tty_buffer(sb);
sb                242 drivers/usb/gadget/function/f_fs.c ffs_sb_create_file(struct super_block *sb, const char *name, void *data,
sb               1389 drivers/usb/gadget/function/f_fs.c ffs_sb_make_inode(struct super_block *sb, void *data,
sb               1398 drivers/usb/gadget/function/f_fs.c 	inode = new_inode(sb);
sb               1421 drivers/usb/gadget/function/f_fs.c static struct dentry *ffs_sb_create_file(struct super_block *sb,
sb               1425 drivers/usb/gadget/function/f_fs.c 	struct ffs_data	*ffs = sb->s_fs_info;
sb               1431 drivers/usb/gadget/function/f_fs.c 	dentry = d_alloc_name(sb->s_root, name);
sb               1435 drivers/usb/gadget/function/f_fs.c 	inode = ffs_sb_make_inode(sb, data, fops, NULL, &ffs->file_perms);
sb               1459 drivers/usb/gadget/function/f_fs.c static int ffs_sb_fill(struct super_block *sb, struct fs_context *fc)
sb               1467 drivers/usb/gadget/function/f_fs.c 	ffs->sb              = sb;
sb               1469 drivers/usb/gadget/function/f_fs.c 	sb->s_fs_info        = ffs;
sb               1470 drivers/usb/gadget/function/f_fs.c 	sb->s_blocksize      = PAGE_SIZE;
sb               1471 drivers/usb/gadget/function/f_fs.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb               1472 drivers/usb/gadget/function/f_fs.c 	sb->s_magic          = FUNCTIONFS_MAGIC;
sb               1473 drivers/usb/gadget/function/f_fs.c 	sb->s_op             = &ffs_sb_operations;
sb               1474 drivers/usb/gadget/function/f_fs.c 	sb->s_time_gran      = 1;
sb               1478 drivers/usb/gadget/function/f_fs.c 	inode = ffs_sb_make_inode(sb, NULL,
sb               1482 drivers/usb/gadget/function/f_fs.c 	sb->s_root = d_make_root(inode);
sb               1483 drivers/usb/gadget/function/f_fs.c 	if (unlikely(!sb->s_root))
sb               1487 drivers/usb/gadget/function/f_fs.c 	if (unlikely(!ffs_sb_create_file(sb, "ep0", ffs,
sb               1643 drivers/usb/gadget/function/f_fs.c ffs_fs_kill_sb(struct super_block *sb)
sb               1647 drivers/usb/gadget/function/f_fs.c 	kill_litter_super(sb);
sb               1648 drivers/usb/gadget/function/f_fs.c 	if (sb->s_fs_info) {
sb               1649 drivers/usb/gadget/function/f_fs.c 		ffs_release_dev(sb->s_fs_info);
sb               1650 drivers/usb/gadget/function/f_fs.c 		ffs_data_closed(sb->s_fs_info);
sb               1907 drivers/usb/gadget/function/f_fs.c 		epfile->dentry = ffs_sb_create_file(ffs->sb, epfile->name,
sb                269 drivers/usb/gadget/function/u_fs.h 	struct super_block		*sb;
sb                143 drivers/usb/gadget/legacy/inode.c 	struct super_block		*sb;
sb               1573 drivers/usb/gadget/legacy/inode.c gadgetfs_create_file (struct super_block *sb, char const *name,
sb               1602 drivers/usb/gadget/legacy/inode.c 		data->dentry = gadgetfs_create_file (dev->sb, data->name,
sb               1944 drivers/usb/gadget/legacy/inode.c gadgetfs_make_inode (struct super_block *sb,
sb               1948 drivers/usb/gadget/legacy/inode.c 	struct inode *inode = new_inode (sb);
sb               1967 drivers/usb/gadget/legacy/inode.c gadgetfs_create_file (struct super_block *sb, char const *name,
sb               1973 drivers/usb/gadget/legacy/inode.c 	dentry = d_alloc_name(sb->s_root, name);
sb               1977 drivers/usb/gadget/legacy/inode.c 	inode = gadgetfs_make_inode (sb, data, fops,
sb               1993 drivers/usb/gadget/legacy/inode.c gadgetfs_fill_super (struct super_block *sb, struct fs_context *fc)
sb               2006 drivers/usb/gadget/legacy/inode.c 	sb->s_blocksize = PAGE_SIZE;
sb               2007 drivers/usb/gadget/legacy/inode.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb               2008 drivers/usb/gadget/legacy/inode.c 	sb->s_magic = GADGETFS_MAGIC;
sb               2009 drivers/usb/gadget/legacy/inode.c 	sb->s_op = &gadget_fs_operations;
sb               2010 drivers/usb/gadget/legacy/inode.c 	sb->s_time_gran = 1;
sb               2013 drivers/usb/gadget/legacy/inode.c 	inode = gadgetfs_make_inode (sb,
sb               2019 drivers/usb/gadget/legacy/inode.c 	if (!(sb->s_root = d_make_root (inode)))
sb               2029 drivers/usb/gadget/legacy/inode.c 	dev->sb = sb;
sb               2030 drivers/usb/gadget/legacy/inode.c 	dev->dentry = gadgetfs_create_file(sb, CHIP, dev, &ep0_operations);
sb               2063 drivers/usb/gadget/legacy/inode.c gadgetfs_kill_sb (struct super_block *sb)
sb               2065 drivers/usb/gadget/legacy/inode.c 	kill_litter_super (sb);
sb                167 drivers/usb/storage/cypress_atacb.c 		unsigned char *sb = srb->sense_buffer;
sb                168 drivers/usb/storage/cypress_atacb.c 		unsigned char *desc = sb + 8;
sb                192 drivers/usb/storage/cypress_atacb.c 		memset(sb, 0, SCSI_SENSE_BUFFERSIZE);
sb                195 drivers/usb/storage/cypress_atacb.c 		sb[1] = RECOVERED_ERROR;
sb                196 drivers/usb/storage/cypress_atacb.c 		sb[2] = 0; /* ATA PASS THROUGH INFORMATION AVAILABLE */
sb                197 drivers/usb/storage/cypress_atacb.c 		sb[3] = 0x1D;
sb                207 drivers/usb/storage/cypress_atacb.c 		sb[0] = 0x72;
sb                211 drivers/usb/storage/cypress_atacb.c 		sb[7] = 14;
sb                 47 drivers/xen/xenfs/super.c static int xenfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                 68 drivers/xen/xenfs/super.c 	return simple_fill_super(sb, XENFS_SUPER_MAGIC,
sb                143 fs/9p/v9fs.h   					 struct super_block *sb, int new);
sb                149 fs/9p/v9fs.h   					      struct super_block *sb, int new);
sb                188 fs/9p/v9fs.h   			struct super_block *sb)
sb                191 fs/9p/v9fs.h   		return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 0);
sb                193 fs/9p/v9fs.h   		return v9fs_inode_from_fid(v9ses, fid, sb, 0);
sb                206 fs/9p/v9fs.h   			    struct super_block *sb)
sb                209 fs/9p/v9fs.h   		return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 1);
sb                211 fs/9p/v9fs.h   		return v9fs_inode_from_fid(v9ses, fid, sb, 1);
sb                 45 fs/9p/v9fs_vfs.h struct inode *v9fs_alloc_inode(struct super_block *sb);
sb                 47 fs/9p/v9fs_vfs.h struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t);
sb                 53 fs/9p/v9fs_vfs.h 		      struct super_block *sb, unsigned int flags);
sb                223 fs/9p/vfs_inode.c struct inode *v9fs_alloc_inode(struct super_block *sb)
sb                349 fs/9p/vfs_inode.c struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev)
sb                353 fs/9p/vfs_inode.c 	struct v9fs_session_info *v9ses = sb->s_fs_info;
sb                355 fs/9p/vfs_inode.c 	p9_debug(P9_DEBUG_VFS, "super block: %p mode: %ho\n", sb, mode);
sb                357 fs/9p/vfs_inode.c 	inode = new_inode(sb);
sb                485 fs/9p/vfs_inode.c static struct inode *v9fs_qid_iget(struct super_block *sb,
sb                495 fs/9p/vfs_inode.c 	struct v9fs_session_info *v9ses = sb->s_fs_info;
sb                504 fs/9p/vfs_inode.c 	inode = iget5_locked(sb, i_ino, test, v9fs_set_inode, st);
sb                520 fs/9p/vfs_inode.c 	v9fs_stat2inode(st, inode, sb, 0);
sb                532 fs/9p/vfs_inode.c 		    struct super_block *sb, int new)
sb                541 fs/9p/vfs_inode.c 	inode = v9fs_qid_iget(sb, &st->qid, st, new);
sb               1158 fs/9p/vfs_inode.c 		 struct super_block *sb, unsigned int flags)
sb               1164 fs/9p/vfs_inode.c 	struct v9fs_session_info *v9ses = sb->s_fs_info;
sb                 97 fs/9p/vfs_inode_dotl.c static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
sb                106 fs/9p/vfs_inode_dotl.c 	struct v9fs_session_info *v9ses = sb->s_fs_info;
sb                115 fs/9p/vfs_inode_dotl.c 	inode = iget5_locked(sb, i_ino, test, v9fs_set_inode_dotl, st);
sb                147 fs/9p/vfs_inode_dotl.c 			 struct super_block *sb, int new)
sb                156 fs/9p/vfs_inode_dotl.c 	inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new);
sb                 60 fs/9p/vfs_super.c v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
sb                 65 fs/9p/vfs_super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                 66 fs/9p/vfs_super.c 	sb->s_blocksize_bits = fls(v9ses->maxdata - 1);
sb                 67 fs/9p/vfs_super.c 	sb->s_blocksize = 1 << sb->s_blocksize_bits;
sb                 68 fs/9p/vfs_super.c 	sb->s_magic = V9FS_MAGIC;
sb                 70 fs/9p/vfs_super.c 		sb->s_op = &v9fs_super_ops_dotl;
sb                 71 fs/9p/vfs_super.c 		sb->s_xattr = v9fs_xattr_handlers;
sb                 73 fs/9p/vfs_super.c 		sb->s_op = &v9fs_super_ops;
sb                 74 fs/9p/vfs_super.c 		sb->s_time_max = U32_MAX;
sb                 77 fs/9p/vfs_super.c 	sb->s_time_min = 0;
sb                 79 fs/9p/vfs_super.c 	ret = super_setup_bdi(sb);
sb                 84 fs/9p/vfs_super.c 		sb->s_bdi->ra_pages = VM_READAHEAD_PAGES;
sb                 86 fs/9p/vfs_super.c 	sb->s_flags |= SB_ACTIVE | SB_DIRSYNC;
sb                 88 fs/9p/vfs_super.c 		sb->s_flags |= SB_SYNCHRONOUS;
sb                 92 fs/9p/vfs_super.c 		sb->s_flags |= SB_POSIXACL;
sb                110 fs/9p/vfs_super.c 	struct super_block *sb = NULL;
sb                130 fs/9p/vfs_super.c 	sb = sget(fs_type, NULL, v9fs_set_super, flags, v9ses);
sb                131 fs/9p/vfs_super.c 	if (IS_ERR(sb)) {
sb                132 fs/9p/vfs_super.c 		retval = PTR_ERR(sb);
sb                135 fs/9p/vfs_super.c 	retval = v9fs_fill_super(sb, v9ses, flags);
sb                140 fs/9p/vfs_super.c 		sb->s_d_op = &v9fs_cached_dentry_operations;
sb                142 fs/9p/vfs_super.c 		sb->s_d_op = &v9fs_dentry_operations;
sb                144 fs/9p/vfs_super.c 	inode = v9fs_get_inode(sb, S_IFDIR | mode, 0);
sb                155 fs/9p/vfs_super.c 	sb->s_root = root;
sb                175 fs/9p/vfs_super.c 		v9fs_stat2inode(st, d_inode(root), sb, 0);
sb                186 fs/9p/vfs_super.c 	return dget(sb->s_root);
sb                203 fs/9p/vfs_super.c 	deactivate_locked_super(sb);
sb                229 fs/9p/vfs_super.c v9fs_umount_begin(struct super_block *sb)
sb                233 fs/9p/vfs_super.c 	v9ses = sb->s_fs_info;
sb                 83 fs/adfs/adfs.h static inline struct adfs_sb_info *ADFS_SB(struct super_block *sb)
sb                 85 fs/adfs/adfs.h 	return sb->s_fs_info;
sb                 92 fs/adfs/adfs.h 	struct super_block	*sb;
sb                123 fs/adfs/adfs.h 	int	(*read)(struct super_block *sb, unsigned int indaddr,
sb                142 fs/adfs/adfs.h struct inode *adfs_iget(struct super_block *sb, struct object_info *obj);
sb                147 fs/adfs/adfs.h int adfs_map_lookup(struct super_block *sb, u32 frag_id, unsigned int offset);
sb                148 fs/adfs/adfs.h extern unsigned int adfs_map_free(struct super_block *sb);
sb                152 fs/adfs/adfs.h void __adfs_error(struct super_block *sb, const char *function,
sb                154 fs/adfs/adfs.h #define adfs_error(sb, fmt...) __adfs_error(sb, __func__, fmt)
sb                155 fs/adfs/adfs.h void adfs_msg(struct super_block *sb, const char *pfx, const char *fmt, ...);
sb                171 fs/adfs/adfs.h extern int adfs_dir_update(struct super_block *sb, struct object_info *obj,
sb                193 fs/adfs/adfs.h static inline int __adfs_block_map(struct super_block *sb, u32 indaddr,
sb                200 fs/adfs/adfs.h 		block += off << ADFS_SB(sb)->s_log2sharesize;
sb                203 fs/adfs/adfs.h 	return adfs_map_lookup(sb, indaddr >> 8, block);
sb                 42 fs/adfs/dir.c  	if (!(obj->attr & ADFS_NDA_DIRECTORY) && ADFS_SB(dir->sb)->s_ftsuffix) {
sb                 58 fs/adfs/dir.c  	struct super_block *sb = inode->i_sb;
sb                 59 fs/adfs/dir.c  	const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir;
sb                 67 fs/adfs/dir.c  	ret = ops->read(sb, inode->i_ino, inode->i_size, &dir);
sb                103 fs/adfs/dir.c  adfs_dir_update(struct super_block *sb, struct object_info *obj, int wait)
sb                107 fs/adfs/dir.c  	const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir;
sb                118 fs/adfs/dir.c  	ret = ops->read(sb, obj->parent_id, 0, &dir);
sb                163 fs/adfs/dir.c  	struct super_block *sb = inode->i_sb;
sb                164 fs/adfs/dir.c  	const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir;
sb                170 fs/adfs/dir.c  	ret = ops->read(sb, inode->i_ino, inode->i_size, &dir);
sb                175 fs/adfs/dir.c  		adfs_error(sb,
sb                 75 fs/adfs/dir_f.c 	const int blocksize_bits = dir->sb->s_blocksize_bits;
sb                127 fs/adfs/dir_f.c static int adfs_dir_read(struct super_block *sb, u32 indaddr,
sb                130 fs/adfs/dir_f.c 	const unsigned int blocksize_bits = sb->s_blocksize_bits;
sb                143 fs/adfs/dir_f.c 	dir->sb = sb;
sb                148 fs/adfs/dir_f.c 		phys = __adfs_block_map(sb, indaddr, blk);
sb                150 fs/adfs/dir_f.c 			adfs_error(sb, "dir %06x has a hole at offset %d",
sb                155 fs/adfs/dir_f.c 		dir->bh[blk] = sb_bread(sb, phys);
sb                179 fs/adfs/dir_f.c 	adfs_error(sb, "dir %06x is corrupted", indaddr);
sb                184 fs/adfs/dir_f.c 	dir->sb = NULL;
sb                235 fs/adfs/dir_f.c 	struct super_block *sb = dir->sb;
sb                239 fs/adfs/dir_f.c 	buffer = pos >> sb->s_blocksize_bits;
sb                244 fs/adfs/dir_f.c 	offset = pos & (sb->s_blocksize - 1);
sb                245 fs/adfs/dir_f.c 	thissize = sb->s_blocksize - offset;
sb                265 fs/adfs/dir_f.c 	struct super_block *sb = dir->sb;
sb                269 fs/adfs/dir_f.c 	buffer = pos >> sb->s_blocksize_bits;
sb                274 fs/adfs/dir_f.c 	offset = pos & (sb->s_blocksize - 1);
sb                275 fs/adfs/dir_f.c 	thissize = sb->s_blocksize - offset;
sb                328 fs/adfs/dir_f.c static int adfs_f_read(struct super_block *sb, u32 indaddr, unsigned int size,
sb                336 fs/adfs/dir_f.c 	ret = adfs_dir_read(sb, indaddr, size, dir);
sb                338 fs/adfs/dir_f.c 		adfs_error(sb, "unable to read directory");
sb                370 fs/adfs/dir_f.c 	struct super_block *sb = dir->sb;
sb                375 fs/adfs/dir_f.c 		adfs_error(dir->sb, "unable to locate entry to update");
sb                385 fs/adfs/dir_f.c 	dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 6] += 1;
sb                391 fs/adfs/dir_f.c 	dir->bh[dir->nr_buffers - 1]->b_data[sb->s_blocksize - 1] = ret;
sb                395 fs/adfs/dir_f.c 	const unsigned int blocksize_bits = sb->s_blocksize_bits;
sb                420 fs/adfs/dir_f.c 	adfs_error(dir->sb, "whoops!  I broke a directory!");
sb                452 fs/adfs/dir_f.c 	dir->sb = NULL;
sb                 12 fs/adfs/dir_fplus.c adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir)
sb                 25 fs/adfs/dir_fplus.c 	block = __adfs_block_map(sb, id, 0);
sb                 27 fs/adfs/dir_fplus.c 		adfs_error(sb, "dir object %X has a hole at offset 0", id);
sb                 31 fs/adfs/dir_fplus.c 	dir->bh_fplus[0] = sb_bread(sb, block);
sb                 39 fs/adfs/dir_fplus.c 		adfs_msg(sb, KERN_WARNING,
sb                 47 fs/adfs/dir_fplus.c 		adfs_error(sb, "dir %06x has malformed header", id);
sb                 51 fs/adfs/dir_fplus.c 	size >>= sb->s_blocksize_bits;
sb                 58 fs/adfs/dir_fplus.c 			adfs_msg(sb, KERN_ERR,
sb                 70 fs/adfs/dir_fplus.c 		block = __adfs_block_map(sb, id, blk);
sb                 72 fs/adfs/dir_fplus.c 			adfs_error(sb, "dir object %X has a hole at offset %d", id, blk);
sb                 76 fs/adfs/dir_fplus.c 		dir->bh_fplus[blk] = sb_bread(sb, block);
sb                 78 fs/adfs/dir_fplus.c 			adfs_error(sb,	"dir object %x failed read for offset %d, mapped block %lX",
sb                 87 fs/adfs/dir_fplus.c 		(dir->bh_fplus[size - 1]->b_data + (sb->s_blocksize - 8));
sb                 92 fs/adfs/dir_fplus.c 		adfs_error(sb, "dir %06x has malformed tail", id);
sb                 97 fs/adfs/dir_fplus.c 	dir->sb = sb;
sb                112 fs/adfs/dir_fplus.c 	dir->sb = NULL;
sb                134 fs/adfs/dir_fplus.c 	struct super_block *sb = dir->sb;
sb                137 fs/adfs/dir_fplus.c 	buffer = offset >> sb->s_blocksize_bits;
sb                138 fs/adfs/dir_fplus.c 	offset &= sb->s_blocksize - 1;
sb                140 fs/adfs/dir_fplus.c 	partial = sb->s_blocksize - offset;
sb                230 fs/adfs/dir_fplus.c 	dir->sb = NULL;
sb                 86 fs/adfs/inode.c adfs_atts2mode(struct super_block *sb, struct inode *inode)
sb                 90 fs/adfs/inode.c 	struct adfs_sb_info *asb = ADFS_SB(sb);
sb                130 fs/adfs/inode.c adfs_mode2atts(struct super_block *sb, struct inode *inode)
sb                134 fs/adfs/inode.c 	struct adfs_sb_info *asb = ADFS_SB(sb);
sb                240 fs/adfs/inode.c adfs_iget(struct super_block *sb, struct object_info *obj)
sb                244 fs/adfs/inode.c 	inode = new_inode(sb);
sb                248 fs/adfs/inode.c 	inode->i_uid	 = ADFS_SB(sb)->s_uid;
sb                249 fs/adfs/inode.c 	inode->i_gid	 = ADFS_SB(sb)->s_gid;
sb                253 fs/adfs/inode.c 	inode->i_blocks	 = (inode->i_size + sb->s_blocksize - 1) >>
sb                254 fs/adfs/inode.c 			    sb->s_blocksize_bits;
sb                267 fs/adfs/inode.c 	inode->i_mode	 = adfs_atts2mode(sb, inode);
sb                297 fs/adfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                307 fs/adfs/inode.c 	if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) ||
sb                308 fs/adfs/inode.c 	    (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid)))
sb                331 fs/adfs/inode.c 		ADFS_I(inode)->attr = adfs_mode2atts(sb, inode);
sb                332 fs/adfs/inode.c 		inode->i_mode = adfs_atts2mode(sb, inode);
sb                352 fs/adfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                364 fs/adfs/inode.c 	ret = adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL);
sb                224 fs/adfs/map.c  adfs_map_free(struct super_block *sb)
sb                226 fs/adfs/map.c  	struct adfs_sb_info *asb = ADFS_SB(sb);
sb                241 fs/adfs/map.c  int adfs_map_lookup(struct super_block *sb, u32 frag_id, unsigned int offset)
sb                243 fs/adfs/map.c  	struct adfs_sb_info *asb = ADFS_SB(sb);
sb                274 fs/adfs/map.c  	adfs_error(sb, "fragment 0x%04x at offset %d not found in map",
sb                279 fs/adfs/map.c  	adfs_error(sb, "invalid fragment 0x%04x (zone = %d, max = %d)",
sb                 24 fs/adfs/super.c void __adfs_error(struct super_block *sb, const char *function, const char *fmt, ...)
sb                 34 fs/adfs/super.c 		sb->s_id, function ? ": " : "",
sb                 40 fs/adfs/super.c void adfs_msg(struct super_block *sb, const char *pfx, const char *fmt, ...)
sb                 48 fs/adfs/super.c 	printk("%sADFS-fs (%s): %pV\n", pfx, sb->s_id, &vaf);
sb                 91 fs/adfs/super.c static unsigned char adfs_calczonecheck(struct super_block *sb, unsigned char *map)
sb                 97 fs/adfs/super.c 	for (i = sb->s_blocksize - 4; i; i -= 4) {
sb                115 fs/adfs/super.c static int adfs_checkmap(struct super_block *sb, struct adfs_discmap *dm)
sb                120 fs/adfs/super.c 	for (i = 0; i < ADFS_SB(sb)->s_map_size; i++) {
sb                125 fs/adfs/super.c 		if (adfs_calczonecheck(sb, map) != map[0]) {
sb                126 fs/adfs/super.c 			adfs_error(sb, "zone %d fails zonecheck", i);
sb                132 fs/adfs/super.c 		adfs_error(sb, "crosscheck != 0xff");
sb                136 fs/adfs/super.c static void adfs_put_super(struct super_block *sb)
sb                139 fs/adfs/super.c 	struct adfs_sb_info *asb = ADFS_SB(sb);
sb                176 fs/adfs/super.c static int parse_options(struct super_block *sb, struct adfs_sb_info *asb,
sb                223 fs/adfs/super.c 			adfs_msg(sb, KERN_ERR,
sb                232 fs/adfs/super.c static int adfs_remount(struct super_block *sb, int *flags, char *data)
sb                237 fs/adfs/super.c 	sync_filesystem(sb);
sb                240 fs/adfs/super.c 	temp_asb = *ADFS_SB(sb);
sb                241 fs/adfs/super.c 	ret = parse_options(sb, &temp_asb, data);
sb                243 fs/adfs/super.c 		*ADFS_SB(sb) = temp_asb;
sb                250 fs/adfs/super.c 	struct super_block *sb = dentry->d_sb;
sb                251 fs/adfs/super.c 	struct adfs_sb_info *sbi = ADFS_SB(sb);
sb                253 fs/adfs/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                257 fs/adfs/super.c 	buf->f_bsize   = sb->s_blocksize;
sb                258 fs/adfs/super.c 	buf->f_blocks  = adfs_disc_size(dr) >> sb->s_blocksize_bits;
sb                261 fs/adfs/super.c 	buf->f_bfree   = adfs_map_free(sb);
sb                271 fs/adfs/super.c static struct inode *adfs_alloc_inode(struct super_block *sb)
sb                325 fs/adfs/super.c static struct adfs_discmap *adfs_read_map(struct super_block *sb, struct adfs_discrecord *dr)
sb                330 fs/adfs/super.c 	struct adfs_sb_info *asb = ADFS_SB(sb);
sb                342 fs/adfs/super.c 		adfs_error(sb, "not enough memory");
sb                350 fs/adfs/super.c 		dm[zone].dm_bh       = sb_bread(sb, map_addr);
sb                353 fs/adfs/super.c 			adfs_error(sb, "unable to read map");
sb                365 fs/adfs/super.c 	if (adfs_checkmap(sb, dm))
sb                368 fs/adfs/super.c 	adfs_error(sb, "map corrupted");
sb                378 fs/adfs/super.c static int adfs_fill_super(struct super_block *sb, void *data, int silent)
sb                389 fs/adfs/super.c 	sb->s_flags |= ADFS_SB_FLAGS;
sb                394 fs/adfs/super.c 	sb->s_fs_info = asb;
sb                403 fs/adfs/super.c 	if (parse_options(sb, asb, data))
sb                406 fs/adfs/super.c 	sb_set_blocksize(sb, BLOCK_SIZE);
sb                407 fs/adfs/super.c 	if (!(bh = sb_bread(sb, ADFS_DISCRECORD / BLOCK_SIZE))) {
sb                408 fs/adfs/super.c 		adfs_msg(sb, KERN_ERR, "error: unable to read superblock");
sb                433 fs/adfs/super.c 	if (sb_set_blocksize(sb, blocksize)) {
sb                434 fs/adfs/super.c 		bh = sb_bread(sb, ADFS_DISCRECORD / sb->s_blocksize);
sb                436 fs/adfs/super.c 			adfs_msg(sb, KERN_ERR,
sb                441 fs/adfs/super.c 		b_data = bh->b_data + (ADFS_DISCRECORD % sb->s_blocksize);
sb                443 fs/adfs/super.c 			adfs_msg(sb, KERN_ERR,
sb                451 fs/adfs/super.c 			adfs_msg(sb, KERN_ERR,
sb                461 fs/adfs/super.c 	sb->s_magic		= ADFS_SUPER_MAGIC;
sb                467 fs/adfs/super.c 	asb->s_map = adfs_read_map(sb, dr);
sb                478 fs/adfs/super.c 	sb->s_op = &adfs_sops;
sb                510 fs/adfs/super.c 	sb->s_d_op = &adfs_dentry_operations;
sb                511 fs/adfs/super.c 	root = adfs_iget(sb, &root_obj);
sb                512 fs/adfs/super.c 	sb->s_root = d_make_root(root);
sb                513 fs/adfs/super.c 	if (!sb->s_root) {
sb                518 fs/adfs/super.c 		adfs_error(sb, "get root inode failed\n");
sb                526 fs/adfs/super.c 		adfs_msg(sb, KERN_ERR,
sb                528 fs/adfs/super.c 			 sb->s_id);
sb                532 fs/adfs/super.c 	sb->s_fs_info = NULL;
sb                 19 fs/affs/affs.h #define AFFS_BLOCK(sb, bh, blk)		(AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)])
sb                 22 fs/affs/affs.h #define AFFS_TAIL(sb, bh)	((struct affs_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_tail)))
sb                 24 fs/affs/affs.h #define AFFS_ROOT_TAIL(sb, bh)	((struct affs_root_tail *)((bh)->b_data+(sb)->s_blocksize-sizeof(struct affs_root_tail)))
sb                104 fs/affs/affs.h 	struct super_block *sb;		/* the VFS superblock object */
sb                128 fs/affs/affs.h static inline struct affs_sb_info *AFFS_SB(struct super_block *sb)
sb                130 fs/affs/affs.h 	return sb->s_fs_info;
sb                133 fs/affs/affs.h void affs_mark_sb_dirty(struct super_block *sb);
sb                140 fs/affs/affs.h extern u32	affs_checksum_block(struct super_block *sb, struct buffer_head *bh);
sb                141 fs/affs/affs.h extern void	affs_fix_checksum(struct super_block *sb, struct buffer_head *bh);
sb                146 fs/affs/affs.h extern void	affs_error(struct super_block *sb, const char *function,
sb                149 fs/affs/affs.h extern void	affs_warning(struct super_block *sb, const char *function,
sb                159 fs/affs/affs.h extern void	affs_free_block(struct super_block *sb, u32 block);
sb                161 fs/affs/affs.h extern int	affs_init_bitmap(struct super_block *sb, int *flags);
sb                162 fs/affs/affs.h extern void	affs_free_bitmap(struct super_block *sb);
sb                167 fs/affs/affs.h extern int	affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len);
sb                186 fs/affs/affs.h extern struct inode		*affs_iget(struct super_block *sb,
sb                217 fs/affs/affs.h static inline bool affs_validblock(struct super_block *sb, int block)
sb                219 fs/affs/affs.h 	return(block >= AFFS_SB(sb)->s_reserved &&
sb                220 fs/affs/affs.h 	       block < AFFS_SB(sb)->s_partition_size);
sb                224 fs/affs/affs.h affs_set_blocksize(struct super_block *sb, int size)
sb                226 fs/affs/affs.h 	sb_set_blocksize(sb, size);
sb                229 fs/affs/affs.h affs_bread(struct super_block *sb, int block)
sb                232 fs/affs/affs.h 	if (affs_validblock(sb, block))
sb                233 fs/affs/affs.h 		return sb_bread(sb, block);
sb                237 fs/affs/affs.h affs_getblk(struct super_block *sb, int block)
sb                240 fs/affs/affs.h 	if (affs_validblock(sb, block))
sb                241 fs/affs/affs.h 		return sb_getblk(sb, block);
sb                245 fs/affs/affs.h affs_getzeroblk(struct super_block *sb, int block)
sb                249 fs/affs/affs.h 	if (affs_validblock(sb, block)) {
sb                250 fs/affs/affs.h 		bh = sb_getblk(sb, block);
sb                252 fs/affs/affs.h 		memset(bh->b_data, 0 , sb->s_blocksize);
sb                260 fs/affs/affs.h affs_getemptyblk(struct super_block *sb, int block)
sb                264 fs/affs/affs.h 	if (affs_validblock(sb, block)) {
sb                265 fs/affs/affs.h 		bh = sb_getblk(sb, block);
sb                 28 fs/affs/amigaffs.c 	struct super_block *sb = dir->i_sb;
sb                 34 fs/affs/amigaffs.c 	offset = affs_hash_name(sb, AFFS_TAIL(sb, bh)->name + 1, AFFS_TAIL(sb, bh)->name[0]);
sb                 38 fs/affs/amigaffs.c 	dir_bh = affs_bread(sb, dir->i_ino);
sb                 45 fs/affs/amigaffs.c 		dir_bh = affs_bread(sb, hash_ino);
sb                 48 fs/affs/amigaffs.c 		hash_ino = be32_to_cpu(AFFS_TAIL(sb, dir_bh)->hash_chain);
sb                 50 fs/affs/amigaffs.c 	AFFS_TAIL(sb, bh)->parent = cpu_to_be32(dir->i_ino);
sb                 51 fs/affs/amigaffs.c 	AFFS_TAIL(sb, bh)->hash_chain = 0;
sb                 52 fs/affs/amigaffs.c 	affs_fix_checksum(sb, bh);
sb                 57 fs/affs/amigaffs.c 		AFFS_TAIL(sb, dir_bh)->hash_chain = cpu_to_be32(ino);
sb                 77 fs/affs/amigaffs.c 	struct super_block *sb;
sb                 83 fs/affs/amigaffs.c 	sb = dir->i_sb;
sb                 85 fs/affs/amigaffs.c 	offset = affs_hash_name(sb, AFFS_TAIL(sb, rem_bh)->name+1, AFFS_TAIL(sb, rem_bh)->name[0]);
sb                 89 fs/affs/amigaffs.c 	bh = affs_bread(sb, dir->i_ino);
sb                 97 fs/affs/amigaffs.c 			ino = AFFS_TAIL(sb, rem_bh)->hash_chain;
sb                101 fs/affs/amigaffs.c 				AFFS_TAIL(sb, bh)->hash_chain = ino;
sb                104 fs/affs/amigaffs.c 			AFFS_TAIL(sb, rem_bh)->parent = 0;
sb                109 fs/affs/amigaffs.c 		bh = affs_bread(sb, hash_ino);
sb                112 fs/affs/amigaffs.c 		hash_ino = be32_to_cpu(AFFS_TAIL(sb, bh)->hash_chain);
sb                145 fs/affs/amigaffs.c 	struct super_block *sb = inode->i_sb;
sb                152 fs/affs/amigaffs.c 	bh = affs_bread(sb, inode->i_ino);
sb                161 fs/affs/amigaffs.c 		link_ino = be32_to_cpu(AFFS_TAIL(sb, bh)->link_chain);
sb                162 fs/affs/amigaffs.c 		link_bh = affs_bread(sb, link_ino);
sb                166 fs/affs/amigaffs.c 		dir = affs_iget(sb, be32_to_cpu(AFFS_TAIL(sb, link_bh)->parent));
sb                185 fs/affs/amigaffs.c 		memcpy(AFFS_TAIL(sb, bh)->name, AFFS_TAIL(sb, link_bh)->name, 32);
sb                196 fs/affs/amigaffs.c 		link_bh = affs_bread(sb, link_ino);
sb                201 fs/affs/amigaffs.c 	while ((ino = be32_to_cpu(AFFS_TAIL(sb, bh)->link_chain)) != 0) {
sb                203 fs/affs/amigaffs.c 			__be32 ino2 = AFFS_TAIL(sb, link_bh)->link_chain;
sb                204 fs/affs/amigaffs.c 			AFFS_TAIL(sb, bh)->link_chain = ino2;
sb                209 fs/affs/amigaffs.c 			switch (be32_to_cpu(AFFS_TAIL(sb, bh)->stype)) {
sb                214 fs/affs/amigaffs.c 				if (!AFFS_TAIL(sb, bh)->link_chain)
sb                217 fs/affs/amigaffs.c 			affs_free_block(sb, link_ino);
sb                221 fs/affs/amigaffs.c 		bh = affs_bread(sb, ino);
sb                236 fs/affs/amigaffs.c 	struct super_block *sb = inode->i_sb;
sb                241 fs/affs/amigaffs.c 	bh = affs_bread(sb, inode->i_ino);
sb                246 fs/affs/amigaffs.c 	for (size = AFFS_SB(sb)->s_hashsize - 1; size >= 0; size--)
sb                269 fs/affs/amigaffs.c 	struct super_block *sb;
sb                275 fs/affs/amigaffs.c 	sb = dir->i_sb;
sb                284 fs/affs/amigaffs.c 	bh = affs_bread(sb, (u32)(long)dentry->d_fsdata);
sb                290 fs/affs/amigaffs.c 	switch (be32_to_cpu(AFFS_TAIL(sb, bh)->stype)) {
sb                339 fs/affs/amigaffs.c affs_checksum_block(struct super_block *sb, struct buffer_head *bh)
sb                346 fs/affs/amigaffs.c 	for (bsize = sb->s_blocksize / sizeof(__be32); bsize > 0; bsize--)
sb                357 fs/affs/amigaffs.c affs_fix_checksum(struct super_block *sb, struct buffer_head *bh)
sb                359 fs/affs/amigaffs.c 	int cnt = sb->s_blocksize / sizeof(__be32);
sb                446 fs/affs/amigaffs.c affs_error(struct super_block *sb, const char *function, const char *fmt, ...)
sb                454 fs/affs/amigaffs.c 	pr_crit("error (device %s): %s(): %pV\n", sb->s_id, function, &vaf);
sb                455 fs/affs/amigaffs.c 	if (!sb_rdonly(sb))
sb                457 fs/affs/amigaffs.c 	sb->s_flags |= SB_RDONLY;
sb                462 fs/affs/amigaffs.c affs_warning(struct super_block *sb, const char *function, const char *fmt, ...)
sb                470 fs/affs/amigaffs.c 	pr_warn("(device %s): %s(): %pV\n", sb->s_id, function, &vaf);
sb                 15 fs/affs/bitmap.c affs_count_free_blocks(struct super_block *sb)
sb                 23 fs/affs/bitmap.c 	if (sb_rdonly(sb))
sb                 26 fs/affs/bitmap.c 	mutex_lock(&AFFS_SB(sb)->s_bmlock);
sb                 28 fs/affs/bitmap.c 	bm = AFFS_SB(sb)->s_bitmap;
sb                 30 fs/affs/bitmap.c 	for (i = AFFS_SB(sb)->s_bmap_count; i > 0; bm++, i--)
sb                 33 fs/affs/bitmap.c 	mutex_unlock(&AFFS_SB(sb)->s_bmlock);
sb                 39 fs/affs/bitmap.c affs_free_block(struct super_block *sb, u32 block)
sb                 41 fs/affs/bitmap.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                 62 fs/affs/bitmap.c 		bh = affs_bread(sb, bm->bm_key);
sb                 83 fs/affs/bitmap.c 	affs_mark_sb_dirty(sb);
sb                 90 fs/affs/bitmap.c 	affs_warning(sb,"affs_free_block","Trying to free block %u which is already free", block);
sb                 95 fs/affs/bitmap.c 	affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key);
sb                102 fs/affs/bitmap.c 	affs_error(sb, "affs_free_block","Block %u outside partition", block);
sb                117 fs/affs/bitmap.c 	struct super_block *sb;
sb                125 fs/affs/bitmap.c 	sb = inode->i_sb;
sb                126 fs/affs/bitmap.c 	sbi = AFFS_SB(sb);
sb                138 fs/affs/bitmap.c 			affs_warning(sb, "affs_balloc", "invalid goal %d", goal);
sb                174 fs/affs/bitmap.c 		bh = affs_bread(sb, bm->bm_key);
sb                184 fs/affs/bitmap.c 	enddata = (__be32 *)((u8 *)bh->b_data + sb->s_blocksize);
sb                227 fs/affs/bitmap.c 	affs_mark_sb_dirty(sb);
sb                235 fs/affs/bitmap.c 	affs_error(sb,"affs_read_block","Cannot read bitmap block %u", bm->bm_key);
sb                244 fs/affs/bitmap.c int affs_init_bitmap(struct super_block *sb, int *flags)
sb                251 fs/affs/bitmap.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                256 fs/affs/bitmap.c 	if (!AFFS_ROOT_TAIL(sb, sbi->s_root_bh)->bm_flag) {
sb                257 fs/affs/bitmap.c 		pr_notice("Bitmap invalid - mounting %s read only\n", sb->s_id);
sb                264 fs/affs/bitmap.c 	sbi->s_bmap_bits = sb->s_blocksize * 8 - 32;
sb                275 fs/affs/bitmap.c 	blk = sb->s_blocksize / 4 - 49;
sb                282 fs/affs/bitmap.c 		bh = affs_bread(sb, bm->bm_key);
sb                288 fs/affs/bitmap.c 		if (affs_checksum_block(sb, bh)) {
sb                290 fs/affs/bitmap.c 				bm->bm_key, sb->s_id);
sb                295 fs/affs/bitmap.c 		bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4);
sb                304 fs/affs/bitmap.c 		bmap_bh = affs_bread(sb, be32_to_cpu(bmap_blk[blk]));
sb                312 fs/affs/bitmap.c 		end = sb->s_blocksize / 4 - 1;
sb                337 fs/affs/bitmap.c 	while (++offset < sb->s_blocksize / 4)
sb                340 fs/affs/bitmap.c 	((__be32 *)bh->b_data)[0] = cpu_to_be32(-affs_checksum_block(sb, bh));
sb                345 fs/affs/bitmap.c 	bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4);
sb                353 fs/affs/bitmap.c void affs_free_bitmap(struct super_block *sb)
sb                355 fs/affs/bitmap.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                 48 fs/affs/dir.c  	struct super_block	*sb = inode->i_sb;
sb                 71 fs/affs/dir.c  		affs_warning(sb, "readdir", "More than 65535 entries in chain");
sb                 76 fs/affs/dir.c  	dir_bh = affs_bread(sb, inode->i_ino);
sb                 91 fs/affs/dir.c  		fh_bh = affs_bread(sb, ino);
sb                 93 fs/affs/dir.c  			affs_error(sb, "readdir","Cannot read block %d", i);
sb                 97 fs/affs/dir.c  		ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain);
sb                105 fs/affs/dir.c  	for (; hash_pos < AFFS_SB(sb)->s_hashsize; hash_pos++) {
sb                112 fs/affs/dir.c  			fh_bh = affs_bread(sb, ino);
sb                114 fs/affs/dir.c  				affs_error(sb, "readdir",
sb                119 fs/affs/dir.c  			namelen = min(AFFS_TAIL(sb, fh_bh)->name[0],
sb                121 fs/affs/dir.c  			name = AFFS_TAIL(sb, fh_bh)->name + 1;
sb                128 fs/affs/dir.c  			ino = be32_to_cpu(AFFS_TAIL(sb, fh_bh)->hash_chain);
sb                 50 fs/affs/file.c 	struct super_block	*sb = inode->i_sb;
sb                100 fs/affs/file.c 			bh = affs_bread(sb, key);
sb                103 fs/affs/file.c 			key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension);
sb                120 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                128 fs/affs/file.c 	new_bh = affs_getzeroblk(sb, blocknr);
sb                130 fs/affs/file.c 		affs_free_block(sb, blocknr);
sb                136 fs/affs/file.c 	AFFS_TAIL(sb, new_bh)->stype = cpu_to_be32(ST_FILE);
sb                137 fs/affs/file.c 	AFFS_TAIL(sb, new_bh)->parent = cpu_to_be32(inode->i_ino);
sb                138 fs/affs/file.c 	affs_fix_checksum(sb, new_bh);
sb                142 fs/affs/file.c 	tmp = be32_to_cpu(AFFS_TAIL(sb, bh)->extension);
sb                144 fs/affs/file.c 		affs_warning(sb, "alloc_ext", "previous extension set (%x)", tmp);
sb                145 fs/affs/file.c 	AFFS_TAIL(sb, bh)->extension = cpu_to_be32(blocknr);
sb                172 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                181 fs/affs/file.c 		ext_key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension);
sb                258 fs/affs/file.c 		bh = affs_bread(sb, ext_key);
sb                261 fs/affs/file.c 		ext_key = be32_to_cpu(AFFS_TAIL(sb, bh)->extension);
sb                275 fs/affs/file.c 	bh = affs_bread(sb, ext_key);
sb                297 fs/affs/file.c 	struct super_block	*sb = inode->i_sb;
sb                315 fs/affs/file.c 	ext = (u32)block / AFFS_SB(sb)->s_hashsize;
sb                316 fs/affs/file.c 	block -= ext * AFFS_SB(sb)->s_hashsize;
sb                320 fs/affs/file.c 	map_bh(bh_result, sb, (sector_t)be32_to_cpu(AFFS_BLOCK(sb, ext_bh, block)));
sb                327 fs/affs/file.c 		AFFS_I(inode)->mmu_private += AFFS_SB(sb)->s_data_blksize;
sb                332 fs/affs/file.c 			affs_warning(sb, "get_block",
sb                335 fs/affs/file.c 		AFFS_BLOCK(sb, ext_bh, block) = cpu_to_be32(blocknr);
sb                344 fs/affs/file.c 				affs_warning(sb, "get_block", "first block already set (%d)", tmp);
sb                506 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                516 fs/affs/file.c 	bsize = AFFS_SB(sb)->s_data_blksize;
sb                542 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                549 fs/affs/file.c 	bsize = AFFS_SB(sb)->s_data_blksize;
sb                562 fs/affs/file.c 		affs_fix_checksum(sb, bh);
sb                583 fs/affs/file.c 		affs_fix_checksum(sb, bh);
sb                590 fs/affs/file.c 				affs_warning(sb, "extent_file_ofs",
sb                674 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                692 fs/affs/file.c 	bsize = AFFS_SB(sb)->s_data_blksize;
sb                710 fs/affs/file.c 		affs_fix_checksum(sb, bh);
sb                739 fs/affs/file.c 					affs_warning(sb, "commit_write_ofs",
sb                748 fs/affs/file.c 		affs_fix_checksum(sb, bh);
sb                773 fs/affs/file.c 					affs_warning(sb, "commit_write_ofs",
sb                783 fs/affs/file.c 		affs_fix_checksum(sb, bh);
sb                822 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                828 fs/affs/file.c 		affs_free_block(sb, ++AFFS_I(inode)->i_lastalloc);
sb                837 fs/affs/file.c 	struct super_block *sb = inode->i_sb;
sb                850 fs/affs/file.c 		last_blk = ((u32)inode->i_size - 1) / AFFS_SB(sb)->s_data_blksize;
sb                851 fs/affs/file.c 		ext = last_blk / AFFS_SB(sb)->s_hashsize;
sb                874 fs/affs/file.c 		affs_warning(sb, "truncate",
sb                892 fs/affs/file.c 	ext_key = be32_to_cpu(AFFS_TAIL(sb, ext_bh)->extension);
sb                898 fs/affs/file.c 		i = last_blk % AFFS_SB(sb)->s_hashsize + 1;
sb                903 fs/affs/file.c 	size = AFFS_SB(sb)->s_hashsize;
sb                907 fs/affs/file.c 		affs_free_block(sb, be32_to_cpu(AFFS_BLOCK(sb, ext_bh, i)));
sb                908 fs/affs/file.c 		AFFS_BLOCK(sb, ext_bh, i) = 0;
sb                910 fs/affs/file.c 	AFFS_TAIL(sb, ext_bh)->extension = 0;
sb                911 fs/affs/file.c 	affs_fix_checksum(sb, ext_bh);
sb                918 fs/affs/file.c 		if (affs_test_opt(AFFS_SB(sb)->s_flags, SF_OFS)) {
sb                922 fs/affs/file.c 				affs_warning(sb, "truncate",
sb                940 fs/affs/file.c 		ext_bh = affs_bread(sb, ext_key);
sb                941 fs/affs/file.c 		size = AFFS_SB(sb)->s_hashsize;
sb                945 fs/affs/file.c 			affs_free_block(sb, be32_to_cpu(AFFS_BLOCK(sb, ext_bh, i)));
sb                946 fs/affs/file.c 		affs_free_block(sb, ext_key);
sb                947 fs/affs/file.c 		ext_key = be32_to_cpu(AFFS_TAIL(sb, ext_bh)->extension);
sb                 18 fs/affs/inode.c struct inode *affs_iget(struct super_block *sb, unsigned long ino)
sb                 20 fs/affs/inode.c 	struct affs_sb_info	*sbi = AFFS_SB(sb);
sb                 29 fs/affs/inode.c 	inode = iget_locked(sb, ino);
sb                 38 fs/affs/inode.c 	bh = affs_bread(sb, block);
sb                 40 fs/affs/inode.c 		affs_warning(sb, "read_inode", "Cannot read block %d", block);
sb                 43 fs/affs/inode.c 	if (affs_checksum_block(sb, bh) || be32_to_cpu(AFFS_HEAD(bh)->ptype) != T_SHORT) {
sb                 44 fs/affs/inode.c 		affs_warning(sb,"read_inode",
sb                 50 fs/affs/inode.c 	tail = AFFS_TAIL(sb, bh);
sb                116 fs/affs/inode.c 		affs_warning(sb, "read_inode", "inode is LINKDIR");
sb                124 fs/affs/inode.c 		affs_warning(sb, "read_inode", "inode is LINKFILE");
sb                172 fs/affs/inode.c 	struct super_block	*sb = inode->i_sb;
sb                183 fs/affs/inode.c 	bh = affs_bread(sb, inode->i_ino);
sb                185 fs/affs/inode.c 		affs_error(sb,"write_inode","Cannot read block %lu",inode->i_ino);
sb                188 fs/affs/inode.c 	tail = AFFS_TAIL(sb, bh);
sb                191 fs/affs/inode.c 				       &AFFS_ROOT_TAIL(sb, bh)->root_change);
sb                196 fs/affs/inode.c 		if (!(inode->i_ino == AFFS_SB(sb)->s_root_block)) {
sb                199 fs/affs/inode.c 			if (affs_test_opt(AFFS_SB(sb)->s_flags, SF_MUFS)) {
sb                205 fs/affs/inode.c 			if (!affs_test_opt(AFFS_SB(sb)->s_flags, SF_SETUID))
sb                207 fs/affs/inode.c 			if (!affs_test_opt(AFFS_SB(sb)->s_flags, SF_SETGID))
sb                211 fs/affs/inode.c 	affs_fix_checksum(sb, bh);
sb                295 fs/affs/inode.c 	struct super_block	*sb = dir->i_sb;
sb                300 fs/affs/inode.c 	if (!(inode = new_inode(sb)))
sb                306 fs/affs/inode.c 	bh = affs_getzeroblk(sb, block);
sb                337 fs/affs/inode.c 	affs_free_block(sb, block);
sb                352 fs/affs/inode.c 	struct super_block *sb = dir->i_sb;
sb                362 fs/affs/inode.c 	bh = affs_bread(sb, inode->i_ino);
sb                376 fs/affs/inode.c 		bh = affs_getzeroblk(sb, block);
sb                386 fs/affs/inode.c 	affs_copy_name(AFFS_TAIL(sb, bh)->name, dentry);
sb                387 fs/affs/inode.c 	AFFS_TAIL(sb, bh)->stype = cpu_to_be32(type);
sb                388 fs/affs/inode.c 	AFFS_TAIL(sb, bh)->parent = cpu_to_be32(dir->i_ino);
sb                392 fs/affs/inode.c 	       	chain = AFFS_TAIL(sb, inode_bh)->link_chain;
sb                393 fs/affs/inode.c 		AFFS_TAIL(sb, bh)->original = cpu_to_be32(inode->i_ino);
sb                394 fs/affs/inode.c 		AFFS_TAIL(sb, bh)->link_chain = chain;
sb                395 fs/affs/inode.c 		AFFS_TAIL(sb, inode_bh)->link_chain = cpu_to_be32(block);
sb                401 fs/affs/inode.c 	affs_fix_checksum(sb, bh);
sb                418 fs/affs/inode.c 		affs_free_block(sb, block);
sb                 36 fs/affs/namei.c affs_get_toupper(struct super_block *sb)
sb                 38 fs/affs/namei.c 	return affs_test_opt(AFFS_SB(sb)->s_flags, SF_INTL) ?
sb                157 fs/affs/namei.c affs_hash_name(struct super_block *sb, const u8 *name, unsigned int len)
sb                159 fs/affs/namei.c 	toupper_t toupper = affs_get_toupper(sb);
sb                166 fs/affs/namei.c 	return hash % AFFS_SB(sb)->s_hashsize;
sb                172 fs/affs/namei.c 	struct super_block *sb = dir->i_sb;
sb                174 fs/affs/namei.c 	toupper_t toupper = affs_get_toupper(sb);
sb                179 fs/affs/namei.c 	bh = affs_bread(sb, dir->i_ino);
sb                183 fs/affs/namei.c 	key = be32_to_cpu(AFFS_HEAD(bh)->table[affs_hash_name(sb, dentry->d_name.name, dentry->d_name.len)]);
sb                189 fs/affs/namei.c 		bh = affs_bread(sb, key);
sb                192 fs/affs/namei.c 		if (affs_match(dentry, AFFS_TAIL(sb, bh)->name, toupper))
sb                194 fs/affs/namei.c 		key = be32_to_cpu(AFFS_TAIL(sb, bh)->hash_chain);
sb                201 fs/affs/namei.c 	struct super_block *sb = dir->i_sb;
sb                219 fs/affs/namei.c 		switch (be32_to_cpu(AFFS_TAIL(sb, bh)->stype)) {
sb                223 fs/affs/namei.c 			ino = be32_to_cpu(AFFS_TAIL(sb, bh)->original);
sb                226 fs/affs/namei.c 		inode = affs_iget(sb, ino);
sb                247 fs/affs/namei.c 	struct super_block *sb = dir->i_sb;
sb                264 fs/affs/namei.c 	inode->i_mapping->a_ops = affs_test_opt(AFFS_SB(sb)->s_flags, SF_OFS) ?
sb                316 fs/affs/namei.c 	struct super_block	*sb = dir->i_sb;
sb                326 fs/affs/namei.c 	maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1;
sb                338 fs/affs/namei.c 	bh = affs_bread(sb, inode->i_ino);
sb                345 fs/affs/namei.c 		struct affs_sb_info *sbi = AFFS_SB(sb);
sb                405 fs/affs/namei.c 	struct super_block *sb = old_dir->i_sb;
sb                423 fs/affs/namei.c 	bh = affs_bread(sb, d_inode(old_dentry)->i_ino);
sb                435 fs/affs/namei.c 	affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry);
sb                436 fs/affs/namei.c 	affs_fix_checksum(sb, bh);
sb                453 fs/affs/namei.c 	struct super_block *sb = old_dir->i_sb;
sb                458 fs/affs/namei.c 	bh_old = affs_bread(sb, d_inode(old_dentry)->i_ino);
sb                462 fs/affs/namei.c 	bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino);
sb                481 fs/affs/namei.c 	affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry);
sb                482 fs/affs/namei.c 	affs_fix_checksum(sb, bh_old);
sb                488 fs/affs/namei.c 	affs_copy_name(AFFS_TAIL(sb, bh_new)->name, old_dentry);
sb                489 fs/affs/namei.c 	affs_fix_checksum(sb, bh_new);
sb                536 fs/affs/namei.c static struct inode *affs_nfs_get_inode(struct super_block *sb, u64 ino,
sb                541 fs/affs/namei.c 	if (!affs_validblock(sb, ino))
sb                544 fs/affs/namei.c 	inode = affs_iget(sb, ino);
sb                551 fs/affs/namei.c static struct dentry *affs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                554 fs/affs/namei.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                558 fs/affs/namei.c static struct dentry *affs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                561 fs/affs/namei.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                 30 fs/affs/super.c static int affs_remount (struct super_block *sb, int *flags, char *data);
sb                 33 fs/affs/super.c affs_commit_super(struct super_block *sb, int wait)
sb                 35 fs/affs/super.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                 37 fs/affs/super.c 	struct affs_root_tail *tail = AFFS_ROOT_TAIL(sb, bh);
sb                 41 fs/affs/super.c 	affs_fix_checksum(sb, bh);
sb                 50 fs/affs/super.c affs_put_super(struct super_block *sb)
sb                 52 fs/affs/super.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                 59 fs/affs/super.c affs_sync_fs(struct super_block *sb, int wait)
sb                 61 fs/affs/super.c 	affs_commit_super(sb, wait);
sb                 68 fs/affs/super.c 	struct super_block *sb;
sb                 71 fs/affs/super.c 	sb = sbi->sb;
sb                 77 fs/affs/super.c 	affs_commit_super(sb, 1);
sb                 80 fs/affs/super.c void affs_mark_sb_dirty(struct super_block *sb)
sb                 82 fs/affs/super.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                 85 fs/affs/super.c 	if (sb_rdonly(sb))
sb                 99 fs/affs/super.c static struct inode *affs_alloc_inode(struct super_block *sb)
sb                297 fs/affs/super.c 	struct super_block *sb = root->d_sb;
sb                298 fs/affs/super.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                300 fs/affs/super.c 	if (sb->s_blocksize)
sb                301 fs/affs/super.c 		seq_printf(m, ",bs=%lu", sb->s_blocksize);
sb                333 fs/affs/super.c static int affs_fill_super(struct super_block *sb, void *data, int silent)
sb                354 fs/affs/super.c 	sb->s_magic             = AFFS_SUPER_MAGIC;
sb                355 fs/affs/super.c 	sb->s_op                = &affs_sops;
sb                356 fs/affs/super.c 	sb->s_flags |= SB_NODIRATIME;
sb                358 fs/affs/super.c 	sb->s_time_gran = NSEC_PER_SEC;
sb                359 fs/affs/super.c 	sb->s_time_min = sys_tz.tz_minuteswest * 60 + AFFS_EPOCH_DELTA;
sb                360 fs/affs/super.c 	sb->s_time_max = 86400LL * U32_MAX + 86400 + sb->s_time_min;
sb                366 fs/affs/super.c 	sb->s_fs_info = sbi;
sb                367 fs/affs/super.c 	sbi->sb = sb;
sb                392 fs/affs/super.c 	size = i_size_read(sb->s_bdev->bd_inode) >> 9;
sb                395 fs/affs/super.c 	affs_set_blocksize(sb, PAGE_SIZE);
sb                398 fs/affs/super.c 	i = bdev_logical_block_size(sb->s_bdev);
sb                410 fs/affs/super.c 		affs_set_blocksize(sb, blocksize);
sb                426 fs/affs/super.c 				sb->s_id,
sb                429 fs/affs/super.c 			root_bh = affs_bread(sb, sbi->s_root_block + num_bm);
sb                432 fs/affs/super.c 			if (!affs_checksum_block(sb, root_bh) &&
sb                434 fs/affs/super.c 			    be32_to_cpu(AFFS_ROOT_TAIL(sb, root_bh)->stype) == ST_ROOT) {
sb                444 fs/affs/super.c 		pr_err("No valid root block on device %s\n", sb->s_id);
sb                454 fs/affs/super.c 	boot_bh = sb_bread(sb, 0);
sb                468 fs/affs/super.c 	     || chksum == MUFS_DCOFS) && !sb_rdonly(sb)) {
sb                469 fs/affs/super.c 		pr_notice("Dircache FS - mounting %s read only\n", sb->s_id);
sb                470 fs/affs/super.c 		sb->s_flags |= SB_RDONLY;
sb                492 fs/affs/super.c 		sb->s_flags |= SB_NOEXEC;
sb                502 fs/affs/super.c 		sb->s_flags |= SB_NOEXEC;
sb                506 fs/affs/super.c 		       sb->s_id, chksum);
sb                511 fs/affs/super.c 		u8 len = AFFS_ROOT_TAIL(sb, root_bh)->disk_name[0];
sb                514 fs/affs/super.c 			AFFS_ROOT_TAIL(sb, root_bh)->disk_name + 1,
sb                518 fs/affs/super.c 	sb->s_flags |= SB_NODEV | SB_NOSUID;
sb                520 fs/affs/super.c 	sbi->s_data_blksize = sb->s_blocksize;
sb                524 fs/affs/super.c 	tmp_flags = sb->s_flags;
sb                525 fs/affs/super.c 	ret = affs_init_bitmap(sb, &tmp_flags);
sb                528 fs/affs/super.c 	sb->s_flags = tmp_flags;
sb                532 fs/affs/super.c 	root_inode = affs_iget(sb, root_block);
sb                536 fs/affs/super.c 	if (affs_test_opt(AFFS_SB(sb)->s_flags, SF_INTL))
sb                537 fs/affs/super.c 		sb->s_d_op = &affs_intl_dentry_operations;
sb                539 fs/affs/super.c 		sb->s_d_op = &affs_dentry_operations;
sb                541 fs/affs/super.c 	sb->s_root = d_make_root(root_inode);
sb                542 fs/affs/super.c 	if (!sb->s_root) {
sb                547 fs/affs/super.c 	sb->s_export_op = &affs_export_ops;
sb                548 fs/affs/super.c 	pr_debug("s_flags=%lX\n", sb->s_flags);
sb                553 fs/affs/super.c affs_remount(struct super_block *sb, int *flags, char *data)
sb                555 fs/affs/super.c 	struct affs_sb_info	*sbi = AFFS_SB(sb);
sb                569 fs/affs/super.c 	sync_filesystem(sb);
sb                595 fs/affs/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb                599 fs/affs/super.c 		affs_free_bitmap(sb);
sb                601 fs/affs/super.c 		res = affs_init_bitmap(sb, flags);
sb                609 fs/affs/super.c 	struct super_block *sb = dentry->d_sb;
sb                611 fs/affs/super.c 	u64		 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                614 fs/affs/super.c 		 __func__, AFFS_SB(sb)->s_partition_size,
sb                615 fs/affs/super.c 		 AFFS_SB(sb)->s_reserved);
sb                617 fs/affs/super.c 	free          = affs_count_free_blocks(sb);
sb                619 fs/affs/super.c 	buf->f_bsize   = sb->s_blocksize;
sb                620 fs/affs/super.c 	buf->f_blocks  = AFFS_SB(sb)->s_partition_size - AFFS_SB(sb)->s_reserved;
sb                635 fs/affs/super.c static void affs_kill_sb(struct super_block *sb)
sb                637 fs/affs/super.c 	struct affs_sb_info *sbi = AFFS_SB(sb);
sb                638 fs/affs/super.c 	kill_block_super(sb);
sb                640 fs/affs/super.c 		affs_free_bitmap(sb);
sb                 49 fs/afs/callback.c 	new->sb = vnode->vfs_inode.i_sb;
sb                279 fs/afs/callback.c 			struct afs_super_info *as = AFS_FS_S(cbi->sb);
sb                290 fs/afs/callback.c 			inode = ilookup5_nowait(cbi->sb, fid->vnode,
sb                190 fs/afs/dynroot.c 	struct super_block *sb = net->dynroot_sb;
sb                194 fs/afs/dynroot.c 	if (!sb || atomic_read(&sb->s_active) == 0)
sb                198 fs/afs/dynroot.c 	root = sb->s_root;
sb                220 fs/afs/dynroot.c 	struct super_block *sb = net->dynroot_sb;
sb                223 fs/afs/dynroot.c 	if (!sb || atomic_read(&sb->s_active) == 0)
sb                226 fs/afs/dynroot.c 	root = sb->s_root;
sb                252 fs/afs/dynroot.c int afs_dynroot_populate(struct super_block *sb)
sb                255 fs/afs/dynroot.c 	struct afs_net *net = afs_sb2net(sb);
sb                260 fs/afs/dynroot.c 	net->dynroot_sb = sb;
sb                281 fs/afs/dynroot.c void afs_dynroot_depopulate(struct super_block *sb)
sb                283 fs/afs/dynroot.c 	struct afs_net *net = afs_sb2net(sb);
sb                284 fs/afs/dynroot.c 	struct dentry *root = sb->s_root, *subdir, *tmp;
sb                288 fs/afs/dynroot.c 	if (net->dynroot_sb == sb)
sb                398 fs/afs/inode.c struct inode *afs_iget_pseudo_dir(struct super_block *sb, bool root)
sb                412 fs/afs/inode.c 	as = sb->s_fs_info;
sb                425 fs/afs/inode.c 	inode = iget5_locked(sb, iget_data.fid.vnode,
sb                505 fs/afs/inode.c struct inode *afs_iget(struct super_block *sb, struct key *key,
sb                519 fs/afs/inode.c 	as = sb->s_fs_info;
sb                522 fs/afs/inode.c 	inode = iget5_locked(sb, fid->vnode, afs_iget5_test, afs_iget5_set,
sb                253 fs/afs/internal.h static inline struct afs_super_info *AFS_FS_S(struct super_block *sb)
sb                255 fs/afs/internal.h 	return sb->s_fs_info;
sb                568 fs/afs/internal.h 	struct super_block	*sb;		/* Superblock on which inodes reside */
sb               1035 fs/afs/internal.h static inline struct afs_net *afs_sb2net(struct super_block *sb)
sb               1037 fs/afs/internal.h 	return afs_net(AFS_FS_S(sb)->net_ns);
sb                 33 fs/afs/super.c static void afs_kill_super(struct super_block *sb);
sb                 34 fs/afs/super.c static struct inode *afs_alloc_inode(struct super_block *sb);
sb                399 fs/afs/super.c static int afs_test_super(struct super_block *sb, struct fs_context *fc)
sb                402 fs/afs/super.c 	struct afs_super_info *as = AFS_FS_S(sb);
sb                411 fs/afs/super.c static int afs_dynroot_test_super(struct super_block *sb, struct fs_context *fc)
sb                413 fs/afs/super.c 	struct afs_super_info *as = AFS_FS_S(sb);
sb                419 fs/afs/super.c static int afs_set_super(struct super_block *sb, struct fs_context *fc)
sb                421 fs/afs/super.c 	return set_anon_super(sb, NULL);
sb                427 fs/afs/super.c static int afs_fill_super(struct super_block *sb, struct afs_fs_context *ctx)
sb                429 fs/afs/super.c 	struct afs_super_info *as = AFS_FS_S(sb);
sb                437 fs/afs/super.c 	sb->s_blocksize		= PAGE_SIZE;
sb                438 fs/afs/super.c 	sb->s_blocksize_bits	= PAGE_SHIFT;
sb                439 fs/afs/super.c 	sb->s_maxbytes		= MAX_LFS_FILESIZE;
sb                440 fs/afs/super.c 	sb->s_magic		= AFS_FS_MAGIC;
sb                441 fs/afs/super.c 	sb->s_op		= &afs_super_ops;
sb                443 fs/afs/super.c 		sb->s_xattr	= afs_xattr_handlers;
sb                444 fs/afs/super.c 	ret = super_setup_bdi(sb);
sb                447 fs/afs/super.c 	sb->s_bdi->ra_pages	= VM_READAHEAD_PAGES;
sb                451 fs/afs/super.c 		inode = afs_iget_pseudo_dir(sb, true);
sb                453 fs/afs/super.c 		sprintf(sb->s_id, "%llu", as->volume->vid);
sb                461 fs/afs/super.c 		inode = afs_iget(sb, ctx->key, &iget_data, NULL, NULL, NULL);
sb                471 fs/afs/super.c 	sb->s_root = d_make_root(inode);
sb                472 fs/afs/super.c 	if (!sb->s_root)
sb                476 fs/afs/super.c 		sb->s_d_op = &afs_dynroot_dentry_operations;
sb                477 fs/afs/super.c 		ret = afs_dynroot_populate(sb);
sb                481 fs/afs/super.c 		sb->s_d_op = &afs_fs_dentry_operations;
sb                521 fs/afs/super.c static void afs_kill_super(struct super_block *sb)
sb                523 fs/afs/super.c 	struct afs_super_info *as = AFS_FS_S(sb);
sb                527 fs/afs/super.c 		afs_dynroot_depopulate(sb);
sb                534 fs/afs/super.c 	kill_anon_super(sb);
sb                546 fs/afs/super.c 	struct super_block *sb;
sb                564 fs/afs/super.c 	sb = sget_fc(fc,
sb                567 fs/afs/super.c 	if (IS_ERR(sb)) {
sb                568 fs/afs/super.c 		ret = PTR_ERR(sb);
sb                572 fs/afs/super.c 	if (!sb->s_root) {
sb                575 fs/afs/super.c 		ret = afs_fill_super(sb, ctx);
sb                578 fs/afs/super.c 		sb->s_flags |= SB_ACTIVE;
sb                581 fs/afs/super.c 		ASSERTCMP(sb->s_flags, &, SB_ACTIVE);
sb                584 fs/afs/super.c 	fc->root = dget(sb->s_root);
sb                586 fs/afs/super.c 	_leave(" = 0 [%p]", sb);
sb                590 fs/afs/super.c 	deactivate_locked_super(sb);
sb                666 fs/afs/super.c static struct inode *afs_alloc_inode(struct super_block *sb)
sb                119 fs/autofs/autofs_i.h 	struct super_block *sb;
sb                130 fs/autofs/autofs_i.h static inline struct autofs_sb_info *autofs_sbi(struct super_block *sb)
sb                132 fs/autofs/autofs_i.h 	return (struct autofs_sb_info *)(sb->s_fs_info);
sb                159 fs/autofs/autofs_i.h int autofs_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
sb                230 fs/autofs/autofs_i.h 	return new_encode_dev(sbi->sb->s_dev);
sb                235 fs/autofs/autofs_i.h 	return d_inode(sbi->sb->s_root)->i_ino;
sb                429 fs/autofs/dev-ioctl.c 	devid = sbi->sb->s_dev;
sb                467 fs/autofs/dev-ioctl.c 	return autofs_do_expire_multi(sbi->sb, mnt, sbi, how);
sb                536 fs/autofs/dev-ioctl.c 		dev_t dev = sbi->sb->s_dev;
sb                642 fs/autofs/dev-ioctl.c 		struct super_block *sb;
sb                652 fs/autofs/dev-ioctl.c 		sb = file_inode(fp)->i_sb;
sb                653 fs/autofs/dev-ioctl.c 		if (sb->s_type != &autofs_fs_type) {
sb                658 fs/autofs/dev-ioctl.c 		sbi = autofs_sbi(sb);
sb                274 fs/autofs/expire.c static struct dentry *autofs_expire_direct(struct super_block *sb,
sb                279 fs/autofs/expire.c 	struct dentry *root = dget(sb->s_root);
sb                420 fs/autofs/expire.c static struct dentry *autofs_expire_indirect(struct super_block *sb,
sb                426 fs/autofs/expire.c 	struct dentry *root = sb->s_root;
sb                536 fs/autofs/expire.c int autofs_expire_run(struct super_block *sb,
sb                551 fs/autofs/expire.c 	dentry = autofs_expire_indirect(sb, mnt, sbi, 0);
sb                575 fs/autofs/expire.c int autofs_do_expire_multi(struct super_block *sb, struct vfsmount *mnt,
sb                582 fs/autofs/expire.c 		dentry = autofs_expire_direct(sb, mnt, sbi, how);
sb                584 fs/autofs/expire.c 		dentry = autofs_expire_indirect(sb, mnt, sbi, how);
sb                611 fs/autofs/expire.c int autofs_expire_multi(struct super_block *sb, struct vfsmount *mnt,
sb                619 fs/autofs/expire.c 	return autofs_do_expire_multi(sb, mnt, sbi, how);
sb                 39 fs/autofs/inode.c void autofs_kill_sb(struct super_block *sb)
sb                 41 fs/autofs/inode.c 	struct autofs_sb_info *sbi = autofs_sbi(sb);
sb                 56 fs/autofs/inode.c 	kill_litter_super(sb);
sb                242 fs/autofs/inode.c 	sbi->sb = s;
sb                360 fs/autofs/inode.c struct inode *autofs_get_inode(struct super_block *sb, umode_t mode)
sb                362 fs/autofs/inode.c 	struct inode *inode = new_inode(sb);
sb                368 fs/autofs/inode.c 	if (sb->s_root) {
sb                369 fs/autofs/inode.c 		inode->i_uid = d_inode(sb->s_root)->i_uid;
sb                370 fs/autofs/inode.c 		inode->i_gid = d_inode(sb->s_root)->i_gid;
sb                181 fs/autofs/waitq.c 	struct dentry *root = sbi->sb->s_root;
sb                 94 fs/befs/befs.h void befs_error(const struct super_block *sb, const char *fmt, ...);
sb                 96 fs/befs/befs.h void befs_warning(const struct super_block *sb, const char *fmt, ...);
sb                 98 fs/befs/befs.h void befs_debug(const struct super_block *sb, const char *fmt, ...);
sb                100 fs/befs/befs.h void befs_dump_super_block(const struct super_block *sb, befs_super_block *);
sb                101 fs/befs/befs.h void befs_dump_inode(const struct super_block *sb, befs_inode *);
sb                102 fs/befs/befs.h void befs_dump_index_entry(const struct super_block *sb, befs_disk_btree_super *);
sb                103 fs/befs/befs.h void befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *);
sb                123 fs/befs/befs.h iaddr2blockno(struct super_block *sb, const befs_inode_addr *iaddr)
sb                125 fs/befs/befs.h 	return ((iaddr->allocation_group << BEFS_SB(sb)->ag_shift) +
sb                130 fs/befs/befs.h blockno2iaddr(struct super_block *sb, befs_blocknr_t blockno)
sb                134 fs/befs/befs.h 	iaddr.allocation_group = blockno >> BEFS_SB(sb)->ag_shift;
sb                136 fs/befs/befs.h 	    blockno - (iaddr.allocation_group << BEFS_SB(sb)->ag_shift);
sb                143 fs/befs/befs.h befs_iaddrs_per_block(struct super_block *sb)
sb                145 fs/befs/befs.h 	return BEFS_SB(sb)->block_size / sizeof(befs_disk_inode_addr);
sb                 91 fs/befs/btree.c static int befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds,
sb                 96 fs/befs/btree.c static int befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds,
sb                 99 fs/befs/btree.c static int befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds,
sb                111 fs/befs/btree.c static int befs_find_key(struct super_block *sb,
sb                115 fs/befs/btree.c static char *befs_bt_get_key(struct super_block *sb,
sb                134 fs/befs/btree.c befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds,
sb                140 fs/befs/btree.c 	befs_debug(sb, "---> %s", __func__);
sb                142 fs/befs/btree.c 	bh = befs_read_datastream(sb, ds, 0, NULL);
sb                145 fs/befs/btree.c 		befs_error(sb, "Couldn't read index header.");
sb                149 fs/befs/btree.c 	befs_dump_index_entry(sb, od_sup);
sb                151 fs/befs/btree.c 	sup->magic = fs32_to_cpu(sb, od_sup->magic);
sb                152 fs/befs/btree.c 	sup->node_size = fs32_to_cpu(sb, od_sup->node_size);
sb                153 fs/befs/btree.c 	sup->max_depth = fs32_to_cpu(sb, od_sup->max_depth);
sb                154 fs/befs/btree.c 	sup->data_type = fs32_to_cpu(sb, od_sup->data_type);
sb                155 fs/befs/btree.c 	sup->root_node_ptr = fs64_to_cpu(sb, od_sup->root_node_ptr);
sb                159 fs/befs/btree.c 		befs_error(sb, "Index header has bad magic.");
sb                163 fs/befs/btree.c 	befs_debug(sb, "<--- %s", __func__);
sb                167 fs/befs/btree.c 	befs_debug(sb, "<--- %s ERROR", __func__);
sb                191 fs/befs/btree.c befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds,
sb                196 fs/befs/btree.c 	befs_debug(sb, "---> %s", __func__);
sb                201 fs/befs/btree.c 	node->bh = befs_read_datastream(sb, ds, node_off, &off);
sb                203 fs/befs/btree.c 		befs_error(sb, "%s failed to read "
sb                205 fs/befs/btree.c 		befs_debug(sb, "<--- %s ERROR", __func__);
sb                212 fs/befs/btree.c 	befs_dump_index_node(sb, node->od_node);
sb                214 fs/befs/btree.c 	node->head.left = fs64_to_cpu(sb, node->od_node->left);
sb                215 fs/befs/btree.c 	node->head.right = fs64_to_cpu(sb, node->od_node->right);
sb                216 fs/befs/btree.c 	node->head.overflow = fs64_to_cpu(sb, node->od_node->overflow);
sb                218 fs/befs/btree.c 	    fs16_to_cpu(sb, node->od_node->all_key_count);
sb                220 fs/befs/btree.c 	    fs16_to_cpu(sb, node->od_node->all_key_length);
sb                222 fs/befs/btree.c 	befs_debug(sb, "<--- %s", __func__);
sb                245 fs/befs/btree.c befs_btree_find(struct super_block *sb, const befs_data_stream *ds,
sb                253 fs/befs/btree.c 	befs_debug(sb, "---> %s Key: %s", __func__, key);
sb                255 fs/befs/btree.c 	if (befs_bt_read_super(sb, ds, &bt_super) != BEFS_OK) {
sb                256 fs/befs/btree.c 		befs_error(sb,
sb                264 fs/befs/btree.c 		befs_error(sb, "befs_btree_find() failed to allocate %zu "
sb                273 fs/befs/btree.c 	if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) {
sb                274 fs/befs/btree.c 		befs_error(sb, "befs_btree_find() failed to read "
sb                280 fs/befs/btree.c 		res = befs_find_key(sb, this_node, key, &node_off);
sb                284 fs/befs/btree.c 		if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) {
sb                285 fs/befs/btree.c 			befs_error(sb, "befs_btree_find() failed to read "
sb                292 fs/befs/btree.c 	res = befs_find_key(sb, this_node, key, value);
sb                298 fs/befs/btree.c 		befs_error(sb, "<--- %s Key %s not found", __func__, key);
sb                299 fs/befs/btree.c 		befs_debug(sb, "<--- %s ERROR", __func__);
sb                303 fs/befs/btree.c 	befs_debug(sb, "<--- %s Found key %s, value %llu", __func__,
sb                311 fs/befs/btree.c 	befs_debug(sb, "<--- %s ERROR", __func__);
sb                330 fs/befs/btree.c befs_find_key(struct super_block *sb, struct befs_btree_node *node,
sb                340 fs/befs/btree.c 	befs_debug(sb, "---> %s %s", __func__, findkey);
sb                346 fs/befs/btree.c 	thiskey = befs_bt_get_key(sb, node, last, &keylen);
sb                350 fs/befs/btree.c 		befs_debug(sb, "<--- node can't contain %s", findkey);
sb                361 fs/befs/btree.c 		befs_debug(sb, "first: %d, last: %d, mid: %d", first, last,
sb                363 fs/befs/btree.c 		thiskey = befs_bt_get_key(sb, node, mid, &keylen);
sb                368 fs/befs/btree.c 			befs_debug(sb, "<--- %s found %s at %d",
sb                371 fs/befs/btree.c 			*value = fs64_to_cpu(sb, valarray[mid]);
sb                382 fs/befs/btree.c 		*value = fs64_to_cpu(sb, valarray[mid + 1]);
sb                384 fs/befs/btree.c 		*value = fs64_to_cpu(sb, valarray[mid]);
sb                385 fs/befs/btree.c 	befs_error(sb, "<--- %s %s not found", __func__, findkey);
sb                386 fs/befs/btree.c 	befs_debug(sb, "<--- %s ERROR", __func__);
sb                411 fs/befs/btree.c befs_btree_read(struct super_block *sb, const befs_data_stream *ds,
sb                426 fs/befs/btree.c 	befs_debug(sb, "---> %s", __func__);
sb                428 fs/befs/btree.c 	if (befs_bt_read_super(sb, ds, &bt_super) != BEFS_OK) {
sb                429 fs/befs/btree.c 		befs_error(sb,
sb                436 fs/befs/btree.c 		befs_error(sb, "befs_btree_read() failed to allocate %zu "
sb                445 fs/befs/btree.c 	res = befs_btree_seekleaf(sb, ds, &bt_super, this_node, &node_off);
sb                451 fs/befs/btree.c 		befs_debug(sb, "<--- %s Tree is EMPTY", __func__);
sb                465 fs/befs/btree.c 			befs_debug(sb,
sb                477 fs/befs/btree.c 		if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) {
sb                478 fs/befs/btree.c 			befs_error(sb, "%s failed to read node at %llu",
sb                490 fs/befs/btree.c 	keystart = befs_bt_get_key(sb, this_node, cur_key, &keylen);
sb                492 fs/befs/btree.c 	befs_debug(sb, "Read [%llu,%d]: keysize %d",
sb                497 fs/befs/btree.c 		befs_error(sb, "%s keybuf too small (%zu) "
sb                504 fs/befs/btree.c 	*value = fs64_to_cpu(sb, valarray[cur_key]);
sb                507 fs/befs/btree.c 	befs_debug(sb, "Read [%llu,%d]: Key \"%.*s\", Value %llu", node_off,
sb                513 fs/befs/btree.c 	befs_debug(sb, "<--- %s", __func__);
sb                523 fs/befs/btree.c 	befs_debug(sb, "<--- %s ERROR", __func__);
sb                542 fs/befs/btree.c befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds,
sb                548 fs/befs/btree.c 	befs_debug(sb, "---> %s", __func__);
sb                550 fs/befs/btree.c 	if (befs_bt_read_node(sb, ds, this_node, *node_off) != BEFS_OK) {
sb                551 fs/befs/btree.c 		befs_error(sb, "%s failed to read "
sb                555 fs/befs/btree.c 	befs_debug(sb, "Seekleaf to root node %llu", *node_off);
sb                558 fs/befs/btree.c 		befs_debug(sb, "<--- %s Tree is EMPTY", __func__);
sb                565 fs/befs/btree.c 			befs_debug(sb, "%s encountered "
sb                572 fs/befs/btree.c 			*node_off = fs64_to_cpu(sb, valarray[0]);
sb                574 fs/befs/btree.c 		if (befs_bt_read_node(sb, ds, this_node, *node_off) != BEFS_OK) {
sb                575 fs/befs/btree.c 			befs_error(sb, "%s failed to read "
sb                580 fs/befs/btree.c 		befs_debug(sb, "Seekleaf to child node %llu", *node_off);
sb                582 fs/befs/btree.c 	befs_debug(sb, "Node %llu is a leaf node", *node_off);
sb                587 fs/befs/btree.c 	befs_debug(sb, "<--- %s ERROR", __func__);
sb                675 fs/befs/btree.c befs_bt_get_key(struct super_block *sb, struct befs_btree_node *node,
sb                693 fs/befs/btree.c 		prev_key_end = fs16_to_cpu(sb, keylen_index[index - 1]);
sb                695 fs/befs/btree.c 	*keylen = fs16_to_cpu(sb, keylen_index[index]) - prev_key_end;
sb                  7 fs/befs/btree.h int befs_btree_find(struct super_block *sb, const befs_data_stream *ds,
sb                 10 fs/befs/btree.h int befs_btree_read(struct super_block *sb, const befs_data_stream *ds,
sb                 24 fs/befs/datastream.c static int befs_find_brun_direct(struct super_block *sb,
sb                 28 fs/befs/datastream.c static int befs_find_brun_indirect(struct super_block *sb,
sb                 33 fs/befs/datastream.c static int befs_find_brun_dblindirect(struct super_block *sb,
sb                 49 fs/befs/datastream.c befs_read_datastream(struct super_block *sb, const befs_data_stream *ds,
sb                 56 fs/befs/datastream.c 	befs_debug(sb, "---> %s %llu", __func__, pos);
sb                 57 fs/befs/datastream.c 	block = pos >> BEFS_SB(sb)->block_shift;
sb                 59 fs/befs/datastream.c 		*off = pos - (block << BEFS_SB(sb)->block_shift);
sb                 61 fs/befs/datastream.c 	if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) {
sb                 62 fs/befs/datastream.c 		befs_error(sb, "BeFS: Error finding disk addr of block %lu",
sb                 64 fs/befs/datastream.c 		befs_debug(sb, "<--- %s ERROR", __func__);
sb                 67 fs/befs/datastream.c 	bh = befs_bread_iaddr(sb, run);
sb                 69 fs/befs/datastream.c 		befs_error(sb, "BeFS: Error reading block %lu from datastream",
sb                 74 fs/befs/datastream.c 	befs_debug(sb, "<--- %s read data, starting at %llu", __func__, pos);
sb                 95 fs/befs/datastream.c befs_fblock2brun(struct super_block *sb, const befs_data_stream *data,
sb                 99 fs/befs/datastream.c 	befs_off_t pos = fblock << BEFS_SB(sb)->block_shift;
sb                102 fs/befs/datastream.c 		err = befs_find_brun_direct(sb, data, fblock, run);
sb                105 fs/befs/datastream.c 		err = befs_find_brun_indirect(sb, data, fblock, run);
sb                108 fs/befs/datastream.c 		err = befs_find_brun_dblindirect(sb, data, fblock, run);
sb                111 fs/befs/datastream.c 		befs_error(sb,
sb                130 fs/befs/datastream.c befs_read_lsymlink(struct super_block *sb, const befs_data_stream *ds,
sb                137 fs/befs/datastream.c 	befs_debug(sb, "---> %s length: %llu", __func__, len);
sb                140 fs/befs/datastream.c 		bh = befs_read_datastream(sb, ds, bytes_read, NULL);
sb                142 fs/befs/datastream.c 			befs_error(sb, "BeFS: Error reading datastream block "
sb                144 fs/befs/datastream.c 			befs_debug(sb, "<--- %s ERROR", __func__);
sb                148 fs/befs/datastream.c 		plen = ((bytes_read + BEFS_SB(sb)->block_size) < len) ?
sb                149 fs/befs/datastream.c 		    BEFS_SB(sb)->block_size : len - bytes_read;
sb                155 fs/befs/datastream.c 	befs_debug(sb, "<--- %s read %u bytes", __func__, (unsigned int)
sb                172 fs/befs/datastream.c befs_count_blocks(struct super_block *sb, const befs_data_stream *ds)
sb                177 fs/befs/datastream.c 	struct befs_sb_info *befs_sb = BEFS_SB(sb);
sb                179 fs/befs/datastream.c 	befs_debug(sb, "---> %s", __func__);
sb                209 fs/befs/datastream.c 		indirblocks = dbl_bruns / befs_iaddrs_per_block(sb);
sb                216 fs/befs/datastream.c 	befs_debug(sb, "<--- %s %u blocks", __func__, (unsigned int)blocks);
sb                251 fs/befs/datastream.c befs_find_brun_direct(struct super_block *sb, const befs_data_stream *data,
sb                258 fs/befs/datastream.c 	befs_debug(sb, "---> %s, find %lu", __func__, (unsigned long)blockno);
sb                269 fs/befs/datastream.c 			befs_debug(sb, "---> %s, "
sb                276 fs/befs/datastream.c 	befs_error(sb, "%s failed to find file block %lu", __func__,
sb                278 fs/befs/datastream.c 	befs_debug(sb, "---> %s ERROR", __func__);
sb                305 fs/befs/datastream.c befs_find_brun_indirect(struct super_block *sb,
sb                318 fs/befs/datastream.c 	befs_blocknr_t indirblockno = iaddr2blockno(sb, &indirect);
sb                319 fs/befs/datastream.c 	int arraylen = befs_iaddrs_per_block(sb);
sb                321 fs/befs/datastream.c 	befs_debug(sb, "---> %s, find %lu", __func__, (unsigned long)blockno);
sb                323 fs/befs/datastream.c 	indir_start_blk = data->max_direct_range >> BEFS_SB(sb)->block_shift;
sb                328 fs/befs/datastream.c 		indirblock = sb_bread(sb, indirblockno + i);
sb                330 fs/befs/datastream.c 			befs_error(sb, "---> %s failed to read "
sb                333 fs/befs/datastream.c 			befs_debug(sb, "<--- %s ERROR", __func__);
sb                340 fs/befs/datastream.c 			int len = fs16_to_cpu(sb, array[j].len);
sb                345 fs/befs/datastream.c 				    fs32_to_cpu(sb, array[j].allocation_group);
sb                347 fs/befs/datastream.c 				    fs16_to_cpu(sb, array[j].start) + offset;
sb                349 fs/befs/datastream.c 				    fs16_to_cpu(sb, array[j].len) - offset;
sb                352 fs/befs/datastream.c 				befs_debug(sb,
sb                366 fs/befs/datastream.c 	befs_error(sb, "BeFS: %s failed to find "
sb                369 fs/befs/datastream.c 	befs_debug(sb, "<--- %s ERROR", __func__);
sb                414 fs/befs/datastream.c befs_find_brun_dblindirect(struct super_block *sb,
sb                434 fs/befs/datastream.c 	    data->max_indirect_range >> BEFS_SB(sb)->block_shift;
sb                446 fs/befs/datastream.c 	size_t diblklen = iblklen * befs_iaddrs_per_block(sb)
sb                449 fs/befs/datastream.c 	befs_debug(sb, "---> %s find %lu", __func__, (unsigned long)blockno);
sb                462 fs/befs/datastream.c 	dbl_which_block = dblindir_indx / befs_iaddrs_per_block(sb);
sb                464 fs/befs/datastream.c 		befs_error(sb, "The double-indirect index calculated by "
sb                472 fs/befs/datastream.c 	    sb_bread(sb, iaddr2blockno(sb, &data->double_indirect) +
sb                475 fs/befs/datastream.c 		befs_error(sb, "%s couldn't read the "
sb                478 fs/befs/datastream.c 			   iaddr2blockno(sb, &data->double_indirect) +
sb                484 fs/befs/datastream.c 	    dblindir_indx - (dbl_which_block * befs_iaddrs_per_block(sb));
sb                486 fs/befs/datastream.c 	indir_run = fsrun_to_cpu(sb, iaddr_array[dbl_block_indx]);
sb                490 fs/befs/datastream.c 	which_block = indir_indx / befs_iaddrs_per_block(sb);
sb                492 fs/befs/datastream.c 		befs_error(sb, "The indirect index calculated by "
sb                499 fs/befs/datastream.c 	    sb_bread(sb, iaddr2blockno(sb, &indir_run) + which_block);
sb                501 fs/befs/datastream.c 		befs_error(sb, "%s couldn't read the indirect block "
sb                503 fs/befs/datastream.c 			   iaddr2blockno(sb, &indir_run) + which_block);
sb                507 fs/befs/datastream.c 	block_indx = indir_indx - (which_block * befs_iaddrs_per_block(sb));
sb                509 fs/befs/datastream.c 	*run = fsrun_to_cpu(sb, iaddr_array[block_indx]);
sb                520 fs/befs/datastream.c 	befs_debug(sb, "Found file block %lu in double_indirect[%d][%d],"
sb                  7 fs/befs/datastream.h struct buffer_head *befs_read_datastream(struct super_block *sb,
sb                 11 fs/befs/datastream.h int befs_fblock2brun(struct super_block *sb, const befs_data_stream *data,
sb                 14 fs/befs/datastream.h size_t befs_read_lsymlink(struct super_block *sb, const befs_data_stream *data,
sb                 17 fs/befs/datastream.h befs_blocknr_t befs_count_blocks(struct super_block *sb,
sb                 29 fs/befs/debug.c befs_error(const struct super_block *sb, const char *fmt, ...)
sb                 37 fs/befs/debug.c 	pr_err("(%s): %pV\n", sb->s_id, &vaf);
sb                 42 fs/befs/debug.c befs_warning(const struct super_block *sb, const char *fmt, ...)
sb                 50 fs/befs/debug.c 	pr_warn("(%s): %pV\n", sb->s_id, &vaf);
sb                 55 fs/befs/debug.c befs_debug(const struct super_block *sb, const char *fmt, ...)
sb                 65 fs/befs/debug.c 	pr_debug("(%s): %pV\n", sb->s_id, &vaf);
sb                 72 fs/befs/debug.c befs_dump_inode(const struct super_block *sb, befs_inode *inode)
sb                 78 fs/befs/debug.c 	befs_debug(sb, "befs_inode information");
sb                 80 fs/befs/debug.c 	befs_debug(sb, "  magic1 %08x", fs32_to_cpu(sb, inode->magic1));
sb                 82 fs/befs/debug.c 	tmp_run = fsrun_to_cpu(sb, inode->inode_num);
sb                 83 fs/befs/debug.c 	befs_debug(sb, "  inode_num %u, %hu, %hu",
sb                 86 fs/befs/debug.c 	befs_debug(sb, "  uid %u", fs32_to_cpu(sb, inode->uid));
sb                 87 fs/befs/debug.c 	befs_debug(sb, "  gid %u", fs32_to_cpu(sb, inode->gid));
sb                 88 fs/befs/debug.c 	befs_debug(sb, "  mode %08x", fs32_to_cpu(sb, inode->mode));
sb                 89 fs/befs/debug.c 	befs_debug(sb, "  flags %08x", fs32_to_cpu(sb, inode->flags));
sb                 90 fs/befs/debug.c 	befs_debug(sb, "  create_time %llu",
sb                 91 fs/befs/debug.c 		   fs64_to_cpu(sb, inode->create_time));
sb                 92 fs/befs/debug.c 	befs_debug(sb, "  last_modified_time %llu",
sb                 93 fs/befs/debug.c 		   fs64_to_cpu(sb, inode->last_modified_time));
sb                 95 fs/befs/debug.c 	tmp_run = fsrun_to_cpu(sb, inode->parent);
sb                 96 fs/befs/debug.c 	befs_debug(sb, "  parent [%u, %hu, %hu]",
sb                 99 fs/befs/debug.c 	tmp_run = fsrun_to_cpu(sb, inode->attributes);
sb                100 fs/befs/debug.c 	befs_debug(sb, "  attributes [%u, %hu, %hu]",
sb                103 fs/befs/debug.c 	befs_debug(sb, "  type %08x", fs32_to_cpu(sb, inode->type));
sb                104 fs/befs/debug.c 	befs_debug(sb, "  inode_size %u", fs32_to_cpu(sb, inode->inode_size));
sb                106 fs/befs/debug.c 	if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) {
sb                107 fs/befs/debug.c 		befs_debug(sb, "  Symbolic link [%s]", inode->data.symlink);
sb                113 fs/befs/debug.c 			    fsrun_to_cpu(sb, inode->data.datastream.direct[i]);
sb                114 fs/befs/debug.c 			befs_debug(sb, "  direct %d [%u, %hu, %hu]", i,
sb                118 fs/befs/debug.c 		befs_debug(sb, "  max_direct_range %llu",
sb                119 fs/befs/debug.c 			   fs64_to_cpu(sb,
sb                123 fs/befs/debug.c 		tmp_run = fsrun_to_cpu(sb, inode->data.datastream.indirect);
sb                124 fs/befs/debug.c 		befs_debug(sb, "  indirect [%u, %hu, %hu]",
sb                128 fs/befs/debug.c 		befs_debug(sb, "  max_indirect_range %llu",
sb                129 fs/befs/debug.c 			   fs64_to_cpu(sb,
sb                134 fs/befs/debug.c 		    fsrun_to_cpu(sb, inode->data.datastream.double_indirect);
sb                135 fs/befs/debug.c 		befs_debug(sb, "  double indirect [%u, %hu, %hu]",
sb                139 fs/befs/debug.c 		befs_debug(sb, "  max_double_indirect_range %llu",
sb                140 fs/befs/debug.c 			   fs64_to_cpu(sb,
sb                144 fs/befs/debug.c 		befs_debug(sb, "  size %llu",
sb                145 fs/befs/debug.c 			   fs64_to_cpu(sb, inode->data.datastream.size));
sb                156 fs/befs/debug.c befs_dump_super_block(const struct super_block *sb, befs_super_block *sup)
sb                162 fs/befs/debug.c 	befs_debug(sb, "befs_super_block information");
sb                164 fs/befs/debug.c 	befs_debug(sb, "  name %s", sup->name);
sb                165 fs/befs/debug.c 	befs_debug(sb, "  magic1 %08x", fs32_to_cpu(sb, sup->magic1));
sb                166 fs/befs/debug.c 	befs_debug(sb, "  fs_byte_order %08x",
sb                167 fs/befs/debug.c 		   fs32_to_cpu(sb, sup->fs_byte_order));
sb                169 fs/befs/debug.c 	befs_debug(sb, "  block_size %u", fs32_to_cpu(sb, sup->block_size));
sb                170 fs/befs/debug.c 	befs_debug(sb, "  block_shift %u", fs32_to_cpu(sb, sup->block_shift));
sb                172 fs/befs/debug.c 	befs_debug(sb, "  num_blocks %llu", fs64_to_cpu(sb, sup->num_blocks));
sb                173 fs/befs/debug.c 	befs_debug(sb, "  used_blocks %llu", fs64_to_cpu(sb, sup->used_blocks));
sb                174 fs/befs/debug.c 	befs_debug(sb, "  inode_size %u", fs32_to_cpu(sb, sup->inode_size));
sb                176 fs/befs/debug.c 	befs_debug(sb, "  magic2 %08x", fs32_to_cpu(sb, sup->magic2));
sb                177 fs/befs/debug.c 	befs_debug(sb, "  blocks_per_ag %u",
sb                178 fs/befs/debug.c 		   fs32_to_cpu(sb, sup->blocks_per_ag));
sb                179 fs/befs/debug.c 	befs_debug(sb, "  ag_shift %u", fs32_to_cpu(sb, sup->ag_shift));
sb                180 fs/befs/debug.c 	befs_debug(sb, "  num_ags %u", fs32_to_cpu(sb, sup->num_ags));
sb                182 fs/befs/debug.c 	befs_debug(sb, "  flags %08x", fs32_to_cpu(sb, sup->flags));
sb                184 fs/befs/debug.c 	tmp_run = fsrun_to_cpu(sb, sup->log_blocks);
sb                185 fs/befs/debug.c 	befs_debug(sb, "  log_blocks %u, %hu, %hu",
sb                188 fs/befs/debug.c 	befs_debug(sb, "  log_start %lld", fs64_to_cpu(sb, sup->log_start));
sb                189 fs/befs/debug.c 	befs_debug(sb, "  log_end %lld", fs64_to_cpu(sb, sup->log_end));
sb                191 fs/befs/debug.c 	befs_debug(sb, "  magic3 %08x", fs32_to_cpu(sb, sup->magic3));
sb                193 fs/befs/debug.c 	tmp_run = fsrun_to_cpu(sb, sup->root_dir);
sb                194 fs/befs/debug.c 	befs_debug(sb, "  root_dir %u, %hu, %hu",
sb                197 fs/befs/debug.c 	tmp_run = fsrun_to_cpu(sb, sup->indices);
sb                198 fs/befs/debug.c 	befs_debug(sb, "  indices %u, %hu, %hu",
sb                207 fs/befs/debug.c befs_dump_small_data(const struct super_block *sb, befs_small_data *sd)
sb                213 fs/befs/debug.c befs_dump_run(const struct super_block *sb, befs_disk_block_run run)
sb                217 fs/befs/debug.c 	befs_block_run n = fsrun_to_cpu(sb, run);
sb                219 fs/befs/debug.c 	befs_debug(sb, "[%u, %hu, %hu]", n.allocation_group, n.start, n.len);
sb                226 fs/befs/debug.c befs_dump_index_entry(const struct super_block *sb,
sb                231 fs/befs/debug.c 	befs_debug(sb, "Btree super structure");
sb                232 fs/befs/debug.c 	befs_debug(sb, "  magic %08x", fs32_to_cpu(sb, super->magic));
sb                233 fs/befs/debug.c 	befs_debug(sb, "  node_size %u", fs32_to_cpu(sb, super->node_size));
sb                234 fs/befs/debug.c 	befs_debug(sb, "  max_depth %08x", fs32_to_cpu(sb, super->max_depth));
sb                236 fs/befs/debug.c 	befs_debug(sb, "  data_type %08x", fs32_to_cpu(sb, super->data_type));
sb                237 fs/befs/debug.c 	befs_debug(sb, "  root_node_pointer %016LX",
sb                238 fs/befs/debug.c 		   fs64_to_cpu(sb, super->root_node_ptr));
sb                239 fs/befs/debug.c 	befs_debug(sb, "  free_node_pointer %016LX",
sb                240 fs/befs/debug.c 		   fs64_to_cpu(sb, super->free_node_ptr));
sb                241 fs/befs/debug.c 	befs_debug(sb, "  maximum size %016LX",
sb                242 fs/befs/debug.c 		   fs64_to_cpu(sb, super->max_size));
sb                248 fs/befs/debug.c befs_dump_index_node(const struct super_block *sb, befs_btree_nodehead *node)
sb                252 fs/befs/debug.c 	befs_debug(sb, "Btree node structure");
sb                253 fs/befs/debug.c 	befs_debug(sb, "  left %016LX", fs64_to_cpu(sb, node->left));
sb                254 fs/befs/debug.c 	befs_debug(sb, "  right %016LX", fs64_to_cpu(sb, node->right));
sb                255 fs/befs/debug.c 	befs_debug(sb, "  overflow %016LX", fs64_to_cpu(sb, node->overflow));
sb                256 fs/befs/debug.c 	befs_debug(sb, "  all_key_count %hu",
sb                257 fs/befs/debug.c 		   fs16_to_cpu(sb, node->all_key_count));
sb                258 fs/befs/debug.c 	befs_debug(sb, "  all_key_length %hu",
sb                259 fs/befs/debug.c 		   fs16_to_cpu(sb, node->all_key_length));
sb                 16 fs/befs/endian.h fs64_to_cpu(const struct super_block *sb, fs64 n)
sb                 18 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
sb                 25 fs/befs/endian.h cpu_to_fs64(const struct super_block *sb, u64 n)
sb                 27 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
sb                 34 fs/befs/endian.h fs32_to_cpu(const struct super_block *sb, fs32 n)
sb                 36 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
sb                 43 fs/befs/endian.h cpu_to_fs32(const struct super_block *sb, u32 n)
sb                 45 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
sb                 52 fs/befs/endian.h fs16_to_cpu(const struct super_block *sb, fs16 n)
sb                 54 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
sb                 61 fs/befs/endian.h cpu_to_fs16(const struct super_block *sb, u16 n)
sb                 63 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
sb                 72 fs/befs/endian.h fsrun_to_cpu(const struct super_block *sb, befs_disk_block_run n)
sb                 76 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) {
sb                 89 fs/befs/endian.h cpu_to_fsrun(const struct super_block *sb, befs_block_run n)
sb                 93 fs/befs/endian.h 	if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) {
sb                106 fs/befs/endian.h fsds_to_cpu(const struct super_block *sb, const befs_disk_data_stream *n)
sb                112 fs/befs/endian.h 		data.direct[i] = fsrun_to_cpu(sb, n->direct[i]);
sb                114 fs/befs/endian.h 	data.max_direct_range = fs64_to_cpu(sb, n->max_direct_range);
sb                115 fs/befs/endian.h 	data.indirect = fsrun_to_cpu(sb, n->indirect);
sb                116 fs/befs/endian.h 	data.max_indirect_range = fs64_to_cpu(sb, n->max_indirect_range);
sb                117 fs/befs/endian.h 	data.double_indirect = fsrun_to_cpu(sb, n->double_indirect);
sb                118 fs/befs/endian.h 	data.max_double_indirect_range = fs64_to_cpu(sb,
sb                121 fs/befs/endian.h 	data.size = fs64_to_cpu(sb, n->size);
sb                 19 fs/befs/inode.c befs_check_inode(struct super_block *sb, befs_inode *raw_inode,
sb                 22 fs/befs/inode.c 	u32 magic1 = fs32_to_cpu(sb, raw_inode->magic1);
sb                 23 fs/befs/inode.c 	befs_inode_addr ino_num = fsrun_to_cpu(sb, raw_inode->inode_num);
sb                 24 fs/befs/inode.c 	u32 flags = fs32_to_cpu(sb, raw_inode->flags);
sb                 28 fs/befs/inode.c 		befs_error(sb,
sb                 37 fs/befs/inode.c 	if (inode != iaddr2blockno(sb, &ino_num)) {
sb                 38 fs/befs/inode.c 		befs_error(sb, "inode blocknr field disagrees with vfs "
sb                 40 fs/befs/inode.c 			   inode, (unsigned long)iaddr2blockno(sb, &ino_num));
sb                 49 fs/befs/inode.c 		befs_error(sb, "inode is not used - inode = %lu",
sb                  6 fs/befs/inode.h int befs_check_inode(struct super_block *sb, befs_inode *raw_inode,
sb                 27 fs/befs/io.c   befs_bread_iaddr(struct super_block *sb, befs_inode_addr iaddr)
sb                 31 fs/befs/io.c   	struct befs_sb_info *befs_sb = BEFS_SB(sb);
sb                 33 fs/befs/io.c   	befs_debug(sb, "---> Enter %s "
sb                 38 fs/befs/io.c   		befs_error(sb, "BEFS: Invalid allocation group %u, max is %u",
sb                 43 fs/befs/io.c   	block = iaddr2blockno(sb, &iaddr);
sb                 45 fs/befs/io.c   	befs_debug(sb, "%s: offset = %lu", __func__, (unsigned long)block);
sb                 47 fs/befs/io.c   	bh = sb_bread(sb, block);
sb                 50 fs/befs/io.c   		befs_error(sb, "Failed to read block %lu",
sb                 55 fs/befs/io.c   	befs_debug(sb, "<--- %s", __func__);
sb                 59 fs/befs/io.c   	befs_debug(sb, "<--- %s ERROR", __func__);
sb                  5 fs/befs/io.h   struct buffer_head *befs_bread_iaddr(struct super_block *sb,
sb                 47 fs/befs/linuxvfs.c static struct inode *befs_alloc_inode(struct super_block *sb);
sb                 51 fs/befs/linuxvfs.c static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
sb                 53 fs/befs/linuxvfs.c static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
sb                 60 fs/befs/linuxvfs.c static struct dentry *befs_fh_to_dentry(struct super_block *sb,
sb                 62 fs/befs/linuxvfs.c static struct dentry *befs_fh_to_parent(struct super_block *sb,
sb                135 fs/befs/linuxvfs.c 	struct super_block *sb = inode->i_sb;
sb                141 fs/befs/linuxvfs.c 	befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld",
sb                144 fs/befs/linuxvfs.c 		befs_error(sb, "befs_get_block() was asked to write to "
sb                150 fs/befs/linuxvfs.c 	res = befs_fblock2brun(sb, ds, block, &run);
sb                152 fs/befs/linuxvfs.c 		befs_error(sb,
sb                159 fs/befs/linuxvfs.c 	disk_off = (ulong) iaddr2blockno(sb, &run);
sb                163 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s for inode %lu, block %ld, disk address %lu",
sb                174 fs/befs/linuxvfs.c 	struct super_block *sb = dir->i_sb;
sb                182 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s name %pd inode %ld", __func__,
sb                186 fs/befs/linuxvfs.c 	if (BEFS_SB(sb)->nls) {
sb                188 fs/befs/linuxvfs.c 		    befs_nls2utf(sb, name, strlen(name), &utfname, &utfnamelen);
sb                190 fs/befs/linuxvfs.c 			befs_debug(sb, "<--- %s ERROR", __func__);
sb                193 fs/befs/linuxvfs.c 		ret = befs_btree_find(sb, ds, utfname, &offset);
sb                197 fs/befs/linuxvfs.c 		ret = befs_btree_find(sb, ds, name, &offset);
sb                201 fs/befs/linuxvfs.c 		befs_debug(sb, "<--- %s %pd not found", __func__, dentry);
sb                204 fs/befs/linuxvfs.c 		befs_error(sb, "<--- %s Error", __func__);
sb                209 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                218 fs/befs/linuxvfs.c 	struct super_block *sb = inode->i_sb;
sb                225 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld",
sb                229 fs/befs/linuxvfs.c 		result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1,
sb                233 fs/befs/linuxvfs.c 			befs_debug(sb, "<--- %s ERROR", __func__);
sb                234 fs/befs/linuxvfs.c 			befs_error(sb, "IO error reading %pD (inode %lu)",
sb                239 fs/befs/linuxvfs.c 			befs_debug(sb, "<--- %s END", __func__);
sb                243 fs/befs/linuxvfs.c 			befs_debug(sb, "<--- %s Empty directory", __func__);
sb                248 fs/befs/linuxvfs.c 		if (BEFS_SB(sb)->nls) {
sb                253 fs/befs/linuxvfs.c 			    befs_utf2nls(sb, keybuf, keysize, &nlsname,
sb                256 fs/befs/linuxvfs.c 				befs_debug(sb, "<--- %s ERROR", __func__);
sb                275 fs/befs/linuxvfs.c befs_alloc_inode(struct super_block *sb)
sb                297 fs/befs/linuxvfs.c static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
sb                301 fs/befs/linuxvfs.c 	struct befs_sb_info *befs_sb = BEFS_SB(sb);
sb                305 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s inode = %lu", __func__, ino);
sb                307 fs/befs/linuxvfs.c 	inode = iget_locked(sb, ino);
sb                316 fs/befs/linuxvfs.c 	befs_ino->i_inode_num = blockno2iaddr(sb, inode->i_ino);
sb                318 fs/befs/linuxvfs.c 	befs_debug(sb, "  real inode number [%u, %hu, %hu]",
sb                322 fs/befs/linuxvfs.c 	bh = sb_bread(sb, inode->i_ino);
sb                324 fs/befs/linuxvfs.c 		befs_error(sb, "unable to read inode block - "
sb                331 fs/befs/linuxvfs.c 	befs_dump_inode(sb, raw_inode);
sb                333 fs/befs/linuxvfs.c 	if (befs_check_inode(sb, raw_inode, inode->i_ino) != BEFS_OK) {
sb                334 fs/befs/linuxvfs.c 		befs_error(sb, "Bad inode: %lu", inode->i_ino);
sb                338 fs/befs/linuxvfs.c 	inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode);
sb                347 fs/befs/linuxvfs.c 		make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid));
sb                350 fs/befs/linuxvfs.c 		make_kgid(&init_user_ns, fs32_to_cpu(sb, raw_inode->gid));
sb                364 fs/befs/linuxvfs.c 	    fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16;
sb                369 fs/befs/linuxvfs.c 	befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num);
sb                370 fs/befs/linuxvfs.c 	befs_ino->i_parent = fsrun_to_cpu(sb, raw_inode->parent);
sb                371 fs/befs/linuxvfs.c 	befs_ino->i_attribute = fsrun_to_cpu(sb, raw_inode->attributes);
sb                372 fs/befs/linuxvfs.c 	befs_ino->i_flags = fs32_to_cpu(sb, raw_inode->flags);
sb                383 fs/befs/linuxvfs.c 		    fsds_to_cpu(sb, &raw_inode->data.datastream);
sb                385 fs/befs/linuxvfs.c 		num_blks = befs_count_blocks(sb, &befs_ino->i_data.ds);
sb                408 fs/befs/linuxvfs.c 		befs_error(sb, "Inode %lu is not a regular file, "
sb                415 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                424 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s - Bad inode", __func__);
sb                473 fs/befs/linuxvfs.c 	struct super_block *sb = inode->i_sb;
sb                480 fs/befs/linuxvfs.c 		befs_error(sb, "Long symlink with illegal length");
sb                483 fs/befs/linuxvfs.c 	befs_debug(sb, "Follow long symlink");
sb                485 fs/befs/linuxvfs.c 	if (befs_read_lsymlink(sb, data, link, len) != len) {
sb                486 fs/befs/linuxvfs.c 		befs_error(sb, "Failed to read entire long symlink");
sb                505 fs/befs/linuxvfs.c befs_utf2nls(struct super_block *sb, const char *in,
sb                508 fs/befs/linuxvfs.c 	struct nls_table *nls = BEFS_SB(sb)->nls;
sb                519 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s", __func__);
sb                522 fs/befs/linuxvfs.c 		befs_error(sb, "%s called with no NLS table loaded", __func__);
sb                547 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                552 fs/befs/linuxvfs.c 	befs_error(sb, "Name using character set %s contains a character that "
sb                554 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                582 fs/befs/linuxvfs.c befs_nls2utf(struct super_block *sb, const char *in,
sb                585 fs/befs/linuxvfs.c 	struct nls_table *nls = BEFS_SB(sb)->nls;
sb                597 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s\n", __func__);
sb                600 fs/befs/linuxvfs.c 		befs_error(sb, "%s called with no NLS table loaded.",
sb                627 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                632 fs/befs/linuxvfs.c 	befs_error(sb, "Name using character set %s contains a character that "
sb                634 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                639 fs/befs/linuxvfs.c static struct inode *befs_nfs_get_inode(struct super_block *sb, uint64_t ino,
sb                643 fs/befs/linuxvfs.c 	return befs_iget(sb, ino);
sb                649 fs/befs/linuxvfs.c static struct dentry *befs_fh_to_dentry(struct super_block *sb,
sb                652 fs/befs/linuxvfs.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                659 fs/befs/linuxvfs.c static struct dentry *befs_fh_to_parent(struct super_block *sb,
sb                662 fs/befs/linuxvfs.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                792 fs/befs/linuxvfs.c befs_put_super(struct super_block *sb)
sb                794 fs/befs/linuxvfs.c 	kfree(BEFS_SB(sb)->mount_opts.iocharset);
sb                795 fs/befs/linuxvfs.c 	BEFS_SB(sb)->mount_opts.iocharset = NULL;
sb                796 fs/befs/linuxvfs.c 	unload_nls(BEFS_SB(sb)->nls);
sb                797 fs/befs/linuxvfs.c 	kfree(sb->s_fs_info);
sb                798 fs/befs/linuxvfs.c 	sb->s_fs_info = NULL;
sb                808 fs/befs/linuxvfs.c befs_fill_super(struct super_block *sb, void *data, int silent)
sb                819 fs/befs/linuxvfs.c 	sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL);
sb                820 fs/befs/linuxvfs.c 	if (sb->s_fs_info == NULL)
sb                823 fs/befs/linuxvfs.c 	befs_sb = BEFS_SB(sb);
sb                827 fs/befs/linuxvfs.c 			befs_error(sb, "cannot parse mount options");
sb                831 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s", __func__);
sb                833 fs/befs/linuxvfs.c 	if (!sb_rdonly(sb)) {
sb                834 fs/befs/linuxvfs.c 		befs_warning(sb,
sb                836 fs/befs/linuxvfs.c 		sb->s_flags |= SB_RDONLY;
sb                847 fs/befs/linuxvfs.c 	blocksize = sb_min_blocksize(sb, 1024);
sb                850 fs/befs/linuxvfs.c 			befs_error(sb, "unable to set blocksize");
sb                854 fs/befs/linuxvfs.c 	bh = sb_bread(sb, sb_block);
sb                857 fs/befs/linuxvfs.c 			befs_error(sb, "unable to read superblock");
sb                865 fs/befs/linuxvfs.c 		befs_debug(sb, "Using PPC superblock location");
sb                867 fs/befs/linuxvfs.c 		befs_debug(sb, "Using x86 superblock location");
sb                872 fs/befs/linuxvfs.c 	if ((befs_load_sb(sb, disk_sb) != BEFS_OK) ||
sb                873 fs/befs/linuxvfs.c 	    (befs_check_sb(sb) != BEFS_OK))
sb                876 fs/befs/linuxvfs.c 	befs_dump_super_block(sb, disk_sb);
sb                882 fs/befs/linuxvfs.c 			befs_error(sb, "blocks count: %llu is larger than the host can use",
sb                891 fs/befs/linuxvfs.c 	sb->s_magic = BEFS_SUPER_MAGIC;
sb                893 fs/befs/linuxvfs.c 	sb_set_blocksize(sb, (ulong) befs_sb->block_size);
sb                894 fs/befs/linuxvfs.c 	sb->s_op = &befs_sops;
sb                895 fs/befs/linuxvfs.c 	sb->s_export_op = &befs_export_operations;
sb                896 fs/befs/linuxvfs.c 	sb->s_time_min = 0;
sb                897 fs/befs/linuxvfs.c 	sb->s_time_max = 0xffffffffffffll;
sb                898 fs/befs/linuxvfs.c 	root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir)));
sb                903 fs/befs/linuxvfs.c 	sb->s_root = d_make_root(root);
sb                904 fs/befs/linuxvfs.c 	if (!sb->s_root) {
sb                906 fs/befs/linuxvfs.c 			befs_error(sb, "get root inode failed");
sb                912 fs/befs/linuxvfs.c 		befs_debug(sb, "Loading nls: %s",
sb                916 fs/befs/linuxvfs.c 			befs_warning(sb, "Cannot load nls %s"
sb                923 fs/befs/linuxvfs.c 		befs_debug(sb, "Loading default nls");
sb                934 fs/befs/linuxvfs.c 	kfree(sb->s_fs_info);
sb                935 fs/befs/linuxvfs.c 	sb->s_fs_info = NULL;
sb                942 fs/befs/linuxvfs.c befs_remount(struct super_block *sb, int *flags, char *data)
sb                944 fs/befs/linuxvfs.c 	sync_filesystem(sb);
sb                953 fs/befs/linuxvfs.c 	struct super_block *sb = dentry->d_sb;
sb                954 fs/befs/linuxvfs.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                956 fs/befs/linuxvfs.c 	befs_debug(sb, "---> %s", __func__);
sb                959 fs/befs/linuxvfs.c 	buf->f_bsize = sb->s_blocksize;
sb                960 fs/befs/linuxvfs.c 	buf->f_blocks = BEFS_SB(sb)->num_blocks;
sb                961 fs/befs/linuxvfs.c 	buf->f_bfree = BEFS_SB(sb)->num_blocks - BEFS_SB(sb)->used_blocks;
sb                969 fs/befs/linuxvfs.c 	befs_debug(sb, "<--- %s", __func__);
sb                 21 fs/befs/super.c befs_load_sb(struct super_block *sb, befs_super_block *disk_sb)
sb                 23 fs/befs/super.c 	struct befs_sb_info *befs_sb = BEFS_SB(sb);
sb                 31 fs/befs/super.c 	befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1);
sb                 32 fs/befs/super.c 	befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2);
sb                 33 fs/befs/super.c 	befs_sb->magic3 = fs32_to_cpu(sb, disk_sb->magic3);
sb                 34 fs/befs/super.c 	befs_sb->block_size = fs32_to_cpu(sb, disk_sb->block_size);
sb                 35 fs/befs/super.c 	befs_sb->block_shift = fs32_to_cpu(sb, disk_sb->block_shift);
sb                 36 fs/befs/super.c 	befs_sb->num_blocks = fs64_to_cpu(sb, disk_sb->num_blocks);
sb                 37 fs/befs/super.c 	befs_sb->used_blocks = fs64_to_cpu(sb, disk_sb->used_blocks);
sb                 38 fs/befs/super.c 	befs_sb->inode_size = fs32_to_cpu(sb, disk_sb->inode_size);
sb                 40 fs/befs/super.c 	befs_sb->blocks_per_ag = fs32_to_cpu(sb, disk_sb->blocks_per_ag);
sb                 41 fs/befs/super.c 	befs_sb->ag_shift = fs32_to_cpu(sb, disk_sb->ag_shift);
sb                 42 fs/befs/super.c 	befs_sb->num_ags = fs32_to_cpu(sb, disk_sb->num_ags);
sb                 44 fs/befs/super.c 	befs_sb->flags = fs32_to_cpu(sb, disk_sb->flags);
sb                 46 fs/befs/super.c 	befs_sb->log_blocks = fsrun_to_cpu(sb, disk_sb->log_blocks);
sb                 47 fs/befs/super.c 	befs_sb->log_start = fs64_to_cpu(sb, disk_sb->log_start);
sb                 48 fs/befs/super.c 	befs_sb->log_end = fs64_to_cpu(sb, disk_sb->log_end);
sb                 50 fs/befs/super.c 	befs_sb->root_dir = fsrun_to_cpu(sb, disk_sb->root_dir);
sb                 51 fs/befs/super.c 	befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices);
sb                 58 fs/befs/super.c befs_check_sb(struct super_block *sb)
sb                 60 fs/befs/super.c 	struct befs_sb_info *befs_sb = BEFS_SB(sb);
sb                 66 fs/befs/super.c 		befs_error(sb, "invalid magic header");
sb                 80 fs/befs/super.c 		befs_error(sb, "invalid blocksize: %u", befs_sb->block_size);
sb                 85 fs/befs/super.c 		befs_error(sb, "blocksize(%u) cannot be larger "
sb                 97 fs/befs/super.c 		befs_error(sb, "block_shift disagrees with block_size. "
sb                107 fs/befs/super.c 		befs_error(sb, "ag_shift disagrees with blocks_per_ag.");
sb                111 fs/befs/super.c 		befs_error(sb, "Filesystem not clean! There are blocks in the "
sb                  5 fs/befs/super.h int befs_load_sb(struct super_block *sb, befs_super_block *disk_sb);
sb                  6 fs/befs/super.h int befs_check_sb(struct super_block *sb);
sb                 41 fs/bfs/bfs.h   static inline struct bfs_sb_info *BFS_SB(struct super_block *sb)
sb                 43 fs/bfs/bfs.h   	return sb->s_fs_info;
sb                 56 fs/bfs/bfs.h   extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino);
sb                 34 fs/bfs/file.c  					struct super_block *sb)
sb                 38 fs/bfs/file.c  	bh = sb_bread(sb, from);
sb                 41 fs/bfs/file.c  	new = sb_getblk(sb, to);
sb                 49 fs/bfs/file.c  static int bfs_move_blocks(struct super_block *sb, unsigned long start,
sb                 56 fs/bfs/file.c  		if(bfs_move_block(i, where + i, sb)) {
sb                 69 fs/bfs/file.c  	struct super_block *sb = inode->i_sb;
sb                 70 fs/bfs/file.c  	struct bfs_sb_info *info = BFS_SB(sb);
sb                 78 fs/bfs/file.c  			map_bh(bh_result, sb, phys);
sb                 90 fs/bfs/file.c  		map_bh(bh_result, sb, phys);
sb                109 fs/bfs/file.c  		map_bh(bh_result, sb, phys);
sb                147 fs/bfs/file.c  	map_bh(bh_result, sb, phys);
sb                 34 fs/bfs/inode.c struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
sb                 41 fs/bfs/inode.c 	inode = iget_locked(sb, ino);
sb                 99 fs/bfs/inode.c static struct bfs_inode *find_inode(struct super_block *sb, u16 ino, struct buffer_head **p)
sb                101 fs/bfs/inode.c 	if ((ino < BFS_ROOT_INO) || (ino > BFS_SB(sb)->si_lasti)) {
sb                102 fs/bfs/inode.c 		printf("Bad inode number %s:%08x\n", sb->s_id, ino);
sb                108 fs/bfs/inode.c 	*p = sb_bread(sb, 1 + ino / BFS_INODES_PER_BLOCK);
sb                110 fs/bfs/inode.c 		printf("Unable to read inode %s:%08x\n", sb->s_id, ino);
sb                240 fs/bfs/inode.c static struct inode *bfs_alloc_inode(struct super_block *sb)
sb                590 fs/binfmt_misc.c static struct inode *bm_get_inode(struct super_block *sb, int mode)
sb                592 fs/binfmt_misc.c 	struct inode *inode = new_inode(sb);
sb                696 fs/binfmt_misc.c 	struct super_block *sb = file_inode(file)->i_sb;
sb                697 fs/binfmt_misc.c 	struct dentry *root = sb->s_root, *dentry;
sb                715 fs/binfmt_misc.c 	inode = bm_get_inode(sb, S_IFREG | 0644);
sb                825 fs/binfmt_misc.c static int bm_fill_super(struct super_block *sb, struct fs_context *fc)
sb                834 fs/binfmt_misc.c 	err = simple_fill_super(sb, BINFMTFS_MAGIC, bm_files);
sb                836 fs/binfmt_misc.c 		sb->s_op = &s_ops;
sb                144 fs/block_dev.c int sb_set_blocksize(struct super_block *sb, int size)
sb                146 fs/block_dev.c 	if (set_blocksize(sb->s_bdev, size))
sb                150 fs/block_dev.c 	sb->s_blocksize = size;
sb                151 fs/block_dev.c 	sb->s_blocksize_bits = blksize_bits(size);
sb                152 fs/block_dev.c 	return sb->s_blocksize;
sb                157 fs/block_dev.c int sb_min_blocksize(struct super_block *sb, int size)
sb                159 fs/block_dev.c 	int minsize = bdev_logical_block_size(sb->s_bdev);
sb                162 fs/block_dev.c 	return sb_set_blocksize(sb, size);
sb                512 fs/block_dev.c 	struct super_block *sb = get_super(bdev);
sb                513 fs/block_dev.c 	if (sb) {
sb                514 fs/block_dev.c 		int res = sync_filesystem(sb);
sb                515 fs/block_dev.c 		drop_super(sb);
sb                536 fs/block_dev.c 	struct super_block *sb;
sb                546 fs/block_dev.c 		sb = get_super(bdev);
sb                547 fs/block_dev.c 		if (sb)
sb                548 fs/block_dev.c 			drop_super(sb);
sb                550 fs/block_dev.c 		return sb;
sb                553 fs/block_dev.c 	sb = get_active_super(bdev);
sb                554 fs/block_dev.c 	if (!sb)
sb                556 fs/block_dev.c 	if (sb->s_op->freeze_super)
sb                557 fs/block_dev.c 		error = sb->s_op->freeze_super(sb);
sb                559 fs/block_dev.c 		error = freeze_super(sb);
sb                561 fs/block_dev.c 		deactivate_super(sb);
sb                566 fs/block_dev.c 	deactivate_super(sb);
sb                570 fs/block_dev.c 	return sb;	/* thaw_bdev releases s->s_umount */
sb                581 fs/block_dev.c int thaw_bdev(struct block_device *bdev, struct super_block *sb)
sb                593 fs/block_dev.c 	if (!sb)
sb                596 fs/block_dev.c 	if (sb->s_op->thaw_super)
sb                597 fs/block_dev.c 		error = sb->s_op->thaw_super(sb);
sb                599 fs/block_dev.c 		error = thaw_super(sb);
sb                771 fs/block_dev.c static struct inode *bdev_alloc_inode(struct super_block *sb)
sb               2195 fs/block_dev.c 	struct super_block *sb = get_super(bdev);
sb               2198 fs/block_dev.c 	if (sb) {
sb               2205 fs/block_dev.c 		shrink_dcache_sb(sb);
sb               2206 fs/block_dev.c 		res = invalidate_inodes(sb, kill_dirty);
sb               2207 fs/block_dev.c 		drop_super(sb);
sb                348 fs/btrfs/btrfs_inode.h 	struct btrfs_super_block *sb = root->fs_info->super_copy;
sb                349 fs/btrfs/btrfs_inode.h 	const u16 csum_size = btrfs_super_csum_size(sb);
sb                623 fs/btrfs/ctree.h 	struct super_block *sb;
sb                904 fs/btrfs/ctree.h static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb)
sb                906 fs/btrfs/ctree.h 	return sb->s_fs_info;
sb               1296 fs/btrfs/ctree.h 				((bytes) >> (fs_info)->sb->s_blocksize_bits)
sb               2644 fs/btrfs/ctree.h 	return fs_info->sb->s_flags & SB_RDONLY || btrfs_fs_closing(fs_info);
sb               2864 fs/btrfs/ctree.h struct inode *btrfs_alloc_inode(struct super_block *sb);
sb               2962 fs/btrfs/ctree.h int btrfs_sync_fs(struct super_block *sb, int wait);
sb                807 fs/btrfs/dev-replace.c 	if (sb_rdonly(fs_info->sb))
sb                660 fs/btrfs/disk-io.c 			      fs_info->sb->s_id, eb->start,
sb               2288 fs/btrfs/disk-io.c 	if (sb_rdonly(fs_info->sb)) {
sb               2385 fs/btrfs/disk-io.c 			    struct btrfs_super_block *sb, int mirror_num)
sb               2387 fs/btrfs/disk-io.c 	u64 nodesize = btrfs_super_nodesize(sb);
sb               2388 fs/btrfs/disk-io.c 	u64 sectorsize = btrfs_super_sectorsize(sb);
sb               2391 fs/btrfs/disk-io.c 	if (btrfs_super_magic(sb) != BTRFS_MAGIC) {
sb               2395 fs/btrfs/disk-io.c 	if (btrfs_super_flags(sb) & ~BTRFS_SUPER_FLAG_SUPP) {
sb               2397 fs/btrfs/disk-io.c 				btrfs_super_flags(sb) & ~BTRFS_SUPER_FLAG_SUPP);
sb               2400 fs/btrfs/disk-io.c 	if (btrfs_super_root_level(sb) >= BTRFS_MAX_LEVEL) {
sb               2402 fs/btrfs/disk-io.c 				btrfs_super_root_level(sb), BTRFS_MAX_LEVEL);
sb               2405 fs/btrfs/disk-io.c 	if (btrfs_super_chunk_root_level(sb) >= BTRFS_MAX_LEVEL) {
sb               2407 fs/btrfs/disk-io.c 				btrfs_super_chunk_root_level(sb), BTRFS_MAX_LEVEL);
sb               2410 fs/btrfs/disk-io.c 	if (btrfs_super_log_root_level(sb) >= BTRFS_MAX_LEVEL) {
sb               2412 fs/btrfs/disk-io.c 				btrfs_super_log_root_level(sb), BTRFS_MAX_LEVEL);
sb               2437 fs/btrfs/disk-io.c 	if (nodesize != le32_to_cpu(sb->__unused_leafsize)) {
sb               2439 fs/btrfs/disk-io.c 			  le32_to_cpu(sb->__unused_leafsize), nodesize);
sb               2444 fs/btrfs/disk-io.c 	if (!IS_ALIGNED(btrfs_super_root(sb), sectorsize)) {
sb               2446 fs/btrfs/disk-io.c 			   btrfs_super_root(sb));
sb               2449 fs/btrfs/disk-io.c 	if (!IS_ALIGNED(btrfs_super_chunk_root(sb), sectorsize)) {
sb               2451 fs/btrfs/disk-io.c 			   btrfs_super_chunk_root(sb));
sb               2454 fs/btrfs/disk-io.c 	if (!IS_ALIGNED(btrfs_super_log_root(sb), sectorsize)) {
sb               2456 fs/btrfs/disk-io.c 			   btrfs_super_log_root(sb));
sb               2460 fs/btrfs/disk-io.c 	if (memcmp(fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid,
sb               2464 fs/btrfs/disk-io.c 			fs_info->fs_devices->metadata_uuid, sb->dev_item.fsid);
sb               2472 fs/btrfs/disk-io.c 	if (btrfs_super_bytes_used(sb) < 6 * btrfs_super_nodesize(sb)) {
sb               2474 fs/btrfs/disk-io.c 			  btrfs_super_bytes_used(sb));
sb               2477 fs/btrfs/disk-io.c 	if (!is_power_of_2(btrfs_super_stripesize(sb))) {
sb               2479 fs/btrfs/disk-io.c 			  btrfs_super_stripesize(sb));
sb               2482 fs/btrfs/disk-io.c 	if (btrfs_super_num_devices(sb) > (1UL << 31))
sb               2484 fs/btrfs/disk-io.c 			   btrfs_super_num_devices(sb));
sb               2485 fs/btrfs/disk-io.c 	if (btrfs_super_num_devices(sb) == 0) {
sb               2491 fs/btrfs/disk-io.c 	    btrfs_super_bytenr(sb) != btrfs_sb_offset(mirror_num)) {
sb               2493 fs/btrfs/disk-io.c 			  btrfs_super_bytenr(sb), BTRFS_SUPER_INFO_OFFSET);
sb               2501 fs/btrfs/disk-io.c 	if (btrfs_super_sys_array_size(sb) > BTRFS_SYSTEM_CHUNK_ARRAY_SIZE) {
sb               2503 fs/btrfs/disk-io.c 			  btrfs_super_sys_array_size(sb),
sb               2507 fs/btrfs/disk-io.c 	if (btrfs_super_sys_array_size(sb) < sizeof(struct btrfs_disk_key)
sb               2510 fs/btrfs/disk-io.c 			  btrfs_super_sys_array_size(sb),
sb               2520 fs/btrfs/disk-io.c 	if (btrfs_super_generation(sb) < btrfs_super_chunk_root_generation(sb))
sb               2523 fs/btrfs/disk-io.c 			btrfs_super_generation(sb),
sb               2524 fs/btrfs/disk-io.c 			btrfs_super_chunk_root_generation(sb));
sb               2525 fs/btrfs/disk-io.c 	if (btrfs_super_generation(sb) < btrfs_super_cache_generation(sb)
sb               2526 fs/btrfs/disk-io.c 	    && btrfs_super_cache_generation(sb) != (u64)-1)
sb               2529 fs/btrfs/disk-io.c 			btrfs_super_generation(sb),
sb               2530 fs/btrfs/disk-io.c 			btrfs_super_cache_generation(sb));
sb               2552 fs/btrfs/disk-io.c 				      struct btrfs_super_block *sb)
sb               2556 fs/btrfs/disk-io.c 	ret = validate_super(fs_info, sb, -1);
sb               2559 fs/btrfs/disk-io.c 	if (!btrfs_supported_super_csum(btrfs_super_csum_type(sb))) {
sb               2562 fs/btrfs/disk-io.c 			  btrfs_super_csum_type(sb), BTRFS_CSUM_TYPE_CRC32);
sb               2565 fs/btrfs/disk-io.c 	if (btrfs_super_incompat_flags(sb) & ~BTRFS_FEATURE_INCOMPAT_SUPP) {
sb               2569 fs/btrfs/disk-io.c 			  btrfs_super_incompat_flags(sb),
sb               2580 fs/btrfs/disk-io.c int open_ctree(struct super_block *sb,
sb               2593 fs/btrfs/disk-io.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               2685 fs/btrfs/disk-io.c 	fs_info->sb = sb;
sb               2704 fs/btrfs/disk-io.c 	fs_info->btree_inode = new_inode(sb);
sb               2726 fs/btrfs/disk-io.c 	sb->s_blocksize = BTRFS_BDEV_BLOCKSIZE;
sb               2727 fs/btrfs/disk-io.c 	sb->s_blocksize_bits = blksize_bits(BTRFS_BDEV_BLOCKSIZE);
sb               2881 fs/btrfs/disk-io.c 	ret = btrfs_parse_options(fs_info, options, sb->s_flags);
sb               2949 fs/btrfs/disk-io.c 	if (!sb_rdonly(sb) && features) {
sb               2963 fs/btrfs/disk-io.c 	sb->s_bdi->congested_fn = btrfs_congested_fn;
sb               2964 fs/btrfs/disk-io.c 	sb->s_bdi->congested_data = fs_info;
sb               2965 fs/btrfs/disk-io.c 	sb->s_bdi->capabilities |= BDI_CAP_CGROUP_WRITEBACK;
sb               2966 fs/btrfs/disk-io.c 	sb->s_bdi->ra_pages = VM_READAHEAD_PAGES;
sb               2967 fs/btrfs/disk-io.c 	sb->s_bdi->ra_pages *= btrfs_super_num_devices(disk_super);
sb               2968 fs/btrfs/disk-io.c 	sb->s_bdi->ra_pages = max(sb->s_bdi->ra_pages, SZ_4M / PAGE_SIZE);
sb               2970 fs/btrfs/disk-io.c 	sb->s_blocksize = sectorsize;
sb               2971 fs/btrfs/disk-io.c 	sb->s_blocksize_bits = blksize_bits(sectorsize);
sb               2972 fs/btrfs/disk-io.c 	memcpy(&sb->s_uuid, fs_info->fs_devices->fsid, BTRFS_FSID_SIZE);
sb               3131 fs/btrfs/disk-io.c 	if (!sb_rdonly(sb) && !btrfs_check_rw_degradable(fs_info, NULL)) {
sb               3194 fs/btrfs/disk-io.c 	if (!sb_rdonly(sb)) {
sb               3222 fs/btrfs/disk-io.c 	if (sb_rdonly(sb))
sb               3485 fs/btrfs/disk-io.c 			    struct btrfs_super_block *sb, int max_mirrors)
sb               3507 fs/btrfs/disk-io.c 		btrfs_set_super_bytenr(sb, bytenr);
sb               3510 fs/btrfs/disk-io.c 		crypto_shash_update(shash, (const char *)sb + BTRFS_CSUM_SIZE,
sb               3512 fs/btrfs/disk-io.c 		crypto_shash_final(shash, sb->csum);
sb               3525 fs/btrfs/disk-io.c 		memcpy(bh->b_data, sb, BTRFS_SUPER_INFO_SIZE);
sb               3753 fs/btrfs/disk-io.c 	struct btrfs_super_block *sb;
sb               3771 fs/btrfs/disk-io.c 	sb = fs_info->super_for_commit;
sb               3772 fs/btrfs/disk-io.c 	dev_item = &sb->dev_item;
sb               3812 fs/btrfs/disk-io.c 		flags = btrfs_super_flags(sb);
sb               3813 fs/btrfs/disk-io.c 		btrfs_set_super_flags(sb, flags | BTRFS_HEADER_FLAG_WRITTEN);
sb               3815 fs/btrfs/disk-io.c 		ret = btrfs_validate_write_super(fs_info, sb);
sb               3823 fs/btrfs/disk-io.c 		ret = write_dev_supers(dev, sb, max_mirrors);
sb               4013 fs/btrfs/disk-io.c 	if (!sb_rdonly(fs_info->sb)) {
sb                 52 fs/btrfs/disk-io.h int open_ctree(struct super_block *sb,
sb                 60 fs/btrfs/export.c static struct dentry *btrfs_get_dentry(struct super_block *sb, u64 objectid,
sb                 64 fs/btrfs/export.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb                 90 fs/btrfs/export.c 	inode = btrfs_iget(sb, &key, root, NULL);
sb                109 fs/btrfs/export.c static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh,
sb                130 fs/btrfs/export.c 	return btrfs_get_dentry(sb, objectid, root_objectid, generation, 1);
sb                133 fs/btrfs/export.c static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
sb                152 fs/btrfs/export.c 	return btrfs_get_dentry(sb, objectid, root_objectid, generation, 1);
sb                211 fs/btrfs/export.c 		return btrfs_get_dentry(fs_info->sb, key.objectid,
sb                217 fs/btrfs/export.c 	return d_obtain_alias(btrfs_iget(fs_info->sb, &key, root, NULL));
sb               2190 fs/btrfs/extent_io.c 	ASSERT(!(fs_info->sb->s_flags & SB_RDONLY));
sb               2267 fs/btrfs/extent_io.c 	if (sb_rdonly(fs_info->sb))
sb               2317 fs/btrfs/extent_io.c 	if (sb_rdonly(fs_info->sb))
sb                113 fs/btrfs/file-item.c 				fs_info->sb->s_blocksize_bits;
sb                345 fs/btrfs/file-item.c 				 fs_info->sb->s_blocksize_bits;
sb                396 fs/btrfs/file-item.c 				fs_info->sb->s_blocksize_bits;
sb                398 fs/btrfs/file-item.c 			size >>= fs_info->sb->s_blocksize_bits;
sb                552 fs/btrfs/file-item.c 	u32 blocksize_bits = fs_info->sb->s_blocksize_bits;
sb                556 fs/btrfs/file-item.c 	csum_end <<= fs_info->sb->s_blocksize_bits;
sb                604 fs/btrfs/file-item.c 	int blocksize_bits = fs_info->sb->s_blocksize_bits;
sb                837 fs/btrfs/file-item.c 			fs_info->sb->s_blocksize_bits;
sb                859 fs/btrfs/file-item.c 		tmp >>= fs_info->sb->s_blocksize_bits;
sb                884 fs/btrfs/file-item.c 		tmp >>= fs_info->sb->s_blocksize_bits;
sb                886 fs/btrfs/file-item.c 					 fs_info->sb->s_blocksize_bits);
sb                911 fs/btrfs/file-item.c 		   fs_info->sb->s_blocksize_bits;
sb                299 fs/btrfs/file.c 	inode = btrfs_iget(fs_info->sb, &key, inode_root, NULL);
sb                312 fs/btrfs/file.c 	sb_start_write(fs_info->sb);
sb                315 fs/btrfs/file.c 	sb_end_write(fs_info->sb);
sb               1740 fs/btrfs/file.c 						fs_info->sb->s_blocksize_bits;
sb                 81 fs/btrfs/free-space-cache.c 	inode = btrfs_iget_path(fs_info->sb, &location, root, NULL, path);
sb               2767 fs/btrfs/inode.c 	inode = btrfs_iget(fs_info->sb, &key, root, NULL);
sb               3618 fs/btrfs/inode.c 		inode = btrfs_iget(fs_info->sb, &found_key, root, NULL);
sb               6436 fs/btrfs/inode.c 	inode = new_inode(fs_info->sb);
sb               9379 fs/btrfs/inode.c struct inode *btrfs_alloc_inode(struct super_block *sb)
sb               9381 fs/btrfs/inode.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               9407 fs/btrfs/inode.c 	if (sb->s_magic != BTRFS_TEST_MAGIC)
sb                530 fs/btrfs/ioctl.c 	if (range.len < fs_info->sb->s_blocksize)
sb               2379 fs/btrfs/ioctl.c 	struct super_block *sb = inode->i_sb;
sb               2471 fs/btrfs/ioctl.c 			temp_inode = btrfs_iget(sb, &key2, root, NULL);
sb               3247 fs/btrfs/ioctl.c 	const u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize;
sb               3764 fs/btrfs/ioctl.c 	u64 bs = fs_info->sb->s_blocksize;
sb               3831 fs/btrfs/ioctl.c 	u64 bs = BTRFS_I(inode_out)->root->fs_info->sb->s_blocksize;
sb               4349 fs/btrfs/ioctl.c 		if (sb_rdonly(fs_info->sb)) {
sb                410 fs/btrfs/props.c 	struct super_block *sb = root->fs_info->sb;
sb                419 fs/btrfs/props.c 	parent_inode = btrfs_iget(sb, &key, parent_root, NULL);
sb                423 fs/btrfs/props.c 	child_inode = btrfs_iget(sb, &key, root, NULL);
sb               3619 fs/btrfs/relocation.c 	inode = btrfs_iget(fs_info->sb, &key, root, NULL);
sb               4299 fs/btrfs/relocation.c 	inode = btrfs_iget(fs_info->sb, &key, root, NULL);
sb               4805 fs/btrfs/send.c 	inode = btrfs_iget(fs_info->sb, &key, root, NULL);
sb               5342 fs/btrfs/send.c 	u64 bs = sctx->send_root->fs_info->sb->s_blocksize;
sb                318 fs/btrfs/space-info.c 	struct super_block *sb = fs_info->sb;
sb                320 fs/btrfs/space-info.c 	if (down_read_trylock(&sb->s_umount)) {
sb                321 fs/btrfs/space-info.c 		writeback_inodes_sb_nr(sb, nr_pages, WB_REASON_FS_FREE_SPACE);
sb                322 fs/btrfs/space-info.c 		up_read(&sb->s_umount);
sb                 67 fs/btrfs/super.c static int btrfs_remount(struct super_block *sb, int *flags, char *data);
sb                105 fs/btrfs/super.c 	struct super_block *sb = fs_info->sb;
sb                114 fs/btrfs/super.c 	if (errno == -EROFS && sb_rdonly(sb))
sb                128 fs/btrfs/super.c 			sb->s_id, function, line, errno, errstr, &vaf);
sb                132 fs/btrfs/super.c 			sb->s_id, function, line, errno, errstr);
sb                143 fs/btrfs/super.c 	if (!(sb->s_flags & SB_BORN))
sb                146 fs/btrfs/super.c 	if (sb_rdonly(sb))
sb                150 fs/btrfs/super.c 	sb->s_flags |= SB_RDONLY;
sb                218 fs/btrfs/super.c 			fs_info ? fs_info->sb->s_id : "<unknown>", &vaf);
sb                276 fs/btrfs/super.c 		s_id = fs_info->sb->s_id;
sb                292 fs/btrfs/super.c static void btrfs_put_super(struct super_block *sb)
sb                294 fs/btrfs/super.c 	close_ctree(btrfs_sb(sb));
sb                658 fs/btrfs/super.c 			info->sb->s_flags |= SB_POSIXACL;
sb                666 fs/btrfs/super.c 			info->sb->s_flags &= ~SB_POSIXACL;
sb               1185 fs/btrfs/super.c static int btrfs_fill_super(struct super_block *sb,
sb               1190 fs/btrfs/super.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               1194 fs/btrfs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               1195 fs/btrfs/super.c 	sb->s_magic = BTRFS_SUPER_MAGIC;
sb               1196 fs/btrfs/super.c 	sb->s_op = &btrfs_super_ops;
sb               1197 fs/btrfs/super.c 	sb->s_d_op = &btrfs_dentry_operations;
sb               1198 fs/btrfs/super.c 	sb->s_export_op = &btrfs_export_ops;
sb               1199 fs/btrfs/super.c 	sb->s_xattr = btrfs_xattr_handlers;
sb               1200 fs/btrfs/super.c 	sb->s_time_gran = 1;
sb               1202 fs/btrfs/super.c 	sb->s_flags |= SB_POSIXACL;
sb               1204 fs/btrfs/super.c 	sb->s_flags |= SB_I_VERSION;
sb               1205 fs/btrfs/super.c 	sb->s_iflags |= SB_I_CGROUPWB;
sb               1207 fs/btrfs/super.c 	err = super_setup_bdi(sb);
sb               1213 fs/btrfs/super.c 	err = open_ctree(sb, fs_devices, (char *)data);
sb               1222 fs/btrfs/super.c 	inode = btrfs_iget(sb, &key, fs_info->fs_root, NULL);
sb               1228 fs/btrfs/super.c 	sb->s_root = d_make_root(inode);
sb               1229 fs/btrfs/super.c 	if (!sb->s_root) {
sb               1234 fs/btrfs/super.c 	cleancache_init_fs(sb);
sb               1235 fs/btrfs/super.c 	sb->s_flags |= SB_ACTIVE;
sb               1243 fs/btrfs/super.c int btrfs_sync_fs(struct super_block *sb, int wait)
sb               1246 fs/btrfs/super.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               1274 fs/btrfs/super.c 			if (sb_start_write_trylock(sb))
sb               1275 fs/btrfs/super.c 				sb_end_write(sb);
sb               1327 fs/btrfs/super.c 	if (!(info->sb->s_flags & SB_POSIXACL))
sb               1701 fs/btrfs/super.c 			sync_filesystem(fs_info->sb);
sb               1713 fs/btrfs/super.c 	    (!btrfs_raw_test_opt(fs_info->mount_opt, AUTO_DEFRAG) || sb_rdonly(fs_info->sb))) {
sb               1720 fs/btrfs/super.c static int btrfs_remount(struct super_block *sb, int *flags, char *data)
sb               1722 fs/btrfs/super.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               1724 fs/btrfs/super.c 	unsigned old_flags = sb->s_flags;
sb               1732 fs/btrfs/super.c 	sync_filesystem(sb);
sb               1740 fs/btrfs/super.c 			ret = security_sb_remount(sb, new_sec_opts);
sb               1754 fs/btrfs/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb               1769 fs/btrfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               1846 fs/btrfs/super.c 		sb->s_flags &= ~SB_RDONLY;
sb               1857 fs/btrfs/super.c 	if (sb_rdonly(sb))
sb               1859 fs/btrfs/super.c 	sb->s_flags = old_flags;
sb               2136 fs/btrfs/super.c static void btrfs_kill_super(struct super_block *sb)
sb               2138 fs/btrfs/super.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               2139 fs/btrfs/super.c 	kill_anon_super(sb);
sb               2223 fs/btrfs/super.c static int btrfs_freeze(struct super_block *sb)
sb               2226 fs/btrfs/super.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb               2246 fs/btrfs/super.c static int btrfs_unfreeze(struct super_block *sb)
sb               2248 fs/btrfs/super.c 	struct btrfs_fs_info *fs_info = btrfs_sb(sb);
sb                173 fs/btrfs/sysfs.c 	if (sb_rdonly(fs_info->sb))
sb                497 fs/btrfs/sysfs.c 	if (sb_rdonly(fs_info->sb))
sb                546 fs/btrfs/transaction.c 		sb_start_intwrite(fs_info->sb);
sb                610 fs/btrfs/transaction.c 		sb_end_intwrite(fs_info->sb);
sb                871 fs/btrfs/transaction.c 		sb_end_intwrite(info->sb);
sb               1778 fs/btrfs/transaction.c 		__sb_writers_acquired(ac->newtrans->fs_info->sb, SB_FREEZE_FS);
sb               1816 fs/btrfs/transaction.c 		__sb_writers_release(fs_info->sb, SB_FREEZE_FS);
sb               1871 fs/btrfs/transaction.c 		sb_end_intwrite(fs_info->sb);
sb               1913 fs/btrfs/transaction.c 		writeback_inodes_sb(fs_info->sb, WB_REASON_SYNC);
sb               2326 fs/btrfs/transaction.c 		sb_end_intwrite(fs_info->sb);
sb                562 fs/btrfs/tree-log.c 	inode = btrfs_iget(root->fs_info->sb, &key, root, NULL);
sb               4870 fs/btrfs/tree-log.c 		inode = btrfs_iget(fs_info->sb, &key, root, NULL);
sb               4880 fs/btrfs/tree-log.c 				inode = btrfs_iget(fs_info->sb, &key, root,
sb               5447 fs/btrfs/tree-log.c 					       struct super_block *sb,
sb               5465 fs/btrfs/tree-log.c 		if (!parent || d_really_is_negative(parent) || sb != parent->d_sb)
sb               5476 fs/btrfs/tree-log.c 		if (!parent || d_really_is_negative(parent) || sb != parent->d_sb)
sb               5618 fs/btrfs/tree-log.c 			di_inode = btrfs_iget(fs_info->sb, &di_key, root, NULL);
sb               5744 fs/btrfs/tree-log.c 			dir_inode = btrfs_iget(fs_info->sb, &inode_key,
sb               5819 fs/btrfs/tree-log.c 		inode = btrfs_iget(fs_info->sb, &search_key, root, NULL);
sb               5867 fs/btrfs/tree-log.c 	struct super_block *sb = inode->vfs_inode.i_sb;
sb               5872 fs/btrfs/tree-log.c 		    sb != parent->d_sb)
sb               5996 fs/btrfs/tree-log.c 	struct super_block *sb;
sb               6001 fs/btrfs/tree-log.c 	sb = inode->vfs_inode.i_sb;
sb               6023 fs/btrfs/tree-log.c 	ret = check_parent_dirs_for_sync(trans, inode, parent, sb,
sb               2109 fs/btrfs/volumes.c 	if (fs_info->sb->s_bdev &&
sb               2110 fs/btrfs/volumes.c 			(fs_info->sb->s_bdev == device->bdev))
sb               2111 fs/btrfs/volumes.c 		fs_info->sb->s_bdev = next_device->bdev;
sb               2599 fs/btrfs/volumes.c 	struct super_block *sb = fs_info->sb;
sb               2608 fs/btrfs/volumes.c 	if (sb_rdonly(sb) && !fs_devices->seeding)
sb               2618 fs/btrfs/volumes.c 		down_write(&sb->s_umount);
sb               2674 fs/btrfs/volumes.c 		sb->s_flags &= ~SB_RDONLY;
sb               2751 fs/btrfs/volumes.c 		up_write(&sb->s_umount);
sb               2796 fs/btrfs/volumes.c 		sb->s_flags |= SB_RDONLY;
sb               2805 fs/btrfs/volumes.c 		up_write(&sb->s_umount);
sb               4422 fs/btrfs/volumes.c 	if (sb_rdonly(fs_info->sb)) {
sb               7057 fs/btrfs/volumes.c 	struct extent_buffer *sb;
sb               7076 fs/btrfs/volumes.c 	sb = btrfs_find_create_tree_block(fs_info, BTRFS_SUPER_INFO_OFFSET);
sb               7077 fs/btrfs/volumes.c 	if (IS_ERR(sb))
sb               7078 fs/btrfs/volumes.c 		return PTR_ERR(sb);
sb               7079 fs/btrfs/volumes.c 	set_extent_buffer_uptodate(sb);
sb               7080 fs/btrfs/volumes.c 	btrfs_set_buffer_lockdep_class(root->root_key.objectid, sb, 0);
sb               7094 fs/btrfs/volumes.c 		SetPageUptodate(sb->pages[0]);
sb               7096 fs/btrfs/volumes.c 	write_extent_buffer(sb, super_copy, 0, BTRFS_SUPER_INFO_SIZE);
sb               7125 fs/btrfs/volumes.c 			num_stripes = btrfs_chunk_num_stripes(sb, chunk);
sb               7134 fs/btrfs/volumes.c 			type = btrfs_chunk_type(sb, chunk);
sb               7147 fs/btrfs/volumes.c 			ret = read_one_chunk(&key, sb, chunk);
sb               7161 fs/btrfs/volumes.c 	clear_extent_buffer_uptodate(sb);
sb               7162 fs/btrfs/volumes.c 	free_extent_buffer_stale(sb);
sb               7168 fs/btrfs/volumes.c 	clear_extent_buffer_uptodate(sb);
sb               7169 fs/btrfs/volumes.c 	free_extent_buffer_stale(sb);
sb                499 fs/buffer.c    void emergency_thaw_bdev(struct super_block *sb)
sb                501 fs/buffer.c    	while (sb->s_bdev && !thaw_bdev(sb->s_bdev, sb))
sb                502 fs/buffer.c    		printk(KERN_WARNING "Emergency Thaw on %pg\n", sb->s_bdev);
sb               3916 fs/ceph/caps.c 	inode = ceph_find_inode(mdsc->fsc->sb, vino);
sb                261 fs/ceph/debugfs.c 		 dev_name(fsc->sb->s_bdi->dev));
sb                123 fs/ceph/export.c static struct inode *__lookup_inode(struct super_block *sb, u64 ino)
sb                125 fs/ceph/export.c 	struct ceph_mds_client *mdsc = ceph_sb_to_client(sb)->mdsc;
sb                132 fs/ceph/export.c 	inode = ceph_find_inode(sb, vino);
sb                143 fs/ceph/export.c 		if (ceph_security_xattr_wanted(d_inode(sb->s_root)))
sb                160 fs/ceph/export.c struct inode *ceph_lookup_inode(struct super_block *sb, u64 ino)
sb                162 fs/ceph/export.c 	struct inode *inode = __lookup_inode(sb, ino);
sb                172 fs/ceph/export.c static struct dentry *__fh_to_dentry(struct super_block *sb, u64 ino)
sb                174 fs/ceph/export.c 	struct inode *inode = __lookup_inode(sb, ino);
sb                184 fs/ceph/export.c static struct dentry *__snapfh_to_dentry(struct super_block *sb,
sb                188 fs/ceph/export.c 	struct ceph_mds_client *mdsc = ceph_sb_to_client(sb)->mdsc;
sb                208 fs/ceph/export.c 	inode = ceph_find_inode(sb, vino);
sb                218 fs/ceph/export.c 	if (ceph_security_xattr_wanted(d_inode(sb->s_root)))
sb                266 fs/ceph/export.c static struct dentry *ceph_fh_to_dentry(struct super_block *sb,
sb                274 fs/ceph/export.c 		return __snapfh_to_dentry(sb, sfh, false);
sb                284 fs/ceph/export.c 	return __fh_to_dentry(sb, fh->ino);
sb                287 fs/ceph/export.c static struct dentry *__get_parent(struct super_block *sb,
sb                290 fs/ceph/export.c 	struct ceph_mds_client *mdsc = ceph_sb_to_client(sb)->mdsc;
sb                312 fs/ceph/export.c 	if (ceph_security_xattr_wanted(d_inode(sb->s_root)))
sb                383 fs/ceph/export.c static struct dentry *ceph_fh_to_parent(struct super_block *sb,
sb                392 fs/ceph/export.c 		return __snapfh_to_dentry(sb, sfh, true);
sb                401 fs/ceph/export.c 	dentry = __get_parent(sb, NULL, cfh->ino);
sb                403 fs/ceph/export.c 		dentry = __fh_to_dentry(sb, cfh->parent_ino);
sb                181 fs/ceph/file.c prepare_open_request(struct super_block *sb, int flags, int create_mode)
sb                183 fs/ceph/file.c 	struct ceph_fs_client *fsc = ceph_sb_to_client(sb);
sb                 50 fs/ceph/inode.c struct inode *ceph_get_inode(struct super_block *sb, struct ceph_vino vino)
sb                 55 fs/ceph/inode.c 	inode = iget5_locked(sb, t, ceph_ino_compare, ceph_set_ino_cb, &vino);
sb                421 fs/ceph/inode.c struct inode *ceph_alloc_inode(struct super_block *sb)
sb               1215 fs/ceph/inode.c int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
sb               1221 fs/ceph/inode.c 	struct ceph_fs_client *fsc = ceph_sb_to_client(sb);
sb               1300 fs/ceph/inode.c 		in = ceph_get_inode(sb, tvino);
sb                927 fs/ceph/mds_client.c 		if (!dir || dir->i_sb != mdsc->fsc->sb) {
sb               1485 fs/ceph/mds_client.c 	struct super_block *sb = fsc->sb;
sb               1514 fs/ceph/mds_client.c 			inode = ceph_find_inode(sb, vino);
sb               2094 fs/ceph/mds_client.c 	req->r_stamp = timespec64_trunc(ts, mdsc->fsc->sb->s_time_gran);
sb               2935 fs/ceph/mds_client.c 	err = ceph_fill_trace(mdsc->fsc->sb, req);
sb               3621 fs/ceph/mds_client.c 	if (mdsc->fsc->sb->s_root)
sb               3622 fs/ceph/mds_client.c 		shrink_dcache_parent(mdsc->fsc->sb->s_root);
sb               3866 fs/ceph/mds_client.c 	struct super_block *sb = mdsc->fsc->sb;
sb               3891 fs/ceph/mds_client.c 	inode = ceph_find_inode(sb, vino);
sb               4046 fs/ceph/mds_client.c 	ceph_force_reconnect(fsc->sb);
sb                 25 fs/ceph/quota.c 	struct super_block *sb = mdsc->fsc->sb;
sb                 30 fs/ceph/quota.c 	if (sb->s_root->d_inode &&
sb                 31 fs/ceph/quota.c 	    (sb->s_root->d_inode->i_ino == CEPH_INO_ROOT))
sb                 41 fs/ceph/quota.c 	struct super_block *sb = mdsc->fsc->sb;
sb                 62 fs/ceph/quota.c 	inode = ceph_find_inode(sb, vino);
sb                127 fs/ceph/quota.c 					     struct super_block *sb,
sb                158 fs/ceph/quota.c 		in = ceph_lookup_inode(sb, realm->ino);
sb                488 fs/ceph/quota.c 	realm = get_quota_realm(mdsc, d_inode(fsc->sb->s_root), true);
sb                846 fs/ceph/snap.c 	struct super_block *sb = mdsc->fsc->sb;
sb                914 fs/ceph/snap.c 			struct inode *inode = ceph_find_inode(sb, vino);
sb                109 fs/ceph/super.c static int ceph_sync_fs(struct super_block *sb, int wait)
sb                111 fs/ceph/super.c 	struct ceph_fs_client *fsc = ceph_sb_to_client(sb);
sb                717 fs/ceph/super.c 	fsc->sb = NULL;
sb                875 fs/ceph/super.c static void ceph_umount_begin(struct super_block *sb)
sb                877 fs/ceph/super.c 	struct ceph_fs_client *fsc = ceph_sb_to_client(sb);
sb                888 fs/ceph/super.c static int ceph_remount(struct super_block *sb, int *flags, char *data)
sb                890 fs/ceph/super.c 	sync_filesystem(sb);
sb                969 fs/ceph/super.c 	if (!fsc->sb->s_root) {
sb                993 fs/ceph/super.c 		fsc->sb->s_root = dget(root);
sb                995 fs/ceph/super.c 		root = dget(fsc->sb->s_root);
sb               1020 fs/ceph/super.c 	fsc->sb = s;
sb               1039 fs/ceph/super.c 	fsc->sb = NULL;
sb               1046 fs/ceph/super.c static int ceph_compare_super(struct super_block *sb, void *data)
sb               1051 fs/ceph/super.c 	struct ceph_fs_client *other = ceph_sb_to_client(sb);
sb               1053 fs/ceph/super.c 	dout("ceph_compare_super %p\n", sb);
sb               1076 fs/ceph/super.c static int ceph_setup_bdi(struct super_block *sb, struct ceph_fs_client *fsc)
sb               1080 fs/ceph/super.c 	err = super_setup_bdi_name(sb, "ceph-%ld",
sb               1086 fs/ceph/super.c 	sb->s_bdi->ra_pages = fsc->mount_options->rasize >> PAGE_SHIFT;
sb               1089 fs/ceph/super.c 	sb->s_bdi->io_pages = fsc->mount_options->rsize >> PAGE_SHIFT;
sb               1097 fs/ceph/super.c 	struct super_block *sb;
sb               1131 fs/ceph/super.c 	sb = sget(fs_type, compare_super, ceph_set_super, flags, fsc);
sb               1132 fs/ceph/super.c 	if (IS_ERR(sb)) {
sb               1133 fs/ceph/super.c 		res = ERR_CAST(sb);
sb               1137 fs/ceph/super.c 	if (ceph_sb_to_client(sb) != fsc) {
sb               1139 fs/ceph/super.c 		fsc = ceph_sb_to_client(sb);
sb               1143 fs/ceph/super.c 		err = ceph_setup_bdi(sb, fsc);
sb               1164 fs/ceph/super.c 	deactivate_locked_super(sb);
sb               1204 fs/ceph/super.c int ceph_force_reconnect(struct super_block *sb)
sb               1206 fs/ceph/super.c 	struct ceph_fs_client *fsc = ceph_sb_to_client(sb);
sb               1209 fs/ceph/super.c 	ceph_umount_begin(sb);
sb               1224 fs/ceph/super.c 	if (sb->s_root) {
sb               1225 fs/ceph/super.c 		err = __ceph_do_getattr(d_inode(sb->s_root), NULL,
sb                100 fs/ceph/super.h 	struct super_block *sb;
sb                420 fs/ceph/super.h static inline struct ceph_fs_client *ceph_sb_to_client(struct super_block *sb)
sb                422 fs/ceph/super.h 	return (struct ceph_fs_client *)sb->s_fs_info;
sb                463 fs/ceph/super.h static inline ino_t ceph_translate_ino(struct super_block *sb, ino_t ino)
sb                468 fs/ceph/super.h static inline ino_t ceph_translate_ino(struct super_block *sb, ino_t ino)
sb                470 fs/ceph/super.h 	if (ceph_test_mount_opt(ceph_sb_to_client(sb), INO32))
sb                497 fs/ceph/super.h static inline struct inode *ceph_find_inode(struct super_block *sb,
sb                501 fs/ceph/super.h 	return ilookup5(sb, t, ceph_ino_compare, &vino);
sb                858 fs/ceph/super.h extern int ceph_force_reconnect(struct super_block *sb);
sb                899 fs/ceph/super.h extern struct inode *ceph_alloc_inode(struct super_block *sb);
sb                903 fs/ceph/super.h extern struct inode *ceph_get_inode(struct super_block *sb,
sb                912 fs/ceph/super.h extern int ceph_fill_trace(struct super_block *sb,
sb               1129 fs/ceph/super.h struct inode *ceph_lookup_inode(struct super_block *sb, u64 ino);
sb                133 fs/cifs/cifsfs.c cifs_sb_active(struct super_block *sb)
sb                135 fs/cifs/cifsfs.c 	struct cifs_sb_info *server = CIFS_SB(sb);
sb                138 fs/cifs/cifsfs.c 		atomic_inc(&sb->s_active);
sb                142 fs/cifs/cifsfs.c cifs_sb_deactive(struct super_block *sb)
sb                144 fs/cifs/cifsfs.c 	struct cifs_sb_info *server = CIFS_SB(sb);
sb                147 fs/cifs/cifsfs.c 		deactivate_super(sb);
sb                151 fs/cifs/cifsfs.c cifs_read_super(struct super_block *sb)
sb                159 fs/cifs/cifsfs.c 	cifs_sb = CIFS_SB(sb);
sb                163 fs/cifs/cifsfs.c 		sb->s_flags |= SB_POSIXACL;
sb                166 fs/cifs/cifsfs.c 		sb->s_flags |= SB_RDONLY;
sb                169 fs/cifs/cifsfs.c 		sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                171 fs/cifs/cifsfs.c 		sb->s_maxbytes = MAX_NON_LFS;
sb                184 fs/cifs/cifsfs.c 		sb->s_time_gran = 1000000000; /* 1 second is max allowed gran */
sb                186 fs/cifs/cifsfs.c 		sb->s_time_min = ts.tv_sec;
sb                189 fs/cifs/cifsfs.c 		sb->s_time_max = ts.tv_sec;
sb                195 fs/cifs/cifsfs.c 		sb->s_time_gran = 100;
sb                197 fs/cifs/cifsfs.c 		sb->s_time_min = ts.tv_sec;
sb                199 fs/cifs/cifsfs.c 		sb->s_time_max = ts.tv_sec;
sb                202 fs/cifs/cifsfs.c 	sb->s_magic = CIFS_MAGIC_NUMBER;
sb                203 fs/cifs/cifsfs.c 	sb->s_op = &cifs_super_ops;
sb                204 fs/cifs/cifsfs.c 	sb->s_xattr = cifs_xattr_handlers;
sb                205 fs/cifs/cifsfs.c 	rc = super_setup_bdi(sb);
sb                209 fs/cifs/cifsfs.c 	sb->s_bdi->ra_pages = cifs_sb->rsize / PAGE_SIZE;
sb                211 fs/cifs/cifsfs.c 	sb->s_blocksize = CIFS_MAX_MSGSIZE;
sb                212 fs/cifs/cifsfs.c 	sb->s_blocksize_bits = 14;	/* default 2**14 = CIFS_MAX_MSGSIZE */
sb                213 fs/cifs/cifsfs.c 	inode = cifs_root_iget(sb);
sb                221 fs/cifs/cifsfs.c 		sb->s_d_op = &cifs_ci_dentry_ops;
sb                223 fs/cifs/cifsfs.c 		sb->s_d_op = &cifs_dentry_ops;
sb                225 fs/cifs/cifsfs.c 	sb->s_root = d_make_root(inode);
sb                226 fs/cifs/cifsfs.c 	if (!sb->s_root) {
sb                234 fs/cifs/cifsfs.c 		sb->s_export_op = &cifs_export_ops;
sb                245 fs/cifs/cifsfs.c static void cifs_kill_sb(struct super_block *sb)
sb                247 fs/cifs/cifsfs.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                248 fs/cifs/cifsfs.c 	kill_anon_super(sb);
sb                255 fs/cifs/cifsfs.c 	struct super_block *sb = dentry->d_sb;
sb                256 fs/cifs/cifsfs.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                323 fs/cifs/cifsfs.c cifs_alloc_inode(struct super_block *sb)
sb                626 fs/cifs/cifsfs.c static void cifs_umount_begin(struct super_block *sb)
sb                628 fs/cifs/cifsfs.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                670 fs/cifs/cifsfs.c static int cifs_remount(struct super_block *sb, int *flags, char *data)
sb                672 fs/cifs/cifsfs.c 	sync_filesystem(sb);
sb                709 fs/cifs/cifsfs.c cifs_get_root(struct smb_vol *vol, struct super_block *sb)
sb                712 fs/cifs/cifsfs.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                718 fs/cifs/cifsfs.c 		return dget(sb->s_root);
sb                728 fs/cifs/cifsfs.c 	dentry = dget(sb->s_root);
sb                764 fs/cifs/cifsfs.c static int cifs_set_super(struct super_block *sb, void *data)
sb                767 fs/cifs/cifsfs.c 	sb->s_fs_info = mnt_data->cifs_sb;
sb                768 fs/cifs/cifsfs.c 	return set_anon_super(sb, NULL);
sb                776 fs/cifs/cifsfs.c 	struct super_block *sb;
sb                829 fs/cifs/cifsfs.c 	sb = sget(fs_type, cifs_match_super, cifs_set_super, flags, &mnt_data);
sb                830 fs/cifs/cifsfs.c 	if (IS_ERR(sb)) {
sb                831 fs/cifs/cifsfs.c 		root = ERR_CAST(sb);
sb                836 fs/cifs/cifsfs.c 	if (sb->s_root) {
sb                840 fs/cifs/cifsfs.c 		rc = cifs_read_super(sb);
sb                846 fs/cifs/cifsfs.c 		sb->s_flags |= SB_ACTIVE;
sb                849 fs/cifs/cifsfs.c 	root = cifs_get_root(volume_info, sb);
sb                857 fs/cifs/cifsfs.c 	deactivate_locked_super(sb);
sb                 59 fs/cifs/cifsfs.h extern void cifs_sb_active(struct super_block *sb);
sb                 60 fs/cifs/cifsfs.h extern void cifs_sb_deactive(struct super_block *sb);
sb                336 fs/cifs/cifsglob.h 		     struct cifs_sb_info *sb);
sb               1436 fs/cifs/cifsglob.h CIFS_SB(struct super_block *sb)
sb               1438 fs/cifs/cifsglob.h 	return sb->s_fs_info;
sb                180 fs/cifs/cifsproto.h 			   struct super_block *sb, int mode,
sb                183 fs/cifs/cifsproto.h void cifs_fill_uniqueid(struct super_block *sb, struct cifs_fattr *fattr);
sb                190 fs/cifs/cifsproto.h extern struct inode *cifs_iget(struct super_block *sb,
sb                194 fs/cifs/cifsproto.h 			       FILE_ALL_INFO *data, struct super_block *sb,
sb                198 fs/cifs/cifsproto.h 			struct super_block *sb, unsigned int xid);
sb                392 fs/cifs/connect.c 	struct super_block *sb;
sb                397 fs/cifs/connect.c static void super_cb(struct super_block *sb, void *arg)
sb                403 fs/cifs/connect.c 	if (d->sb)
sb                406 fs/cifs/connect.c 	cifs_sb = CIFS_SB(sb);
sb                409 fs/cifs/connect.c 		d->sb = sb;
sb                416 fs/cifs/connect.c 		.sb = NULL,
sb                421 fs/cifs/connect.c 	if (unlikely(!d.sb))
sb                428 fs/cifs/connect.c 	cifs_sb_active(d.sb);
sb                429 fs/cifs/connect.c 	return d.sb;
sb                432 fs/cifs/connect.c static inline void put_tcp_super(struct super_block *sb)
sb                434 fs/cifs/connect.c 	if (!IS_ERR_OR_NULL(sb))
sb                435 fs/cifs/connect.c 		cifs_sb_deactive(sb);
sb                499 fs/cifs/connect.c 	struct super_block *sb = NULL;
sb                509 fs/cifs/connect.c 	sb = get_tcp_super(server);
sb                510 fs/cifs/connect.c 	if (IS_ERR(sb)) {
sb                511 fs/cifs/connect.c 		rc = PTR_ERR(sb);
sb                514 fs/cifs/connect.c 		sb = NULL;
sb                516 fs/cifs/connect.c 		cifs_sb = CIFS_SB(sb);
sb                536 fs/cifs/connect.c 		put_tcp_super(sb);
sb                667 fs/cifs/connect.c 	put_tcp_super(sb);
sb               3614 fs/cifs/connect.c compare_mount_options(struct super_block *sb, struct cifs_mnt_data *mnt_data)
sb               3616 fs/cifs/connect.c 	struct cifs_sb_info *old = CIFS_SB(sb);
sb               3621 fs/cifs/connect.c 	if ((sb->s_flags & CIFS_MS_MASK) != (mnt_data->flags & CIFS_MS_MASK))
sb               3657 fs/cifs/connect.c match_prepath(struct super_block *sb, struct cifs_mnt_data *mnt_data)
sb               3659 fs/cifs/connect.c 	struct cifs_sb_info *old = CIFS_SB(sb);
sb               3675 fs/cifs/connect.c cifs_match_super(struct super_block *sb, void *data)
sb               3687 fs/cifs/connect.c 	cifs_sb = CIFS_SB(sb);
sb               3702 fs/cifs/connect.c 	    !match_prepath(sb, mnt_data)) {
sb               3707 fs/cifs/connect.c 	rc = compare_mount_options(sb, mnt_data);
sb                115 fs/cifs/file.c 			struct super_block *sb, int mode, unsigned int f_flags,
sb                121 fs/cifs/file.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                160 fs/cifs/file.c 		cifs_fill_uniqueid(sb, &fattr);
sb                161 fs/cifs/file.c 		*pinode = cifs_iget(sb, &fattr);
sb                387 fs/cifs/file.c 	struct super_block *sb = inode->i_sb;
sb                405 fs/cifs/file.c 	cifs_sb_deactive(sb);
sb                447 fs/cifs/file.c 	struct super_block *sb = inode->i_sb;
sb                448 fs/cifs/file.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                218 fs/cifs/inode.c cifs_fill_uniqueid(struct super_block *sb, struct cifs_fattr *fattr)
sb                220 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                225 fs/cifs/inode.c 	fattr->cf_uniqueid = iunique(sb, ROOT_I);
sb                322 fs/cifs/inode.c cifs_create_dfs_fattr(struct cifs_fattr *fattr, struct super_block *sb)
sb                324 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                333 fs/cifs/inode.c 	fattr->cf_mtime = timespec64_trunc(fattr->cf_mtime, sb->s_time_gran);
sb                367 fs/cifs/inode.c 			     struct super_block *sb, unsigned int xid)
sb                374 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                391 fs/cifs/inode.c 		cifs_create_dfs_fattr(&fattr, sb);
sb                407 fs/cifs/inode.c 		cifs_fill_uniqueid(sb, &fattr);
sb                408 fs/cifs/inode.c 		*pinode = cifs_iget(sb, &fattr);
sb                599 fs/cifs/inode.c 		       struct super_block *sb, bool adjust_tz,
sb                602 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                614 fs/cifs/inode.c 		fattr->cf_atime = timespec64_trunc(fattr->cf_atime, sb->s_time_gran);
sb                732 fs/cifs/inode.c 		    FILE_ALL_INFO *data, struct super_block *sb, int xid,
sb                740 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                780 fs/cifs/inode.c 		cifs_all_info_to_fattr(&fattr, data, sb, adjust_tz,
sb                783 fs/cifs/inode.c 		cifs_create_dfs_fattr(&fattr, sb);
sb                850 fs/cifs/inode.c 				fattr.cf_uniqueid = iunique(sb, ROOT_I);
sb                862 fs/cifs/inode.c 			fattr.cf_uniqueid = iunique(sb, ROOT_I);
sb                929 fs/cifs/inode.c 		*inode = cifs_iget(sb, &fattr);
sb               1024 fs/cifs/inode.c cifs_iget(struct super_block *sb, struct cifs_fattr *fattr)
sb               1035 fs/cifs/inode.c 	inode = iget5_locked(sb, hash, cifs_find_inode, cifs_init_inode, fattr);
sb               1042 fs/cifs/inode.c 				cifs_autodisable_serverino(CIFS_SB(sb));
sb               1044 fs/cifs/inode.c 				fattr->cf_uniqueid = iunique(sb, ROOT_I);
sb               1050 fs/cifs/inode.c 		if (sb->s_flags & SB_NOATIME)
sb               1066 fs/cifs/inode.c struct inode *cifs_root_iget(struct super_block *sb)
sb               1069 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb               1092 fs/cifs/inode.c 		rc = cifs_get_inode_info_unix(&inode, path, sb, xid);
sb               1101 fs/cifs/inode.c 	rc = cifs_get_inode_info(&inode, path, NULL, sb, xid, NULL);
sb               1341 fs/cifs/inode.c 	struct super_block *sb = dir->i_sb;
sb               1342 fs/cifs/inode.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb               2012 fs/cifs/inode.c 	struct super_block *sb = dentry->d_sb;
sb               2037 fs/cifs/inode.c 	if (cifs_sb_master_tcon(CIFS_SB(sb))->unix_ext)
sb               2038 fs/cifs/inode.c 		rc = cifs_get_inode_info_unix(&inode, full_path, sb, xid);
sb               2040 fs/cifs/inode.c 		rc = cifs_get_inode_info(&inode, full_path, NULL, sb,
sb                 81 fs/cifs/readdir.c 	struct super_block *sb = parent->d_sb;
sb                 82 fs/cifs/readdir.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                131 fs/cifs/readdir.c 		inode = cifs_iget(sb, fattr);
sb                707 fs/cifs/readdir.c 	struct super_block *sb = file_inode(file)->i_sb;
sb                708 fs/cifs/readdir.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                768 fs/cifs/readdir.c 		fattr.cf_uniqueid = iunique(sb, ROOT_I);
sb                 57 fs/cifs/xattr.c 	struct super_block *sb = dentry->d_sb;
sb                 58 fs/cifs/xattr.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                126 fs/cifs/xattr.c 		if (sb->s_flags & SB_POSIXACL)
sb                138 fs/cifs/xattr.c 		if (sb->s_flags & SB_POSIXACL)
sb                206 fs/cifs/xattr.c 	struct super_block *sb = dentry->d_sb;
sb                207 fs/cifs/xattr.c 	struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
sb                275 fs/cifs/xattr.c 		if (sb->s_flags & SB_POSIXACL)
sb                285 fs/cifs/xattr.c 		if (sb->s_flags & SB_POSIXACL)
sb                 55 fs/coda/cache.c void coda_cache_clear_all(struct super_block *sb)
sb                 60 fs/coda/cnode.c struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid,
sb                 67 fs/coda/cnode.c 	inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid);
sb                 92 fs/coda/cnode.c struct inode *coda_cnode_make(struct CodaFid *fid, struct super_block *sb)
sb                 99 fs/coda/cnode.c 	error = venus_getattr(sb, fid, &attr);
sb                103 fs/coda/cnode.c 	inode = coda_iget(sb, fid, &attr);
sb                135 fs/coda/cnode.c struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb) 
sb                140 fs/coda/cnode.c 	inode = ilookup5(sb, hash, coda_test_inode, fid);
sb                162 fs/coda/cnode.c struct inode *coda_cnode_makectl(struct super_block *sb)
sb                164 fs/coda/cnode.c 	struct inode *inode = new_inode(sb);
sb                 17 fs/coda/coda_cache.h void coda_cache_clear_all(struct super_block *sb);
sb                 53 fs/coda/coda_fs_i.h struct inode *coda_iget(struct super_block *sb, struct CodaFid *fid, struct coda_vattr *attr);
sb                 54 fs/coda/coda_fs_i.h struct inode *coda_cnode_makectl(struct super_block *sb);
sb                 55 fs/coda/coda_fs_i.h struct inode *coda_fid_to_inode(struct CodaFid *fid, struct super_block *sb);
sb                 42 fs/coda/coda_psdev.h static inline struct venus_comm *coda_vcp(struct super_block *sb)
sb                 44 fs/coda/coda_psdev.h 	return (struct venus_comm *)((sb)->s_fs_info);
sb                 48 fs/coda/coda_psdev.h int venus_rootfid(struct super_block *sb, struct CodaFid *fidp);
sb                 49 fs/coda/coda_psdev.h int venus_getattr(struct super_block *sb, struct CodaFid *fid,
sb                 52 fs/coda/coda_psdev.h int venus_lookup(struct super_block *sb, struct CodaFid *fid,
sb                 55 fs/coda/coda_psdev.h int venus_close(struct super_block *sb, struct CodaFid *fid, int flags,
sb                 57 fs/coda/coda_psdev.h int venus_open(struct super_block *sb, struct CodaFid *fid, int flags,
sb                 59 fs/coda/coda_psdev.h int venus_mkdir(struct super_block *sb, struct CodaFid *dirfid,
sb                 62 fs/coda/coda_psdev.h int venus_create(struct super_block *sb, struct CodaFid *dirfid,
sb                 65 fs/coda/coda_psdev.h int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid,
sb                 67 fs/coda/coda_psdev.h int venus_remove(struct super_block *sb, struct CodaFid *dirfid,
sb                 69 fs/coda/coda_psdev.h int venus_readlink(struct super_block *sb, struct CodaFid *fid,
sb                 71 fs/coda/coda_psdev.h int venus_rename(struct super_block *sb, struct CodaFid *new_fid,
sb                 75 fs/coda/coda_psdev.h int venus_link(struct super_block *sb, struct CodaFid *fid,
sb                 77 fs/coda/coda_psdev.h int venus_symlink(struct super_block *sb, struct CodaFid *fid,
sb                 79 fs/coda/coda_psdev.h int venus_access(struct super_block *sb, struct CodaFid *fid, int mask);
sb                 80 fs/coda/coda_psdev.h int venus_pioctl(struct super_block *sb, struct CodaFid *fid,
sb                 84 fs/coda/coda_psdev.h int venus_fsync(struct super_block *sb, struct CodaFid *fid);
sb                 86 fs/coda/coda_psdev.h int venus_access_intent(struct super_block *sb, struct CodaFid *fid,
sb                 43 fs/coda/dir.c  	struct super_block *sb = dir->i_sb;
sb                 57 fs/coda/dir.c  		inode = coda_cnode_makectl(sb);
sb                 61 fs/coda/dir.c  		int error = venus_lookup(sb, coda_i2f(dir), name, length,
sb                 63 fs/coda/dir.c  		inode = !error ? coda_cnode_make(&fid, sb) : ERR_PTR(error);
sb                 43 fs/coda/inode.c static struct inode *coda_alloc_inode(struct super_block *sb)
sb                 90 fs/coda/inode.c static int coda_remount(struct super_block *sb, int *flags, char *data)
sb                 92 fs/coda/inode.c 	sync_filesystem(sb);
sb                147 fs/coda/inode.c static int coda_fill_super(struct super_block *sb, void *data, int silent)
sb                181 fs/coda/inode.c 	vc->vc_sb = sb;
sb                184 fs/coda/inode.c 	sb->s_fs_info = vc;
sb                185 fs/coda/inode.c 	sb->s_flags |= SB_NOATIME;
sb                186 fs/coda/inode.c 	sb->s_blocksize = 4096;	/* XXXXX  what do we put here?? */
sb                187 fs/coda/inode.c 	sb->s_blocksize_bits = 12;
sb                188 fs/coda/inode.c 	sb->s_magic = CODA_SUPER_MAGIC;
sb                189 fs/coda/inode.c 	sb->s_op = &coda_super_operations;
sb                190 fs/coda/inode.c 	sb->s_d_op = &coda_dentry_operations;
sb                191 fs/coda/inode.c 	sb->s_time_gran = 1;
sb                192 fs/coda/inode.c 	sb->s_time_min = S64_MIN;
sb                193 fs/coda/inode.c 	sb->s_time_max = S64_MAX;
sb                195 fs/coda/inode.c 	error = super_setup_bdi(sb);
sb                200 fs/coda/inode.c 	error = venus_rootfid(sb, &fid);
sb                209 fs/coda/inode.c         root = coda_cnode_make(&fid, sb);
sb                219 fs/coda/inode.c 	sb->s_root = d_make_root(root);
sb                220 fs/coda/inode.c 	if (!sb->s_root) {
sb                229 fs/coda/inode.c 	sb->s_fs_info = NULL;
sb                235 fs/coda/inode.c static void coda_put_super(struct super_block *sb)
sb                237 fs/coda/inode.c 	struct venus_comm *vcp = coda_vcp(sb);
sb                240 fs/coda/inode.c 	sb->s_fs_info = NULL;
sb                 75 fs/coda/upcall.c int venus_rootfid(struct super_block *sb, struct CodaFid *fidp)
sb                 84 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                 92 fs/coda/upcall.c int venus_getattr(struct super_block *sb, struct CodaFid *fid, 
sb                103 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                111 fs/coda/upcall.c int venus_setattr(struct super_block *sb, struct CodaFid *fid, 
sb                124 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                130 fs/coda/upcall.c int venus_lookup(struct super_block *sb, struct CodaFid *fid, 
sb                150 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                160 fs/coda/upcall.c int venus_close(struct super_block *sb, struct CodaFid *fid, int flags,
sb                174 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                180 fs/coda/upcall.c int venus_open(struct super_block *sb, struct CodaFid *fid,
sb                193 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                201 fs/coda/upcall.c int venus_mkdir(struct super_block *sb, struct CodaFid *dirfid, 
sb                221 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                232 fs/coda/upcall.c int venus_rename(struct super_block *sb, struct CodaFid *old_fid, 
sb                263 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                269 fs/coda/upcall.c int venus_create(struct super_block *sb, struct CodaFid *dirfid, 
sb                292 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                302 fs/coda/upcall.c int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, 
sb                319 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                325 fs/coda/upcall.c int venus_remove(struct super_block *sb, struct CodaFid *dirfid, 
sb                341 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                347 fs/coda/upcall.c int venus_readlink(struct super_block *sb, struct CodaFid *fid, 
sb                362 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                379 fs/coda/upcall.c int venus_link(struct super_block *sb, struct CodaFid *fid, 
sb                399 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                405 fs/coda/upcall.c int venus_symlink(struct super_block *sb, struct CodaFid *fid,
sb                434 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                440 fs/coda/upcall.c int venus_fsync(struct super_block *sb, struct CodaFid *fid)
sb                450 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                456 fs/coda/upcall.c int venus_access(struct super_block *sb, struct CodaFid *fid, int mask)
sb                468 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize, &outsize, inp);
sb                475 fs/coda/upcall.c int venus_pioctl(struct super_block *sb, struct CodaFid *fid,
sb                517 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), SIZE(ioctl) + data->vi.in_size,
sb                572 fs/coda/upcall.c int venus_access_intent(struct super_block *sb, struct CodaFid *fid,
sb                594 fs/coda/upcall.c 	error = coda_upcall(coda_vcp(sb), insize,
sb                859 fs/coda/upcall.c 	struct super_block *sb;
sb                894 fs/coda/upcall.c 	sb = vcp->vc_sb;
sb                895 fs/coda/upcall.c 	if (!sb || !sb->s_root)
sb                900 fs/coda/upcall.c 		coda_cache_clear_all(sb);
sb                901 fs/coda/upcall.c 		shrink_dcache_sb(sb);
sb                902 fs/coda/upcall.c 		if (d_really_is_positive(sb->s_root))
sb                903 fs/coda/upcall.c 			coda_flag_inode(d_inode(sb->s_root), C_FLUSH);
sb                907 fs/coda/upcall.c 		coda_cache_clear_all(sb);
sb                927 fs/coda/upcall.c 		inode = coda_fid_to_inode(fid, sb);
sb               1626 fs/configfs/dir.c 	struct super_block *sb = dentry->d_sb;
sb               1667 fs/configfs/dir.c 			ino = iunique(sb, 2);
sb                 65 fs/configfs/mount.c static int configfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                 70 fs/configfs/mount.c 	sb->s_blocksize = PAGE_SIZE;
sb                 71 fs/configfs/mount.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                 72 fs/configfs/mount.c 	sb->s_magic = CONFIGFS_MAGIC;
sb                 73 fs/configfs/mount.c 	sb->s_op = &configfs_ops;
sb                 74 fs/configfs/mount.c 	sb->s_time_gran = 1;
sb                 77 fs/configfs/mount.c 				   &configfs_root, sb);
sb                 96 fs/configfs/mount.c 	sb->s_root = root;
sb                 97 fs/configfs/mount.c 	sb->s_d_op = &configfs_dentry_ops; /* the rest get that */
sb                120 fs/configfs/symlink.c 		      struct config_item **target, struct super_block *sb)
sb                126 fs/configfs/symlink.c 		if (path->dentry->d_sb == sb) {
sb                 50 fs/cramfs/inode.c static inline struct cramfs_sb_info *CRAMFS_SB(struct super_block *sb)
sb                 52 fs/cramfs/inode.c 	return sb->s_fs_info;
sb                 90 fs/cramfs/inode.c static struct inode *get_cramfs_inode(struct super_block *sb,
sb                 96 fs/cramfs/inode.c 	inode = iget_locked(sb, cramino(cramfs_inode, offset));
sb                107 fs/cramfs/inode.c 		    CRAMFS_SB(sb)->flags & CRAMFS_FLAG_EXT_BLOCK_POINTERS &&
sb                108 fs/cramfs/inode.c 		    CRAMFS_SB(sb)->linear_phys_addr)
sb                182 fs/cramfs/inode.c static void *cramfs_blkdev_read(struct super_block *sb, unsigned int offset,
sb                185 fs/cramfs/inode.c 	struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
sb                200 fs/cramfs/inode.c 		if (buffer_dev[i] != sb)
sb                243 fs/cramfs/inode.c 	buffer_dev[buffer] = sb;
sb                263 fs/cramfs/inode.c static void *cramfs_direct_read(struct super_block *sb, unsigned int offset,
sb                266 fs/cramfs/inode.c 	struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
sb                279 fs/cramfs/inode.c static void *cramfs_read(struct super_block *sb, unsigned int offset,
sb                282 fs/cramfs/inode.c 	struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
sb                285 fs/cramfs/inode.c 		return cramfs_direct_read(sb, offset, len);
sb                287 fs/cramfs/inode.c 		return cramfs_blkdev_read(sb, offset, len);
sb                459 fs/cramfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                460 fs/cramfs/inode.c 	struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
sb                496 fs/cramfs/inode.c static void cramfs_kill_sb(struct super_block *sb)
sb                498 fs/cramfs/inode.c 	struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
sb                500 fs/cramfs/inode.c 	if (IS_ENABLED(CONFIG_CRAMFS_MTD) && sb->s_mtd) {
sb                502 fs/cramfs/inode.c 			mtd_unpoint(sb->s_mtd, 0, sbi->mtd_point_size);
sb                503 fs/cramfs/inode.c 		kill_mtd_super(sb);
sb                504 fs/cramfs/inode.c 	} else if (IS_ENABLED(CONFIG_CRAMFS_BLOCKDEV) && sb->s_bdev) {
sb                505 fs/cramfs/inode.c 		kill_block_super(sb);
sb                517 fs/cramfs/inode.c static int cramfs_read_super(struct super_block *sb, struct fs_context *fc,
sb                520 fs/cramfs/inode.c 	struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
sb                529 fs/cramfs/inode.c 	memcpy(super, cramfs_read(sb, 0, sizeof(*super)), sizeof(*super));
sb                544 fs/cramfs/inode.c 		       cramfs_read(sb, 512, sizeof(*super)),
sb                595 fs/cramfs/inode.c static int cramfs_finalize_super(struct super_block *sb,
sb                601 fs/cramfs/inode.c 	sb->s_flags |= SB_RDONLY;
sb                602 fs/cramfs/inode.c 	sb->s_time_min = 0;
sb                603 fs/cramfs/inode.c 	sb->s_time_max = 0;
sb                604 fs/cramfs/inode.c 	sb->s_op = &cramfs_ops;
sb                605 fs/cramfs/inode.c 	root = get_cramfs_inode(sb, cramfs_root, 0);
sb                608 fs/cramfs/inode.c 	sb->s_root = d_make_root(root);
sb                609 fs/cramfs/inode.c 	if (!sb->s_root)
sb                614 fs/cramfs/inode.c static int cramfs_blkdev_fill_super(struct super_block *sb, struct fs_context *fc)
sb                623 fs/cramfs/inode.c 	sb->s_fs_info = sbi;
sb                629 fs/cramfs/inode.c 	err = cramfs_read_super(sb, fc, &super);
sb                632 fs/cramfs/inode.c 	return cramfs_finalize_super(sb, &super.root);
sb                635 fs/cramfs/inode.c static int cramfs_mtd_fill_super(struct super_block *sb, struct fs_context *fc)
sb                644 fs/cramfs/inode.c 	sb->s_fs_info = sbi;
sb                647 fs/cramfs/inode.c 	err = mtd_point(sb->s_mtd, 0, PAGE_SIZE, &sbi->mtd_point_size,
sb                651 fs/cramfs/inode.c 		       sb->s_mtd->name);
sb                657 fs/cramfs/inode.c 	err = cramfs_read_super(sb, fc, &super);
sb                663 fs/cramfs/inode.c 		sb->s_mtd->name, sbi->size/1024);
sb                664 fs/cramfs/inode.c 	mtd_unpoint(sb->s_mtd, 0, PAGE_SIZE);
sb                665 fs/cramfs/inode.c 	err = mtd_point(sb->s_mtd, 0, sbi->size, &sbi->mtd_point_size,
sb                669 fs/cramfs/inode.c 		       sb->s_mtd->name);
sb                673 fs/cramfs/inode.c 	return cramfs_finalize_super(sb, &super.root);
sb                678 fs/cramfs/inode.c 	struct super_block *sb = dentry->d_sb;
sb                681 fs/cramfs/inode.c 	if (sb->s_bdev)
sb                682 fs/cramfs/inode.c 		id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                683 fs/cramfs/inode.c 	else if (sb->s_dev)
sb                684 fs/cramfs/inode.c 		id = huge_encode_dev(sb->s_dev);
sb                688 fs/cramfs/inode.c 	buf->f_blocks = CRAMFS_SB(sb)->blocks;
sb                691 fs/cramfs/inode.c 	buf->f_files = CRAMFS_SB(sb)->files;
sb                705 fs/cramfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                730 fs/cramfs/inode.c 		de = cramfs_read(sb, OFFSET(inode) + offset, sizeof(*de)+CRAMFS_MAXPATHLEN);
sb                832 fs/cramfs/inode.c 		struct super_block *sb = inode->i_sb;
sb                838 fs/cramfs/inode.c 		block_ptr = *(u32 *) cramfs_read(sb, blkptr_offset, 4);
sb                859 fs/cramfs/inode.c 					cramfs_read(sb, block_start, 2);
sb                873 fs/cramfs/inode.c 					cramfs_read(sb, blkptr_offset - 4, 4);
sb                884 fs/cramfs/inode.c 						cramfs_read(sb, block_start, 2);
sb                901 fs/cramfs/inode.c 			       cramfs_read(sb, block_start, block_len),
sb                907 fs/cramfs/inode.c 				 cramfs_read(sb, block_start, block_len),
sb                431 fs/crypto/fscrypt_private.h fscrypt_find_master_key(struct super_block *sb,
sb                434 fs/crypto/fscrypt_private.h extern int fscrypt_verify_key_added(struct super_block *sb,
sb                165 fs/crypto/keyring.c 			const struct super_block *sb)
sb                167 fs/crypto/keyring.c 	sprintf(description, "fscrypt-%s", sb->s_id);
sb                196 fs/crypto/keyring.c static int allocate_filesystem_keyring(struct super_block *sb)
sb                201 fs/crypto/keyring.c 	if (sb->s_master_keys)
sb                204 fs/crypto/keyring.c 	format_fs_keyring_description(description, sb);
sb                213 fs/crypto/keyring.c 	smp_store_release(&sb->s_master_keys, keyring);
sb                217 fs/crypto/keyring.c void fscrypt_sb_free(struct super_block *sb)
sb                219 fs/crypto/keyring.c 	key_put(sb->s_master_keys);
sb                220 fs/crypto/keyring.c 	sb->s_master_keys = NULL;
sb                227 fs/crypto/keyring.c struct key *fscrypt_find_master_key(struct super_block *sb,
sb                234 fs/crypto/keyring.c 	keyring = READ_ONCE(sb->s_master_keys);
sb                425 fs/crypto/keyring.c static int add_master_key(struct super_block *sb,
sb                435 fs/crypto/keyring.c 	key = fscrypt_find_master_key(sb, mk_spec);
sb                441 fs/crypto/keyring.c 		err = allocate_filesystem_keyring(sb);
sb                444 fs/crypto/keyring.c 		err = add_new_master_key(secret, mk_spec, sb->s_master_keys);
sb                492 fs/crypto/keyring.c 	struct super_block *sb = file_inode(filp)->i_sb;
sb                558 fs/crypto/keyring.c 	err = add_master_key(sb, &secret, &arg.key_spec);
sb                581 fs/crypto/keyring.c int fscrypt_verify_key_added(struct super_block *sb,
sb                592 fs/crypto/keyring.c 	key = fscrypt_find_master_key(sb, &mk_spec);
sb                661 fs/crypto/keyring.c static int check_for_busy_inodes(struct super_block *sb,
sb                690 fs/crypto/keyring.c 		     sb->s_id, busy_count, master_key_spec_type(&mk->mk_spec),
sb                696 fs/crypto/keyring.c static int try_to_lock_encrypted_files(struct super_block *sb,
sb                711 fs/crypto/keyring.c 	down_read(&sb->s_umount);
sb                712 fs/crypto/keyring.c 	err1 = sync_filesystem(sb);
sb                713 fs/crypto/keyring.c 	up_read(&sb->s_umount);
sb                731 fs/crypto/keyring.c 	err2 = check_for_busy_inodes(sb, mk);
sb                759 fs/crypto/keyring.c 	struct super_block *sb = file_inode(filp)->i_sb;
sb                786 fs/crypto/keyring.c 	key = fscrypt_find_master_key(sb, &arg.key_spec);
sb                835 fs/crypto/keyring.c 		err = try_to_lock_encrypted_files(sb, mk);
sb                894 fs/crypto/keyring.c 	struct super_block *sb = file_inode(filp)->i_sb;
sb                913 fs/crypto/keyring.c 	key = fscrypt_find_master_key(sb, &arg.key_spec);
sb               1194 fs/dcache.c    long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc)
sb               1199 fs/dcache.c    	freed = list_lru_shrink_walk(&sb->s_dentry_lru, sc,
sb               1233 fs/dcache.c    void shrink_dcache_sb(struct super_block *sb)
sb               1238 fs/dcache.c    		list_lru_walk(&sb->s_dentry_lru,
sb               1241 fs/dcache.c    	} while (list_lru_count(&sb->s_dentry_lru) > 0);
sb               1610 fs/dcache.c    void shrink_dcache_for_umount(struct super_block *sb)
sb               1614 fs/dcache.c    	WARN(down_read_trylock(&sb->s_umount), "s_umount should've been locked");
sb               1616 fs/dcache.c    	dentry = sb->s_root;
sb               1617 fs/dcache.c    	sb->s_root = NULL;
sb               1620 fs/dcache.c    	while (!hlist_bl_empty(&sb->s_roots)) {
sb               1621 fs/dcache.c    		dentry = dget(hlist_bl_entry(hlist_bl_first(&sb->s_roots), struct dentry, d_hash));
sb               1682 fs/dcache.c    struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name)
sb               1731 fs/dcache.c    	dentry->d_sb = sb;
sb               1784 fs/dcache.c    struct dentry *d_alloc_anon(struct super_block *sb)
sb               1786 fs/dcache.c    	return __d_alloc(sb, NULL);
sb               1815 fs/dcache.c    struct dentry *d_alloc_pseudo(struct super_block *sb, const struct qstr *name)
sb               1817 fs/dcache.c    	struct dentry *dentry = __d_alloc(sb, name);
sb                 65 fs/debugfs/inode.c static struct inode *debugfs_get_inode(struct super_block *sb)
sb                 67 fs/debugfs/inode.c 	struct inode *inode = new_inode(sb);
sb                148 fs/debugfs/inode.c static int debugfs_apply_options(struct super_block *sb)
sb                150 fs/debugfs/inode.c 	struct debugfs_fs_info *fsi = sb->s_fs_info;
sb                151 fs/debugfs/inode.c 	struct inode *inode = d_inode(sb->s_root);
sb                163 fs/debugfs/inode.c static int debugfs_remount(struct super_block *sb, int *flags, char *data)
sb                166 fs/debugfs/inode.c 	struct debugfs_fs_info *fsi = sb->s_fs_info;
sb                168 fs/debugfs/inode.c 	sync_filesystem(sb);
sb                173 fs/debugfs/inode.c 	debugfs_apply_options(sb);
sb                231 fs/debugfs/inode.c static int debug_fill_super(struct super_block *sb, void *data, int silent)
sb                238 fs/debugfs/inode.c 	sb->s_fs_info = fsi;
sb                248 fs/debugfs/inode.c 	err  =  simple_fill_super(sb, DEBUGFS_MAGIC, debug_files);
sb                252 fs/debugfs/inode.c 	sb->s_op = &debugfs_super_operations;
sb                253 fs/debugfs/inode.c 	sb->s_d_op = &debugfs_dops;
sb                255 fs/debugfs/inode.c 	debugfs_apply_options(sb);
sb                261 fs/debugfs/inode.c 	sb->s_fs_info = NULL;
sb                122 fs/devpts/inode.c 	struct super_block *sb;
sb                126 fs/devpts/inode.c static inline struct pts_fs_info *DEVPTS_SB(struct super_block *sb)
sb                128 fs/devpts/inode.c 	return sb->s_fs_info;
sb                133 fs/devpts/inode.c 	struct super_block *sb;
sb                142 fs/devpts/inode.c 	sb = path->mnt->mnt_sb;
sb                143 fs/devpts/inode.c 	if ((sb->s_magic != DEVPTS_SUPER_MAGIC) ||
sb                144 fs/devpts/inode.c 	    (path->mnt->mnt_root != sb->s_root))
sb                203 fs/devpts/inode.c 	struct super_block *sb;
sb                222 fs/devpts/inode.c 	sb = path.mnt->mnt_sb;
sb                223 fs/devpts/inode.c 	atomic_inc(&sb->s_active);
sb                224 fs/devpts/inode.c 	result = DEVPTS_SB(sb);
sb                233 fs/devpts/inode.c 	deactivate_super(fsi->sb);
sb                322 fs/devpts/inode.c static int mknod_ptmx(struct super_block *sb)
sb                328 fs/devpts/inode.c 	struct dentry *root = sb->s_root;
sb                329 fs/devpts/inode.c 	struct pts_fs_info *fsi = DEVPTS_SB(sb);
sb                351 fs/devpts/inode.c 	inode = new_inode(sb);
sb                384 fs/devpts/inode.c static int devpts_remount(struct super_block *sb, int *flags, char *data)
sb                387 fs/devpts/inode.c 	struct pts_fs_info *fsi = DEVPTS_SB(sb);
sb                428 fs/devpts/inode.c static void *new_pts_fs_info(struct super_block *sb)
sb                439 fs/devpts/inode.c 	fsi->sb = sb;
sb                508 fs/devpts/inode.c static void devpts_kill_sb(struct super_block *sb)
sb                510 fs/devpts/inode.c 	struct pts_fs_info *fsi = DEVPTS_SB(sb);
sb                515 fs/devpts/inode.c 	kill_litter_super(sb);
sb                565 fs/devpts/inode.c 	struct super_block *sb = fsi->sb;
sb                571 fs/devpts/inode.c 	root = sb->s_root;
sb                574 fs/devpts/inode.c 	inode = new_inode(sb);
sb                612 fs/direct-io.c int sb_init_dio_done_wq(struct super_block *sb)
sb                617 fs/direct-io.c 						      sb->s_id);
sb                623 fs/direct-io.c 	old = cmpxchg(&sb->s_dio_done_wq, NULL, wq);
sb                632 fs/direct-io.c 	struct super_block *sb = dio->inode->i_sb;
sb                637 fs/direct-io.c 	if (!sb->s_dio_done_wq)
sb                638 fs/direct-io.c 		return sb_init_dio_done_wq(sb);
sb                 17 fs/drop_caches.c static void drop_pagecache_sb(struct super_block *sb, void *unused)
sb                 21 fs/drop_caches.c 	spin_lock(&sb->s_inode_list_lock);
sb                 22 fs/drop_caches.c 	list_for_each_entry(inode, &sb->s_inodes, i_sb_list) {
sb                 36 fs/drop_caches.c 		spin_unlock(&sb->s_inode_list_lock);
sb                 43 fs/drop_caches.c 		spin_lock(&sb->s_inode_list_lock);
sb                 45 fs/drop_caches.c 	spin_unlock(&sb->s_inode_list_lock);
sb               2020 fs/ecryptfs/crypto.c 					 struct super_block *sb,
sb               2024 fs/ecryptfs/crypto.c 		&ecryptfs_superblock_to_private(sb)->mount_crypt_stat;
sb                474 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_superblock_to_private(struct super_block *sb)
sb                476 fs/ecryptfs/ecryptfs_kernel.h 	return (struct ecryptfs_sb_info *)sb->s_fs_info;
sb                480 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_set_superblock_private(struct super_block *sb,
sb                483 fs/ecryptfs/ecryptfs_kernel.h 	sb->s_fs_info = sb_info;
sb                487 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_superblock_to_lower(struct super_block *sb)
sb                489 fs/ecryptfs/ecryptfs_kernel.h 	return ((struct ecryptfs_sb_info *)sb->s_fs_info)->wsi_sb;
sb                493 fs/ecryptfs/ecryptfs_kernel.h ecryptfs_set_superblock_lower(struct super_block *sb,
sb                496 fs/ecryptfs/ecryptfs_kernel.h 	((struct ecryptfs_sb_info *)sb->s_fs_info)->wsi_sb = lower_sb;
sb                561 fs/ecryptfs/ecryptfs_kernel.h 				 struct super_block *sb);
sb                567 fs/ecryptfs/ecryptfs_kernel.h 					 struct super_block *sb,
sb                 50 fs/ecryptfs/file.c 	struct super_block *sb;
sb                 68 fs/ecryptfs/file.c 						  buf->sb, lower_name,
sb                109 fs/ecryptfs/file.c 		.sb = inode->i_sb,
sb                 73 fs/ecryptfs/inode.c 					  struct super_block *sb)
sb                 77 fs/ecryptfs/inode.c 	if (lower_inode->i_sb != ecryptfs_superblock_to_lower(sb))
sb                 81 fs/ecryptfs/inode.c 	inode = iget5_locked(sb, (unsigned long)lower_inode,
sb                 95 fs/ecryptfs/inode.c 				 struct super_block *sb)
sb                 97 fs/ecryptfs/inode.c 	struct inode *inode = __ecryptfs_get_inode(lower_inode, sb);
sb                116 fs/ecryptfs/inode.c 			      struct dentry *dentry, struct super_block *sb)
sb                118 fs/ecryptfs/inode.c 	struct inode *inode = ecryptfs_get_inode(d_inode(lower_dentry), sb);
sb                613 fs/ecryptfs/main.c static void ecryptfs_kill_block_super(struct super_block *sb)
sb                615 fs/ecryptfs/main.c 	struct ecryptfs_sb_info *sb_info = ecryptfs_superblock_to_private(sb);
sb                616 fs/ecryptfs/main.c 	kill_anon_super(sb);
sb                 36 fs/ecryptfs/super.c static struct inode *ecryptfs_alloc_inode(struct super_block *sb)
sb                134 fs/ecryptfs/super.c 	struct super_block *sb = root->d_sb;
sb                136 fs/ecryptfs/super.c 		&ecryptfs_superblock_to_private(sb)->mount_crypt_stat;
sb                 15 fs/efivarfs/inode.c struct inode *efivarfs_get_inode(struct super_block *sb,
sb                 19 fs/efivarfs/inode.c 	struct inode *inode = new_inode(sb);
sb                 14 fs/efivarfs/internal.h extern struct inode *efivarfs_get_inode(struct super_block *sb,
sb                109 fs/efivarfs/super.c 	struct super_block *sb = (struct super_block *)data;
sb                112 fs/efivarfs/super.c 	struct dentry *dentry, *root = sb->s_root;
sb                144 fs/efivarfs/super.c 	inode = efivarfs_get_inode(sb, d_inode(root), S_IFREG | 0644, 0,
sb                190 fs/efivarfs/super.c static int efivarfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                196 fs/efivarfs/super.c 	sb->s_maxbytes          = MAX_LFS_FILESIZE;
sb                197 fs/efivarfs/super.c 	sb->s_blocksize         = PAGE_SIZE;
sb                198 fs/efivarfs/super.c 	sb->s_blocksize_bits    = PAGE_SHIFT;
sb                199 fs/efivarfs/super.c 	sb->s_magic             = EFIVARFS_MAGIC;
sb                200 fs/efivarfs/super.c 	sb->s_op                = &efivarfs_ops;
sb                201 fs/efivarfs/super.c 	sb->s_d_op		= &efivarfs_d_ops;
sb                202 fs/efivarfs/super.c 	sb->s_time_gran         = 1;
sb                204 fs/efivarfs/super.c 	inode = efivarfs_get_inode(sb, NULL, S_IFDIR | 0755, 0, true);
sb                210 fs/efivarfs/super.c 	sb->s_root = root;
sb                216 fs/efivarfs/super.c 	err = efivar_init(efivarfs_callback, (void *)sb, true, &efivarfs_list);
sb                238 fs/efivarfs/super.c static void efivarfs_kill_sb(struct super_block *sb)
sb                240 fs/efivarfs/super.c 	kill_litter_super(sb);
sb                123 fs/efs/efs.h   static inline struct efs_sb_info *SUPER_INFO(struct super_block *sb)
sb                125 fs/efs/efs.h   	return sb->s_fs_info;
sb                140 fs/efs/efs.h   extern struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                142 fs/efs/efs.h   extern struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                 54 fs/efs/inode.c 	struct efs_sb_info    *sb = SUPER_INFO(super);
sb                 83 fs/efs/inode.c 	block = sb->fs_start + sb->first_block + 
sb                 84 fs/efs/inode.c 		(sb->group_size * (inode_index / sb->inode_blocks)) +
sb                 85 fs/efs/inode.c 		(inode_index % sb->inode_blocks);
sb                179 fs/efs/inode.c efs_extent_check(efs_extent *ptr, efs_block_t block, struct efs_sb_info *sb) {
sb                193 fs/efs/inode.c 		return(sb->fs_start + start + block - offset);
sb                200 fs/efs/inode.c 	struct efs_sb_info    *sb = SUPER_INFO(inode->i_sb);
sb                213 fs/efs/inode.c 		if ((result = efs_extent_check(&in->extents[last], block, sb)))
sb                230 fs/efs/inode.c 			if ((result = efs_extent_check(&in->extents[cur], block, sb))) {
sb                270 fs/efs/inode.c 		iblock = sb->fs_start + in->extents[dirext].cooked.ex_bn +
sb                302 fs/efs/inode.c 		if ((result = efs_extent_check(&ext, block, sb))) {
sb                 77 fs/efs/namei.c static struct inode *efs_nfs_get_inode(struct super_block *sb, u64 ino,
sb                 84 fs/efs/namei.c 	inode = efs_iget(sb, ino);
sb                 96 fs/efs/namei.c struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                 99 fs/efs/namei.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                103 fs/efs/namei.c struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                106 fs/efs/namei.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                 68 fs/efs/super.c static struct inode *efs_alloc_inode(struct super_block *sb)
sb                110 fs/efs/super.c static int efs_remount(struct super_block *sb, int *flags, char *data)
sb                112 fs/efs/super.c 	sync_filesystem(sb);
sb                233 fs/efs/super.c static int efs_validate_super(struct efs_sb_info *sb, struct efs_super *super) {
sb                238 fs/efs/super.c 	sb->fs_magic     = be32_to_cpu(super->fs_magic);
sb                239 fs/efs/super.c 	sb->total_blocks = be32_to_cpu(super->fs_size);
sb                240 fs/efs/super.c 	sb->first_block  = be32_to_cpu(super->fs_firstcg);
sb                241 fs/efs/super.c 	sb->group_size   = be32_to_cpu(super->fs_cgfsize);
sb                242 fs/efs/super.c 	sb->data_free    = be32_to_cpu(super->fs_tfree);
sb                243 fs/efs/super.c 	sb->inode_free   = be32_to_cpu(super->fs_tinode);
sb                244 fs/efs/super.c 	sb->inode_blocks = be16_to_cpu(super->fs_cgisize);
sb                245 fs/efs/super.c 	sb->total_groups = be16_to_cpu(super->fs_ncg);
sb                252 fs/efs/super.c 	struct efs_sb_info *sb;
sb                256 fs/efs/super.c  	sb = kzalloc(sizeof(struct efs_sb_info), GFP_KERNEL);
sb                257 fs/efs/super.c 	if (!sb)
sb                259 fs/efs/super.c 	s->s_fs_info = sb;
sb                283 fs/efs/super.c 	sb->fs_start = efs_validate_vh((struct volume_header *) bh->b_data);
sb                286 fs/efs/super.c 	if (sb->fs_start == -1) {
sb                290 fs/efs/super.c 	bh = sb_bread(s, sb->fs_start + EFS_SUPER);
sb                296 fs/efs/super.c 	if (efs_validate_super(sb, (struct efs_super *) bh->b_data)) {
sb                299 fs/efs/super.c 			sb->fs_start + EFS_SUPER);
sb                330 fs/efs/super.c 	struct super_block *sb = dentry->d_sb;
sb                331 fs/efs/super.c 	struct efs_sb_info *sbi = SUPER_INFO(sb);
sb                332 fs/efs/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                 18 fs/erofs/compress.h 	struct super_block *sb;
sb                 35 fs/erofs/data.c struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr)
sb                 37 fs/erofs/data.c 	struct address_space *const mapping = sb->s_bdev->bd_inode->i_mapping;
sb                135 fs/erofs/data.c 	struct super_block *const sb = inode->i_sb;
sb                224 fs/erofs/data.c 		bio_set_dev(bio, sb->s_bdev);
sb                128 fs/erofs/decompressor.c 	if (EROFS_SB(rq->sb)->feature_incompat &
sb                164 fs/erofs/decompressor.c 		erofs_err(rq->sb, "failed to decompress, in[%u, %u] out[%u]",
sb                170 fs/erofs/inode.c 	struct super_block *sb = inode->i_sb;
sb                180 fs/erofs/inode.c 	inode_loc = iloc(EROFS_SB(sb), vi->nid);
sb                187 fs/erofs/inode.c 	page = erofs_get_meta_page(sb, blkaddr);
sb                190 fs/erofs/inode.c 		erofs_err(sb, "failed to get inode (nid: %llu) page, err %ld",
sb                261 fs/erofs/inode.c static inline struct inode *erofs_iget_locked(struct super_block *sb,
sb                266 fs/erofs/inode.c 	return iget5_locked(sb, hashval, erofs_ilookup_test_actor,
sb                270 fs/erofs/inode.c struct inode *erofs_iget(struct super_block *sb,
sb                274 fs/erofs/inode.c 	struct inode *inode = erofs_iget_locked(sb, nid);
sb                 25 fs/erofs/internal.h __printf(3, 4) void _erofs_err(struct super_block *sb,
sb                 27 fs/erofs/internal.h #define erofs_err(sb, fmt, ...)	\
sb                 28 fs/erofs/internal.h 	_erofs_err(sb, __func__, fmt "\n", ##__VA_ARGS__)
sb                 29 fs/erofs/internal.h __printf(3, 4) void _erofs_info(struct super_block *sb,
sb                 31 fs/erofs/internal.h #define erofs_info(sb, fmt, ...) \
sb                 32 fs/erofs/internal.h 	_erofs_info(sb, __func__, fmt "\n", ##__VA_ARGS__)
sb                 93 fs/erofs/internal.h #define EROFS_SB(sb) ((struct erofs_sb_info *)(sb)->s_fs_info)
sb                202 fs/erofs/internal.h #define ROOT_NID(sb)		((sb)->root_nid)
sb                353 fs/erofs/internal.h struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr);
sb                371 fs/erofs/internal.h struct inode *erofs_iget(struct super_block *sb, erofs_nid_t nid, bool dir);
sb                404 fs/erofs/internal.h struct erofs_workgroup *erofs_find_workgroup(struct super_block *sb,
sb                406 fs/erofs/internal.h int erofs_register_workgroup(struct super_block *sb,
sb                409 fs/erofs/internal.h void erofs_shrinker_register(struct super_block *sb);
sb                410 fs/erofs/internal.h void erofs_shrinker_unregister(struct super_block *sb);
sb                420 fs/erofs/internal.h static inline void erofs_shrinker_register(struct super_block *sb) {}
sb                421 fs/erofs/internal.h static inline void erofs_shrinker_unregister(struct super_block *sb) {}
sb                 19 fs/erofs/super.c void _erofs_err(struct super_block *sb, const char *function,
sb                 30 fs/erofs/super.c 	pr_err("(device %s): %s: %pV", sb->s_id, function, &vaf);
sb                 34 fs/erofs/super.c void _erofs_info(struct super_block *sb, const char *function,
sb                 45 fs/erofs/super.c 	pr_info("(device %s): %pV", sb->s_id, &vaf);
sb                 56 fs/erofs/super.c static struct inode *erofs_alloc_inode(struct super_block *sb)
sb                 81 fs/erofs/super.c static bool check_layout_compatibility(struct super_block *sb,
sb                 86 fs/erofs/super.c 	EROFS_SB(sb)->feature_incompat = feature;
sb                 90 fs/erofs/super.c 		erofs_err(sb,
sb                 98 fs/erofs/super.c static int erofs_read_superblock(struct super_block *sb)
sb                107 fs/erofs/super.c 	page = read_mapping_page(sb->s_bdev->bd_inode->i_mapping, 0, NULL);
sb                109 fs/erofs/super.c 		erofs_err(sb, "cannot read erofs superblock");
sb                113 fs/erofs/super.c 	sbi = EROFS_SB(sb);
sb                120 fs/erofs/super.c 		erofs_err(sb, "cannot find valid erofs superblock");
sb                127 fs/erofs/super.c 		erofs_err(sb, "blksize %u isn't supported on this platform",
sb                132 fs/erofs/super.c 	if (!check_layout_compatibility(sb, dsb))
sb                147 fs/erofs/super.c 	memcpy(&sb->s_uuid, dsb->uuid, sizeof(dsb->uuid));
sb                152 fs/erofs/super.c 		erofs_err(sb, "bad volume name without NIL terminator");
sb                164 fs/erofs/super.c static int erofs_build_cache_strategy(struct super_block *sb,
sb                167 fs/erofs/super.c 	struct erofs_sb_info *sbi = EROFS_SB(sb);
sb                172 fs/erofs/super.c 		erofs_err(sb, "Not enough memory to store cache strategy");
sb                183 fs/erofs/super.c 		erofs_err(sb, "Unrecognized cache strategy \"%s\"", cs);
sb                190 fs/erofs/super.c static int erofs_build_cache_strategy(struct super_block *sb,
sb                193 fs/erofs/super.c 	erofs_info(sb, "EROFS compression is disabled, so cache strategy is ignored");
sb                231 fs/erofs/super.c static int erofs_parse_options(struct super_block *sb, char *options)
sb                252 fs/erofs/super.c 			set_opt(EROFS_SB(sb), XATTR_USER);
sb                255 fs/erofs/super.c 			clear_opt(EROFS_SB(sb), XATTR_USER);
sb                259 fs/erofs/super.c 			erofs_info(sb, "user_xattr options not supported");
sb                262 fs/erofs/super.c 			erofs_info(sb, "nouser_xattr options not supported");
sb                267 fs/erofs/super.c 			set_opt(EROFS_SB(sb), POSIX_ACL);
sb                270 fs/erofs/super.c 			clear_opt(EROFS_SB(sb), POSIX_ACL);
sb                274 fs/erofs/super.c 			erofs_info(sb, "acl options not supported");
sb                277 fs/erofs/super.c 			erofs_info(sb, "noacl options not supported");
sb                281 fs/erofs/super.c 			err = erofs_build_cache_strategy(sb, args);
sb                286 fs/erofs/super.c 			erofs_err(sb, "Unrecognized mount option \"%s\" or missing value", p);
sb                331 fs/erofs/super.c static int erofs_init_managed_cache(struct super_block *sb)
sb                333 fs/erofs/super.c 	struct erofs_sb_info *const sbi = EROFS_SB(sb);
sb                334 fs/erofs/super.c 	struct inode *const inode = new_inode(sb);
sb                349 fs/erofs/super.c static int erofs_init_managed_cache(struct super_block *sb) { return 0; }
sb                352 fs/erofs/super.c static int erofs_fill_super(struct super_block *sb, void *data, int silent)
sb                358 fs/erofs/super.c 	sb->s_magic = EROFS_SUPER_MAGIC;
sb                360 fs/erofs/super.c 	if (!sb_set_blocksize(sb, EROFS_BLKSIZ)) {
sb                361 fs/erofs/super.c 		erofs_err(sb, "failed to set erofs blksize");
sb                369 fs/erofs/super.c 	sb->s_fs_info = sbi;
sb                370 fs/erofs/super.c 	err = erofs_read_superblock(sb);
sb                374 fs/erofs/super.c 	sb->s_flags |= SB_RDONLY | SB_NOATIME;
sb                375 fs/erofs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                376 fs/erofs/super.c 	sb->s_time_gran = 1;
sb                378 fs/erofs/super.c 	sb->s_op = &erofs_sops;
sb                381 fs/erofs/super.c 	sb->s_xattr = erofs_xattr_handlers;
sb                386 fs/erofs/super.c 	err = erofs_parse_options(sb, data);
sb                391 fs/erofs/super.c 		sb->s_flags |= SB_POSIXACL;
sb                393 fs/erofs/super.c 		sb->s_flags &= ~SB_POSIXACL;
sb                400 fs/erofs/super.c 	inode = erofs_iget(sb, ROOT_NID(sbi), true);
sb                405 fs/erofs/super.c 		erofs_err(sb, "rootino(nid %llu) is not a directory(i_mode %o)",
sb                411 fs/erofs/super.c 	sb->s_root = d_make_root(inode);
sb                412 fs/erofs/super.c 	if (!sb->s_root)
sb                415 fs/erofs/super.c 	erofs_shrinker_register(sb);
sb                417 fs/erofs/super.c 	err = erofs_init_managed_cache(sb);
sb                421 fs/erofs/super.c 	erofs_info(sb, "mounted with opts: %s, root inode @ nid %llu.",
sb                436 fs/erofs/super.c static void erofs_kill_sb(struct super_block *sb)
sb                440 fs/erofs/super.c 	WARN_ON(sb->s_magic != EROFS_SUPER_MAGIC);
sb                442 fs/erofs/super.c 	kill_block_super(sb);
sb                444 fs/erofs/super.c 	sbi = EROFS_SB(sb);
sb                448 fs/erofs/super.c 	sb->s_fs_info = NULL;
sb                452 fs/erofs/super.c static void erofs_put_super(struct super_block *sb)
sb                454 fs/erofs/super.c 	struct erofs_sb_info *const sbi = EROFS_SB(sb);
sb                458 fs/erofs/super.c 	erofs_shrinker_unregister(sb);
sb                527 fs/erofs/super.c 	struct super_block *sb = dentry->d_sb;
sb                528 fs/erofs/super.c 	struct erofs_sb_info *sbi = EROFS_SB(sb);
sb                529 fs/erofs/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                531 fs/erofs/super.c 	buf->f_type = sb->s_magic;
sb                577 fs/erofs/super.c static int erofs_remount(struct super_block *sb, int *flags, char *data)
sb                579 fs/erofs/super.c 	struct erofs_sb_info *sbi = EROFS_SB(sb);
sb                583 fs/erofs/super.c 	DBG_BUGON(!sb_rdonly(sb));
sb                584 fs/erofs/super.c 	err = erofs_parse_options(sb, data);
sb                589 fs/erofs/super.c 		sb->s_flags |= SB_POSIXACL;
sb                591 fs/erofs/super.c 		sb->s_flags &= ~SB_POSIXACL;
sb                 61 fs/erofs/utils.c struct erofs_workgroup *erofs_find_workgroup(struct super_block *sb,
sb                 64 fs/erofs/utils.c 	struct erofs_sb_info *sbi = EROFS_SB(sb);
sb                 86 fs/erofs/utils.c int erofs_register_workgroup(struct super_block *sb,
sb                103 fs/erofs/utils.c 	sbi = EROFS_SB(sb);
sb                232 fs/erofs/utils.c void erofs_shrinker_register(struct super_block *sb)
sb                234 fs/erofs/utils.c 	struct erofs_sb_info *sbi = EROFS_SB(sb);
sb                243 fs/erofs/utils.c void erofs_shrinker_unregister(struct super_block *sb)
sb                245 fs/erofs/utils.c 	struct erofs_sb_info *const sbi = EROFS_SB(sb);
sb                 11 fs/erofs/xattr.c 	struct super_block *sb;
sb                 45 fs/erofs/xattr.c 	struct super_block *sb;
sb                 87 fs/erofs/xattr.c 	sb = inode->i_sb;
sb                 88 fs/erofs/xattr.c 	sbi = EROFS_SB(sb);
sb                 92 fs/erofs/xattr.c 	it.page = erofs_get_meta_page(sb, it.blkaddr);
sb                122 fs/erofs/xattr.c 			it.page = erofs_get_meta_page(sb, ++it.blkaddr);
sb                172 fs/erofs/xattr.c 	it->page = erofs_get_meta_page(it->sb, it->blkaddr);
sb                390 fs/erofs/xattr.c 	struct super_block *const sb = inode->i_sb;
sb                391 fs/erofs/xattr.c 	struct erofs_sb_info *const sbi = EROFS_SB(sb);
sb                405 fs/erofs/xattr.c 			it->it.page = erofs_get_meta_page(sb, blkaddr);
sb                457 fs/erofs/xattr.c 	it.it.sb = inode->i_sb;
sb                613 fs/erofs/xattr.c 	struct super_block *const sb = inode->i_sb;
sb                614 fs/erofs/xattr.c 	struct erofs_sb_info *const sbi = EROFS_SB(sb);
sb                627 fs/erofs/xattr.c 			it->it.page = erofs_get_meta_page(sb, blkaddr);
sb                662 fs/erofs/xattr.c 	it.it.sb = dentry->d_sb;
sb                755 fs/erofs/zdata.c static int z_erofs_decompress_pcluster(struct super_block *sb,
sb                759 fs/erofs/zdata.c 	struct erofs_sb_info *const sbi = EROFS_SB(sb);
sb                896 fs/erofs/zdata.c 					.sb = sb,
sb                956 fs/erofs/zdata.c static void z_erofs_vle_unzip_all(struct super_block *sb,
sb                974 fs/erofs/zdata.c 		z_erofs_decompress_pcluster(sb, pcl, pagepool);
sb                985 fs/erofs/zdata.c 	z_erofs_vle_unzip_all(iosb->sb, &iosb->io, &pagepool);
sb               1115 fs/erofs/zdata.c static struct z_erofs_unzip_io *jobqueue_init(struct super_block *sb,
sb               1135 fs/erofs/zdata.c 	iosb->sb = sb;
sb               1149 fs/erofs/zdata.c static void *jobqueueset_init(struct super_block *sb,
sb               1159 fs/erofs/zdata.c 	q[JQ_BYPASS] = jobqueue_init(sb, fgq + JQ_BYPASS, true);
sb               1162 fs/erofs/zdata.c 	q[JQ_SUBMIT] = jobqueue_init(sb, fgq + JQ_SUBMIT, forcefg);
sb               1202 fs/erofs/zdata.c static bool z_erofs_vle_submit_all(struct super_block *sb,
sb               1208 fs/erofs/zdata.c 	struct erofs_sb_info *const sbi __maybe_unused = EROFS_SB(sb);
sb               1224 fs/erofs/zdata.c 	bi_private = jobqueueset_init(sb, qtail, q, fgq, force_fg);
sb               1272 fs/erofs/zdata.c 			bio_set_dev(bio, sb->s_bdev);
sb               1307 fs/erofs/zdata.c static void z_erofs_submit_and_unzip(struct super_block *sb,
sb               1314 fs/erofs/zdata.c 	if (!z_erofs_vle_submit_all(sb, clt->owned_head,
sb               1319 fs/erofs/zdata.c 	z_erofs_vle_unzip_all(sb, &io[JQ_BYPASS], pagepool);
sb               1329 fs/erofs/zdata.c 	z_erofs_vle_unzip_all(sb, &io[JQ_SUBMIT], pagepool);
sb                 99 fs/erofs/zdata.h 	struct super_block *sb;
sb                 32 fs/erofs/zmap.c 	struct super_block *const sb = inode->i_sb;
sb                 51 fs/erofs/zmap.c 	pos = ALIGN(iloc(EROFS_SB(sb), vi->nid) + vi->inode_isize +
sb                 53 fs/erofs/zmap.c 	page = erofs_get_meta_page(sb, erofs_blknr(pos));
sb                 67 fs/erofs/zmap.c 		erofs_err(sb, "unknown compression format %u for nid %llu, please upgrade kernel",
sb                 78 fs/erofs/zmap.c 		erofs_err(sb, "unsupported physical clusterbits %u for nid %llu, please upgrade kernel",
sb                112 fs/erofs/zmap.c 	struct super_block *const sb = m->inode->i_sb;
sb                130 fs/erofs/zmap.c 	mpage = erofs_get_meta_page(sb, eblk);
sb                 41 fs/ext2/balloc.c struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb,
sb                 48 fs/ext2/balloc.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                 51 fs/ext2/balloc.c 		ext2_error (sb, "ext2_get_group_desc",
sb                 59 fs/ext2/balloc.c 	group_desc = block_group >> EXT2_DESC_PER_BLOCK_BITS(sb);
sb                 60 fs/ext2/balloc.c 	offset = block_group & (EXT2_DESC_PER_BLOCK(sb) - 1);
sb                 62 fs/ext2/balloc.c 		ext2_error (sb, "ext2_get_group_desc",
sb                 75 fs/ext2/balloc.c static int ext2_valid_block_bitmap(struct super_block *sb,
sb                 85 fs/ext2/balloc.c 	group_first_block = ext2_group_first_block_no(sb, block_group);
sb                105 fs/ext2/balloc.c 				offset + EXT2_SB(sb)->s_itb_per_group,
sb                107 fs/ext2/balloc.c 	if (next_zero_bit >= offset + EXT2_SB(sb)->s_itb_per_group)
sb                112 fs/ext2/balloc.c 	ext2_error(sb, __func__,
sb                126 fs/ext2/balloc.c read_block_bitmap(struct super_block *sb, unsigned int block_group)
sb                132 fs/ext2/balloc.c 	desc = ext2_get_group_desc(sb, block_group, NULL);
sb                136 fs/ext2/balloc.c 	bh = sb_getblk(sb, bitmap_blk);
sb                138 fs/ext2/balloc.c 		ext2_error(sb, __func__,
sb                149 fs/ext2/balloc.c 		ext2_error(sb, __func__,
sb                156 fs/ext2/balloc.c 	ext2_valid_block_bitmap(sb, desc, block_group, bh);
sb                164 fs/ext2/balloc.c static void group_adjust_blocks(struct super_block *sb, int group_no,
sb                168 fs/ext2/balloc.c 		struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                267 fs/ext2/balloc.c 			unsigned int group, struct super_block * sb)
sb                271 fs/ext2/balloc.c 	group_first_block = ext2_group_first_block_no(sb, group);
sb                272 fs/ext2/balloc.c 	group_last_block = group_first_block + EXT2_BLOCKS_PER_GROUP(sb) - 1;
sb                331 fs/ext2/balloc.c void ext2_rsv_window_add(struct super_block *sb,
sb                334 fs/ext2/balloc.c 	struct rb_root *root = &EXT2_SB(sb)->s_rsv_window_root;
sb                370 fs/ext2/balloc.c static void rsv_window_remove(struct super_block *sb,
sb                376 fs/ext2/balloc.c 	rb_erase(&rsv->rsv_node, &EXT2_SB(sb)->s_rsv_window_root);
sb                416 fs/ext2/balloc.c 	struct super_block *sb = inode->i_sb;
sb                430 fs/ext2/balloc.c 		if (!test_opt(sb, RESERVATION))
sb                487 fs/ext2/balloc.c 	struct super_block * sb = inode->i_sb;
sb                488 fs/ext2/balloc.c 	struct ext2_sb_info * sbi = EXT2_SB(sb);
sb                494 fs/ext2/balloc.c 		ext2_error (sb, "ext2_free_blocks",
sb                505 fs/ext2/balloc.c 		      EXT2_BLOCKS_PER_GROUP(sb);
sb                507 fs/ext2/balloc.c 		      EXT2_BLOCKS_PER_GROUP(sb);
sb                512 fs/ext2/balloc.c 	if (bit + count > EXT2_BLOCKS_PER_GROUP(sb)) {
sb                513 fs/ext2/balloc.c 		overflow = bit + count - EXT2_BLOCKS_PER_GROUP(sb);
sb                517 fs/ext2/balloc.c 	bitmap_bh = read_block_bitmap(sb, block_group);
sb                521 fs/ext2/balloc.c 	desc = ext2_get_group_desc (sb, block_group, &bh2);
sb                531 fs/ext2/balloc.c 		ext2_error (sb, "ext2_free_blocks",
sb                541 fs/ext2/balloc.c 			ext2_error(sb, __func__,
sb                549 fs/ext2/balloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                552 fs/ext2/balloc.c 	group_adjust_blocks(sb, block_group, desc, bh2, group_freed);
sb                664 fs/ext2/balloc.c ext2_try_to_allocate(struct super_block *sb, int group,
sb                675 fs/ext2/balloc.c 		group_first_block = ext2_group_first_block_no(sb, group);
sb                682 fs/ext2/balloc.c 		if (end > EXT2_BLOCKS_PER_GROUP(sb))
sb                684 fs/ext2/balloc.c 			end = EXT2_BLOCKS_PER_GROUP(sb);
sb                694 fs/ext2/balloc.c 		end = EXT2_BLOCKS_PER_GROUP(sb);
sb                697 fs/ext2/balloc.c 	BUG_ON(start > EXT2_BLOCKS_PER_GROUP(sb));
sb                716 fs/ext2/balloc.c 	if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group), grp_goal,
sb                731 fs/ext2/balloc.c 		&& !ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group),
sb                779 fs/ext2/balloc.c 				struct super_block * sb,
sb                842 fs/ext2/balloc.c 		rsv_window_remove(sb, my_rsv);
sb                856 fs/ext2/balloc.c 		ext2_rsv_window_add(sb, my_rsv);
sb                899 fs/ext2/balloc.c 		ext2_grpblk_t grp_goal, struct super_block *sb,
sb                905 fs/ext2/balloc.c 	struct rb_root *fs_rsv_root = &EXT2_SB(sb)->s_rsv_window_root;
sb                908 fs/ext2/balloc.c 	spinlock_t *rsv_lock = &EXT2_SB(sb)->s_rsv_window_lock;
sb                910 fs/ext2/balloc.c 	group_first_block = ext2_group_first_block_no(sb, group);
sb                911 fs/ext2/balloc.c 	group_end_block = group_first_block + (EXT2_BLOCKS_PER_GROUP(sb) - 1);
sb                969 fs/ext2/balloc.c 	ret = find_next_reservable_window(search_head, my_rsv, sb,
sb                974 fs/ext2/balloc.c 			rsv_window_remove(sb, my_rsv);
sb               1000 fs/ext2/balloc.c 			rsv_window_remove(sb, my_rsv);
sb               1041 fs/ext2/balloc.c 			struct super_block *sb, int size)
sb               1045 fs/ext2/balloc.c 	spinlock_t *rsv_lock = &EXT2_SB(sb)->s_rsv_window_lock;
sb               1092 fs/ext2/balloc.c ext2_try_to_allocate_with_rsv(struct super_block *sb, unsigned int group,
sb               1108 fs/ext2/balloc.c 		return ext2_try_to_allocate(sb, group, bitmap_bh,
sb               1117 fs/ext2/balloc.c 	group_first_block = ext2_group_first_block_no(sb, group);
sb               1118 fs/ext2/balloc.c 	group_last_block = group_first_block + (EXT2_BLOCKS_PER_GROUP(sb) - 1);
sb               1138 fs/ext2/balloc.c 						grp_goal, group, sb)) {
sb               1141 fs/ext2/balloc.c 			ret = alloc_new_reservation(my_rsv, grp_goal, sb,
sb               1147 fs/ext2/balloc.c 							grp_goal, group, sb))
sb               1154 fs/ext2/balloc.c 				try_to_extend_reservation(my_rsv, sb,
sb               1160 fs/ext2/balloc.c 			rsv_window_dump(&EXT2_SB(sb)->s_rsv_window_root, 1);
sb               1163 fs/ext2/balloc.c 		ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal,
sb               1243 fs/ext2/balloc.c 	struct super_block *sb;
sb               1255 fs/ext2/balloc.c 	sb = inode->i_sb;
sb               1266 fs/ext2/balloc.c 	sbi = EXT2_SB(sb);
sb               1267 fs/ext2/balloc.c 	es = EXT2_SB(sb)->s_es;
sb               1296 fs/ext2/balloc.c 			EXT2_BLOCKS_PER_GROUP(sb);
sb               1299 fs/ext2/balloc.c 	gdp = ext2_get_group_desc(sb, group_no, &gdp_bh);
sb               1315 fs/ext2/balloc.c 				EXT2_BLOCKS_PER_GROUP(sb));
sb               1316 fs/ext2/balloc.c 		bitmap_bh = read_block_bitmap(sb, group_no);
sb               1319 fs/ext2/balloc.c 		grp_alloc_blk = ext2_try_to_allocate_with_rsv(sb, group_no,
sb               1326 fs/ext2/balloc.c 	ngroups = EXT2_SB(sb)->s_groups_count;
sb               1337 fs/ext2/balloc.c 		gdp = ext2_get_group_desc(sb, group_no, &gdp_bh);
sb               1357 fs/ext2/balloc.c 		bitmap_bh = read_block_bitmap(sb, group_no);
sb               1363 fs/ext2/balloc.c 		grp_alloc_blk = ext2_try_to_allocate_with_rsv(sb, group_no,
sb               1390 fs/ext2/balloc.c 	ret_block = grp_alloc_blk + ext2_group_first_block_no(sb, group_no);
sb               1395 fs/ext2/balloc.c 		      EXT2_SB(sb)->s_itb_per_group) ||
sb               1397 fs/ext2/balloc.c 		      EXT2_SB(sb)->s_itb_per_group)) {
sb               1398 fs/ext2/balloc.c 		ext2_error(sb, "ext2_new_blocks",
sb               1413 fs/ext2/balloc.c 		ext2_error(sb, "ext2_new_blocks",
sb               1420 fs/ext2/balloc.c 	group_adjust_blocks(sb, group_no, gdp, gdp_bh, -num);
sb               1424 fs/ext2/balloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb               1466 fs/ext2/balloc.c unsigned long ext2_count_free_blocks (struct super_block * sb)
sb               1475 fs/ext2/balloc.c 	es = EXT2_SB(sb)->s_es;
sb               1479 fs/ext2/balloc.c 	for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) {
sb               1481 fs/ext2/balloc.c 		desc = ext2_get_group_desc (sb, i, NULL);
sb               1485 fs/ext2/balloc.c 		bitmap_bh = read_block_bitmap(sb, i);
sb               1489 fs/ext2/balloc.c 		x = ext2_count_free(bitmap_bh, sb->s_blocksize);
sb               1500 fs/ext2/balloc.c         for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) {
sb               1501 fs/ext2/balloc.c                 desc = ext2_get_group_desc (sb, i, NULL);
sb               1535 fs/ext2/balloc.c int ext2_bg_has_super(struct super_block *sb, int group)
sb               1537 fs/ext2/balloc.c 	if (EXT2_HAS_RO_COMPAT_FEATURE(sb,EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER)&&
sb               1552 fs/ext2/balloc.c unsigned long ext2_bg_num_gdb(struct super_block *sb, int group)
sb               1554 fs/ext2/balloc.c 	return ext2_bg_has_super(sb, group) ? EXT2_SB(sb)->s_gdb_count : 0;
sb                118 fs/ext2/dir.c  	struct super_block *sb = dir->i_sb;
sb                121 fs/ext2/dir.c  	u32 max_inumber = le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count);
sb                159 fs/ext2/dir.c  		ext2_error(sb, __func__,
sb                179 fs/ext2/dir.c  		ext2_error(sb, __func__, "bad entry in directory #%lu: : %s - "
sb                188 fs/ext2/dir.c  		ext2_error(sb, "ext2_check_page",
sb                268 fs/ext2/dir.c  	struct super_block *sb = inode->i_sb;
sb                280 fs/ext2/dir.c  		EXT2_HAS_INCOMPAT_FEATURE(sb, EXT2_FEATURE_INCOMPAT_FILETYPE);
sb                288 fs/ext2/dir.c  			ext2_error(sb, __func__,
sb                307 fs/ext2/dir.c  				ext2_error(sb, __func__,
sb                169 fs/ext2/ext2.h static inline struct ext2_sb_info *EXT2_SB(struct super_block *sb)
sb                171 fs/ext2/ext2.h 	return sb->s_fs_info;
sb                398 fs/ext2/ext2.h #define test_opt(sb, opt)		(EXT2_SB(sb)->s_mount_opt & \
sb                513 fs/ext2/ext2.h #define EXT2_HAS_COMPAT_FEATURE(sb,mask)			\
sb                514 fs/ext2/ext2.h 	( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask) )
sb                515 fs/ext2/ext2.h #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask)			\
sb                516 fs/ext2/ext2.h 	( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le32(mask) )
sb                517 fs/ext2/ext2.h #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask)			\
sb                518 fs/ext2/ext2.h 	( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(mask) )
sb                519 fs/ext2/ext2.h #define EXT2_SET_COMPAT_FEATURE(sb,mask)			\
sb                520 fs/ext2/ext2.h 	EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask)
sb                521 fs/ext2/ext2.h #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask)			\
sb                522 fs/ext2/ext2.h 	EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32(mask)
sb                523 fs/ext2/ext2.h #define EXT2_SET_INCOMPAT_FEATURE(sb,mask)			\
sb                524 fs/ext2/ext2.h 	EXT2_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(mask)
sb                525 fs/ext2/ext2.h #define EXT2_CLEAR_COMPAT_FEATURE(sb,mask)			\
sb                526 fs/ext2/ext2.h 	EXT2_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(mask)
sb                527 fs/ext2/ext2.h #define EXT2_CLEAR_RO_COMPAT_FEATURE(sb,mask)			\
sb                528 fs/ext2/ext2.h 	EXT2_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_le32(mask)
sb                529 fs/ext2/ext2.h #define EXT2_CLEAR_INCOMPAT_FEATURE(sb,mask)			\
sb                530 fs/ext2/ext2.h 	EXT2_SB(sb)->s_es->s_feature_incompat &= ~cpu_to_le32(mask)
sb                720 fs/ext2/ext2.h extern int ext2_bg_has_super(struct super_block *sb, int group);
sb                721 fs/ext2/ext2.h extern unsigned long ext2_bg_num_gdb(struct super_block *sb, int group);
sb                731 fs/ext2/ext2.h extern struct ext2_group_desc * ext2_get_group_desc(struct super_block * sb,
sb                735 fs/ext2/ext2.h extern int ext2_should_retry_alloc(struct super_block *sb, int *retries);
sb                737 fs/ext2/ext2.h extern void ext2_rsv_window_add(struct super_block *sb, struct ext2_reserve_window_node *rsv);
sb                778 fs/ext2/ext2.h extern void ext2_update_dynamic_rev (struct super_block *sb);
sb                779 fs/ext2/ext2.h extern void ext2_sync_super(struct super_block *sb, struct ext2_super_block *es,
sb                810 fs/ext2/ext2.h ext2_group_first_block_no(struct super_block *sb, unsigned long group_no)
sb                812 fs/ext2/ext2.h 	return group_no * (ext2_fsblk_t)EXT2_BLOCKS_PER_GROUP(sb) +
sb                813 fs/ext2/ext2.h 		le32_to_cpu(EXT2_SB(sb)->s_es->s_first_data_block);
sb                153 fs/ext2/file.c 	struct super_block *sb = file->f_mapping->host->i_sb;
sb                158 fs/ext2/file.c 		ext2_error(sb, __func__,
sb                 47 fs/ext2/ialloc.c read_inode_bitmap(struct super_block * sb, unsigned long block_group)
sb                 52 fs/ext2/ialloc.c 	desc = ext2_get_group_desc(sb, block_group, NULL);
sb                 56 fs/ext2/ialloc.c 	bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap));
sb                 58 fs/ext2/ialloc.c 		ext2_error(sb, "read_inode_bitmap",
sb                 66 fs/ext2/ialloc.c static void ext2_release_inode(struct super_block *sb, int group, int dir)
sb                 71 fs/ext2/ialloc.c 	desc = ext2_get_group_desc(sb, group, &bh);
sb                 73 fs/ext2/ialloc.c 		ext2_error(sb, "ext2_release_inode",
sb                 78 fs/ext2/ialloc.c 	spin_lock(sb_bgl_lock(EXT2_SB(sb), group));
sb                 82 fs/ext2/ialloc.c 	spin_unlock(sb_bgl_lock(EXT2_SB(sb), group));
sb                 84 fs/ext2/ialloc.c 		percpu_counter_dec(&EXT2_SB(sb)->s_dirs_counter);
sb                106 fs/ext2/ialloc.c 	struct super_block * sb = inode->i_sb;
sb                125 fs/ext2/ialloc.c 	es = EXT2_SB(sb)->s_es;
sb                128 fs/ext2/ialloc.c 	if (ino < EXT2_FIRST_INO(sb) ||
sb                130 fs/ext2/ialloc.c 		ext2_error (sb, "ext2_free_inode",
sb                134 fs/ext2/ialloc.c 	block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb);
sb                135 fs/ext2/ialloc.c 	bit = (ino - 1) % EXT2_INODES_PER_GROUP(sb);
sb                136 fs/ext2/ialloc.c 	bitmap_bh = read_inode_bitmap(sb, block_group);
sb                141 fs/ext2/ialloc.c 	if (!ext2_clear_bit_atomic(sb_bgl_lock(EXT2_SB(sb), block_group),
sb                143 fs/ext2/ialloc.c 		ext2_error (sb, "ext2_free_inode",
sb                146 fs/ext2/ialloc.c 		ext2_release_inode(sb, block_group, is_directory);
sb                148 fs/ext2/ialloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                203 fs/ext2/ialloc.c static int find_group_dir(struct super_block *sb, struct inode *parent)
sb                205 fs/ext2/ialloc.c 	int ngroups = EXT2_SB(sb)->s_groups_count;
sb                206 fs/ext2/ialloc.c 	int avefreei = ext2_count_free_inodes(sb) / ngroups;
sb                211 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, group, NULL);
sb                255 fs/ext2/ialloc.c static int find_group_orlov(struct super_block *sb, struct inode *parent)
sb                258 fs/ext2/ialloc.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                261 fs/ext2/ialloc.c 	int inodes_per_group = EXT2_INODES_PER_GROUP(sb);
sb                278 fs/ext2/ialloc.c 	if ((parent == d_inode(sb->s_root)) ||
sb                288 fs/ext2/ialloc.c 			desc = ext2_get_group_desc (sb, group, NULL);
sb                316 fs/ext2/ialloc.c 	min_blocks = avefreeb - EXT2_BLOCKS_PER_GROUP(sb) / 4;
sb                318 fs/ext2/ialloc.c 	max_debt = EXT2_BLOCKS_PER_GROUP(sb) / max(blocks_per_dir, BLOCK_COST);
sb                328 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, group, NULL);
sb                345 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, group, NULL);
sb                367 fs/ext2/ialloc.c static int find_group_other(struct super_block *sb, struct inode *parent)
sb                370 fs/ext2/ialloc.c 	int ngroups = EXT2_SB(sb)->s_groups_count;
sb                378 fs/ext2/ialloc.c 	desc = ext2_get_group_desc (sb, group, NULL);
sb                402 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, group, NULL);
sb                416 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, group, NULL);
sb                430 fs/ext2/ialloc.c 	struct super_block *sb;
sb                442 fs/ext2/ialloc.c 	sb = dir->i_sb;
sb                443 fs/ext2/ialloc.c 	inode = new_inode(sb);
sb                448 fs/ext2/ialloc.c 	sbi = EXT2_SB(sb);
sb                451 fs/ext2/ialloc.c 		if (test_opt(sb, OLDALLOC))
sb                452 fs/ext2/ialloc.c 			group = find_group_dir(sb, dir);
sb                454 fs/ext2/ialloc.c 			group = find_group_orlov(sb, dir);
sb                456 fs/ext2/ialloc.c 		group = find_group_other(sb, dir);
sb                464 fs/ext2/ialloc.c 		gdp = ext2_get_group_desc(sb, group, &bh2);
sb                471 fs/ext2/ialloc.c 		bitmap_bh = read_inode_bitmap(sb, group);
sb                480 fs/ext2/ialloc.c 					      EXT2_INODES_PER_GROUP(sb), ino);
sb                481 fs/ext2/ialloc.c 		if (ino >= EXT2_INODES_PER_GROUP(sb)) {
sb                497 fs/ext2/ialloc.c 			if (++ino >= EXT2_INODES_PER_GROUP(sb)) {
sb                517 fs/ext2/ialloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                521 fs/ext2/ialloc.c 	ino += group * EXT2_INODES_PER_GROUP(sb) + 1;
sb                522 fs/ext2/ialloc.c 	if (ino < EXT2_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) {
sb                523 fs/ext2/ialloc.c 		ext2_error (sb, "ext2_new_inode",
sb                548 fs/ext2/ialloc.c 	if (test_opt(sb, GRPID)) {
sb                576 fs/ext2/ialloc.c 		ext2_error(sb, "ext2_new_inode",
sb                620 fs/ext2/ialloc.c unsigned long ext2_count_free_inodes (struct super_block * sb)
sb                631 fs/ext2/ialloc.c 	es = EXT2_SB(sb)->s_es;
sb                632 fs/ext2/ialloc.c 	for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) {
sb                635 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, i, NULL);
sb                640 fs/ext2/ialloc.c 		bitmap_bh = read_inode_bitmap(sb, i);
sb                644 fs/ext2/ialloc.c 		x = ext2_count_free(bitmap_bh, EXT2_INODES_PER_GROUP(sb) / 8);
sb                652 fs/ext2/ialloc.c 		percpu_counter_read(&EXT2_SB(sb)->s_freeinodes_counter),
sb                656 fs/ext2/ialloc.c 	for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) {
sb                657 fs/ext2/ialloc.c 		desc = ext2_get_group_desc (sb, i, NULL);
sb                667 fs/ext2/ialloc.c unsigned long ext2_count_dirs (struct super_block * sb)
sb                672 fs/ext2/ialloc.c 	for (i = 0; i < EXT2_SB(sb)->s_groups_count; i++) {
sb                673 fs/ext2/ialloc.c 		struct ext2_group_desc *gdp = ext2_get_group_desc (sb, i, NULL);
sb                240 fs/ext2/inode.c 	struct super_block *sb = inode->i_sb;
sb                250 fs/ext2/inode.c 		bh = sb_bread(sb, le32_to_cpu(p->key));
sb               1328 fs/ext2/inode.c static struct ext2_inode *ext2_get_inode(struct super_block *sb, ino_t ino,
sb               1338 fs/ext2/inode.c 	if ((ino != EXT2_ROOT_INO && ino < EXT2_FIRST_INO(sb)) ||
sb               1339 fs/ext2/inode.c 	    ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count))
sb               1342 fs/ext2/inode.c 	block_group = (ino - 1) / EXT2_INODES_PER_GROUP(sb);
sb               1343 fs/ext2/inode.c 	gdp = ext2_get_group_desc(sb, block_group, NULL);
sb               1349 fs/ext2/inode.c 	offset = ((ino - 1) % EXT2_INODES_PER_GROUP(sb)) * EXT2_INODE_SIZE(sb);
sb               1351 fs/ext2/inode.c 		(offset >> EXT2_BLOCK_SIZE_BITS(sb));
sb               1352 fs/ext2/inode.c 	if (!(bh = sb_bread(sb, block)))
sb               1356 fs/ext2/inode.c 	offset &= (EXT2_BLOCK_SIZE(sb) - 1);
sb               1360 fs/ext2/inode.c 	ext2_error(sb, "ext2_get_inode", "bad inode number: %lu",
sb               1364 fs/ext2/inode.c 	ext2_error(sb, "ext2_get_inode",
sb               1403 fs/ext2/inode.c struct inode *ext2_iget (struct super_block *sb, unsigned long ino)
sb               1414 fs/ext2/inode.c 	inode = iget_locked(sb, ino);
sb               1465 fs/ext2/inode.c 	    !ext2_data_block_valid(EXT2_SB(sb), ei->i_file_acl, 1)) {
sb               1466 fs/ext2/inode.c 		ext2_error(sb, "ext2_iget", "bad extended attribute block %u",
sb               1538 fs/ext2/inode.c 	struct super_block *sb = inode->i_sb;
sb               1543 fs/ext2/inode.c 	struct ext2_inode * raw_inode = ext2_get_inode(sb, ino, &bh);
sb               1553 fs/ext2/inode.c 		memset(raw_inode, 0, EXT2_SB(sb)->s_inode_size);
sb               1556 fs/ext2/inode.c 	if (!(test_opt(sb, NO_UID32))) {
sb               1594 fs/ext2/inode.c 			if (!EXT2_HAS_RO_COMPAT_FEATURE(sb,
sb               1596 fs/ext2/inode.c 			    EXT2_SB(sb)->s_es->s_rev_level ==
sb               1601 fs/ext2/inode.c 				spin_lock(&EXT2_SB(sb)->s_lock);
sb               1602 fs/ext2/inode.c 				ext2_update_dynamic_rev(sb);
sb               1603 fs/ext2/inode.c 				EXT2_SET_RO_COMPAT_FEATURE(sb,
sb               1605 fs/ext2/inode.c 				spin_unlock(&EXT2_SB(sb)->s_lock);
sb               1606 fs/ext2/inode.c 				ext2_sync_super(sb, EXT2_SB(sb)->s_es, 1);
sb               1630 fs/ext2/inode.c 				sb->s_id, (unsigned long) ino);
sb                151 fs/ext2/namei.c 	struct super_block * sb = dir->i_sb;
sb                156 fs/ext2/namei.c 	if (l > sb->s_blocksize)
sb                 42 fs/ext2/super.c static void ext2_write_super(struct super_block *sb);
sb                 43 fs/ext2/super.c static int ext2_remount (struct super_block * sb, int * flags, char * data);
sb                 45 fs/ext2/super.c static int ext2_sync_fs(struct super_block *sb, int wait);
sb                 46 fs/ext2/super.c static int ext2_freeze(struct super_block *sb);
sb                 47 fs/ext2/super.c static int ext2_unfreeze(struct super_block *sb);
sb                 49 fs/ext2/super.c void ext2_error(struct super_block *sb, const char *function,
sb                 54 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                 57 fs/ext2/super.c 	if (!sb_rdonly(sb)) {
sb                 62 fs/ext2/super.c 		ext2_sync_super(sb, es, 1);
sb                 71 fs/ext2/super.c 	       sb->s_id, function, &vaf);
sb                 75 fs/ext2/super.c 	if (test_opt(sb, ERRORS_PANIC))
sb                 77 fs/ext2/super.c 	if (!sb_rdonly(sb) && test_opt(sb, ERRORS_RO)) {
sb                 78 fs/ext2/super.c 		ext2_msg(sb, KERN_CRIT,
sb                 80 fs/ext2/super.c 		sb->s_flags |= SB_RDONLY;
sb                 84 fs/ext2/super.c void ext2_msg(struct super_block *sb, const char *prefix,
sb                 95 fs/ext2/super.c 	printk("%sEXT2-fs (%s): %pV\n", prefix, sb->s_id, &vaf);
sb                103 fs/ext2/super.c void ext2_update_dynamic_rev(struct super_block *sb)
sb                105 fs/ext2/super.c 	struct ext2_super_block *es = EXT2_SB(sb)->s_es;
sb                110 fs/ext2/super.c 	ext2_msg(sb, KERN_WARNING,
sb                129 fs/ext2/super.c static int ext2_quota_off(struct super_block *sb, int type);
sb                131 fs/ext2/super.c static void ext2_quota_off_umount(struct super_block *sb)
sb                136 fs/ext2/super.c 		ext2_quota_off(sb, type);
sb                139 fs/ext2/super.c static inline void ext2_quota_off_umount(struct super_block *sb)
sb                144 fs/ext2/super.c static void ext2_put_super (struct super_block * sb)
sb                148 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                150 fs/ext2/super.c 	ext2_quota_off_umount(sb);
sb                155 fs/ext2/super.c 	if (!sb_rdonly(sb)) {
sb                161 fs/ext2/super.c 		ext2_sync_super(sb, es, 1);
sb                172 fs/ext2/super.c 	sb->s_fs_info = NULL;
sb                180 fs/ext2/super.c static struct inode *ext2_alloc_inode(struct super_block *sb)
sb                241 fs/ext2/super.c 	struct super_block *sb = root->d_sb;
sb                242 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                251 fs/ext2/super.c 	if (test_opt(sb, MINIX_DF))
sb                253 fs/ext2/super.c 	if (test_opt(sb, GRPID))
sb                255 fs/ext2/super.c 	if (!test_opt(sb, GRPID) && (def_mount_opts & EXT2_DEFM_BSDGROUPS))
sb                267 fs/ext2/super.c 	if (test_opt(sb, ERRORS_RO)) {
sb                275 fs/ext2/super.c 	if (test_opt(sb, ERRORS_CONT))
sb                277 fs/ext2/super.c 	if (test_opt(sb, ERRORS_PANIC))
sb                279 fs/ext2/super.c 	if (test_opt(sb, NO_UID32))
sb                281 fs/ext2/super.c 	if (test_opt(sb, DEBUG))
sb                283 fs/ext2/super.c 	if (test_opt(sb, OLDALLOC))
sb                287 fs/ext2/super.c 	if (test_opt(sb, XATTR_USER))
sb                289 fs/ext2/super.c 	if (!test_opt(sb, XATTR_USER) &&
sb                296 fs/ext2/super.c 	if (test_opt(sb, POSIX_ACL))
sb                298 fs/ext2/super.c 	if (!test_opt(sb, POSIX_ACL) && (def_mount_opts & EXT2_DEFM_ACL))
sb                302 fs/ext2/super.c 	if (test_opt(sb, NOBH))
sb                305 fs/ext2/super.c 	if (test_opt(sb, USRQUOTA))
sb                308 fs/ext2/super.c 	if (test_opt(sb, GRPQUOTA))
sb                311 fs/ext2/super.c 	if (test_opt(sb, XIP))
sb                314 fs/ext2/super.c 	if (test_opt(sb, DAX))
sb                317 fs/ext2/super.c 	if (!test_opt(sb, RESERVATION))
sb                325 fs/ext2/super.c static ssize_t ext2_quota_read(struct super_block *sb, int type, char *data, size_t len, loff_t off);
sb                326 fs/ext2/super.c static ssize_t ext2_quota_write(struct super_block *sb, int type, const char *data, size_t len, loff_t off);
sb                327 fs/ext2/super.c static int ext2_quota_on(struct super_block *sb, int type, int format_id,
sb                365 fs/ext2/super.c static struct inode *ext2_nfs_get_inode(struct super_block *sb,
sb                370 fs/ext2/super.c 	if (ino < EXT2_FIRST_INO(sb) && ino != EXT2_ROOT_INO)
sb                372 fs/ext2/super.c 	if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count))
sb                380 fs/ext2/super.c 	inode = ext2_iget(sb, ino);
sb                391 fs/ext2/super.c static struct dentry *ext2_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                394 fs/ext2/super.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                398 fs/ext2/super.c static struct dentry *ext2_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                401 fs/ext2/super.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                475 fs/ext2/super.c static int parse_options(char *options, struct super_block *sb,
sb                511 fs/ext2/super.c 				ext2_msg(sb, KERN_ERR, "Invalid uid value %d", option);
sb                522 fs/ext2/super.c 				ext2_msg(sb, KERN_ERR, "Invalid gid value %d", option);
sb                550 fs/ext2/super.c 			ext2_msg(sb, KERN_WARNING,
sb                577 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO, "(no)user_xattr options"
sb                591 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO,
sb                596 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO, "use dax instead of xip");
sb                601 fs/ext2/super.c 			ext2_msg(sb, KERN_WARNING,
sb                605 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO, "dax option not supported");
sb                622 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO,
sb                629 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO, "reservations ON");
sb                633 fs/ext2/super.c 			ext2_msg(sb, KERN_INFO, "reservations OFF");
sb                644 fs/ext2/super.c static int ext2_setup_super (struct super_block * sb,
sb                649 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                652 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb                660 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING,
sb                664 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING,
sb                670 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING,
sb                677 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING,
sb                683 fs/ext2/super.c 	if (test_opt (sb, DEBUG))
sb                684 fs/ext2/super.c 		ext2_msg(sb, KERN_INFO, "%s, %s, bs=%lu, fs=%lu, gc=%lu, "
sb                686 fs/ext2/super.c 			EXT2FS_VERSION, EXT2FS_DATE, sb->s_blocksize,
sb                689 fs/ext2/super.c 			EXT2_BLOCKS_PER_GROUP(sb),
sb                690 fs/ext2/super.c 			EXT2_INODES_PER_GROUP(sb),
sb                695 fs/ext2/super.c static int ext2_check_descriptors(struct super_block *sb)
sb                698 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                703 fs/ext2/super.c 		struct ext2_group_desc *gdp = ext2_get_group_desc(sb, i, NULL);
sb                704 fs/ext2/super.c 		ext2_fsblk_t first_block = ext2_group_first_block_no(sb, i);
sb                711 fs/ext2/super.c 				(EXT2_BLOCKS_PER_GROUP(sb) - 1);
sb                716 fs/ext2/super.c 			ext2_error (sb, "ext2_check_descriptors",
sb                725 fs/ext2/super.c 			ext2_error (sb, "ext2_check_descriptors",
sb                735 fs/ext2/super.c 			ext2_error (sb, "ext2_check_descriptors",
sb                803 fs/ext2/super.c static unsigned long descriptor_loc(struct super_block *sb,
sb                807 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb                813 fs/ext2/super.c 	if (!EXT2_HAS_INCOMPAT_FEATURE(sb, EXT2_FEATURE_INCOMPAT_META_BG) ||
sb                817 fs/ext2/super.c 	if (ext2_bg_has_super(sb, bg))
sb                820 fs/ext2/super.c 	return ext2_group_first_block_no(sb, bg) + has_super;
sb                823 fs/ext2/super.c static int ext2_fill_super(struct super_block *sb, void *data, int silent)
sb                825 fs/ext2/super.c 	struct dax_device *dax_dev = fs_dax_get_by_bdev(sb->s_bdev);
sb                853 fs/ext2/super.c 	sb->s_fs_info = sbi;
sb                867 fs/ext2/super.c 	blocksize = sb_min_blocksize(sb, BLOCK_SIZE);
sb                869 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: unable to set blocksize");
sb                884 fs/ext2/super.c 	if (!(bh = sb_bread(sb, logic_sb_block))) {
sb                885 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: unable to read superblock");
sb                894 fs/ext2/super.c 	sb->s_magic = le16_to_cpu(es->s_magic);
sb                896 fs/ext2/super.c 	if (sb->s_magic != EXT2_SUPER_MAGIC)
sb                929 fs/ext2/super.c 	if (!parse_options((char *) data, sb, &opts))
sb                936 fs/ext2/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb                937 fs/ext2/super.c 		(test_opt(sb, POSIX_ACL) ? SB_POSIXACL : 0);
sb                938 fs/ext2/super.c 	sb->s_iflags |= SB_I_CGROUPWB;
sb                941 fs/ext2/super.c 	    (EXT2_HAS_COMPAT_FEATURE(sb, ~0U) ||
sb                942 fs/ext2/super.c 	     EXT2_HAS_RO_COMPAT_FEATURE(sb, ~0U) ||
sb                943 fs/ext2/super.c 	     EXT2_HAS_INCOMPAT_FEATURE(sb, ~0U)))
sb                944 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING,
sb                952 fs/ext2/super.c 	features = EXT2_HAS_INCOMPAT_FEATURE(sb, ~EXT2_FEATURE_INCOMPAT_SUPP);
sb                954 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,	"error: couldn't mount because of "
sb                959 fs/ext2/super.c 	if (!sb_rdonly(sb) && (features = EXT2_HAS_RO_COMPAT_FEATURE(sb, ~EXT2_FEATURE_RO_COMPAT_SUPP))){
sb                960 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: couldn't mount RDWR because of "
sb                968 fs/ext2/super.c 	if (test_opt(sb, DAX)) {
sb                969 fs/ext2/super.c 		if (!bdev_dax_supported(sb->s_bdev, blocksize)) {
sb                970 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR,
sb                977 fs/ext2/super.c 	if (sb->s_blocksize != blocksize) {
sb                980 fs/ext2/super.c 		if (!sb_set_blocksize(sb, blocksize)) {
sb                981 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR,
sb                988 fs/ext2/super.c 		bh = sb_bread(sb, logic_sb_block);
sb                990 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR, "error: couldn't read"
sb                997 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR, "error: magic mismatch");
sb               1002 fs/ext2/super.c 	sb->s_maxbytes = ext2_max_size(sb->s_blocksize_bits);
sb               1003 fs/ext2/super.c 	sb->s_max_links = EXT2_LINK_MAX;
sb               1004 fs/ext2/super.c 	sb->s_time_min = S32_MIN;
sb               1005 fs/ext2/super.c 	sb->s_time_max = S32_MAX;
sb               1016 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR,
sb               1027 fs/ext2/super.c 	sbi->s_frags_per_block = sb->s_blocksize / sbi->s_frag_size;
sb               1033 fs/ext2/super.c 	sbi->s_inodes_per_block = sb->s_blocksize / EXT2_INODE_SIZE(sb);
sb               1038 fs/ext2/super.c 	sbi->s_desc_per_block = sb->s_blocksize /
sb               1043 fs/ext2/super.c 		ilog2 (EXT2_ADDR_PER_BLOCK(sb));
sb               1045 fs/ext2/super.c 		ilog2 (EXT2_DESC_PER_BLOCK(sb));
sb               1047 fs/ext2/super.c 	if (sb->s_magic != EXT2_SUPER_MAGIC)
sb               1050 fs/ext2/super.c 	if (sb->s_blocksize != bh->b_size) {
sb               1052 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR, "error: unsupported blocksize");
sb               1056 fs/ext2/super.c 	if (sb->s_blocksize != sbi->s_frag_size) {
sb               1057 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb               1060 fs/ext2/super.c 			sbi->s_frag_size, sb->s_blocksize);
sb               1064 fs/ext2/super.c 	if (sbi->s_blocks_per_group > sb->s_blocksize * 8) {
sb               1065 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb               1070 fs/ext2/super.c 	if (sbi->s_frags_per_group > sb->s_blocksize * 8) {
sb               1071 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb               1076 fs/ext2/super.c 	if (sbi->s_inodes_per_group > sb->s_blocksize * 8) {
sb               1077 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb               1083 fs/ext2/super.c 	if (EXT2_BLOCKS_PER_GROUP(sb) == 0)
sb               1087 fs/ext2/super.c 					/ EXT2_BLOCKS_PER_GROUP(sb)) + 1;
sb               1088 fs/ext2/super.c 	db_count = (sbi->s_groups_count + EXT2_DESC_PER_BLOCK(sb) - 1) /
sb               1089 fs/ext2/super.c 		   EXT2_DESC_PER_BLOCK(sb);
sb               1095 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: not enough memory");
sb               1102 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: not enough memory");
sb               1106 fs/ext2/super.c 		block = descriptor_loc(sb, logic_sb_block, i);
sb               1107 fs/ext2/super.c 		sbi->s_group_desc[i] = sb_bread(sb, block);
sb               1111 fs/ext2/super.c 			ext2_msg(sb, KERN_ERR,
sb               1116 fs/ext2/super.c 	if (!ext2_check_descriptors (sb)) {
sb               1117 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "group descriptors corrupted");
sb               1137 fs/ext2/super.c 	ext2_rsv_window_add(sb, &sbi->s_rsv_window_head);
sb               1140 fs/ext2/super.c 				ext2_count_free_blocks(sb), GFP_KERNEL);
sb               1143 fs/ext2/super.c 				ext2_count_free_inodes(sb), GFP_KERNEL);
sb               1147 fs/ext2/super.c 				ext2_count_dirs(sb), GFP_KERNEL);
sb               1150 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: insufficient memory");
sb               1158 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "Failed to create ea_block_cache");
sb               1165 fs/ext2/super.c 	sb->s_op = &ext2_sops;
sb               1166 fs/ext2/super.c 	sb->s_export_op = &ext2_export_ops;
sb               1167 fs/ext2/super.c 	sb->s_xattr = ext2_xattr_handlers;
sb               1170 fs/ext2/super.c 	sb->dq_op = &dquot_operations;
sb               1171 fs/ext2/super.c 	sb->s_qcop = &ext2_quotactl_ops;
sb               1172 fs/ext2/super.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP;
sb               1175 fs/ext2/super.c 	root = ext2_iget(sb, EXT2_ROOT_INO);
sb               1182 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: corrupt root inode, run e2fsck");
sb               1186 fs/ext2/super.c 	sb->s_root = d_make_root(root);
sb               1187 fs/ext2/super.c 	if (!sb->s_root) {
sb               1188 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR, "error: get root inode failed");
sb               1192 fs/ext2/super.c 	if (EXT2_HAS_COMPAT_FEATURE(sb, EXT3_FEATURE_COMPAT_HAS_JOURNAL))
sb               1193 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING,
sb               1195 fs/ext2/super.c 	if (ext2_setup_super (sb, es, sb_rdonly(sb)))
sb               1196 fs/ext2/super.c 		sb->s_flags |= SB_RDONLY;
sb               1197 fs/ext2/super.c 	ext2_write_super(sb);
sb               1202 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb               1204 fs/ext2/super.c 			sb->s_id);
sb               1220 fs/ext2/super.c 	sb->s_fs_info = NULL;
sb               1228 fs/ext2/super.c static void ext2_clear_super_error(struct super_block *sb)
sb               1230 fs/ext2/super.c 	struct buffer_head *sbh = EXT2_SB(sb)->s_sbh;
sb               1241 fs/ext2/super.c 		ext2_msg(sb, KERN_ERR,
sb               1248 fs/ext2/super.c void ext2_sync_super(struct super_block *sb, struct ext2_super_block *es,
sb               1251 fs/ext2/super.c 	ext2_clear_super_error(sb);
sb               1252 fs/ext2/super.c 	spin_lock(&EXT2_SB(sb)->s_lock);
sb               1253 fs/ext2/super.c 	es->s_free_blocks_count = cpu_to_le32(ext2_count_free_blocks(sb));
sb               1254 fs/ext2/super.c 	es->s_free_inodes_count = cpu_to_le32(ext2_count_free_inodes(sb));
sb               1257 fs/ext2/super.c 	spin_unlock(&EXT2_SB(sb)->s_lock);
sb               1258 fs/ext2/super.c 	mark_buffer_dirty(EXT2_SB(sb)->s_sbh);
sb               1260 fs/ext2/super.c 		sync_dirty_buffer(EXT2_SB(sb)->s_sbh);
sb               1273 fs/ext2/super.c static int ext2_sync_fs(struct super_block *sb, int wait)
sb               1275 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb               1276 fs/ext2/super.c 	struct ext2_super_block *es = EXT2_SB(sb)->s_es;
sb               1282 fs/ext2/super.c 	dquot_writeback_dquots(sb, -1);
sb               1290 fs/ext2/super.c 	ext2_sync_super(sb, es, wait);
sb               1294 fs/ext2/super.c static int ext2_freeze(struct super_block *sb)
sb               1296 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb               1303 fs/ext2/super.c 	if (atomic_long_read(&sb->s_remove_count)) {
sb               1304 fs/ext2/super.c 		ext2_sync_fs(sb, 1);
sb               1311 fs/ext2/super.c 	ext2_sync_super(sb, sbi->s_es, 1);
sb               1316 fs/ext2/super.c static int ext2_unfreeze(struct super_block *sb)
sb               1319 fs/ext2/super.c 	ext2_write_super(sb);
sb               1324 fs/ext2/super.c static void ext2_write_super(struct super_block *sb)
sb               1326 fs/ext2/super.c 	if (!sb_rdonly(sb))
sb               1327 fs/ext2/super.c 		ext2_sync_fs(sb, 1);
sb               1330 fs/ext2/super.c static int ext2_remount (struct super_block * sb, int * flags, char * data)
sb               1332 fs/ext2/super.c 	struct ext2_sb_info * sbi = EXT2_SB(sb);
sb               1337 fs/ext2/super.c 	sync_filesystem(sb);
sb               1345 fs/ext2/super.c 	if (!parse_options(data, sb, &new_opts))
sb               1351 fs/ext2/super.c 		ext2_msg(sb, KERN_WARNING, "warning: refusing change of "
sb               1355 fs/ext2/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb               1370 fs/ext2/super.c 		err = dquot_suspend(sb, -1);
sb               1374 fs/ext2/super.c 		ext2_sync_super(sb, es, 1);
sb               1376 fs/ext2/super.c 		__le32 ret = EXT2_HAS_RO_COMPAT_FEATURE(sb,
sb               1380 fs/ext2/super.c 			ext2_msg(sb, KERN_WARNING,
sb               1392 fs/ext2/super.c 		if (!ext2_setup_super (sb, es, 0))
sb               1393 fs/ext2/super.c 			sb->s_flags &= ~SB_RDONLY;
sb               1396 fs/ext2/super.c 		ext2_write_super(sb);
sb               1398 fs/ext2/super.c 		dquot_resume(sb, -1);
sb               1406 fs/ext2/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb               1407 fs/ext2/super.c 		(test_opt(sb, POSIX_ACL) ? SB_POSIXACL : 0);
sb               1415 fs/ext2/super.c 	struct super_block *sb = dentry->d_sb;
sb               1416 fs/ext2/super.c 	struct ext2_sb_info *sbi = EXT2_SB(sb);
sb               1422 fs/ext2/super.c 	if (test_opt (sb, MINIX_DF))
sb               1446 fs/ext2/super.c 			overhead += ext2_bg_has_super(sb, i) +
sb               1447 fs/ext2/super.c 				ext2_bg_num_gdb(sb, i);
sb               1461 fs/ext2/super.c 	buf->f_bsize = sb->s_blocksize;
sb               1463 fs/ext2/super.c 	buf->f_bfree = ext2_count_free_blocks(sb);
sb               1469 fs/ext2/super.c 	buf->f_ffree = ext2_count_free_inodes(sb);
sb               1492 fs/ext2/super.c static ssize_t ext2_quota_read(struct super_block *sb, int type, char *data,
sb               1495 fs/ext2/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               1496 fs/ext2/super.c 	sector_t blk = off >> EXT2_BLOCK_SIZE_BITS(sb);
sb               1498 fs/ext2/super.c 	int offset = off & (sb->s_blocksize - 1);
sb               1511 fs/ext2/super.c 		tocopy = sb->s_blocksize - offset < toread ?
sb               1512 fs/ext2/super.c 				sb->s_blocksize - offset : toread;
sb               1515 fs/ext2/super.c 		tmp_bh.b_size = sb->s_blocksize;
sb               1522 fs/ext2/super.c 			bh = sb_bread(sb, tmp_bh.b_blocknr);
sb               1537 fs/ext2/super.c static ssize_t ext2_quota_write(struct super_block *sb, int type,
sb               1540 fs/ext2/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               1541 fs/ext2/super.c 	sector_t blk = off >> EXT2_BLOCK_SIZE_BITS(sb);
sb               1543 fs/ext2/super.c 	int offset = off & (sb->s_blocksize - 1);
sb               1550 fs/ext2/super.c 		tocopy = sb->s_blocksize - offset < towrite ?
sb               1551 fs/ext2/super.c 				sb->s_blocksize - offset : towrite;
sb               1554 fs/ext2/super.c 		tmp_bh.b_size = sb->s_blocksize;
sb               1558 fs/ext2/super.c 		if (offset || tocopy != EXT2_BLOCK_SIZE(sb))
sb               1559 fs/ext2/super.c 			bh = sb_bread(sb, tmp_bh.b_blocknr);
sb               1561 fs/ext2/super.c 			bh = sb_getblk(sb, tmp_bh.b_blocknr);
sb               1589 fs/ext2/super.c static int ext2_quota_on(struct super_block *sb, int type, int format_id,
sb               1595 fs/ext2/super.c 	err = dquot_quota_on(sb, type, format_id, path);
sb               1610 fs/ext2/super.c static int ext2_quota_off(struct super_block *sb, int type)
sb               1612 fs/ext2/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               1618 fs/ext2/super.c 	err = dquot_quota_off(sb, type);
sb               1631 fs/ext2/super.c 	return dquot_quota_off(sb, type);
sb                382 fs/ext2/xattr.c static void ext2_xattr_update_super_block(struct super_block *sb)
sb                384 fs/ext2/xattr.c 	if (EXT2_HAS_COMPAT_FEATURE(sb, EXT2_FEATURE_COMPAT_EXT_ATTR))
sb                387 fs/ext2/xattr.c 	spin_lock(&EXT2_SB(sb)->s_lock);
sb                388 fs/ext2/xattr.c 	ext2_update_dynamic_rev(sb);
sb                389 fs/ext2/xattr.c 	EXT2_SET_COMPAT_FEATURE(sb, EXT2_FEATURE_COMPAT_EXT_ATTR);
sb                390 fs/ext2/xattr.c 	spin_unlock(&EXT2_SB(sb)->s_lock);
sb                391 fs/ext2/xattr.c 	mark_buffer_dirty(EXT2_SB(sb)->s_sbh);
sb                410 fs/ext2/xattr.c 	struct super_block *sb = inode->i_sb;
sb                414 fs/ext2/xattr.c 	size_t name_len, free, min_offs = sb->s_blocksize;
sb                438 fs/ext2/xattr.c 	if (name_len > 255 || value_len > sb->s_blocksize)
sb                443 fs/ext2/xattr.c 		bh = sb_bread(sb, EXT2_I(inode)->i_file_acl);
sb                454 fs/ext2/xattr.c 			ext2_error(sb, "ext2_xattr_set",
sb                467 fs/ext2/xattr.c 			if (!ext2_xattr_entry_valid(last, end, sb->s_blocksize))
sb                490 fs/ext2/xattr.c 		free = sb->s_blocksize -
sb                549 fs/ext2/xattr.c 		header = kzalloc(sb->s_blocksize, GFP_KERNEL);
sb                553 fs/ext2/xattr.c 		end = (char *)header + sb->s_blocksize;
sb                657 fs/ext2/xattr.c 	struct super_block *sb = inode->i_sb;
sb                691 fs/ext2/xattr.c 			ext2_fsblk_t goal = ext2_group_first_block_no(sb,
sb                698 fs/ext2/xattr.c 			new_bh = sb_getblk(sb, block);
sb                711 fs/ext2/xattr.c 			ext2_xattr_update_super_block(sb);
sb                 26 fs/ext4/balloc.c static unsigned ext4_num_base_meta_clusters(struct super_block *sb,
sb                 35 fs/ext4/balloc.c ext4_group_t ext4_get_group_number(struct super_block *sb,
sb                 40 fs/ext4/balloc.c 	if (test_opt2(sb, STD_GROUP_SIZE))
sb                 42 fs/ext4/balloc.c 			 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) >>
sb                 43 fs/ext4/balloc.c 			(EXT4_BLOCK_SIZE_BITS(sb) + EXT4_CLUSTER_BITS(sb) + 3);
sb                 45 fs/ext4/balloc.c 		ext4_get_group_no_and_offset(sb, block, &group, NULL);
sb                 53 fs/ext4/balloc.c void ext4_get_group_no_and_offset(struct super_block *sb, ext4_fsblk_t blocknr,
sb                 56 fs/ext4/balloc.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                 60 fs/ext4/balloc.c 	offset = do_div(blocknr, EXT4_BLOCKS_PER_GROUP(sb)) >>
sb                 61 fs/ext4/balloc.c 		EXT4_SB(sb)->s_cluster_bits;
sb                 73 fs/ext4/balloc.c static inline int ext4_block_in_group(struct super_block *sb,
sb                 79 fs/ext4/balloc.c 	actual_group = ext4_get_group_number(sb, block);
sb                 86 fs/ext4/balloc.c static unsigned ext4_num_overhead_clusters(struct super_block *sb,
sb                 92 fs/ext4/balloc.c 	ext4_fsblk_t start = ext4_group_first_block_no(sb, block_group);
sb                 94 fs/ext4/balloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 99 fs/ext4/balloc.c 	num_clusters = ext4_num_base_meta_clusters(sb, block_group);
sb                113 fs/ext4/balloc.c 	if (ext4_block_in_group(sb, ext4_block_bitmap(sb, gdp), block_group)) {
sb                115 fs/ext4/balloc.c 					 ext4_block_bitmap(sb, gdp) - start);
sb                124 fs/ext4/balloc.c 	if (ext4_block_in_group(sb, ext4_inode_bitmap(sb, gdp), block_group)) {
sb                126 fs/ext4/balloc.c 					 ext4_inode_bitmap(sb, gdp) - start);
sb                135 fs/ext4/balloc.c 	itbl_blk = ext4_inode_table(sb, gdp);
sb                137 fs/ext4/balloc.c 		if (ext4_block_in_group(sb, itbl_blk + i, block_group)) {
sb                159 fs/ext4/balloc.c static unsigned int num_clusters_in_group(struct super_block *sb,
sb                164 fs/ext4/balloc.c 	if (block_group == ext4_get_groups_count(sb) - 1) {
sb                171 fs/ext4/balloc.c 		blocks = ext4_blocks_count(EXT4_SB(sb)->s_es) -
sb                172 fs/ext4/balloc.c 			ext4_group_first_block_no(sb, block_group);
sb                174 fs/ext4/balloc.c 		blocks = EXT4_BLOCKS_PER_GROUP(sb);
sb                175 fs/ext4/balloc.c 	return EXT4_NUM_B2C(EXT4_SB(sb), blocks);
sb                179 fs/ext4/balloc.c static int ext4_init_block_bitmap(struct super_block *sb,
sb                185 fs/ext4/balloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                192 fs/ext4/balloc.c 	if (!ext4_group_desc_csum_verify(sb, block_group, gdp)) {
sb                193 fs/ext4/balloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                198 fs/ext4/balloc.c 	memset(bh->b_data, 0, sb->s_blocksize);
sb                200 fs/ext4/balloc.c 	bit_max = ext4_num_base_meta_clusters(sb, block_group);
sb                207 fs/ext4/balloc.c 	start = ext4_group_first_block_no(sb, block_group);
sb                210 fs/ext4/balloc.c 	tmp = ext4_block_bitmap(sb, gdp);
sb                211 fs/ext4/balloc.c 	if (ext4_block_in_group(sb, tmp, block_group))
sb                214 fs/ext4/balloc.c 	tmp = ext4_inode_bitmap(sb, gdp);
sb                215 fs/ext4/balloc.c 	if (ext4_block_in_group(sb, tmp, block_group))
sb                218 fs/ext4/balloc.c 	tmp = ext4_inode_table(sb, gdp);
sb                219 fs/ext4/balloc.c 	for (; tmp < ext4_inode_table(sb, gdp) +
sb                221 fs/ext4/balloc.c 		if (ext4_block_in_group(sb, tmp, block_group))
sb                230 fs/ext4/balloc.c 	ext4_mark_bitmap_end(num_clusters_in_group(sb, block_group),
sb                231 fs/ext4/balloc.c 			     sb->s_blocksize * 8, bh->b_data);
sb                238 fs/ext4/balloc.c unsigned ext4_free_clusters_after_init(struct super_block *sb,
sb                242 fs/ext4/balloc.c 	return num_clusters_in_group(sb, block_group) - 
sb                243 fs/ext4/balloc.c 		ext4_num_overhead_clusters(sb, block_group, gdp);
sb                264 fs/ext4/balloc.c struct ext4_group_desc * ext4_get_group_desc(struct super_block *sb,
sb                270 fs/ext4/balloc.c 	ext4_group_t ngroups = ext4_get_groups_count(sb);
sb                272 fs/ext4/balloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                276 fs/ext4/balloc.c 		ext4_error(sb, "block_group >= groups_count - block_group = %u,"
sb                282 fs/ext4/balloc.c 	group_desc = block_group >> EXT4_DESC_PER_BLOCK_BITS(sb);
sb                283 fs/ext4/balloc.c 	offset = block_group & (EXT4_DESC_PER_BLOCK(sb) - 1);
sb                292 fs/ext4/balloc.c 		ext4_error(sb, "Group descriptor not loaded - "
sb                300 fs/ext4/balloc.c 		offset * EXT4_DESC_SIZE(sb));
sb                310 fs/ext4/balloc.c static ext4_fsblk_t ext4_valid_block_bitmap(struct super_block *sb,
sb                315 fs/ext4/balloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                318 fs/ext4/balloc.c 	ext4_grpblk_t max_bit = EXT4_CLUSTERS_PER_GROUP(sb);
sb                322 fs/ext4/balloc.c 	if (ext4_has_feature_flex_bg(sb)) {
sb                331 fs/ext4/balloc.c 	group_first_block = ext4_group_first_block_no(sb, block_group);
sb                334 fs/ext4/balloc.c 	blk = ext4_block_bitmap(sb, desc);
sb                342 fs/ext4/balloc.c 	blk = ext4_inode_bitmap(sb, desc);
sb                350 fs/ext4/balloc.c 	blk = ext4_inode_table(sb, desc);
sb                365 fs/ext4/balloc.c static int ext4_validate_block_bitmap(struct super_block *sb,
sb                371 fs/ext4/balloc.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, block_group);
sb                378 fs/ext4/balloc.c 	ext4_lock_group(sb, block_group);
sb                381 fs/ext4/balloc.c 	if (unlikely(!ext4_block_bitmap_csum_verify(sb, block_group,
sb                383 fs/ext4/balloc.c 		ext4_unlock_group(sb, block_group);
sb                384 fs/ext4/balloc.c 		ext4_error(sb, "bg %u: bad block bitmap checksum", block_group);
sb                385 fs/ext4/balloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                389 fs/ext4/balloc.c 	blk = ext4_valid_block_bitmap(sb, desc, block_group, bh);
sb                391 fs/ext4/balloc.c 		ext4_unlock_group(sb, block_group);
sb                392 fs/ext4/balloc.c 		ext4_error(sb, "bg %u: block %llu: invalid block bitmap",
sb                394 fs/ext4/balloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                400 fs/ext4/balloc.c 	ext4_unlock_group(sb, block_group);
sb                415 fs/ext4/balloc.c ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group)
sb                418 fs/ext4/balloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                423 fs/ext4/balloc.c 	desc = ext4_get_group_desc(sb, block_group, NULL);
sb                426 fs/ext4/balloc.c 	bitmap_blk = ext4_block_bitmap(sb, desc);
sb                429 fs/ext4/balloc.c 		ext4_error(sb, "Invalid block bitmap block %llu in "
sb                431 fs/ext4/balloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                435 fs/ext4/balloc.c 	bh = sb_getblk(sb, bitmap_blk);
sb                437 fs/ext4/balloc.c 		ext4_warning(sb, "Cannot get buffer for block bitmap - "
sb                451 fs/ext4/balloc.c 	ext4_lock_group(sb, block_group);
sb                452 fs/ext4/balloc.c 	if (ext4_has_group_desc_csum(sb) &&
sb                455 fs/ext4/balloc.c 			ext4_unlock_group(sb, block_group);
sb                457 fs/ext4/balloc.c 			ext4_error(sb, "Block bitmap for bg 0 marked "
sb                462 fs/ext4/balloc.c 		err = ext4_init_block_bitmap(sb, bh, block_group, desc);
sb                466 fs/ext4/balloc.c 		ext4_unlock_group(sb, block_group);
sb                469 fs/ext4/balloc.c 			ext4_error(sb, "Failed to init block bitmap for group "
sb                475 fs/ext4/balloc.c 	ext4_unlock_group(sb, block_group);
sb                489 fs/ext4/balloc.c 	trace_ext4_read_block_bitmap_load(sb, block_group);
sb                495 fs/ext4/balloc.c 	err = ext4_validate_block_bitmap(sb, desc, block_group, bh);
sb                505 fs/ext4/balloc.c int ext4_wait_block_bitmap(struct super_block *sb, ext4_group_t block_group,
sb                512 fs/ext4/balloc.c 	desc = ext4_get_group_desc(sb, block_group, NULL);
sb                517 fs/ext4/balloc.c 		ext4_error(sb, "Cannot read block bitmap - "
sb                520 fs/ext4/balloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                526 fs/ext4/balloc.c 	return ext4_validate_block_bitmap(sb, desc, block_group, bh);
sb                530 fs/ext4/balloc.c ext4_read_block_bitmap(struct super_block *sb, ext4_group_t block_group)
sb                535 fs/ext4/balloc.c 	bh = ext4_read_block_bitmap_nowait(sb, block_group);
sb                538 fs/ext4/balloc.c 	err = ext4_wait_block_bitmap(sb, block_group, bh);
sb                623 fs/ext4/balloc.c int ext4_should_retry_alloc(struct super_block *sb, int *retries)
sb                625 fs/ext4/balloc.c 	if (!ext4_has_free_clusters(EXT4_SB(sb), 1, 0) ||
sb                627 fs/ext4/balloc.c 	    !EXT4_SB(sb)->s_journal)
sb                631 fs/ext4/balloc.c 	if (EXT4_SB(sb)->s_mb_free_pending == 0)
sb                634 fs/ext4/balloc.c 	jbd_debug(1, "%s: retrying operation after ENOSPC\n", sb->s_id);
sb                635 fs/ext4/balloc.c 	jbd2_journal_force_commit_nested(EXT4_SB(sb)->s_journal);
sb                685 fs/ext4/balloc.c ext4_fsblk_t ext4_count_free_clusters(struct super_block *sb)
sb                690 fs/ext4/balloc.c 	ext4_group_t ngroups = ext4_get_groups_count(sb);
sb                698 fs/ext4/balloc.c 	es = EXT4_SB(sb)->s_es;
sb                704 fs/ext4/balloc.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb                708 fs/ext4/balloc.c 		if (EXT4_SB(sb)->s_group_info)
sb                709 fs/ext4/balloc.c 			grp = ext4_get_group_info(sb, i);
sb                711 fs/ext4/balloc.c 			desc_count += ext4_free_group_clusters(sb, gdp);
sb                713 fs/ext4/balloc.c 		bitmap_bh = ext4_read_block_bitmap(sb, i);
sb                720 fs/ext4/balloc.c 				    EXT4_CLUSTERS_PER_GROUP(sb) / 8);
sb                722 fs/ext4/balloc.c 			i, ext4_free_group_clusters(sb, gdp), x);
sb                728 fs/ext4/balloc.c 	       EXT4_NUM_B2C(EXT4_SB(sb), ext4_free_blocks_count(es)),
sb                734 fs/ext4/balloc.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb                738 fs/ext4/balloc.c 		if (EXT4_SB(sb)->s_group_info)
sb                739 fs/ext4/balloc.c 			grp = ext4_get_group_info(sb, i);
sb                741 fs/ext4/balloc.c 			desc_count += ext4_free_group_clusters(sb, gdp);
sb                769 fs/ext4/balloc.c int ext4_bg_has_super(struct super_block *sb, ext4_group_t group)
sb                771 fs/ext4/balloc.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                775 fs/ext4/balloc.c 	if (ext4_has_feature_sparse_super2(sb)) {
sb                781 fs/ext4/balloc.c 	if ((group <= 1) || !ext4_has_feature_sparse_super(sb))
sb                792 fs/ext4/balloc.c static unsigned long ext4_bg_num_gdb_meta(struct super_block *sb,
sb                795 fs/ext4/balloc.c 	unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb);
sb                796 fs/ext4/balloc.c 	ext4_group_t first = metagroup * EXT4_DESC_PER_BLOCK(sb);
sb                797 fs/ext4/balloc.c 	ext4_group_t last = first + EXT4_DESC_PER_BLOCK(sb) - 1;
sb                804 fs/ext4/balloc.c static unsigned long ext4_bg_num_gdb_nometa(struct super_block *sb,
sb                807 fs/ext4/balloc.c 	if (!ext4_bg_has_super(sb, group))
sb                810 fs/ext4/balloc.c 	if (ext4_has_feature_meta_bg(sb))
sb                811 fs/ext4/balloc.c 		return le32_to_cpu(EXT4_SB(sb)->s_es->s_first_meta_bg);
sb                813 fs/ext4/balloc.c 		return EXT4_SB(sb)->s_gdb_count;
sb                825 fs/ext4/balloc.c unsigned long ext4_bg_num_gdb(struct super_block *sb, ext4_group_t group)
sb                828 fs/ext4/balloc.c 			le32_to_cpu(EXT4_SB(sb)->s_es->s_first_meta_bg);
sb                829 fs/ext4/balloc.c 	unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb);
sb                831 fs/ext4/balloc.c 	if (!ext4_has_feature_meta_bg(sb) || metagroup < first_meta_bg)
sb                832 fs/ext4/balloc.c 		return ext4_bg_num_gdb_nometa(sb, group);
sb                834 fs/ext4/balloc.c 	return ext4_bg_num_gdb_meta(sb,group);
sb                842 fs/ext4/balloc.c static unsigned ext4_num_base_meta_clusters(struct super_block *sb,
sb                845 fs/ext4/balloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                849 fs/ext4/balloc.c 	num = ext4_bg_has_super(sb, block_group);
sb                851 fs/ext4/balloc.c 	if (!ext4_has_feature_meta_bg(sb) ||
sb                855 fs/ext4/balloc.c 			num += ext4_bg_num_gdb(sb, block_group);
sb                859 fs/ext4/balloc.c 		num += ext4_bg_num_gdb(sb, block_group);
sb                 19 fs/ext4/bitmap.c int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group,
sb                 25 fs/ext4/bitmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 27 fs/ext4/bitmap.c 	if (!ext4_has_metadata_csum(sb))
sb                 41 fs/ext4/bitmap.c void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
sb                 46 fs/ext4/bitmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 48 fs/ext4/bitmap.c 	if (!ext4_has_metadata_csum(sb))
sb                 57 fs/ext4/bitmap.c int ext4_block_bitmap_csum_verify(struct super_block *sb, ext4_group_t group,
sb                 63 fs/ext4/bitmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 64 fs/ext4/bitmap.c 	int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8;
sb                 66 fs/ext4/bitmap.c 	if (!ext4_has_metadata_csum(sb))
sb                 83 fs/ext4/bitmap.c void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
sb                 87 fs/ext4/bitmap.c 	int sz = EXT4_CLUSTERS_PER_GROUP(sb) / 8;
sb                 89 fs/ext4/bitmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 91 fs/ext4/bitmap.c 	if (!ext4_has_metadata_csum(sb))
sb                188 fs/ext4/block_validity.c static int ext4_protect_reserved_inode(struct super_block *sb,
sb                193 fs/ext4/block_validity.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                201 fs/ext4/block_validity.c 	inode = ext4_iget(sb, ino, EXT4_IGET_SPECIAL);
sb                204 fs/ext4/block_validity.c 	num = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
sb                219 fs/ext4/block_validity.c 				ext4_error(sb, "blocks %llu-%llu from inode %u "
sb                253 fs/ext4/block_validity.c int ext4_setup_system_zone(struct super_block *sb)
sb                255 fs/ext4/block_validity.c 	ext4_group_t ngroups = ext4_get_groups_count(sb);
sb                256 fs/ext4/block_validity.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                263 fs/ext4/block_validity.c 	if (!test_opt(sb, BLOCK_VALIDITY)) {
sb                265 fs/ext4/block_validity.c 			ext4_release_system_zone(sb);
sb                277 fs/ext4/block_validity.c 		if (ext4_bg_has_super(sb, i) &&
sb                280 fs/ext4/block_validity.c 					ext4_group_first_block_no(sb, i),
sb                281 fs/ext4/block_validity.c 					ext4_bg_num_gdb(sb, i) + 1);
sb                282 fs/ext4/block_validity.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb                284 fs/ext4/block_validity.c 				ext4_block_bitmap(sb, gdp), 1);
sb                288 fs/ext4/block_validity.c 				ext4_inode_bitmap(sb, gdp), 1);
sb                292 fs/ext4/block_validity.c 				ext4_inode_table(sb, gdp),
sb                297 fs/ext4/block_validity.c 	if (ext4_has_feature_journal(sb) && sbi->s_es->s_journal_inum) {
sb                298 fs/ext4/block_validity.c 		ret = ext4_protect_reserved_inode(sb, system_blks,
sb                311 fs/ext4/block_validity.c 	if (test_opt(sb, DEBUG))
sb                330 fs/ext4/block_validity.c void ext4_release_system_zone(struct super_block *sb)
sb                334 fs/ext4/block_validity.c 	system_blks = rcu_dereference_protected(EXT4_SB(sb)->system_blks,
sb                335 fs/ext4/block_validity.c 					lockdep_is_held(&sb->s_umount));
sb                336 fs/ext4/block_validity.c 	rcu_assign_pointer(EXT4_SB(sb)->system_blks, NULL);
sb                 47 fs/ext4/dir.c  	struct super_block *sb = inode->i_sb;
sb                 51 fs/ext4/dir.c  	     ((inode->i_size >> sb->s_blocksize_bits) == 1) ||
sb                118 fs/ext4/dir.c  	struct super_block *sb = inode->i_sb;
sb                134 fs/ext4/dir.c  		if (!ext4_has_metadata_csum(sb)) {
sb                165 fs/ext4/dir.c  		offset = ctx->pos & (sb->s_blocksize - 1);
sb                166 fs/ext4/dir.c  		map.m_lblk = ctx->pos >> EXT4_BLOCK_SIZE_BITS(sb);
sb                174 fs/ext4/dir.c  			ctx->pos += map.m_len * sb->s_blocksize;
sb                182 fs/ext4/dir.c  					sb->s_bdev->bd_inode->i_mapping,
sb                198 fs/ext4/dir.c  			ctx->pos += sb->s_blocksize - offset;
sb                208 fs/ext4/dir.c  			ctx->pos += sb->s_blocksize - offset;
sb                220 fs/ext4/dir.c  			for (i = 0; i < sb->s_blocksize && i < offset; ) {
sb                230 fs/ext4/dir.c  					sb->s_blocksize) < EXT4_DIR_REC_LEN(1))
sb                233 fs/ext4/dir.c  							    sb->s_blocksize);
sb                236 fs/ext4/dir.c  			ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1))
sb                242 fs/ext4/dir.c  		       && offset < sb->s_blocksize) {
sb                251 fs/ext4/dir.c  						(sb->s_blocksize - 1)) + 1;
sb                255 fs/ext4/dir.c  					sb->s_blocksize);
sb                261 fs/ext4/dir.c  					    get_dtype(sb, de->file_type)))
sb                279 fs/ext4/dir.c  					    get_dtype(sb, de->file_type)))
sb                284 fs/ext4/dir.c  						sb->s_blocksize);
sb                512 fs/ext4/dir.c  	struct super_block *sb = inode->i_sb;
sb                515 fs/ext4/dir.c  		ext4_msg(sb, KERN_ERR, "%s:%d: inode #%lu: comm %s: "
sb                525 fs/ext4/dir.c  				get_dtype(sb, fname->file_type))) {
sb               1173 fs/ext4/ext4.h #define clear_opt(sb, opt)		EXT4_SB(sb)->s_mount_opt &= \
sb               1175 fs/ext4/ext4.h #define set_opt(sb, opt)		EXT4_SB(sb)->s_mount_opt |= \
sb               1177 fs/ext4/ext4.h #define test_opt(sb, opt)		(EXT4_SB(sb)->s_mount_opt & \
sb               1180 fs/ext4/ext4.h #define clear_opt2(sb, opt)		EXT4_SB(sb)->s_mount_opt2 &= \
sb               1182 fs/ext4/ext4.h #define set_opt2(sb, opt)		EXT4_SB(sb)->s_mount_opt2 |= \
sb               1184 fs/ext4/ext4.h #define test_opt2(sb, opt)		(EXT4_SB(sb)->s_mount_opt2 & \
sb               1559 fs/ext4/ext4.h static inline struct ext4_sb_info *EXT4_SB(struct super_block *sb)
sb               1561 fs/ext4/ext4.h 	return sb->s_fs_info;
sb               1568 fs/ext4/ext4.h static inline int ext4_valid_inum(struct super_block *sb, unsigned long ino)
sb               1571 fs/ext4/ext4.h 		(ino >= EXT4_FIRST_INO(sb) &&
sb               1572 fs/ext4/ext4.h 		 ino <= le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count));
sb               1655 fs/ext4/ext4.h #define EXT4_SB(sb)	(sb)
sb               1739 fs/ext4/ext4.h extern void ext4_update_dynamic_rev(struct super_block *sb);
sb               1742 fs/ext4/ext4.h static inline bool ext4_has_feature_##name(struct super_block *sb) \
sb               1744 fs/ext4/ext4.h 	return ((EXT4_SB(sb)->s_es->s_feature_compat & \
sb               1747 fs/ext4/ext4.h static inline void ext4_set_feature_##name(struct super_block *sb) \
sb               1749 fs/ext4/ext4.h 	ext4_update_dynamic_rev(sb); \
sb               1750 fs/ext4/ext4.h 	EXT4_SB(sb)->s_es->s_feature_compat |= \
sb               1753 fs/ext4/ext4.h static inline void ext4_clear_feature_##name(struct super_block *sb) \
sb               1755 fs/ext4/ext4.h 	EXT4_SB(sb)->s_es->s_feature_compat &= \
sb               1760 fs/ext4/ext4.h static inline bool ext4_has_feature_##name(struct super_block *sb) \
sb               1762 fs/ext4/ext4.h 	return ((EXT4_SB(sb)->s_es->s_feature_ro_compat & \
sb               1765 fs/ext4/ext4.h static inline void ext4_set_feature_##name(struct super_block *sb) \
sb               1767 fs/ext4/ext4.h 	ext4_update_dynamic_rev(sb); \
sb               1768 fs/ext4/ext4.h 	EXT4_SB(sb)->s_es->s_feature_ro_compat |= \
sb               1771 fs/ext4/ext4.h static inline void ext4_clear_feature_##name(struct super_block *sb) \
sb               1773 fs/ext4/ext4.h 	EXT4_SB(sb)->s_es->s_feature_ro_compat &= \
sb               1778 fs/ext4/ext4.h static inline bool ext4_has_feature_##name(struct super_block *sb) \
sb               1780 fs/ext4/ext4.h 	return ((EXT4_SB(sb)->s_es->s_feature_incompat & \
sb               1783 fs/ext4/ext4.h static inline void ext4_set_feature_##name(struct super_block *sb) \
sb               1785 fs/ext4/ext4.h 	ext4_update_dynamic_rev(sb); \
sb               1786 fs/ext4/ext4.h 	EXT4_SB(sb)->s_es->s_feature_incompat |= \
sb               1789 fs/ext4/ext4.h static inline void ext4_clear_feature_##name(struct super_block *sb) \
sb               1791 fs/ext4/ext4.h 	EXT4_SB(sb)->s_es->s_feature_incompat &= \
sb               1877 fs/ext4/ext4.h static inline bool ext4_has_unknown_ext##ver##_compat_features(struct super_block *sb) \
sb               1879 fs/ext4/ext4.h 	return ((EXT4_SB(sb)->s_es->s_feature_compat & \
sb               1882 fs/ext4/ext4.h static inline bool ext4_has_unknown_ext##ver##_ro_compat_features(struct super_block *sb) \
sb               1884 fs/ext4/ext4.h 	return ((EXT4_SB(sb)->s_es->s_feature_ro_compat & \
sb               1887 fs/ext4/ext4.h static inline bool ext4_has_unknown_ext##ver##_incompat_features(struct super_block *sb) \
sb               1889 fs/ext4/ext4.h 	return ((EXT4_SB(sb)->s_es->s_feature_incompat & \
sb               1897 fs/ext4/ext4.h static inline bool ext4_has_compat_features(struct super_block *sb)
sb               1899 fs/ext4/ext4.h 	return (EXT4_SB(sb)->s_es->s_feature_compat != 0);
sb               1901 fs/ext4/ext4.h static inline bool ext4_has_ro_compat_features(struct super_block *sb)
sb               1903 fs/ext4/ext4.h 	return (EXT4_SB(sb)->s_es->s_feature_ro_compat != 0);
sb               1905 fs/ext4/ext4.h static inline bool ext4_has_incompat_features(struct super_block *sb)
sb               1907 fs/ext4/ext4.h 	return (EXT4_SB(sb)->s_es->s_feature_incompat != 0);
sb               2185 fs/ext4/ext4.h ext4_group_first_block_no(struct super_block *sb, ext4_group_t group_no)
sb               2187 fs/ext4/ext4.h 	return group_no * (ext4_fsblk_t)EXT4_BLOCKS_PER_GROUP(sb) +
sb               2188 fs/ext4/ext4.h 		le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block);
sb               2200 fs/ext4/ext4.h static inline int ext4_dir_htree_level(struct super_block *sb)
sb               2202 fs/ext4/ext4.h 	return ext4_has_feature_largedir(sb) ?
sb               2276 fs/ext4/ext4.h 	struct super_block *sb;  /* super block of the fs */
sb               2313 fs/ext4/ext4.h void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
sb               2316 fs/ext4/ext4.h int ext4_inode_bitmap_csum_verify(struct super_block *sb, ext4_group_t group,
sb               2319 fs/ext4/ext4.h void ext4_block_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
sb               2322 fs/ext4/ext4.h int ext4_block_bitmap_csum_verify(struct super_block *sb, ext4_group_t group,
sb               2327 fs/ext4/ext4.h extern void ext4_get_group_no_and_offset(struct super_block *sb,
sb               2331 fs/ext4/ext4.h extern ext4_group_t ext4_get_group_number(struct super_block *sb,
sb               2334 fs/ext4/ext4.h extern unsigned int ext4_block_group(struct super_block *sb,
sb               2336 fs/ext4/ext4.h extern ext4_grpblk_t ext4_block_group_offset(struct super_block *sb,
sb               2338 fs/ext4/ext4.h extern int ext4_bg_has_super(struct super_block *sb, ext4_group_t group);
sb               2339 fs/ext4/ext4.h extern unsigned long ext4_bg_num_gdb(struct super_block *sb,
sb               2350 fs/ext4/ext4.h extern struct ext4_group_desc * ext4_get_group_desc(struct super_block * sb,
sb               2353 fs/ext4/ext4.h extern int ext4_should_retry_alloc(struct super_block *sb, int *retries);
sb               2355 fs/ext4/ext4.h extern struct buffer_head *ext4_read_block_bitmap_nowait(struct super_block *sb,
sb               2357 fs/ext4/ext4.h extern int ext4_wait_block_bitmap(struct super_block *sb,
sb               2360 fs/ext4/ext4.h extern struct buffer_head *ext4_read_block_bitmap(struct super_block *sb,
sb               2362 fs/ext4/ext4.h extern unsigned ext4_free_clusters_after_init(struct super_block *sb,
sb               2509 fs/ext4/ext4.h static inline  unsigned char get_dtype(struct super_block *sb, int filetype)
sb               2511 fs/ext4/ext4.h 	if (!ext4_has_feature_filetype(sb) || filetype >= EXT4_FT_MAX)
sb               2548 fs/ext4/ext4.h extern int ext4_init_inode_table(struct super_block *sb,
sb               2567 fs/ext4/ext4.h extern int ext4_mb_alloc_groupinfo(struct super_block *sb,
sb               2569 fs/ext4/ext4.h extern int ext4_mb_add_groupinfo(struct super_block *sb,
sb               2571 fs/ext4/ext4.h extern int ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
sb               2574 fs/ext4/ext4.h extern void ext4_process_freed_data(struct super_block *sb, tid_t commit_tid);
sb               2608 fs/ext4/ext4.h extern struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,
sb               2612 fs/ext4/ext4.h #define ext4_iget(sb, ino, flags) \
sb               2613 fs/ext4/ext4.h 	__ext4_iget((sb), (ino), (flags), __func__, __LINE__)
sb               2690 fs/ext4/ext4.h extern int ext4_group_add(struct super_block *sb,
sb               2692 fs/ext4/ext4.h extern int ext4_group_extend(struct super_block *sb,
sb               2695 fs/ext4/ext4.h extern int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count);
sb               2698 fs/ext4/ext4.h extern struct buffer_head *ext4_sb_bread(struct super_block *sb,
sb               2701 fs/ext4/ext4.h extern int ext4_calculate_overhead(struct super_block *sb);
sb               2702 fs/ext4/ext4.h extern void ext4_superblock_csum_set(struct super_block *sb);
sb               2705 fs/ext4/ext4.h extern int ext4_alloc_flex_bg_array(struct super_block *sb,
sb               2707 fs/ext4/ext4.h extern const char *ext4_decode_error(struct super_block *sb, int errno,
sb               2709 fs/ext4/ext4.h extern void ext4_mark_group_bitmap_corrupted(struct super_block *sb,
sb               2758 fs/ext4/ext4.h #define ext4_error(sb, fmt, ...)					\
sb               2759 fs/ext4/ext4.h 	__ext4_error(sb, __func__, __LINE__, fmt, ##__VA_ARGS__)
sb               2760 fs/ext4/ext4.h #define ext4_abort(sb, fmt, ...)					\
sb               2761 fs/ext4/ext4.h 	__ext4_abort(sb, __func__, __LINE__, fmt, ##__VA_ARGS__)
sb               2762 fs/ext4/ext4.h #define ext4_warning(sb, fmt, ...)					\
sb               2763 fs/ext4/ext4.h 	__ext4_warning(sb, __func__, __LINE__, fmt, ##__VA_ARGS__)
sb               2766 fs/ext4/ext4.h #define ext4_msg(sb, level, fmt, ...)				\
sb               2767 fs/ext4/ext4.h 	__ext4_msg(sb, level, fmt, ##__VA_ARGS__)
sb               2768 fs/ext4/ext4.h #define dump_mmp_msg(sb, mmp, msg)					\
sb               2769 fs/ext4/ext4.h 	__dump_mmp_msg(sb, mmp, __func__, __LINE__, msg)
sb               2770 fs/ext4/ext4.h #define ext4_grp_locked_error(sb, grp, ino, block, fmt, ...)		\
sb               2771 fs/ext4/ext4.h 	__ext4_grp_locked_error(__func__, __LINE__, sb, grp, ino, block, \
sb               2786 fs/ext4/ext4.h #define ext4_error(sb, fmt, ...)					\
sb               2789 fs/ext4/ext4.h 	__ext4_error(sb, "", 0, " ");					\
sb               2791 fs/ext4/ext4.h #define ext4_abort(sb, fmt, ...)					\
sb               2794 fs/ext4/ext4.h 	__ext4_abort(sb, "", 0, " ");					\
sb               2796 fs/ext4/ext4.h #define ext4_warning(sb, fmt, ...)					\
sb               2799 fs/ext4/ext4.h 	__ext4_warning(sb, "", 0, " ");					\
sb               2806 fs/ext4/ext4.h #define ext4_msg(sb, level, fmt, ...)					\
sb               2809 fs/ext4/ext4.h 	__ext4_msg(sb, "", " ");					\
sb               2811 fs/ext4/ext4.h #define dump_mmp_msg(sb, mmp, msg)					\
sb               2812 fs/ext4/ext4.h 	__dump_mmp_msg(sb, mmp, "", 0, "")
sb               2813 fs/ext4/ext4.h #define ext4_grp_locked_error(sb, grp, ino, block, fmt, ...)		\
sb               2816 fs/ext4/ext4.h 	__ext4_grp_locked_error("", 0, sb, grp, ino, block, " ");	\
sb               2821 fs/ext4/ext4.h extern int ext4_update_compat_feature(handle_t *handle, struct super_block *sb,
sb               2824 fs/ext4/ext4.h 					struct super_block *sb,	__u32 rocompat);
sb               2826 fs/ext4/ext4.h 					struct super_block *sb,	__u32 incompat);
sb               2827 fs/ext4/ext4.h extern ext4_fsblk_t ext4_block_bitmap(struct super_block *sb,
sb               2829 fs/ext4/ext4.h extern ext4_fsblk_t ext4_inode_bitmap(struct super_block *sb,
sb               2831 fs/ext4/ext4.h extern ext4_fsblk_t ext4_inode_table(struct super_block *sb,
sb               2833 fs/ext4/ext4.h extern __u32 ext4_free_group_clusters(struct super_block *sb,
sb               2835 fs/ext4/ext4.h extern __u32 ext4_free_inodes_count(struct super_block *sb,
sb               2837 fs/ext4/ext4.h extern __u32 ext4_used_dirs_count(struct super_block *sb,
sb               2839 fs/ext4/ext4.h extern __u32 ext4_itable_unused_count(struct super_block *sb,
sb               2841 fs/ext4/ext4.h extern void ext4_block_bitmap_set(struct super_block *sb,
sb               2843 fs/ext4/ext4.h extern void ext4_inode_bitmap_set(struct super_block *sb,
sb               2845 fs/ext4/ext4.h extern void ext4_inode_table_set(struct super_block *sb,
sb               2847 fs/ext4/ext4.h extern void ext4_free_group_clusters_set(struct super_block *sb,
sb               2850 fs/ext4/ext4.h extern void ext4_free_inodes_set(struct super_block *sb,
sb               2852 fs/ext4/ext4.h extern void ext4_used_dirs_set(struct super_block *sb,
sb               2854 fs/ext4/ext4.h extern void ext4_itable_unused_set(struct super_block *sb,
sb               2856 fs/ext4/ext4.h extern int ext4_group_desc_csum_verify(struct super_block *sb, __u32 group,
sb               2858 fs/ext4/ext4.h extern void ext4_group_desc_csum_set(struct super_block *sb, __u32 group,
sb               2860 fs/ext4/ext4.h extern int ext4_register_li_request(struct super_block *sb,
sb               2863 fs/ext4/ext4.h static inline int ext4_has_metadata_csum(struct super_block *sb)
sb               2865 fs/ext4/ext4.h 	WARN_ON_ONCE(ext4_has_feature_metadata_csum(sb) &&
sb               2866 fs/ext4/ext4.h 		     !EXT4_SB(sb)->s_chksum_driver);
sb               2868 fs/ext4/ext4.h 	return ext4_has_feature_metadata_csum(sb) &&
sb               2869 fs/ext4/ext4.h 	       (EXT4_SB(sb)->s_chksum_driver != NULL);
sb               2872 fs/ext4/ext4.h static inline int ext4_has_group_desc_csum(struct super_block *sb)
sb               2874 fs/ext4/ext4.h 	return ext4_has_feature_gdt_csum(sb) || ext4_has_metadata_csum(sb);
sb               2916 fs/ext4/ext4.h static inline loff_t ext4_isize(struct super_block *sb,
sb               2919 fs/ext4/ext4.h 	if (ext4_has_feature_largedir(sb) ||
sb               2934 fs/ext4/ext4.h struct ext4_group_info *ext4_get_group_info(struct super_block *sb,
sb               2939 fs/ext4/ext4.h 	 BUG_ON(group >= EXT4_SB(sb)->s_groups_count);
sb               2940 fs/ext4/ext4.h 	 indexv = group >> (EXT4_DESC_PER_BLOCK_BITS(sb));
sb               2941 fs/ext4/ext4.h 	 indexh = group & ((EXT4_DESC_PER_BLOCK(sb)) - 1);
sb               2942 fs/ext4/ext4.h 	 grp_info = sbi_array_rcu_deref(EXT4_SB(sb), s_group_info, indexv);
sb               2951 fs/ext4/ext4.h static inline ext4_group_t ext4_get_groups_count(struct super_block *sb)
sb               2953 fs/ext4/ext4.h 	ext4_group_t	ngroups = EXT4_SB(sb)->s_groups_count;
sb               2970 fs/ext4/ext4.h #define ext4_std_error(sb, errno)				\
sb               2973 fs/ext4/ext4.h 		__ext4_std_error((sb), __func__, __LINE__, (errno));	\
sb               3060 fs/ext4/ext4.h static inline spinlock_t *ext4_group_lock_ptr(struct super_block *sb,
sb               3063 fs/ext4/ext4.h 	return bgl_lock_ptr(EXT4_SB(sb)->s_blockgroup_lock, group);
sb               3075 fs/ext4/ext4.h static inline void ext4_lock_group(struct super_block *sb, ext4_group_t group)
sb               3077 fs/ext4/ext4.h 	spinlock_t *lock = ext4_group_lock_ptr(sb, group);
sb               3083 fs/ext4/ext4.h 		atomic_add_unless(&EXT4_SB(sb)->s_lock_busy, -1, 0);
sb               3089 fs/ext4/ext4.h 		atomic_add_unless(&EXT4_SB(sb)->s_lock_busy, 1,
sb               3095 fs/ext4/ext4.h static inline void ext4_unlock_group(struct super_block *sb,
sb               3098 fs/ext4/ext4.h 	spin_unlock(ext4_group_lock_ptr(sb, group));
sb               3231 fs/ext4/ext4.h static inline void ext4_set_de_type(struct super_block *sb,
sb               3234 fs/ext4/ext4.h 	if (ext4_has_feature_filetype(sb))
sb               3251 fs/ext4/ext4.h extern int ext4_register_sysfs(struct super_block *sb);
sb               3252 fs/ext4/ext4.h extern void ext4_unregister_sysfs(struct super_block *sb);
sb               3257 fs/ext4/ext4.h extern void ext4_release_system_zone(struct super_block *sb);
sb               3258 fs/ext4/ext4.h extern int ext4_setup_system_zone(struct super_block *sb);
sb               3381 fs/ext4/ext4.h extern int ext4_resize_begin(struct super_block *sb);
sb               3382 fs/ext4/ext4.h extern void ext4_resize_end(struct super_block *sb);
sb                 42 fs/ext4/ext4_jbd2.c static int ext4_journal_check_start(struct super_block *sb)
sb                 48 fs/ext4/ext4_jbd2.c 	if (unlikely(ext4_forced_shutdown(EXT4_SB(sb))))
sb                 51 fs/ext4/ext4_jbd2.c 	if (sb_rdonly(sb))
sb                 53 fs/ext4/ext4_jbd2.c 	WARN_ON(sb->s_writers.frozen == SB_FREEZE_COMPLETE);
sb                 54 fs/ext4/ext4_jbd2.c 	journal = EXT4_SB(sb)->s_journal;
sb                 61 fs/ext4/ext4_jbd2.c 		ext4_abort(sb, "Detected aborted journal");
sb                 67 fs/ext4/ext4_jbd2.c handle_t *__ext4_journal_start_sb(struct super_block *sb, unsigned int line,
sb                 73 fs/ext4/ext4_jbd2.c 	trace_ext4_journal_start(sb, blocks, rsv_blocks, _RET_IP_);
sb                 74 fs/ext4/ext4_jbd2.c 	err = ext4_journal_check_start(sb);
sb                 78 fs/ext4/ext4_jbd2.c 	journal = EXT4_SB(sb)->s_journal;
sb                 87 fs/ext4/ext4_jbd2.c 	struct super_block *sb;
sb                102 fs/ext4/ext4_jbd2.c 	sb = handle->h_transaction->t_journal->j_private;
sb                108 fs/ext4/ext4_jbd2.c 		__ext4_std_error(sb, where, line, err);
sb                115 fs/ext4/ext4_jbd2.c 	struct super_block *sb;
sb                121 fs/ext4/ext4_jbd2.c 	sb = handle->h_journal->j_private;
sb                122 fs/ext4/ext4_jbd2.c 	trace_ext4_journal_start_reserved(sb, handle->h_buffer_credits,
sb                124 fs/ext4/ext4_jbd2.c 	err = ext4_journal_check_start(sb);
sb                318 fs/ext4/ext4_jbd2.c 			      handle_t *handle, struct super_block *sb)
sb                320 fs/ext4/ext4_jbd2.c 	struct buffer_head *bh = EXT4_SB(sb)->s_sbh;
sb                323 fs/ext4/ext4_jbd2.c 	ext4_superblock_csum_set(sb);
sb                 33 fs/ext4/ext4_jbd2.h #define EXT4_SINGLEDATA_TRANS_BLOCKS(sb)				\
sb                 34 fs/ext4/ext4_jbd2.h 	(ext4_has_feature_extents(sb) ? 20U : 8U)
sb                 48 fs/ext4/ext4_jbd2.h #define EXT4_DATA_TRANS_BLOCKS(sb)	(EXT4_SINGLEDATA_TRANS_BLOCKS(sb) + \
sb                 50 fs/ext4/ext4_jbd2.h 					 EXT4_MAXQUOTAS_TRANS_BLOCKS(sb))
sb                 57 fs/ext4/ext4_jbd2.h #define EXT4_META_TRANS_BLOCKS(sb)	(EXT4_XATTR_TRANS_BLOCKS + \
sb                 58 fs/ext4/ext4_jbd2.h 					EXT4_MAXQUOTAS_TRANS_BLOCKS(sb))
sb                 89 fs/ext4/ext4_jbd2.h #define EXT4_QUOTA_TRANS_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\
sb                 90 fs/ext4/ext4_jbd2.h 		ext4_has_feature_quota(sb)) ? 1 : 0)
sb                 93 fs/ext4/ext4_jbd2.h #define EXT4_QUOTA_INIT_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\
sb                 94 fs/ext4/ext4_jbd2.h 		ext4_has_feature_quota(sb)) ?\
sb                 95 fs/ext4/ext4_jbd2.h 		(DQUOT_INIT_ALLOC*(EXT4_SINGLEDATA_TRANS_BLOCKS(sb)-3)\
sb                 98 fs/ext4/ext4_jbd2.h #define EXT4_QUOTA_DEL_BLOCKS(sb) ((test_opt(sb, QUOTA) ||\
sb                 99 fs/ext4/ext4_jbd2.h 		ext4_has_feature_quota(sb)) ?\
sb                100 fs/ext4/ext4_jbd2.h 		(DQUOT_DEL_ALLOC*(EXT4_SINGLEDATA_TRANS_BLOCKS(sb)-3)\
sb                103 fs/ext4/ext4_jbd2.h #define EXT4_QUOTA_TRANS_BLOCKS(sb) 0
sb                104 fs/ext4/ext4_jbd2.h #define EXT4_QUOTA_INIT_BLOCKS(sb) 0
sb                105 fs/ext4/ext4_jbd2.h #define EXT4_QUOTA_DEL_BLOCKS(sb) 0
sb                107 fs/ext4/ext4_jbd2.h #define EXT4_MAXQUOTAS_TRANS_BLOCKS(sb) (EXT4_MAXQUOTAS*EXT4_QUOTA_TRANS_BLOCKS(sb))
sb                108 fs/ext4/ext4_jbd2.h #define EXT4_MAXQUOTAS_INIT_BLOCKS(sb) (EXT4_MAXQUOTAS*EXT4_QUOTA_INIT_BLOCKS(sb))
sb                109 fs/ext4/ext4_jbd2.h #define EXT4_MAXQUOTAS_DEL_BLOCKS(sb) (EXT4_MAXQUOTAS*EXT4_QUOTA_DEL_BLOCKS(sb))
sb                141 fs/ext4/ext4_jbd2.h 	void (*jce_func)(struct super_block *sb,
sb                176 fs/ext4/ext4_jbd2.h 			void (*func)(struct super_block *sb,
sb                248 fs/ext4/ext4_jbd2.h 			      handle_t *handle, struct super_block *sb);
sb                260 fs/ext4/ext4_jbd2.h #define ext4_handle_dirty_super(handle, sb) \
sb                261 fs/ext4/ext4_jbd2.h 	__ext4_handle_dirty_super(__func__, __LINE__, (handle), (sb))
sb                263 fs/ext4/ext4_jbd2.h handle_t *__ext4_journal_start_sb(struct super_block *sb, unsigned int line,
sb                298 fs/ext4/ext4_jbd2.h #define ext4_journal_start_sb(sb, type, nblocks)			\
sb                299 fs/ext4/ext4_jbd2.h 	__ext4_journal_start_sb((sb), __LINE__, (type), (nblocks), 0)
sb                395 fs/ext4/ext4_jbd2.h int ext4_force_commit(struct super_block *sb);
sb               3204 fs/ext4/extents.c void ext4_ext_init(struct super_block *sb)
sb               3210 fs/ext4/extents.c 	if (ext4_has_feature_extents(sb)) {
sb               3225 fs/ext4/extents.c 		spin_lock_init(&EXT4_SB(sb)->s_ext_stats_lock);
sb               3226 fs/ext4/extents.c 		EXT4_SB(sb)->s_ext_min = 1 << 30;
sb               3227 fs/ext4/extents.c 		EXT4_SB(sb)->s_ext_max = 0;
sb               3235 fs/ext4/extents.c void ext4_ext_release(struct super_block *sb)
sb               3237 fs/ext4/extents.c 	if (!ext4_has_feature_extents(sb))
sb               3241 fs/ext4/extents.c 	if (EXT4_SB(sb)->s_ext_blocks && EXT4_SB(sb)->s_ext_extents) {
sb               3242 fs/ext4/extents.c 		struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               4187 fs/ext4/extents.c static int get_implied_cluster_alloc(struct super_block *sb,
sb               4192 fs/ext4/extents.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               4240 fs/ext4/extents.c 		trace_ext4_get_implied_cluster_alloc_exit(sb, map, 1);
sb               4244 fs/ext4/extents.c 	trace_ext4_get_implied_cluster_alloc_exit(sb, map, 0);
sb               4578 fs/ext4/extents.c 	struct super_block *sb = inode->i_sb;
sb               4594 fs/ext4/extents.c 	last_block = (inode->i_size + sb->s_blocksize - 1)
sb               4595 fs/ext4/extents.c 			>> EXT4_BLOCK_SIZE_BITS(sb);
sb               5447 fs/ext4/extents.c 	struct super_block *sb = inode->i_sb;
sb               5463 fs/ext4/extents.c 	if (offset & (EXT4_CLUSTER_SIZE(sb) - 1) ||
sb               5464 fs/ext4/extents.c 	    len & (EXT4_CLUSTER_SIZE(sb) - 1))
sb               5472 fs/ext4/extents.c 	punch_start = offset >> EXT4_BLOCK_SIZE_BITS(sb);
sb               5473 fs/ext4/extents.c 	punch_stop = (offset + len) >> EXT4_BLOCK_SIZE_BITS(sb);
sb               5595 fs/ext4/extents.c 	struct super_block *sb = inode->i_sb;
sb               5613 fs/ext4/extents.c 	if (offset & (EXT4_CLUSTER_SIZE(sb) - 1) ||
sb               5614 fs/ext4/extents.c 			len & (EXT4_CLUSTER_SIZE(sb) - 1))
sb               5622 fs/ext4/extents.c 	offset_lblk = offset >> EXT4_BLOCK_SIZE_BITS(sb);
sb               5623 fs/ext4/extents.c 	len_lblk = len >> EXT4_BLOCK_SIZE_BITS(sb);
sb                126 fs/ext4/file.c 	struct super_block *sb = inode->i_sb;
sb                127 fs/ext4/file.c 	int blockmask = sb->s_blocksize - 1;
sb                129 fs/ext4/file.c 	if (pos >= ALIGN(i_size_read(inode), sb->s_blocksize))
sb                299 fs/ext4/file.c 	struct super_block *sb = inode->i_sb;
sb                317 fs/ext4/file.c 		sb_start_pagefault(sb);
sb                321 fs/ext4/file.c 		handle = ext4_journal_start_sb(sb, EXT4_HT_WRITE_PAGE,
sb                322 fs/ext4/file.c 					       EXT4_DATA_TRANS_BLOCKS(sb));
sb                325 fs/ext4/file.c 			sb_end_pagefault(sb);
sb                336 fs/ext4/file.c 		    ext4_should_retry_alloc(sb, &retries))
sb                342 fs/ext4/file.c 		sb_end_pagefault(sb);
sb                397 fs/ext4/file.c static int ext4_sample_last_mounted(struct super_block *sb,
sb                400 fs/ext4/file.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                409 fs/ext4/file.c 	if (sb_rdonly(sb) || !sb_start_intwrite_trylock(sb))
sb                427 fs/ext4/file.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 1);
sb                437 fs/ext4/file.c 	ext4_handle_dirty_super(handle, sb);
sb                441 fs/ext4/file.c 	sb_end_intwrite(sb);
sb                 16 fs/ext4/fsmap.c void ext4_fsmap_from_internal(struct super_block *sb, struct fsmap *dest,
sb                 21 fs/ext4/fsmap.c 	dest->fmr_physical = src->fmr_physical << sb->s_blocksize_bits;
sb                 24 fs/ext4/fsmap.c 	dest->fmr_length = src->fmr_length << sb->s_blocksize_bits;
sb                 31 fs/ext4/fsmap.c void ext4_fsmap_to_internal(struct super_block *sb, struct ext4_fsmap *dest,
sb                 36 fs/ext4/fsmap.c 	dest->fmr_physical = src->fmr_physical >> sb->s_blocksize_bits;
sb                 38 fs/ext4/fsmap.c 	dest->fmr_length = src->fmr_length >> sb->s_blocksize_bits;
sb                 58 fs/ext4/fsmap.c 	int			(*gfd_fn)(struct super_block *sb,
sb                 84 fs/ext4/fsmap.c static int ext4_getfsmap_helper(struct super_block *sb,
sb                 89 fs/ext4/fsmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                134 fs/ext4/fsmap.c 		ext4_get_group_no_and_offset(sb, info->gfi_next_fsblk,
sb                136 fs/ext4/fsmap.c 		trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno,
sb                159 fs/ext4/fsmap.c 	ext4_get_group_no_and_offset(sb, rec_fsblk, &agno, &cno);
sb                160 fs/ext4/fsmap.c 	trace_ext4_fsmap_mapping(sb, info->gfi_dev, agno, EXT4_C2B(sbi, cno),
sb                186 fs/ext4/fsmap.c static int ext4_getfsmap_datadev_helper(struct super_block *sb,
sb                194 fs/ext4/fsmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                199 fs/ext4/fsmap.c 	fsb = (EXT4_C2B(sbi, start) + ext4_group_first_block_no(sb, agno));
sb                214 fs/ext4/fsmap.c 		error = ext4_getfsmap_helper(sb, info, &info->gfi_lastfree);
sb                226 fs/ext4/fsmap.c 			error = ext4_getfsmap_helper(sb, info, p);
sb                243 fs/ext4/fsmap.c 			ext4_group_first_block_no(sb, agno + 1)) {
sb                249 fs/ext4/fsmap.c 	return ext4_getfsmap_helper(sb, info, &irec);
sb                253 fs/ext4/fsmap.c static int ext4_getfsmap_logdev(struct super_block *sb, struct ext4_fsmap *keys,
sb                256 fs/ext4/fsmap.c 	journal_t *journal = EXT4_SB(sb)->s_journal;
sb                265 fs/ext4/fsmap.c 	trace_ext4_fsmap_low_key(sb, info->gfi_dev, 0,
sb                270 fs/ext4/fsmap.c 	trace_ext4_fsmap_high_key(sb, info->gfi_dev, 0,
sb                284 fs/ext4/fsmap.c 	return ext4_getfsmap_helper(sb, info, &irec);
sb                311 fs/ext4/fsmap.c static unsigned int ext4_getfsmap_find_sb(struct super_block *sb,
sb                315 fs/ext4/fsmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                316 fs/ext4/fsmap.c 	ext4_fsblk_t fsb = ext4_group_first_block_no(sb, agno);
sb                319 fs/ext4/fsmap.c 	unsigned long metagroup = agno / EXT4_DESC_PER_BLOCK(sb);
sb                323 fs/ext4/fsmap.c 	if (ext4_bg_has_super(sb, agno)) {
sb                331 fs/ext4/fsmap.c 	len = ext4_bg_num_gdb(sb, agno);
sb                341 fs/ext4/fsmap.c 	if (!ext4_has_feature_meta_bg(sb) || metagroup < first_meta_bg) {
sb                405 fs/ext4/fsmap.c static int ext4_getfsmap_find_fixed_metadata(struct super_block *sb,
sb                415 fs/ext4/fsmap.c 	for (agno = 0; agno < EXT4_SB(sb)->s_groups_count; agno++) {
sb                416 fs/ext4/fsmap.c 		gdp = ext4_get_group_desc(sb, agno, NULL);
sb                423 fs/ext4/fsmap.c 		error = ext4_getfsmap_find_sb(sb, agno, meta_list);
sb                429 fs/ext4/fsmap.c 					   ext4_block_bitmap(sb, gdp), 1,
sb                436 fs/ext4/fsmap.c 					   ext4_inode_bitmap(sb, gdp), 1,
sb                443 fs/ext4/fsmap.c 					   ext4_inode_table(sb, gdp),
sb                444 fs/ext4/fsmap.c 					   EXT4_SB(sb)->s_itb_per_group,
sb                463 fs/ext4/fsmap.c static int ext4_getfsmap_datadev(struct super_block *sb,
sb                467 fs/ext4/fsmap.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                490 fs/ext4/fsmap.c 	ext4_get_group_no_and_offset(sb, start_fsb, &start_ag, &first_cluster);
sb                491 fs/ext4/fsmap.c 	ext4_get_group_no_and_offset(sb, end_fsb, &end_ag, &last_cluster);
sb                505 fs/ext4/fsmap.c 	error = ext4_getfsmap_find_fixed_metadata(sb, &info->gfi_meta_list);
sb                524 fs/ext4/fsmap.c 		trace_ext4_fsmap_low_key(sb, info->gfi_dev, info->gfi_agno,
sb                529 fs/ext4/fsmap.c 		trace_ext4_fsmap_high_key(sb, info->gfi_dev, info->gfi_agno,
sb                534 fs/ext4/fsmap.c 		error = ext4_mballoc_query_range(sb, info->gfi_agno,
sb                551 fs/ext4/fsmap.c 		error = ext4_getfsmap_helper(sb, info, &info->gfi_lastfree);
sb                558 fs/ext4/fsmap.c 	error = ext4_getfsmap_datadev_helper(sb, end_ag, last_cluster, 0, info);
sb                568 fs/ext4/fsmap.c static bool ext4_getfsmap_is_valid_device(struct super_block *sb,
sb                572 fs/ext4/fsmap.c 	    fm->fmr_device == new_encode_dev(sb->s_bdev->bd_dev))
sb                574 fs/ext4/fsmap.c 	if (EXT4_SB(sb)->journal_bdev &&
sb                575 fs/ext4/fsmap.c 	    fm->fmr_device == new_encode_dev(EXT4_SB(sb)->journal_bdev->bd_dev))
sb                624 fs/ext4/fsmap.c int ext4_getfsmap(struct super_block *sb, struct ext4_fsmap_head *head,
sb                635 fs/ext4/fsmap.c 	if (!ext4_getfsmap_is_valid_device(sb, &head->fmh_keys[0]) ||
sb                636 fs/ext4/fsmap.c 	    !ext4_getfsmap_is_valid_device(sb, &head->fmh_keys[1]))
sb                643 fs/ext4/fsmap.c 	handlers[0].gfd_dev = new_encode_dev(sb->s_bdev->bd_dev);
sb                645 fs/ext4/fsmap.c 	if (EXT4_SB(sb)->journal_bdev) {
sb                647 fs/ext4/fsmap.c 				EXT4_SB(sb)->journal_bdev->bd_dev);
sb                705 fs/ext4/fsmap.c 		error = handlers[i].gfd_fn(sb, dkeys, &info);
sb                 31 fs/ext4/fsmap.h void ext4_fsmap_from_internal(struct super_block *sb, struct fsmap *dest,
sb                 33 fs/ext4/fsmap.h void ext4_fsmap_to_internal(struct super_block *sb, struct ext4_fsmap *dest,
sb                 39 fs/ext4/fsmap.h int ext4_getfsmap(struct super_block *sb, struct ext4_fsmap_head *head,
sb                 79 fs/ext4/ialloc.c static int ext4_validate_inode_bitmap(struct super_block *sb,
sb                 85 fs/ext4/ialloc.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, block_group);
sb                 92 fs/ext4/ialloc.c 	ext4_lock_group(sb, block_group);
sb                 95 fs/ext4/ialloc.c 	blk = ext4_inode_bitmap(sb, desc);
sb                 96 fs/ext4/ialloc.c 	if (!ext4_inode_bitmap_csum_verify(sb, block_group, desc, bh,
sb                 97 fs/ext4/ialloc.c 					   EXT4_INODES_PER_GROUP(sb) / 8)) {
sb                 98 fs/ext4/ialloc.c 		ext4_unlock_group(sb, block_group);
sb                 99 fs/ext4/ialloc.c 		ext4_error(sb, "Corrupt inode bitmap - block_group = %u, "
sb                101 fs/ext4/ialloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                107 fs/ext4/ialloc.c 	ext4_unlock_group(sb, block_group);
sb                118 fs/ext4/ialloc.c ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group)
sb                121 fs/ext4/ialloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                126 fs/ext4/ialloc.c 	desc = ext4_get_group_desc(sb, block_group, NULL);
sb                130 fs/ext4/ialloc.c 	bitmap_blk = ext4_inode_bitmap(sb, desc);
sb                133 fs/ext4/ialloc.c 		ext4_error(sb, "Invalid inode bitmap blk %llu in "
sb                135 fs/ext4/ialloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                139 fs/ext4/ialloc.c 	bh = sb_getblk(sb, bitmap_blk);
sb                141 fs/ext4/ialloc.c 		ext4_warning(sb, "Cannot read inode bitmap - "
sb                155 fs/ext4/ialloc.c 	ext4_lock_group(sb, block_group);
sb                156 fs/ext4/ialloc.c 	if (ext4_has_group_desc_csum(sb) &&
sb                159 fs/ext4/ialloc.c 			ext4_unlock_group(sb, block_group);
sb                161 fs/ext4/ialloc.c 			ext4_error(sb, "Inode bitmap for bg 0 marked "
sb                166 fs/ext4/ialloc.c 		memset(bh->b_data, 0, (EXT4_INODES_PER_GROUP(sb) + 7) / 8);
sb                167 fs/ext4/ialloc.c 		ext4_mark_bitmap_end(EXT4_INODES_PER_GROUP(sb),
sb                168 fs/ext4/ialloc.c 				     sb->s_blocksize * 8, bh->b_data);
sb                172 fs/ext4/ialloc.c 		ext4_unlock_group(sb, block_group);
sb                176 fs/ext4/ialloc.c 	ext4_unlock_group(sb, block_group);
sb                190 fs/ext4/ialloc.c 	trace_ext4_load_inode_bitmap(sb, block_group);
sb                197 fs/ext4/ialloc.c 		ext4_error(sb, "Cannot read inode bitmap - "
sb                200 fs/ext4/ialloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                206 fs/ext4/ialloc.c 	err = ext4_validate_inode_bitmap(sb, desc, block_group, bh);
sb                233 fs/ext4/ialloc.c 	struct super_block *sb = inode->i_sb;
sb                246 fs/ext4/ialloc.c 	if (!sb) {
sb                252 fs/ext4/ialloc.c 		ext4_msg(sb, KERN_ERR, "%s:%d: inode #%lu: count=%d",
sb                258 fs/ext4/ialloc.c 		ext4_msg(sb, KERN_ERR, "%s:%d: inode #%lu: nlink=%d\n",
sb                262 fs/ext4/ialloc.c 	sbi = EXT4_SB(sb);
sb                277 fs/ext4/ialloc.c 	if (ino < EXT4_FIRST_INO(sb) || ino > le32_to_cpu(es->s_inodes_count)) {
sb                278 fs/ext4/ialloc.c 		ext4_error(sb, "reserved or nonexistent inode %lu", ino);
sb                281 fs/ext4/ialloc.c 	block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb);
sb                282 fs/ext4/ialloc.c 	bit = (ino - 1) % EXT4_INODES_PER_GROUP(sb);
sb                283 fs/ext4/ialloc.c 	bitmap_bh = ext4_read_inode_bitmap(sb, block_group);
sb                285 fs/ext4/ialloc.c 	grp = ext4_get_group_info(sb, block_group);
sb                302 fs/ext4/ialloc.c 	gdp = ext4_get_group_desc(sb, block_group, &bh2);
sb                307 fs/ext4/ialloc.c 	ext4_lock_group(sb, block_group);
sb                310 fs/ext4/ialloc.c 		ext4_unlock_group(sb, block_group);
sb                314 fs/ext4/ialloc.c 	count = ext4_free_inodes_count(sb, gdp) + 1;
sb                315 fs/ext4/ialloc.c 	ext4_free_inodes_set(sb, gdp, count);
sb                317 fs/ext4/ialloc.c 		count = ext4_used_dirs_count(sb, gdp) - 1;
sb                318 fs/ext4/ialloc.c 		ext4_used_dirs_set(sb, gdp, count);
sb                321 fs/ext4/ialloc.c 	ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh,
sb                322 fs/ext4/ialloc.c 				   EXT4_INODES_PER_GROUP(sb) / 8);
sb                323 fs/ext4/ialloc.c 	ext4_group_desc_csum_set(sb, block_group, gdp);
sb                324 fs/ext4/ialloc.c 	ext4_unlock_group(sb, block_group);
sb                345 fs/ext4/ialloc.c 		ext4_error(sb, "bit already cleared for inode %lu", ino);
sb                346 fs/ext4/ialloc.c 		ext4_mark_group_bitmap_corrupted(sb, block_group,
sb                352 fs/ext4/ialloc.c 	ext4_std_error(sb, fatal);
sb                366 fs/ext4/ialloc.c static void get_orlov_stats(struct super_block *sb, ext4_group_t g,
sb                372 fs/ext4/ialloc.c 		struct flex_groups *fg = sbi_array_rcu_deref(EXT4_SB(sb),
sb                380 fs/ext4/ialloc.c 	desc = ext4_get_group_desc(sb, g, NULL);
sb                382 fs/ext4/ialloc.c 		stats->free_inodes = ext4_free_inodes_count(sb, desc);
sb                383 fs/ext4/ialloc.c 		stats->free_clusters = ext4_free_group_clusters(sb, desc);
sb                384 fs/ext4/ialloc.c 		stats->used_dirs = ext4_used_dirs_count(sb, desc);
sb                413 fs/ext4/ialloc.c static int find_group_orlov(struct super_block *sb, struct inode *parent,
sb                418 fs/ext4/ialloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                419 fs/ext4/ialloc.c 	ext4_group_t real_ngroups = ext4_get_groups_count(sb);
sb                420 fs/ext4/ialloc.c 	int inodes_per_group = EXT4_INODES_PER_GROUP(sb);
sb                448 fs/ext4/ialloc.c 	    ((parent == d_inode(sb->s_root)) ||
sb                463 fs/ext4/ialloc.c 			get_orlov_stats(sb, g, flex_size, &stats);
sb                495 fs/ext4/ialloc.c 			desc = ext4_get_group_desc(sb, grp+i, NULL);
sb                496 fs/ext4/ialloc.c 			if (desc && ext4_free_inodes_count(sb, desc)) {
sb                508 fs/ext4/ialloc.c 	min_clusters = avefreec - EXT4_CLUSTERS_PER_GROUP(sb)*flex_size / 4;
sb                522 fs/ext4/ialloc.c 		get_orlov_stats(sb, grp, flex_size, &stats);
sb                539 fs/ext4/ialloc.c 		desc = ext4_get_group_desc(sb, grp, NULL);
sb                541 fs/ext4/ialloc.c 			grp_free = ext4_free_inodes_count(sb, desc);
sb                561 fs/ext4/ialloc.c static int find_group_other(struct super_block *sb, struct inode *parent,
sb                565 fs/ext4/ialloc.c 	ext4_group_t i, last, ngroups = ext4_get_groups_count(sb);
sb                567 fs/ext4/ialloc.c 	int flex_size = ext4_flex_bg_size(EXT4_SB(sb));
sb                585 fs/ext4/ialloc.c 			desc = ext4_get_group_desc(sb, i, NULL);
sb                586 fs/ext4/ialloc.c 			if (desc && ext4_free_inodes_count(sb, desc)) {
sb                604 fs/ext4/ialloc.c 		return find_group_orlov(sb, parent, group, mode, NULL);
sb                611 fs/ext4/ialloc.c 	desc = ext4_get_group_desc(sb, *group, NULL);
sb                612 fs/ext4/ialloc.c 	if (desc && ext4_free_inodes_count(sb, desc) &&
sb                613 fs/ext4/ialloc.c 	    ext4_free_group_clusters(sb, desc))
sb                635 fs/ext4/ialloc.c 		desc = ext4_get_group_desc(sb, *group, NULL);
sb                636 fs/ext4/ialloc.c 		if (desc && ext4_free_inodes_count(sb, desc) &&
sb                637 fs/ext4/ialloc.c 		    ext4_free_group_clusters(sb, desc))
sb                649 fs/ext4/ialloc.c 		desc = ext4_get_group_desc(sb, *group, NULL);
sb                650 fs/ext4/ialloc.c 		if (desc && ext4_free_inodes_count(sb, desc))
sb                666 fs/ext4/ialloc.c static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino)
sb                671 fs/ext4/ialloc.c 	int inodes_per_block = EXT4_SB(sb)->s_inodes_per_block;
sb                676 fs/ext4/ialloc.c 	gdp = ext4_get_group_desc(sb, group, NULL);
sb                680 fs/ext4/ialloc.c 	bh = sb_find_get_block(sb, ext4_inode_table(sb, gdp) +
sb                689 fs/ext4/ialloc.c 	offset = (ino % inodes_per_block) * EXT4_INODE_SIZE(sb);
sb                709 fs/ext4/ialloc.c static int find_inode_bit(struct super_block *sb, ext4_group_t group,
sb                715 fs/ext4/ialloc.c 				       EXT4_INODES_PER_GROUP(sb), *ino);
sb                716 fs/ext4/ialloc.c 	if (*ino >= EXT4_INODES_PER_GROUP(sb))
sb                719 fs/ext4/ialloc.c 	if ((EXT4_SB(sb)->s_journal == NULL) &&
sb                720 fs/ext4/ialloc.c 	    recently_deleted(sb, group, *ino)) {
sb                722 fs/ext4/ialloc.c 		if (*ino < EXT4_INODES_PER_GROUP(sb))
sb                746 fs/ext4/ialloc.c 	struct super_block *sb;
sb                766 fs/ext4/ialloc.c 	sb = dir->i_sb;
sb                767 fs/ext4/ialloc.c 	sbi = EXT4_SB(sb);
sb                793 fs/ext4/ialloc.c 				__ext4_xattr_set_credits(sb, NULL /* inode */,
sb                813 fs/ext4/ialloc.c 				__ext4_xattr_set_credits(sb, NULL /* inode */,
sb                819 fs/ext4/ialloc.c 			nblocks += __ext4_xattr_set_credits(sb,
sb                825 fs/ext4/ialloc.c 	ngroups = ext4_get_groups_count(sb);
sb                827 fs/ext4/ialloc.c 	inode = new_inode(sb);
sb                841 fs/ext4/ialloc.c 	} else if (test_opt(sb, GRPID)) {
sb                848 fs/ext4/ialloc.c 	if (ext4_has_feature_project(sb) &&
sb                862 fs/ext4/ialloc.c 		group = (goal - 1) / EXT4_INODES_PER_GROUP(sb);
sb                863 fs/ext4/ialloc.c 		ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb);
sb                869 fs/ext4/ialloc.c 		ret2 = find_group_orlov(sb, dir, &group, mode, qstr);
sb                871 fs/ext4/ialloc.c 		ret2 = find_group_other(sb, dir, &group, mode);
sb                887 fs/ext4/ialloc.c 		gdp = ext4_get_group_desc(sb, group, &group_desc_bh);
sb                894 fs/ext4/ialloc.c 		if (ext4_free_inodes_count(sb, gdp) == 0)
sb                897 fs/ext4/ialloc.c 		grp = ext4_get_group_info(sb, group);
sb                903 fs/ext4/ialloc.c 		inode_bitmap_bh = ext4_read_inode_bitmap(sb, group);
sb                912 fs/ext4/ialloc.c 		ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino);
sb                916 fs/ext4/ialloc.c 		if (group == 0 && (ino + 1) < EXT4_FIRST_INO(sb)) {
sb                917 fs/ext4/ialloc.c 			ext4_error(sb, "reserved inode found cleared - "
sb                919 fs/ext4/ialloc.c 			ext4_mark_group_bitmap_corrupted(sb, group,
sb                931 fs/ext4/ialloc.c 				ext4_std_error(sb, err);
sb                938 fs/ext4/ialloc.c 			ext4_std_error(sb, err);
sb                941 fs/ext4/ialloc.c 		ext4_lock_group(sb, group);
sb                947 fs/ext4/ialloc.c 			ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino);
sb                955 fs/ext4/ialloc.c 		ext4_unlock_group(sb, group);
sb                960 fs/ext4/ialloc.c 		if (ino < EXT4_INODES_PER_GROUP(sb))
sb                973 fs/ext4/ialloc.c 		ext4_std_error(sb, err);
sb                980 fs/ext4/ialloc.c 		ext4_std_error(sb, err);
sb                985 fs/ext4/ialloc.c 	if (ext4_has_group_desc_csum(sb) &&
sb                989 fs/ext4/ialloc.c 		block_bitmap_bh = ext4_read_block_bitmap(sb, group);
sb                998 fs/ext4/ialloc.c 			ext4_std_error(sb, err);
sb               1006 fs/ext4/ialloc.c 		ext4_lock_group(sb, group);
sb               1007 fs/ext4/ialloc.c 		if (ext4_has_group_desc_csum(sb) &&
sb               1010 fs/ext4/ialloc.c 			ext4_free_group_clusters_set(sb, gdp,
sb               1011 fs/ext4/ialloc.c 				ext4_free_clusters_after_init(sb, group, gdp));
sb               1012 fs/ext4/ialloc.c 			ext4_block_bitmap_csum_set(sb, group, gdp,
sb               1014 fs/ext4/ialloc.c 			ext4_group_desc_csum_set(sb, group, gdp);
sb               1016 fs/ext4/ialloc.c 		ext4_unlock_group(sb, group);
sb               1020 fs/ext4/ialloc.c 			ext4_std_error(sb, err);
sb               1026 fs/ext4/ialloc.c 	if (ext4_has_group_desc_csum(sb)) {
sb               1028 fs/ext4/ialloc.c 		struct ext4_group_info *grp = ext4_get_group_info(sb, group);
sb               1031 fs/ext4/ialloc.c 		ext4_lock_group(sb, group); /* while we modify the bg desc */
sb               1032 fs/ext4/ialloc.c 		free = EXT4_INODES_PER_GROUP(sb) -
sb               1033 fs/ext4/ialloc.c 			ext4_itable_unused_count(sb, gdp);
sb               1044 fs/ext4/ialloc.c 			ext4_itable_unused_set(sb, gdp,
sb               1045 fs/ext4/ialloc.c 					(EXT4_INODES_PER_GROUP(sb) - ino));
sb               1048 fs/ext4/ialloc.c 		ext4_lock_group(sb, group);
sb               1051 fs/ext4/ialloc.c 	ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1);
sb               1053 fs/ext4/ialloc.c 		ext4_used_dirs_set(sb, gdp, ext4_used_dirs_count(sb, gdp) + 1);
sb               1061 fs/ext4/ialloc.c 	if (ext4_has_group_desc_csum(sb)) {
sb               1062 fs/ext4/ialloc.c 		ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh,
sb               1063 fs/ext4/ialloc.c 					   EXT4_INODES_PER_GROUP(sb) / 8);
sb               1064 fs/ext4/ialloc.c 		ext4_group_desc_csum_set(sb, group, gdp);
sb               1066 fs/ext4/ialloc.c 	ext4_unlock_group(sb, group);
sb               1071 fs/ext4/ialloc.c 		ext4_std_error(sb, err);
sb               1085 fs/ext4/ialloc.c 	inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb);
sb               1113 fs/ext4/ialloc.c 		ext4_error(sb, "failed to insert inode %lu: doubly allocated?",
sb               1115 fs/ext4/ialloc.c 		ext4_mark_group_bitmap_corrupted(sb, group,
sb               1122 fs/ext4/ialloc.c 	if (ext4_has_metadata_csum(sb)) {
sb               1137 fs/ext4/ialloc.c 	if (ext4_has_feature_inline_data(sb))
sb               1165 fs/ext4/ialloc.c 	if (ext4_has_feature_extents(sb)) {
sb               1180 fs/ext4/ialloc.c 		ext4_std_error(sb, err);
sb               1203 fs/ext4/ialloc.c struct inode *ext4_orphan_get(struct super_block *sb, unsigned long ino)
sb               1205 fs/ext4/ialloc.c 	unsigned long max_ino = le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count);
sb               1212 fs/ext4/ialloc.c 	if (ino < EXT4_FIRST_INO(sb) || ino > max_ino)
sb               1215 fs/ext4/ialloc.c 	block_group = (ino - 1) / EXT4_INODES_PER_GROUP(sb);
sb               1216 fs/ext4/ialloc.c 	bit = (ino - 1) % EXT4_INODES_PER_GROUP(sb);
sb               1217 fs/ext4/ialloc.c 	bitmap_bh = ext4_read_inode_bitmap(sb, block_group);
sb               1228 fs/ext4/ialloc.c 	inode = ext4_iget(sb, ino, EXT4_IGET_NORMAL);
sb               1231 fs/ext4/ialloc.c 		ext4_error(sb, "couldn't read orphan inode %lu (err %d)",
sb               1252 fs/ext4/ialloc.c 	ext4_error(sb, "bad orphan inode %lu", ino);
sb               1273 fs/ext4/ialloc.c unsigned long ext4_count_free_inodes(struct super_block *sb)
sb               1277 fs/ext4/ialloc.c 	ext4_group_t i, ngroups = ext4_get_groups_count(sb);
sb               1283 fs/ext4/ialloc.c 	es = EXT4_SB(sb)->s_es;
sb               1288 fs/ext4/ialloc.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb               1291 fs/ext4/ialloc.c 		desc_count += ext4_free_inodes_count(sb, gdp);
sb               1293 fs/ext4/ialloc.c 		bitmap_bh = ext4_read_inode_bitmap(sb, i);
sb               1300 fs/ext4/ialloc.c 				    EXT4_INODES_PER_GROUP(sb) / 8);
sb               1302 fs/ext4/ialloc.c 			(unsigned long) i, ext4_free_inodes_count(sb, gdp), x);
sb               1313 fs/ext4/ialloc.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb               1316 fs/ext4/ialloc.c 		desc_count += ext4_free_inodes_count(sb, gdp);
sb               1324 fs/ext4/ialloc.c unsigned long ext4_count_dirs(struct super_block * sb)
sb               1327 fs/ext4/ialloc.c 	ext4_group_t i, ngroups = ext4_get_groups_count(sb);
sb               1330 fs/ext4/ialloc.c 		struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL);
sb               1333 fs/ext4/ialloc.c 		count += ext4_used_dirs_count(sb, gdp);
sb               1346 fs/ext4/ialloc.c int ext4_init_inode_table(struct super_block *sb, ext4_group_t group,
sb               1349 fs/ext4/ialloc.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, group);
sb               1350 fs/ext4/ialloc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1358 fs/ext4/ialloc.c 	if (sb_rdonly(sb)) {
sb               1363 fs/ext4/ialloc.c 	gdp = ext4_get_group_desc(sb, group, &group_desc_bh);
sb               1374 fs/ext4/ialloc.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 1);
sb               1387 fs/ext4/ialloc.c 		used_blks = DIV_ROUND_UP((EXT4_INODES_PER_GROUP(sb) -
sb               1388 fs/ext4/ialloc.c 			    ext4_itable_unused_count(sb, gdp)),
sb               1392 fs/ext4/ialloc.c 	    ((group == 0) && ((EXT4_INODES_PER_GROUP(sb) -
sb               1393 fs/ext4/ialloc.c 			       ext4_itable_unused_count(sb, gdp)) <
sb               1394 fs/ext4/ialloc.c 			      EXT4_FIRST_INO(sb)))) {
sb               1395 fs/ext4/ialloc.c 		ext4_error(sb, "Something is wrong with group %u: "
sb               1399 fs/ext4/ialloc.c 			   ext4_itable_unused_count(sb, gdp));
sb               1404 fs/ext4/ialloc.c 	blk = ext4_inode_table(sb, gdp) + used_blks;
sb               1423 fs/ext4/ialloc.c 	ret = sb_issue_zeroout(sb, blk, num, GFP_NOFS);
sb               1427 fs/ext4/ialloc.c 		blkdev_issue_flush(sb->s_bdev, GFP_NOFS, NULL);
sb               1430 fs/ext4/ialloc.c 	ext4_lock_group(sb, group);
sb               1432 fs/ext4/ialloc.c 	ext4_group_desc_csum_set(sb, group, gdp);
sb               1433 fs/ext4/ialloc.c 	ext4_unlock_group(sb, group);
sb                148 fs/ext4/indirect.c 	struct super_block *sb = inode->i_sb;
sb                159 fs/ext4/indirect.c 		bh = sb_getblk(sb, le32_to_cpu(p->key));
sb               1446 fs/ext4/inline.c 	struct super_block *sb;
sb               1478 fs/ext4/inline.c 	sb = inode->i_sb;
sb               1558 fs/ext4/inline.c 				      get_dtype(sb, de->file_type)))
sb               1736 fs/ext4/inode.c 	struct super_block *sb = inode->i_sb;
sb               1739 fs/ext4/inode.c 	ext4_msg(sb, KERN_CRIT, "Total free blocks count %lld",
sb               1741 fs/ext4/inode.c 			ext4_count_free_clusters(sb)));
sb               1742 fs/ext4/inode.c 	ext4_msg(sb, KERN_CRIT, "Free/Dirty block details");
sb               1743 fs/ext4/inode.c 	ext4_msg(sb, KERN_CRIT, "free_blocks=%lld",
sb               1744 fs/ext4/inode.c 	       (long long) EXT4_C2B(EXT4_SB(sb),
sb               1746 fs/ext4/inode.c 	ext4_msg(sb, KERN_CRIT, "dirty_blocks=%lld",
sb               1747 fs/ext4/inode.c 	       (long long) EXT4_C2B(EXT4_SB(sb),
sb               1749 fs/ext4/inode.c 	ext4_msg(sb, KERN_CRIT, "Block reservation details");
sb               1750 fs/ext4/inode.c 	ext4_msg(sb, KERN_CRIT, "i_reserved_data_blocks=%u",
sb               2528 fs/ext4/inode.c 			struct super_block *sb = inode->i_sb;
sb               2530 fs/ext4/inode.c 			if (ext4_forced_shutdown(EXT4_SB(sb)) ||
sb               2531 fs/ext4/inode.c 			    EXT4_SB(sb)->s_mount_flags & EXT4_MF_FS_ABORTED)
sb               2539 fs/ext4/inode.c 			    (err == -ENOSPC && ext4_count_free_clusters(sb))) {
sb               2544 fs/ext4/inode.c 			ext4_msg(sb, KERN_CRIT,
sb               2551 fs/ext4/inode.c 			ext4_msg(sb, KERN_CRIT,
sb               2983 fs/ext4/inode.c static int ext4_nonda_switch(struct super_block *sb)
sb               2986 fs/ext4/inode.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3004 fs/ext4/inode.c 		try_to_writeback_inodes_sb(sb, WB_REASON_FS_FREE_SPACE);
sb               4146 fs/ext4/inode.c 	struct super_block *sb = inode->i_sb;
sb               4153 fs/ext4/inode.c 	partial_start = lstart & (sb->s_blocksize - 1);
sb               4154 fs/ext4/inode.c 	partial_end = byte_end & (sb->s_blocksize - 1);
sb               4156 fs/ext4/inode.c 	start = lstart >> sb->s_blocksize_bits;
sb               4157 fs/ext4/inode.c 	end = byte_end >> sb->s_blocksize_bits;
sb               4161 fs/ext4/inode.c 	    (partial_start || (partial_end != sb->s_blocksize - 1))) {
sb               4169 fs/ext4/inode.c 						 lstart, sb->s_blocksize);
sb               4174 fs/ext4/inode.c 	if (partial_end != sb->s_blocksize - 1)
sb               4264 fs/ext4/inode.c 	struct super_block *sb = inode->i_sb;
sb               4313 fs/ext4/inode.c 	if (offset & (sb->s_blocksize - 1) ||
sb               4314 fs/ext4/inode.c 	    (offset + length) & (sb->s_blocksize - 1)) {
sb               4338 fs/ext4/inode.c 	first_block_offset = round_up(offset, sb->s_blocksize);
sb               4339 fs/ext4/inode.c 	last_block_offset = round_down((offset + length), sb->s_blocksize) - 1;
sb               4357 fs/ext4/inode.c 		ext4_std_error(sb, ret);
sb               4366 fs/ext4/inode.c 	first_block = (offset + sb->s_blocksize - 1) >>
sb               4367 fs/ext4/inode.c 		EXT4_BLOCK_SIZE_BITS(sb);
sb               4368 fs/ext4/inode.c 	stop_block = (offset + length) >> EXT4_BLOCK_SIZE_BITS(sb);
sb               4573 fs/ext4/inode.c 	struct super_block	*sb = inode->i_sb;
sb               4580 fs/ext4/inode.c 	    inode->i_ino > le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count))
sb               4583 fs/ext4/inode.c 	iloc->block_group = (inode->i_ino - 1) / EXT4_INODES_PER_GROUP(sb);
sb               4584 fs/ext4/inode.c 	gdp = ext4_get_group_desc(sb, iloc->block_group, NULL);
sb               4591 fs/ext4/inode.c 	inodes_per_block = EXT4_SB(sb)->s_inodes_per_block;
sb               4593 fs/ext4/inode.c 			EXT4_INODES_PER_GROUP(sb));
sb               4594 fs/ext4/inode.c 	block = ext4_inode_table(sb, gdp) + (inode_offset / inodes_per_block);
sb               4595 fs/ext4/inode.c 	iloc->offset = (inode_offset % inodes_per_block) * EXT4_INODE_SIZE(sb);
sb               4597 fs/ext4/inode.c 	bh = sb_getblk(sb, block);
sb               4630 fs/ext4/inode.c 			bitmap_bh = sb_getblk(sb, ext4_inode_bitmap(sb, gdp));
sb               4665 fs/ext4/inode.c 		if (EXT4_SB(sb)->s_inode_readahead_blks) {
sb               4668 fs/ext4/inode.c 			__u32 ra_blks = EXT4_SB(sb)->s_inode_readahead_blks;
sb               4670 fs/ext4/inode.c 			table = ext4_inode_table(sb, gdp);
sb               4676 fs/ext4/inode.c 			num = EXT4_INODES_PER_GROUP(sb);
sb               4677 fs/ext4/inode.c 			if (ext4_has_group_desc_csum(sb))
sb               4678 fs/ext4/inode.c 				num -= ext4_itable_unused_count(sb, gdp);
sb               4683 fs/ext4/inode.c 				sb_breadahead_unmovable(sb, b++);
sb               4766 fs/ext4/inode.c 	struct super_block *sb = inode->i_sb;
sb               4768 fs/ext4/inode.c 	if (ext4_has_feature_huge_file(sb)) {
sb               4828 fs/ext4/inode.c struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,
sb               4836 fs/ext4/inode.c 	journal_t *journal = EXT4_SB(sb)->s_journal;
sb               4845 fs/ext4/inode.c 	     (ino < EXT4_FIRST_INO(sb) && ino != EXT4_ROOT_INO)) ||
sb               4847 fs/ext4/inode.c 	    (ino > le32_to_cpu(EXT4_SB(sb)->s_es->s_inodes_count))) {
sb               4850 fs/ext4/inode.c 		__ext4_error(sb, function, line,
sb               4856 fs/ext4/inode.c 	inode = iget_locked(sb, ino);
sb               4900 fs/ext4/inode.c 	if (ext4_has_metadata_csum(sb)) {
sb               4921 fs/ext4/inode.c 	if (ext4_has_feature_project(sb) &&
sb               4922 fs/ext4/inode.c 	    EXT4_INODE_SIZE(sb) > EXT4_GOOD_OLD_INODE_SIZE &&
sb               4965 fs/ext4/inode.c 	if (ext4_has_feature_64bit(sb))
sb               4968 fs/ext4/inode.c 	inode->i_size = ext4_isize(sb, raw_inode);
sb               4980 fs/ext4/inode.c 	if (!ext4_has_feature_dir_index(sb) && ext4_has_metadata_csum(sb) &&
sb               5058 fs/ext4/inode.c 	    !ext4_data_block_valid(EXT4_SB(sb), ei->i_file_acl, 1)) {
sb               5144 fs/ext4/inode.c 	struct super_block *sb = inode->i_sb;
sb               5156 fs/ext4/inode.c 	if (!ext4_has_feature_huge_file(sb))
sb               5218 fs/ext4/inode.c static void ext4_update_other_inodes_time(struct super_block *sb,
sb               5223 fs/ext4/inode.c 	int i, inodes_per_block = EXT4_SB(sb)->s_inodes_per_block;
sb               5224 fs/ext4/inode.c 	int inode_size = EXT4_INODE_SIZE(sb);
sb               5237 fs/ext4/inode.c 		(void) find_inode_nowait(sb, ino, other_inode_match, &oi);
sb               5255 fs/ext4/inode.c 	struct super_block *sb = inode->i_sb;
sb               5318 fs/ext4/inode.c 		if (!ext4_has_feature_large_file(sb) ||
sb               5319 fs/ext4/inode.c 				EXT4_SB(sb)->s_es->s_rev_level ==
sb               5372 fs/ext4/inode.c 		BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get write access");
sb               5373 fs/ext4/inode.c 		err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh);
sb               5376 fs/ext4/inode.c 		ext4_set_feature_large_file(sb);
sb               5378 fs/ext4/inode.c 		err = ext4_handle_dirty_super(handle, sb);
sb                113 fs/ext4/ioctl.c static long swap_inode_boot_loader(struct super_block *sb,
sb                124 fs/ext4/ioctl.c 	inode_bl = ext4_iget(sb, EXT4_BOOT_LOADER_INO, EXT4_IGET_SPECIAL);
sb                182 fs/ext4/ioctl.c 		if (ext4_has_feature_extents(sb)) {
sb                304 fs/ext4/ioctl.c 	struct super_block *sb = inode->i_sb;
sb                343 fs/ext4/ioctl.c 		if (!ext4_has_feature_casefold(sb)) {
sb                434 fs/ext4/ioctl.c 	struct super_block *sb = inode->i_sb;
sb                443 fs/ext4/ioctl.c 	if (!ext4_has_feature_project(sb)) {
sb                450 fs/ext4/ioctl.c 	if (EXT4_INODE_SIZE(sb) <= EXT4_GOOD_OLD_INODE_SIZE)
sb                470 fs/ext4/ioctl.c 					      EXT4_SB(sb)->s_want_extra_isize,
sb                483 fs/ext4/ioctl.c 		EXT4_QUOTA_INIT_BLOCKS(sb) +
sb                484 fs/ext4/ioctl.c 		EXT4_QUOTA_DEL_BLOCKS(sb) + 3);
sb                492 fs/ext4/ioctl.c 	transfer_to[PRJQUOTA] = dqget(sb, make_kqid_projid(kprojid));
sb                570 fs/ext4/ioctl.c static int ext4_shutdown(struct super_block *sb, unsigned long arg)
sb                572 fs/ext4/ioctl.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                587 fs/ext4/ioctl.c 	ext4_msg(sb, KERN_ALERT, "shut down requested (%d)", flags);
sb                588 fs/ext4/ioctl.c 	trace_ext4_shutdown(sb, flags);
sb                592 fs/ext4/ioctl.c 		freeze_bdev(sb->s_bdev);
sb                594 fs/ext4/ioctl.c 		thaw_bdev(sb->s_bdev, sb);
sb                599 fs/ext4/ioctl.c 			(void) ext4_force_commit(sb);
sb                611 fs/ext4/ioctl.c 	clear_opt(sb, DISCARD);
sb                638 fs/ext4/ioctl.c static int ext4_ioc_getfsmap(struct super_block *sb,
sb                666 fs/ext4/ioctl.c 	ext4_fsmap_to_internal(sb, &xhead.fmh_keys[0], &head.fmh_keys[0]);
sb                667 fs/ext4/ioctl.c 	ext4_fsmap_to_internal(sb, &xhead.fmh_keys[1], &head.fmh_keys[1]);
sb                669 fs/ext4/ioctl.c 	trace_ext4_getfsmap_low_key(sb, &xhead.fmh_keys[0]);
sb                670 fs/ext4/ioctl.c 	trace_ext4_getfsmap_high_key(sb, &xhead.fmh_keys[1]);
sb                672 fs/ext4/ioctl.c 	info.gi_sb = sb;
sb                674 fs/ext4/ioctl.c 	error = ext4_getfsmap(sb, &xhead, ext4_getfsmap_format, &info);
sb                702 fs/ext4/ioctl.c 	struct super_block *sb = file_inode(file)->i_sb;
sb                705 fs/ext4/ioctl.c 	err = ext4_resize_begin(sb);
sb                709 fs/ext4/ioctl.c 	if (ext4_has_feature_bigalloc(sb)) {
sb                710 fs/ext4/ioctl.c 		ext4_msg(sb, KERN_ERR,
sb                720 fs/ext4/ioctl.c 	err = ext4_group_add(sb, input);
sb                721 fs/ext4/ioctl.c 	if (EXT4_SB(sb)->s_journal) {
sb                722 fs/ext4/ioctl.c 		jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal);
sb                723 fs/ext4/ioctl.c 		err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal);
sb                724 fs/ext4/ioctl.c 		jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
sb                729 fs/ext4/ioctl.c 	if (!err && ext4_has_group_desc_csum(sb) &&
sb                730 fs/ext4/ioctl.c 	    test_opt(sb, INIT_INODE_TABLE))
sb                731 fs/ext4/ioctl.c 		err = ext4_register_li_request(sb, input->group);
sb                733 fs/ext4/ioctl.c 	ext4_resize_end(sb);
sb                749 fs/ext4/ioctl.c static int fiemap_check_ranges(struct super_block *sb,
sb                752 fs/ext4/ioctl.c 	u64 maxbytes = (u64) sb->s_maxbytes;
sb                780 fs/ext4/ioctl.c 	struct super_block *sb = inode->i_sb;
sb                790 fs/ext4/ioctl.c 	error = fiemap_check_ranges(sb, fiemap.fm_start, fiemap.fm_length,
sb                819 fs/ext4/ioctl.c 	struct super_block *sb = inode->i_sb;
sb                827 fs/ext4/ioctl.c 		return ext4_ioc_getfsmap(sb, (void __user *)arg);
sb                882 fs/ext4/ioctl.c 			ext4_warning(sb, "Setting inode version is not "
sb                919 fs/ext4/ioctl.c 		err = ext4_resize_begin(sb);
sb                928 fs/ext4/ioctl.c 		if (ext4_has_feature_bigalloc(sb)) {
sb                929 fs/ext4/ioctl.c 			ext4_msg(sb, KERN_ERR,
sb                939 fs/ext4/ioctl.c 		err = ext4_group_extend(sb, EXT4_SB(sb)->s_es, n_blocks_count);
sb                940 fs/ext4/ioctl.c 		if (EXT4_SB(sb)->s_journal) {
sb                941 fs/ext4/ioctl.c 			jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal);
sb                942 fs/ext4/ioctl.c 			err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal);
sb                943 fs/ext4/ioctl.c 			jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
sb                949 fs/ext4/ioctl.c 		ext4_resize_end(sb);
sb                976 fs/ext4/ioctl.c 		if (ext4_has_feature_bigalloc(sb)) {
sb                977 fs/ext4/ioctl.c 			ext4_msg(sb, KERN_ERR,
sb                982 fs/ext4/ioctl.c 			ext4_msg(sb, KERN_ERR,
sb               1058 fs/ext4/ioctl.c 		err = swap_inode_boot_loader(sb, inode);
sb               1066 fs/ext4/ioctl.c 		ext4_group_t o_group = EXT4_SB(sb)->s_groups_count;
sb               1073 fs/ext4/ioctl.c 		err = ext4_resize_begin(sb);
sb               1081 fs/ext4/ioctl.c 		err = ext4_resize_fs(sb, n_blocks_count);
sb               1082 fs/ext4/ioctl.c 		if (EXT4_SB(sb)->s_journal) {
sb               1083 fs/ext4/ioctl.c 			jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal);
sb               1084 fs/ext4/ioctl.c 			err2 = jbd2_journal_flush(EXT4_SB(sb)->s_journal);
sb               1085 fs/ext4/ioctl.c 			jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
sb               1090 fs/ext4/ioctl.c 		if (!err && (o_group < EXT4_SB(sb)->s_groups_count) &&
sb               1091 fs/ext4/ioctl.c 		    ext4_has_group_desc_csum(sb) &&
sb               1092 fs/ext4/ioctl.c 		    test_opt(sb, INIT_INODE_TABLE))
sb               1093 fs/ext4/ioctl.c 			err = ext4_register_li_request(sb, o_group);
sb               1096 fs/ext4/ioctl.c 		ext4_resize_end(sb);
sb               1102 fs/ext4/ioctl.c 		struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb               1116 fs/ext4/ioctl.c 		if (test_opt(sb, NOLOAD) && ext4_has_feature_journal(sb))
sb               1125 fs/ext4/ioctl.c 		ret = ext4_trim_fs(sb, &range);
sb               1139 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1146 fs/ext4/ioctl.c 		struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1149 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1155 fs/ext4/ioctl.c 			handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 1);
sb               1184 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1189 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1194 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1199 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1204 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1209 fs/ext4/ioctl.c 		if (!ext4_has_feature_encrypt(sb))
sb               1295 fs/ext4/ioctl.c 		return ext4_shutdown(sb, arg);
sb               1298 fs/ext4/ioctl.c 		if (!ext4_has_feature_verity(sb))
sb               1303 fs/ext4/ioctl.c 		if (!ext4_has_feature_verity(sb))
sb                355 fs/ext4/mballoc.c static void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
sb                357 fs/ext4/mballoc.c static void ext4_mb_generate_from_freelist(struct super_block *sb, void *bitmap,
sb                457 fs/ext4/mballoc.c 	struct super_block *sb = e4b->bd_sb;
sb                461 fs/ext4/mballoc.c 	assert_spin_locked(ext4_group_lock_ptr(sb, e4b->bd_group));
sb                466 fs/ext4/mballoc.c 			blocknr = ext4_group_first_block_no(sb, e4b->bd_group);
sb                467 fs/ext4/mballoc.c 			blocknr += EXT4_C2B(EXT4_SB(sb), first + i);
sb                468 fs/ext4/mballoc.c 			ext4_grp_locked_error(sb, e4b->bd_group,
sb                474 fs/ext4/mballoc.c 			ext4_mark_group_bitmap_corrupted(sb, e4b->bd_group,
sb                546 fs/ext4/mballoc.c 	struct super_block *sb = e4b->bd_sb;
sb                628 fs/ext4/mballoc.c 	grp = ext4_get_group_info(sb, e4b->bd_group);
sb                633 fs/ext4/mballoc.c 		ext4_get_group_no_and_offset(sb, pa->pa_pstart, &groupnr, &k);
sb                653 fs/ext4/mballoc.c static void ext4_mb_mark_free_simple(struct super_block *sb,
sb                657 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                663 fs/ext4/mballoc.c 	BUG_ON(len > EXT4_CLUSTERS_PER_GROUP(sb));
sb                665 fs/ext4/mballoc.c 	border = 2 << sb->s_blocksize_bits;
sb                694 fs/ext4/mballoc.c mb_set_largest_free_order(struct super_block *sb, struct ext4_group_info *grp)
sb                701 fs/ext4/mballoc.c 	bits = sb->s_blocksize_bits + 1;
sb                711 fs/ext4/mballoc.c void ext4_mb_generate_buddy(struct super_block *sb,
sb                714 fs/ext4/mballoc.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, group);
sb                715 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                716 fs/ext4/mballoc.c 	ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);
sb                735 fs/ext4/mballoc.c 			ext4_mb_mark_free_simple(sb, buddy, first, len, grp);
sb                744 fs/ext4/mballoc.c 		ext4_grp_locked_error(sb, group, 0, 0,
sb                753 fs/ext4/mballoc.c 		ext4_mark_group_bitmap_corrupted(sb, group,
sb                756 fs/ext4/mballoc.c 	mb_set_largest_free_order(sb, grp);
sb                815 fs/ext4/mballoc.c 	struct super_block *sb;
sb                826 fs/ext4/mballoc.c 	sb = inode->i_sb;
sb                827 fs/ext4/mballoc.c 	ngroups = ext4_get_groups_count(sb);
sb                853 fs/ext4/mballoc.c 		grinfo = ext4_get_group_info(sb, group);
sb                864 fs/ext4/mballoc.c 		bh[i] = ext4_read_block_bitmap_nowait(sb, group);
sb                879 fs/ext4/mballoc.c 		err2 = ext4_wait_block_bitmap(sb, group, bh[i]);
sb                917 fs/ext4/mballoc.c 			trace_ext4_mb_buddy_bitmap_load(sb, group);
sb                918 fs/ext4/mballoc.c 			grinfo = ext4_get_group_info(sb, group);
sb                922 fs/ext4/mballoc.c 				(sb->s_blocksize_bits+2));
sb                926 fs/ext4/mballoc.c 			ext4_lock_group(sb, group);
sb                929 fs/ext4/mballoc.c 			ext4_mb_generate_buddy(sb, data, incore, group);
sb                930 fs/ext4/mballoc.c 			ext4_unlock_group(sb, group);
sb                937 fs/ext4/mballoc.c 			trace_ext4_mb_bitmap_load(sb, group);
sb                940 fs/ext4/mballoc.c 			ext4_lock_group(sb, group);
sb                944 fs/ext4/mballoc.c 			ext4_mb_generate_from_pa(sb, data, group);
sb                945 fs/ext4/mballoc.c 			ext4_mb_generate_from_freelist(sb, data, group);
sb                946 fs/ext4/mballoc.c 			ext4_unlock_group(sb, group);
sb                972 fs/ext4/mballoc.c static int ext4_mb_get_buddy_page_lock(struct super_block *sb,
sb                975 fs/ext4/mballoc.c 	struct inode *inode = EXT4_SB(sb)->s_buddy_cache;
sb                983 fs/ext4/mballoc.c 	blocks_per_page = PAGE_SIZE / sb->s_blocksize;
sb                997 fs/ext4/mballoc.c 	e4b->bd_bitmap = page_address(page) + (poff * sb->s_blocksize);
sb               1032 fs/ext4/mballoc.c int ext4_mb_init_group(struct super_block *sb, ext4_group_t group, gfp_t gfp)
sb               1042 fs/ext4/mballoc.c 	this_grp = ext4_get_group_info(sb, group);
sb               1052 fs/ext4/mballoc.c 	ret = ext4_mb_get_buddy_page_lock(sb, group, &e4b, gfp);
sb               1099 fs/ext4/mballoc.c ext4_mb_load_buddy_gfp(struct super_block *sb, ext4_group_t group,
sb               1109 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1115 fs/ext4/mballoc.c 	blocks_per_page = PAGE_SIZE / sb->s_blocksize;
sb               1116 fs/ext4/mballoc.c 	grp = ext4_get_group_info(sb, group);
sb               1118 fs/ext4/mballoc.c 	e4b->bd_blkbits = sb->s_blocksize_bits;
sb               1120 fs/ext4/mballoc.c 	e4b->bd_sb = sb;
sb               1130 fs/ext4/mballoc.c 		ret = ext4_mb_init_group(sb, group, gfp);
sb               1168 fs/ext4/mballoc.c 					       (poff * sb->s_blocksize));
sb               1184 fs/ext4/mballoc.c 	e4b->bd_bitmap = page_address(page) + (poff * sb->s_blocksize);
sb               1219 fs/ext4/mballoc.c 	e4b->bd_buddy = page_address(page) + (poff * sb->s_blocksize);
sb               1238 fs/ext4/mballoc.c static int ext4_mb_load_buddy(struct super_block *sb, ext4_group_t group,
sb               1241 fs/ext4/mballoc.c 	return ext4_mb_load_buddy_gfp(sb, group, e4b, GFP_NOFS);
sb               1420 fs/ext4/mballoc.c 	struct super_block *sb = e4b->bd_sb;
sb               1424 fs/ext4/mballoc.c 	BUG_ON(last >= (sb->s_blocksize << 3));
sb               1425 fs/ext4/mballoc.c 	assert_spin_locked(ext4_group_lock_ptr(sb, e4b->bd_group));
sb               1443 fs/ext4/mballoc.c 	if (last + 1 < EXT4_SB(sb)->s_mb_maxs[0])
sb               1447 fs/ext4/mballoc.c 		struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1450 fs/ext4/mballoc.c 		blocknr = ext4_group_first_block_no(sb, e4b->bd_group);
sb               1452 fs/ext4/mballoc.c 		ext4_grp_locked_error(sb, e4b->bd_group,
sb               1458 fs/ext4/mballoc.c 		ext4_mark_group_bitmap_corrupted(sb, e4b->bd_group,
sb               1489 fs/ext4/mballoc.c 	mb_set_largest_free_order(sb, e4b->bd_info);
sb               1888 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               1896 fs/ext4/mballoc.c 	for (i = ac->ac_2order; i <= sb->s_blocksize_bits + 1; i++) {
sb               1916 fs/ext4/mballoc.c 		if (EXT4_SB(sb)->s_mb_stats)
sb               1917 fs/ext4/mballoc.c 			atomic_inc(&EXT4_SB(sb)->s_bal_2orders);
sb               1932 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               1946 fs/ext4/mballoc.c 						EXT4_CLUSTERS_PER_GROUP(sb), i);
sb               1947 fs/ext4/mballoc.c 		if (i >= EXT4_CLUSTERS_PER_GROUP(sb)) {
sb               1953 fs/ext4/mballoc.c 			ext4_grp_locked_error(sb, e4b->bd_group, 0, 0,
sb               1957 fs/ext4/mballoc.c 			ext4_mark_group_bitmap_corrupted(sb, e4b->bd_group,
sb               1966 fs/ext4/mballoc.c 			ext4_grp_locked_error(sb, e4b->bd_group, 0, 0,
sb               1970 fs/ext4/mballoc.c 			ext4_mark_group_bitmap_corrupted(sb, e4b->bd_group,
sb               1997 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               1998 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2009 fs/ext4/mballoc.c 	first_group_block = ext4_group_first_block_no(sb, e4b->bd_group);
sb               2015 fs/ext4/mballoc.c 	while (i < EXT4_CLUSTERS_PER_GROUP(sb)) {
sb               2107 fs/ext4/mballoc.c 	struct super_block *sb;
sb               2110 fs/ext4/mballoc.c 	sb = ac->ac_sb;
sb               2111 fs/ext4/mballoc.c 	sbi = EXT4_SB(sb);
sb               2112 fs/ext4/mballoc.c 	ngroups = ext4_get_groups_count(sb);
sb               2141 fs/ext4/mballoc.c 	if (i >= sbi->s_mb_order2_reqs && i <= sb->s_blocksize_bits + 2) {
sb               2147 fs/ext4/mballoc.c 							   sb->s_blocksize_bits + 2);
sb               2192 fs/ext4/mballoc.c 			err = ext4_mb_load_buddy(sb, group, &e4b);
sb               2196 fs/ext4/mballoc.c 			ext4_lock_group(sb, group);
sb               2204 fs/ext4/mballoc.c 				ext4_unlock_group(sb, group);
sb               2220 fs/ext4/mballoc.c 			ext4_unlock_group(sb, group);
sb               2261 fs/ext4/mballoc.c 	struct super_block *sb = PDE_DATA(file_inode(seq->file));
sb               2264 fs/ext4/mballoc.c 	if (*pos < 0 || *pos >= ext4_get_groups_count(sb))
sb               2272 fs/ext4/mballoc.c 	struct super_block *sb = PDE_DATA(file_inode(seq->file));
sb               2276 fs/ext4/mballoc.c 	if (*pos < 0 || *pos >= ext4_get_groups_count(sb))
sb               2284 fs/ext4/mballoc.c 	struct super_block *sb = PDE_DATA(file_inode(seq->file));
sb               2291 fs/ext4/mballoc.c 					     sb->s_blocksize_bits,
sb               2307 fs/ext4/mballoc.c 	grinfo = ext4_get_group_info(sb, group);
sb               2310 fs/ext4/mballoc.c 		err = ext4_mb_load_buddy(sb, group, &e4b);
sb               2318 fs/ext4/mballoc.c 	memcpy(&sg, ext4_get_group_info(sb, group), i);
sb               2357 fs/ext4/mballoc.c int ext4_mb_alloc_groupinfo(struct super_block *sb, ext4_group_t ngroups)
sb               2359 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2363 fs/ext4/mballoc.c 	size = (ngroups + EXT4_DESC_PER_BLOCK(sb) - 1) >>
sb               2364 fs/ext4/mballoc.c 		EXT4_DESC_PER_BLOCK_BITS(sb);
sb               2371 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_ERR, "can't allocate buddy meta group");
sb               2390 fs/ext4/mballoc.c int ext4_mb_add_groupinfo(struct super_block *sb, ext4_group_t group,
sb               2395 fs/ext4/mballoc.c 	int idx = group >> EXT4_DESC_PER_BLOCK_BITS(sb);
sb               2396 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2398 fs/ext4/mballoc.c 	struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits);
sb               2405 fs/ext4/mballoc.c 	if (group % EXT4_DESC_PER_BLOCK(sb) == 0) {
sb               2407 fs/ext4/mballoc.c 			EXT4_DESC_PER_BLOCK_BITS(sb);
sb               2410 fs/ext4/mballoc.c 			ext4_msg(sb, KERN_ERR, "can't allocate mem "
sb               2420 fs/ext4/mballoc.c 	i = group & (EXT4_DESC_PER_BLOCK(sb) - 1);
sb               2424 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_ERR, "can't allocate buddy mem");
sb               2434 fs/ext4/mballoc.c 	if (ext4_has_group_desc_csum(sb) &&
sb               2437 fs/ext4/mballoc.c 			ext4_free_clusters_after_init(sb, group, desc);
sb               2440 fs/ext4/mballoc.c 			ext4_free_group_clusters(sb, desc);
sb               2452 fs/ext4/mballoc.c 			kmalloc(sb->s_blocksize, GFP_NOFS);
sb               2454 fs/ext4/mballoc.c 		bh = ext4_read_block_bitmap(sb, group);
sb               2457 fs/ext4/mballoc.c 			sb->s_blocksize);
sb               2466 fs/ext4/mballoc.c 	if (group % EXT4_DESC_PER_BLOCK(sb) == 0) {
sb               2479 fs/ext4/mballoc.c static int ext4_mb_init_backend(struct super_block *sb)
sb               2481 fs/ext4/mballoc.c 	ext4_group_t ngroups = ext4_get_groups_count(sb);
sb               2483 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2489 fs/ext4/mballoc.c 	err = ext4_mb_alloc_groupinfo(sb, ngroups);
sb               2493 fs/ext4/mballoc.c 	sbi->s_buddy_cache = new_inode(sb);
sb               2495 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_ERR, "can't get new inode");
sb               2506 fs/ext4/mballoc.c 		desc = ext4_get_group_desc(sb, i, NULL);
sb               2508 fs/ext4/mballoc.c 			ext4_msg(sb, KERN_ERR, "can't read descriptor %u", i);
sb               2511 fs/ext4/mballoc.c 		if (ext4_mb_add_groupinfo(sb, i, desc) != 0)
sb               2518 fs/ext4/mballoc.c 	cachep = get_groupinfo_cache(sb->s_blocksize_bits);
sb               2520 fs/ext4/mballoc.c 		kmem_cache_free(cachep, ext4_get_group_info(sb, i));
sb               2584 fs/ext4/mballoc.c int ext4_mb_init(struct super_block *sb)
sb               2586 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2592 fs/ext4/mballoc.c 	i = (sb->s_blocksize_bits + 2) * sizeof(*sbi->s_mb_offsets);
sb               2600 fs/ext4/mballoc.c 	i = (sb->s_blocksize_bits + 2) * sizeof(*sbi->s_mb_maxs);
sb               2607 fs/ext4/mballoc.c 	ret = ext4_groupinfo_create_slab(sb->s_blocksize);
sb               2612 fs/ext4/mballoc.c 	sbi->s_mb_maxs[0] = sb->s_blocksize << 3;
sb               2617 fs/ext4/mballoc.c 	offset_incr = 1 << (sb->s_blocksize_bits - 1);
sb               2618 fs/ext4/mballoc.c 	max = sb->s_blocksize << 2;
sb               2626 fs/ext4/mballoc.c 	} while (i <= sb->s_blocksize_bits + 1);
sb               2680 fs/ext4/mballoc.c 	ret = ext4_mb_init_backend(sb);
sb               2715 fs/ext4/mballoc.c int ext4_mb_release(struct super_block *sb)
sb               2717 fs/ext4/mballoc.c 	ext4_group_t ngroups = ext4_get_groups_count(sb);
sb               2721 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2722 fs/ext4/mballoc.c 	struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits);
sb               2727 fs/ext4/mballoc.c 			grinfo = ext4_get_group_info(sb, i);
sb               2731 fs/ext4/mballoc.c 			ext4_lock_group(sb, i);
sb               2733 fs/ext4/mballoc.c 			ext4_unlock_group(sb, i);
sb               2737 fs/ext4/mballoc.c 				EXT4_DESC_PER_BLOCK(sb) - 1) >>
sb               2738 fs/ext4/mballoc.c 			EXT4_DESC_PER_BLOCK_BITS(sb);
sb               2750 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_INFO,
sb               2755 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_INFO,
sb               2763 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_INFO,
sb               2767 fs/ext4/mballoc.c 		ext4_msg(sb, KERN_INFO,
sb               2778 fs/ext4/mballoc.c static inline int ext4_issue_discard(struct super_block *sb,
sb               2784 fs/ext4/mballoc.c 	discard_block = (EXT4_C2B(EXT4_SB(sb), cluster) +
sb               2785 fs/ext4/mballoc.c 			 ext4_group_first_block_no(sb, block_group));
sb               2786 fs/ext4/mballoc.c 	count = EXT4_C2B(EXT4_SB(sb), count);
sb               2787 fs/ext4/mballoc.c 	trace_ext4_discard_blocks(sb,
sb               2790 fs/ext4/mballoc.c 		return __blkdev_issue_discard(sb->s_bdev,
sb               2791 fs/ext4/mballoc.c 			(sector_t)discard_block << (sb->s_blocksize_bits - 9),
sb               2792 fs/ext4/mballoc.c 			(sector_t)count << (sb->s_blocksize_bits - 9),
sb               2795 fs/ext4/mballoc.c 		return sb_issue_discard(sb, discard_block, count, GFP_NOFS, 0);
sb               2798 fs/ext4/mballoc.c static void ext4_free_data_in_buddy(struct super_block *sb,
sb               2808 fs/ext4/mballoc.c 	err = ext4_mb_load_buddy(sb, entry->efd_group, &e4b);
sb               2812 fs/ext4/mballoc.c 	spin_lock(&EXT4_SB(sb)->s_md_lock);
sb               2813 fs/ext4/mballoc.c 	EXT4_SB(sb)->s_mb_free_pending -= entry->efd_count;
sb               2814 fs/ext4/mballoc.c 	spin_unlock(&EXT4_SB(sb)->s_md_lock);
sb               2820 fs/ext4/mballoc.c 	ext4_lock_group(sb, entry->efd_group);
sb               2831 fs/ext4/mballoc.c 	if (!test_opt(sb, DISCARD))
sb               2841 fs/ext4/mballoc.c 	ext4_unlock_group(sb, entry->efd_group);
sb               2852 fs/ext4/mballoc.c void ext4_process_freed_data(struct super_block *sb, tid_t commit_tid)
sb               2854 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2874 fs/ext4/mballoc.c 	if (test_opt(sb, DISCARD)) {
sb               2876 fs/ext4/mballoc.c 			err = ext4_issue_discard(sb, entry->efd_group,
sb               2881 fs/ext4/mballoc.c 				ext4_msg(sb, KERN_WARNING, "discard request in"
sb               2897 fs/ext4/mballoc.c 		ext4_free_data_in_buddy(sb, entry);
sb               2950 fs/ext4/mballoc.c 	struct super_block *sb;
sb               2957 fs/ext4/mballoc.c 	sb = ac->ac_sb;
sb               2958 fs/ext4/mballoc.c 	sbi = EXT4_SB(sb);
sb               2960 fs/ext4/mballoc.c 	bitmap_bh = ext4_read_block_bitmap(sb, ac->ac_b_ex.fe_group);
sb               2973 fs/ext4/mballoc.c 	gdp = ext4_get_group_desc(sb, ac->ac_b_ex.fe_group, &gdp_bh);
sb               2978 fs/ext4/mballoc.c 			ext4_free_group_clusters(sb, gdp));
sb               2985 fs/ext4/mballoc.c 	block = ext4_grp_offs_to_block(sb, &ac->ac_b_ex);
sb               2989 fs/ext4/mballoc.c 		ext4_error(sb, "Allocating blocks %llu-%llu which overlap "
sb               2995 fs/ext4/mballoc.c 		ext4_lock_group(sb, ac->ac_b_ex.fe_group);
sb               2998 fs/ext4/mballoc.c 		ext4_unlock_group(sb, ac->ac_b_ex.fe_group);
sb               3005 fs/ext4/mballoc.c 	ext4_lock_group(sb, ac->ac_b_ex.fe_group);
sb               3017 fs/ext4/mballoc.c 	if (ext4_has_group_desc_csum(sb) &&
sb               3020 fs/ext4/mballoc.c 		ext4_free_group_clusters_set(sb, gdp,
sb               3021 fs/ext4/mballoc.c 					     ext4_free_clusters_after_init(sb,
sb               3024 fs/ext4/mballoc.c 	len = ext4_free_group_clusters(sb, gdp) - ac->ac_b_ex.fe_len;
sb               3025 fs/ext4/mballoc.c 	ext4_free_group_clusters_set(sb, gdp, len);
sb               3026 fs/ext4/mballoc.c 	ext4_block_bitmap_csum_set(sb, ac->ac_b_ex.fe_group, gdp, bitmap_bh);
sb               3027 fs/ext4/mballoc.c 	ext4_group_desc_csum_set(sb, ac->ac_b_ex.fe_group, gdp);
sb               3029 fs/ext4/mballoc.c 	ext4_unlock_group(sb, ac->ac_b_ex.fe_group);
sb               3068 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               3072 fs/ext4/mballoc.c 	ac->ac_g_ex.fe_len = EXT4_SB(sb)->s_mb_group_prealloc;
sb               3513 fs/ext4/mballoc.c static void ext4_mb_generate_from_freelist(struct super_block *sb, void *bitmap,
sb               3520 fs/ext4/mballoc.c 	grp = ext4_get_group_info(sb, group);
sb               3537 fs/ext4/mballoc.c void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
sb               3540 fs/ext4/mballoc.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, group);
sb               3559 fs/ext4/mballoc.c 		ext4_get_group_no_and_offset(sb, pa->pa_pstart,
sb               3587 fs/ext4/mballoc.c 			struct super_block *sb, struct ext4_prealloc_space *pa)
sb               3615 fs/ext4/mballoc.c 	grp = ext4_get_group_number(sb, grp_blk);
sb               3631 fs/ext4/mballoc.c 	ext4_lock_group(sb, grp);
sb               3633 fs/ext4/mballoc.c 	ext4_unlock_group(sb, grp);
sb               3648 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               3649 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3702 fs/ext4/mballoc.c 	pa->pa_pstart = ext4_grp_offs_to_block(sb, &ac->ac_b_ex);
sb               3720 fs/ext4/mballoc.c 	grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group);
sb               3725 fs/ext4/mballoc.c 	ext4_lock_group(sb, ac->ac_b_ex.fe_group);
sb               3727 fs/ext4/mballoc.c 	ext4_unlock_group(sb, ac->ac_b_ex.fe_group);
sb               3742 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               3761 fs/ext4/mballoc.c 	pa->pa_pstart = ext4_grp_offs_to_block(sb, &ac->ac_b_ex);
sb               3777 fs/ext4/mballoc.c 	atomic_add(pa->pa_free, &EXT4_SB(sb)->s_mb_preallocated);
sb               3779 fs/ext4/mballoc.c 	grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group);
sb               3786 fs/ext4/mballoc.c 	ext4_lock_group(sb, ac->ac_b_ex.fe_group);
sb               3788 fs/ext4/mballoc.c 	ext4_unlock_group(sb, ac->ac_b_ex.fe_group);
sb               3820 fs/ext4/mballoc.c 	struct super_block *sb = e4b->bd_sb;
sb               3821 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3830 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, pa->pa_pstart, &group, &bit);
sb               3841 fs/ext4/mballoc.c 			 (unsigned) ext4_group_first_block_no(sb, group) + bit,
sb               3845 fs/ext4/mballoc.c 		trace_ext4_mballoc_discard(sb, NULL, group, bit, next - bit);
sb               3858 fs/ext4/mballoc.c 		ext4_grp_locked_error(sb, group, 0, 0, "free %u, pa_free %u",
sb               3874 fs/ext4/mballoc.c 	struct super_block *sb = e4b->bd_sb;
sb               3878 fs/ext4/mballoc.c 	trace_ext4_mb_release_group_pa(sb, pa);
sb               3880 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, pa->pa_pstart, &group, &bit);
sb               3883 fs/ext4/mballoc.c 	atomic_add(pa->pa_len, &EXT4_SB(sb)->s_mb_discarded);
sb               3884 fs/ext4/mballoc.c 	trace_ext4_mballoc_discard(sb, NULL, group, bit, pa->pa_len);
sb               3899 fs/ext4/mballoc.c ext4_mb_discard_group_preallocations(struct super_block *sb,
sb               3902 fs/ext4/mballoc.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, group);
sb               3916 fs/ext4/mballoc.c 	bitmap_bh = ext4_read_block_bitmap(sb, group);
sb               3919 fs/ext4/mballoc.c 		ext4_error(sb, "Error %d reading block bitmap for %u",
sb               3924 fs/ext4/mballoc.c 	err = ext4_mb_load_buddy(sb, group, &e4b);
sb               3926 fs/ext4/mballoc.c 		ext4_warning(sb, "Error %d loading buddy information for %u",
sb               3933 fs/ext4/mballoc.c 		needed = EXT4_CLUSTERS_PER_GROUP(sb) + 1;
sb               3937 fs/ext4/mballoc.c 	ext4_lock_group(sb, group);
sb               3966 fs/ext4/mballoc.c 		ext4_unlock_group(sb, group);
sb               3995 fs/ext4/mballoc.c 	ext4_unlock_group(sb, group);
sb               4013 fs/ext4/mballoc.c 	struct super_block *sb = inode->i_sb;
sb               4044 fs/ext4/mballoc.c 			ext4_msg(sb, KERN_ERR,
sb               4082 fs/ext4/mballoc.c 		group = ext4_get_group_number(sb, pa->pa_pstart);
sb               4084 fs/ext4/mballoc.c 		err = ext4_mb_load_buddy_gfp(sb, group, &e4b,
sb               4087 fs/ext4/mballoc.c 			ext4_error(sb, "Error %d loading buddy information for %u",
sb               4092 fs/ext4/mballoc.c 		bitmap_bh = ext4_read_block_bitmap(sb, group);
sb               4095 fs/ext4/mballoc.c 			ext4_error(sb, "Error %d reading block bitmap for %u",
sb               4101 fs/ext4/mballoc.c 		ext4_lock_group(sb, group);
sb               4104 fs/ext4/mballoc.c 		ext4_unlock_group(sb, group);
sb               4117 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               4121 fs/ext4/mballoc.c 	    (EXT4_SB(sb)->s_mount_flags & EXT4_MF_FS_ABORTED))
sb               4146 fs/ext4/mballoc.c 	ngroups = ext4_get_groups_count(sb);
sb               4148 fs/ext4/mballoc.c 		struct ext4_group_info *grp = ext4_get_group_info(sb, i);
sb               4152 fs/ext4/mballoc.c 		ext4_lock_group(sb, i);
sb               4157 fs/ext4/mballoc.c 			ext4_get_group_no_and_offset(sb, pa->pa_pstart,
sb               4163 fs/ext4/mballoc.c 		ext4_unlock_group(sb, i);
sb               4239 fs/ext4/mballoc.c 	struct super_block *sb = ar->inode->i_sb;
sb               4240 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               4251 fs/ext4/mballoc.c 	if (len >= EXT4_CLUSTERS_PER_GROUP(sb))
sb               4252 fs/ext4/mballoc.c 		len = EXT4_CLUSTERS_PER_GROUP(sb);
sb               4259 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, goal, &group, &block);
sb               4264 fs/ext4/mballoc.c 	ac->ac_sb = sb;
sb               4289 fs/ext4/mballoc.c ext4_mb_discard_lg_preallocations(struct super_block *sb,
sb               4345 fs/ext4/mballoc.c 		group = ext4_get_group_number(sb, pa->pa_pstart);
sb               4346 fs/ext4/mballoc.c 		err = ext4_mb_load_buddy_gfp(sb, group, &e4b,
sb               4349 fs/ext4/mballoc.c 			ext4_error(sb, "Error %d loading buddy information for %u",
sb               4353 fs/ext4/mballoc.c 		ext4_lock_group(sb, group);
sb               4356 fs/ext4/mballoc.c 		ext4_unlock_group(sb, group);
sb               4376 fs/ext4/mballoc.c 	struct super_block *sb = ac->ac_sb;
sb               4413 fs/ext4/mballoc.c 		ext4_mb_discard_lg_preallocations(sb, lg,
sb               4463 fs/ext4/mballoc.c static int ext4_mb_discard_preallocations(struct super_block *sb, int needed)
sb               4465 fs/ext4/mballoc.c 	ext4_group_t i, ngroups = ext4_get_groups_count(sb);
sb               4469 fs/ext4/mballoc.c 	trace_ext4_mb_discard_preallocations(sb, needed);
sb               4471 fs/ext4/mballoc.c 		ret = ext4_mb_discard_group_preallocations(sb, i, needed);
sb               4490 fs/ext4/mballoc.c 	struct super_block *sb;
sb               4496 fs/ext4/mballoc.c 	sb = ar->inode->i_sb;
sb               4497 fs/ext4/mballoc.c 	sbi = EXT4_SB(sb);
sb               4582 fs/ext4/mballoc.c 			block = ext4_grp_offs_to_block(sb, &ac->ac_b_ex);
sb               4586 fs/ext4/mballoc.c 		freed  = ext4_mb_discard_preallocations(sb, ac->ac_o_ex.fe_len);
sb               4654 fs/ext4/mballoc.c 	struct super_block *sb = e4b->bd_sb;
sb               4655 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               4683 fs/ext4/mballoc.c 			ext4_grp_locked_error(sb, group, 0,
sb               4684 fs/ext4/mballoc.c 				ext4_group_first_block_no(sb, group) +
sb               4730 fs/ext4/mballoc.c 	struct super_block *sb = inode->i_sb;
sb               4750 fs/ext4/mballoc.c 	sbi = EXT4_SB(sb);
sb               4753 fs/ext4/mballoc.c 		ext4_error(sb, "Freeing blocks not in datazone - "
sb               4814 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, block, &block_group, &bit);
sb               4817 fs/ext4/mballoc.c 			ext4_get_group_info(sb, block_group))))
sb               4824 fs/ext4/mballoc.c 	if (EXT4_C2B(sbi, bit) + count > EXT4_BLOCKS_PER_GROUP(sb)) {
sb               4826 fs/ext4/mballoc.c 			EXT4_BLOCKS_PER_GROUP(sb);
sb               4830 fs/ext4/mballoc.c 	bitmap_bh = ext4_read_block_bitmap(sb, block_group);
sb               4836 fs/ext4/mballoc.c 	gdp = ext4_get_group_desc(sb, block_group, &gd_bh);
sb               4842 fs/ext4/mballoc.c 	if (in_range(ext4_block_bitmap(sb, gdp), block, count) ||
sb               4843 fs/ext4/mballoc.c 	    in_range(ext4_inode_bitmap(sb, gdp), block, count) ||
sb               4844 fs/ext4/mballoc.c 	    in_range(block, ext4_inode_table(sb, gdp),
sb               4846 fs/ext4/mballoc.c 	    in_range(block + count - 1, ext4_inode_table(sb, gdp),
sb               4849 fs/ext4/mballoc.c 		ext4_error(sb, "Freeing blocks in system zone - "
sb               4876 fs/ext4/mballoc.c 	trace_ext4_mballoc_free(sb, inode, block_group, bit, count_clusters);
sb               4879 fs/ext4/mballoc.c 	err = ext4_mb_load_buddy_gfp(sb, block_group, &e4b,
sb               4905 fs/ext4/mballoc.c 		ext4_lock_group(sb, block_group);
sb               4913 fs/ext4/mballoc.c 		if (test_opt(sb, DISCARD)) {
sb               4914 fs/ext4/mballoc.c 			err = ext4_issue_discard(sb, block_group, bit, count,
sb               4917 fs/ext4/mballoc.c 				ext4_msg(sb, KERN_WARNING, "discard request in"
sb               4924 fs/ext4/mballoc.c 		ext4_lock_group(sb, block_group);
sb               4929 fs/ext4/mballoc.c 	ret = ext4_free_group_clusters(sb, gdp) + count_clusters;
sb               4930 fs/ext4/mballoc.c 	ext4_free_group_clusters_set(sb, gdp, ret);
sb               4931 fs/ext4/mballoc.c 	ext4_block_bitmap_csum_set(sb, block_group, gdp, bitmap_bh);
sb               4932 fs/ext4/mballoc.c 	ext4_group_desc_csum_set(sb, block_group, gdp);
sb               4933 fs/ext4/mballoc.c 	ext4_unlock_group(sb, block_group);
sb               4974 fs/ext4/mballoc.c 	ext4_std_error(sb, err);
sb               4987 fs/ext4/mballoc.c int ext4_group_add_blocks(handle_t *handle, struct super_block *sb,
sb               4996 fs/ext4/mballoc.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               5009 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, block, &block_group, &bit);
sb               5014 fs/ext4/mballoc.c 	if (bit + cluster_count > EXT4_CLUSTERS_PER_GROUP(sb)) {
sb               5015 fs/ext4/mballoc.c 		ext4_warning(sb, "too many blocks added to group %u",
sb               5021 fs/ext4/mballoc.c 	bitmap_bh = ext4_read_block_bitmap(sb, block_group);
sb               5028 fs/ext4/mballoc.c 	desc = ext4_get_group_desc(sb, block_group, &gd_bh);
sb               5034 fs/ext4/mballoc.c 	if (in_range(ext4_block_bitmap(sb, desc), block, count) ||
sb               5035 fs/ext4/mballoc.c 	    in_range(ext4_inode_bitmap(sb, desc), block, count) ||
sb               5036 fs/ext4/mballoc.c 	    in_range(block, ext4_inode_table(sb, desc), sbi->s_itb_per_group) ||
sb               5037 fs/ext4/mballoc.c 	    in_range(block + count - 1, ext4_inode_table(sb, desc),
sb               5039 fs/ext4/mballoc.c 		ext4_error(sb, "Adding blocks in system zones - "
sb               5064 fs/ext4/mballoc.c 			ext4_error(sb, "bit already cleared for block %llu",
sb               5072 fs/ext4/mballoc.c 	err = ext4_mb_load_buddy(sb, block_group, &e4b);
sb               5081 fs/ext4/mballoc.c 	ext4_lock_group(sb, block_group);
sb               5085 fs/ext4/mballoc.c 		ext4_free_group_clusters(sb, desc);
sb               5086 fs/ext4/mballoc.c 	ext4_free_group_clusters_set(sb, desc, free_clusters_count);
sb               5087 fs/ext4/mballoc.c 	ext4_block_bitmap_csum_set(sb, block_group, desc, bitmap_bh);
sb               5088 fs/ext4/mballoc.c 	ext4_group_desc_csum_set(sb, block_group, desc);
sb               5089 fs/ext4/mballoc.c 	ext4_unlock_group(sb, block_group);
sb               5114 fs/ext4/mballoc.c 	ext4_std_error(sb, err);
sb               5130 fs/ext4/mballoc.c static int ext4_trim_extent(struct super_block *sb, int start, int count,
sb               5138 fs/ext4/mballoc.c 	trace_ext4_trim_extent(sb, group, start, count);
sb               5140 fs/ext4/mballoc.c 	assert_spin_locked(ext4_group_lock_ptr(sb, group));
sb               5151 fs/ext4/mballoc.c 	ext4_unlock_group(sb, group);
sb               5152 fs/ext4/mballoc.c 	ret = ext4_issue_discard(sb, group, start, count, NULL);
sb               5153 fs/ext4/mballoc.c 	ext4_lock_group(sb, group);
sb               5177 fs/ext4/mballoc.c ext4_trim_all_free(struct super_block *sb, ext4_group_t group,
sb               5186 fs/ext4/mballoc.c 	trace_ext4_trim_all_free(sb, group, start, max);
sb               5188 fs/ext4/mballoc.c 	ret = ext4_mb_load_buddy(sb, group, &e4b);
sb               5190 fs/ext4/mballoc.c 		ext4_warning(sb, "Error %d loading buddy information for %u",
sb               5196 fs/ext4/mballoc.c 	ext4_lock_group(sb, group);
sb               5198 fs/ext4/mballoc.c 	    minblocks >= atomic_read(&EXT4_SB(sb)->s_last_trim_minblks))
sb               5211 fs/ext4/mballoc.c 			ret = ext4_trim_extent(sb, start,
sb               5227 fs/ext4/mballoc.c 			ext4_unlock_group(sb, group);
sb               5229 fs/ext4/mballoc.c 			ext4_lock_group(sb, group);
sb               5241 fs/ext4/mballoc.c 	ext4_unlock_group(sb, group);
sb               5262 fs/ext4/mballoc.c int ext4_trim_fs(struct super_block *sb, struct fstrim_range *range)
sb               5269 fs/ext4/mballoc.c 			le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block);
sb               5270 fs/ext4/mballoc.c 	ext4_fsblk_t max_blks = ext4_blocks_count(EXT4_SB(sb)->s_es);
sb               5273 fs/ext4/mballoc.c 	start = range->start >> sb->s_blocksize_bits;
sb               5274 fs/ext4/mballoc.c 	end = start + (range->len >> sb->s_blocksize_bits) - 1;
sb               5275 fs/ext4/mballoc.c 	minlen = EXT4_NUM_B2C(EXT4_SB(sb),
sb               5276 fs/ext4/mballoc.c 			      range->minlen >> sb->s_blocksize_bits);
sb               5278 fs/ext4/mballoc.c 	if (minlen > EXT4_CLUSTERS_PER_GROUP(sb) ||
sb               5280 fs/ext4/mballoc.c 	    range->len < sb->s_blocksize)
sb               5290 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, (ext4_fsblk_t) start,
sb               5292 fs/ext4/mballoc.c 	ext4_get_group_no_and_offset(sb, (ext4_fsblk_t) end,
sb               5296 fs/ext4/mballoc.c 	end = EXT4_CLUSTERS_PER_GROUP(sb) - 1;
sb               5299 fs/ext4/mballoc.c 		grp = ext4_get_group_info(sb, group);
sb               5302 fs/ext4/mballoc.c 			ret = ext4_mb_init_group(sb, group, GFP_NOFS);
sb               5317 fs/ext4/mballoc.c 			cnt = ext4_trim_all_free(sb, group, first_cluster,
sb               5334 fs/ext4/mballoc.c 		atomic_set(&EXT4_SB(sb)->s_last_trim_minblks, minlen);
sb               5337 fs/ext4/mballoc.c 	range->len = EXT4_C2B(EXT4_SB(sb), trimmed) << sb->s_blocksize_bits;
sb               5344 fs/ext4/mballoc.c 	struct super_block		*sb,
sb               5356 fs/ext4/mballoc.c 	error = ext4_mb_load_buddy(sb, group, &e4b);
sb               5361 fs/ext4/mballoc.c 	ext4_lock_group(sb, group);
sb               5365 fs/ext4/mballoc.c 	if (end >= EXT4_CLUSTERS_PER_GROUP(sb))
sb               5366 fs/ext4/mballoc.c 		end = EXT4_CLUSTERS_PER_GROUP(sb) - 1;
sb               5374 fs/ext4/mballoc.c 		ext4_unlock_group(sb, group);
sb               5375 fs/ext4/mballoc.c 		error = formatter(sb, group, start, next - start, priv);
sb               5378 fs/ext4/mballoc.c 		ext4_lock_group(sb, group);
sb               5383 fs/ext4/mballoc.c 	ext4_unlock_group(sb, group);
sb                195 fs/ext4/mballoc.h static inline ext4_fsblk_t ext4_grp_offs_to_block(struct super_block *sb,
sb                198 fs/ext4/mballoc.h 	return ext4_group_first_block_no(sb, fex->fe_group) +
sb                199 fs/ext4/mballoc.h 		(fex->fe_start << EXT4_SB(sb)->s_cluster_bits);
sb                203 fs/ext4/mballoc.h 	struct super_block		*sb,
sb                211 fs/ext4/mballoc.h 	struct super_block		*sb,
sb                 11 fs/ext4/mmp.c  static __le32 ext4_mmp_csum(struct super_block *sb, struct mmp_struct *mmp)
sb                 13 fs/ext4/mmp.c  	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 22 fs/ext4/mmp.c  static int ext4_mmp_csum_verify(struct super_block *sb, struct mmp_struct *mmp)
sb                 24 fs/ext4/mmp.c  	if (!ext4_has_metadata_csum(sb))
sb                 27 fs/ext4/mmp.c  	return mmp->mmp_checksum == ext4_mmp_csum(sb, mmp);
sb                 30 fs/ext4/mmp.c  static void ext4_mmp_csum_set(struct super_block *sb, struct mmp_struct *mmp)
sb                 32 fs/ext4/mmp.c  	if (!ext4_has_metadata_csum(sb))
sb                 35 fs/ext4/mmp.c  	mmp->mmp_checksum = ext4_mmp_csum(sb, mmp);
sb                 42 fs/ext4/mmp.c  static int write_mmp_block(struct super_block *sb, struct buffer_head *bh)
sb                 50 fs/ext4/mmp.c  	sb_start_write(sb);
sb                 51 fs/ext4/mmp.c  	ext4_mmp_csum_set(sb, mmp);
sb                 57 fs/ext4/mmp.c  	sb_end_write(sb);
sb                 68 fs/ext4/mmp.c  static int read_mmp_block(struct super_block *sb, struct buffer_head **bh,
sb                 81 fs/ext4/mmp.c  		*bh = sb_getblk(sb, mmp_block);
sb                102 fs/ext4/mmp.c  	if (!ext4_mmp_csum_verify(sb, mmp)) {
sb                110 fs/ext4/mmp.c  	ext4_warning(sb, "Error %d while reading MMP block %llu",
sb                118 fs/ext4/mmp.c  void __dump_mmp_msg(struct super_block *sb, struct mmp_struct *mmp,
sb                121 fs/ext4/mmp.c  	__ext4_warning(sb, function, line, "%s", msg);
sb                122 fs/ext4/mmp.c  	__ext4_warning(sb, function, line,
sb                134 fs/ext4/mmp.c  	struct super_block *sb = ((struct mmpd_data *) data)->sb;
sb                136 fs/ext4/mmp.c  	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                171 fs/ext4/mmp.c  		retval = write_mmp_block(sb, bh);
sb                178 fs/ext4/mmp.c  				ext4_error(sb, "Error writing to MMP block");
sb                184 fs/ext4/mmp.c  			ext4_warning(sb, "kmmpd being stopped since MMP feature"
sb                189 fs/ext4/mmp.c  		if (sb_rdonly(sb))
sb                207 fs/ext4/mmp.c  			retval = read_mmp_block(sb, &bh_check, mmp_block);
sb                209 fs/ext4/mmp.c  				ext4_error(sb, "error reading MMP data: %d",
sb                218 fs/ext4/mmp.c  				dump_mmp_msg(sb, mmp_check,
sb                222 fs/ext4/mmp.c  				ext4_error(sb, "abort");
sb                246 fs/ext4/mmp.c  	retval = write_mmp_block(sb, bh);
sb                249 fs/ext4/mmp.c  	EXT4_SB(sb)->s_mmp_tsk = NULL;
sb                273 fs/ext4/mmp.c  int ext4_multi_mount_protect(struct super_block *sb,
sb                276 fs/ext4/mmp.c  	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                287 fs/ext4/mmp.c  		ext4_warning(sb, "Invalid MMP block in superblock");
sb                291 fs/ext4/mmp.c  	retval = read_mmp_block(sb, &bh, mmp_block);
sb                312 fs/ext4/mmp.c  		dump_mmp_msg(sb, mmp, "fsck is running on the filesystem");
sb                321 fs/ext4/mmp.c  		ext4_warning(sb, "MMP interval %u higher than expected, please"
sb                325 fs/ext4/mmp.c  		ext4_warning(sb, "MMP startup interrupted, failing mount\n");
sb                329 fs/ext4/mmp.c  	retval = read_mmp_block(sb, &bh, mmp_block);
sb                334 fs/ext4/mmp.c  		dump_mmp_msg(sb, mmp,
sb                346 fs/ext4/mmp.c  	retval = write_mmp_block(sb, bh);
sb                354 fs/ext4/mmp.c  		ext4_warning(sb, "MMP startup interrupted, failing mount");
sb                358 fs/ext4/mmp.c  	retval = read_mmp_block(sb, &bh, mmp_block);
sb                363 fs/ext4/mmp.c  		dump_mmp_msg(sb, mmp,
sb                370 fs/ext4/mmp.c  		ext4_warning(sb, "not enough memory for mmpd_data");
sb                373 fs/ext4/mmp.c  	mmpd_data->sb = sb;
sb                379 fs/ext4/mmp.c  	EXT4_SB(sb)->s_mmp_tsk = kthread_run(kmmpd, mmpd_data, "kmmpd-%.*s",
sb                383 fs/ext4/mmp.c  	if (IS_ERR(EXT4_SB(sb)->s_mmp_tsk)) {
sb                384 fs/ext4/mmp.c  		EXT4_SB(sb)->s_mmp_tsk = NULL;
sb                386 fs/ext4/mmp.c  		ext4_warning(sb, "Unable to create kmmpd thread for %s.",
sb                387 fs/ext4/mmp.c  			     sb->s_id);
sb                262 fs/ext4/move_extent.c 	struct super_block *sb = orig_inode->i_sb;
sb                404 fs/ext4/move_extent.c 	    ext4_should_retry_alloc(sb, &retries))
sb                408 fs/ext4/move_extent.c 	if (*err == -EBUSY && retries++ < 4 && EXT4_SB(sb)->s_journal &&
sb                409 fs/ext4/move_extent.c 	    jbd2_journal_force_commit_nested(EXT4_SB(sb)->s_journal))
sb               1415 fs/ext4/namei.c 	struct super_block *sb = dir->i_sb;
sb               1422 fs/ext4/namei.c 	    ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize) ==
sb               1423 fs/ext4/namei.c 			sb->s_blocksize)
sb               1444 fs/ext4/namei.c 	struct super_block *sb;
sb               1457 fs/ext4/namei.c 	sb = dir->i_sb;
sb               1496 fs/ext4/namei.c 	nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb);
sb               1549 fs/ext4/namei.c 			    block << EXT4_BLOCK_SIZE_BITS(sb), res_dir);
sb               1569 fs/ext4/namei.c 	nblocks = dir->i_size >> EXT4_BLOCK_SIZE_BITS(sb);
sb               1627 fs/ext4/namei.c 	struct super_block * sb = dir->i_sb;
sb               1646 fs/ext4/namei.c 					 block << EXT4_BLOCK_SIZE_BITS(sb),
sb               2167 fs/ext4/namei.c 	struct super_block *sb;
sb               2179 fs/ext4/namei.c 	sb = dir->i_sb;
sb               2180 fs/ext4/namei.c 	sbi = EXT4_SB(sb);
sb               2181 fs/ext4/namei.c 	blocksize = sb->s_blocksize;
sb               2210 fs/ext4/namei.c 		if (ext4_has_metadata_csum(sb)) {
sb               2220 fs/ext4/namei.c 	blocks = dir->i_size >> sb->s_blocksize_bits;
sb               2239 fs/ext4/namei.c 		    ext4_has_feature_dir_index(sb)) {
sb               2279 fs/ext4/namei.c 	struct super_block *sb = dir->i_sb;
sb               2332 fs/ext4/namei.c 		if (add_level && levels == ext4_dir_htree_level(sb)) {
sb               2333 fs/ext4/namei.c 			ext4_warning(sb, "Directory (ino: %lu) index full, "
sb               2336 fs/ext4/namei.c 			if (ext4_dir_htree_level(sb) < EXT4_HTREE_LEVEL) {
sb               2337 fs/ext4/namei.c 				ext4_warning(sb, "Large directory feature is "
sb               2353 fs/ext4/namei.c 		node2->fake.rec_len = ext4_rec_len_to_disk(sb->s_blocksize,
sb               2354 fs/ext4/namei.c 							   sb->s_blocksize);
sb               2820 fs/ext4/namei.c 	struct super_block *sb;
sb               2831 fs/ext4/namei.c 	sb = inode->i_sb;
sb               2851 fs/ext4/namei.c 	offset = ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize);
sb               2852 fs/ext4/namei.c 	de = ext4_next_entry(de, sb->s_blocksize);
sb               2860 fs/ext4/namei.c 	offset += ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize);
sb               2862 fs/ext4/namei.c 		if (!(offset & (sb->s_blocksize - 1))) {
sb               2865 fs/ext4/namei.c 			lblock = offset >> EXT4_BLOCK_SIZE_BITS(sb);
sb               2868 fs/ext4/namei.c 				offset += sb->s_blocksize;
sb               2875 fs/ext4/namei.c 					(offset & (sb->s_blocksize - 1)));
sb               2878 fs/ext4/namei.c 			offset = (offset | (sb->s_blocksize - 1)) + 1;
sb               2885 fs/ext4/namei.c 		offset += ext4_rec_len_from_disk(de->rec_len, sb->s_blocksize);
sb               2905 fs/ext4/namei.c 	struct super_block *sb = inode->i_sb;
sb               2906 fs/ext4/namei.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2957 fs/ext4/namei.c 		err = ext4_handle_dirty_super(handle, sb);
sb               2978 fs/ext4/namei.c 	ext4_std_error(sb, err);
sb                 47 fs/ext4/resize.c int ext4_resize_begin(struct super_block *sb)
sb                 49 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                 61 fs/ext4/resize.c 	    le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block)) {
sb                 62 fs/ext4/resize.c 		ext4_warning(sb, "won't resize using backup superblock at %llu",
sb                 63 fs/ext4/resize.c 			(unsigned long long)EXT4_SB(sb)->s_sbh->b_blocknr);
sb                 71 fs/ext4/resize.c 	if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) {
sb                 72 fs/ext4/resize.c 		ext4_warning(sb, "There are errors in the filesystem, "
sb                 78 fs/ext4/resize.c 				  &EXT4_SB(sb)->s_ext4_flags))
sb                 84 fs/ext4/resize.c void ext4_resize_end(struct super_block *sb)
sb                 86 fs/ext4/resize.c 	clear_bit_unlock(EXT4_FLAGS_RESIZING, &EXT4_SB(sb)->s_ext4_flags);
sb                 90 fs/ext4/resize.c static ext4_group_t ext4_meta_bg_first_group(struct super_block *sb,
sb                 92 fs/ext4/resize.c 	return (group >> EXT4_DESC_PER_BLOCK_BITS(sb)) <<
sb                 93 fs/ext4/resize.c 	       EXT4_DESC_PER_BLOCK_BITS(sb);
sb                 96 fs/ext4/resize.c static ext4_fsblk_t ext4_meta_bg_first_block_no(struct super_block *sb,
sb                 98 fs/ext4/resize.c 	group = ext4_meta_bg_first_group(sb, group);
sb                 99 fs/ext4/resize.c 	return ext4_group_first_block_no(sb, group);
sb                102 fs/ext4/resize.c static ext4_grpblk_t ext4_group_overhead_blocks(struct super_block *sb,
sb                105 fs/ext4/resize.c 	overhead = ext4_bg_num_gdb(sb, group);
sb                106 fs/ext4/resize.c 	if (ext4_bg_has_super(sb, group))
sb                108 fs/ext4/resize.c 			  le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks);
sb                115 fs/ext4/resize.c static int verify_group_input(struct super_block *sb,
sb                118 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                131 fs/ext4/resize.c 		ext4_warning(sb, "Cannot add at group %u (only %u groups)",
sb                136 fs/ext4/resize.c 	overhead = ext4_group_overhead_blocks(sb, group);
sb                141 fs/ext4/resize.c 	if (test_opt(sb, DEBUG))
sb                144 fs/ext4/resize.c 		       ext4_bg_has_super(sb, input->group) ? "normal" :
sb                148 fs/ext4/resize.c 	ext4_get_group_no_and_offset(sb, start, NULL, &offset);
sb                150 fs/ext4/resize.c 			ext4_warning(sb, "Last group not full");
sb                152 fs/ext4/resize.c 		ext4_warning(sb, "Reserved blocks too high (%u)",
sb                155 fs/ext4/resize.c 		ext4_warning(sb, "Bad blocks count %u",
sb                157 fs/ext4/resize.c 	else if (IS_ERR(bh = ext4_sb_bread(sb, end - 1, 0))) {
sb                160 fs/ext4/resize.c 		ext4_warning(sb, "Cannot read last block (%llu)",
sb                163 fs/ext4/resize.c 		ext4_warning(sb, "Block bitmap not in group (block %llu)",
sb                166 fs/ext4/resize.c 		ext4_warning(sb, "Inode bitmap not in group (block %llu)",
sb                170 fs/ext4/resize.c 		ext4_warning(sb, "Inode table not in group (blocks %llu-%llu)",
sb                173 fs/ext4/resize.c 		ext4_warning(sb, "Block bitmap same as inode bitmap (%llu)",
sb                176 fs/ext4/resize.c 		ext4_warning(sb, "Block bitmap (%llu) in inode table "
sb                181 fs/ext4/resize.c 		ext4_warning(sb, "Inode bitmap (%llu) in inode table "
sb                186 fs/ext4/resize.c 		ext4_warning(sb, "Block bitmap (%llu) in GDT table (%llu-%llu)",
sb                190 fs/ext4/resize.c 		ext4_warning(sb, "Inode bitmap (%llu) in GDT table (%llu-%llu)",
sb                195 fs/ext4/resize.c 		ext4_warning(sb, "Inode table (%llu-%llu) overlaps GDT table "
sb                278 fs/ext4/resize.c static int ext4_alloc_group_tables(struct super_block *sb,
sb                306 fs/ext4/resize.c 	start_blk = ext4_group_first_block_no(sb, src_group);
sb                309 fs/ext4/resize.c 	overhead = ext4_group_overhead_blocks(sb, src_group);
sb                316 fs/ext4/resize.c 		overhead = ext4_group_overhead_blocks(sb, src_group);
sb                328 fs/ext4/resize.c 		group = ext4_get_group_number(sb, start_blk - 1);
sb                339 fs/ext4/resize.c 		group = ext4_get_group_number(sb, start_blk - 1);
sb                347 fs/ext4/resize.c 		unsigned int itb = EXT4_SB(sb)->s_itb_per_group;
sb                353 fs/ext4/resize.c 		group = ext4_get_group_number(sb, start_blk);
sb                354 fs/ext4/resize.c 		next_group_start = ext4_group_first_block_no(sb, group + 1);
sb                366 fs/ext4/resize.c 		start_blk += EXT4_SB(sb)->s_itb_per_group;
sb                372 fs/ext4/resize.c 				EXT4_NUM_B2C(EXT4_SB(sb),
sb                376 fs/ext4/resize.c 	if (test_opt(sb, DEBUG)) {
sb                387 fs/ext4/resize.c 			       ext4_bg_has_super(sb, group + i) ? "normal" :
sb                397 fs/ext4/resize.c static struct buffer_head *bclean(handle_t *handle, struct super_block *sb,
sb                403 fs/ext4/resize.c 	bh = sb_getblk(sb, blk);
sb                411 fs/ext4/resize.c 		memset(bh->b_data, 0, sb->s_blocksize);
sb                451 fs/ext4/resize.c static int set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle,
sb                455 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                468 fs/ext4/resize.c 		group = ext4_get_group_number(sb, EXT4_C2B(sbi, first_cluster));
sb                469 fs/ext4/resize.c 		start = EXT4_B2C(sbi, ext4_group_first_block_no(sb, group));
sb                472 fs/ext4/resize.c 		count2 = EXT4_CLUSTERS_PER_GROUP(sb) - (first_cluster - start);
sb                485 fs/ext4/resize.c 		bh = sb_getblk(sb, flex_gd->groups[group].block_bitmap);
sb                522 fs/ext4/resize.c static int setup_new_flex_group_blocks(struct super_block *sb,
sb                525 fs/ext4/resize.c 	int group_table_count[] = {1, 1, EXT4_SB(sb)->s_itb_per_group};
sb                528 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                542 fs/ext4/resize.c 	meta_bg = ext4_has_feature_meta_bg(sb);
sb                545 fs/ext4/resize.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, EXT4_MAX_TRANS_DATA);
sb                554 fs/ext4/resize.c 		gdblocks = ext4_bg_num_gdb(sb, group);
sb                555 fs/ext4/resize.c 		start = ext4_group_first_block_no(sb, group);
sb                557 fs/ext4/resize.c 		if (meta_bg == 0 && !ext4_bg_has_super(sb, group))
sb                562 fs/ext4/resize.c 			first_group = ext4_meta_bg_first_group(sb, group);
sb                564 fs/ext4/resize.c 			    first_group != group + EXT4_DESC_PER_BLOCK(sb) - 1)
sb                568 fs/ext4/resize.c 		block = start + ext4_bg_has_super(sb, group);
sb                578 fs/ext4/resize.c 			gdb = sb_getblk(sb, block);
sb                605 fs/ext4/resize.c 		if (ext4_bg_has_super(sb, group)) {
sb                606 fs/ext4/resize.c 			err = sb_issue_zeroout(sb, gdblocks + start + 1,
sb                621 fs/ext4/resize.c 		err = sb_issue_zeroout(sb, block, sbi->s_itb_per_group,
sb                636 fs/ext4/resize.c 		bh = bclean(handle, sb, block);
sb                641 fs/ext4/resize.c 		overhead = ext4_group_overhead_blocks(sb, group);
sb                649 fs/ext4/resize.c 				     sb->s_blocksize * 8, bh->b_data);
sb                665 fs/ext4/resize.c 		bh = bclean(handle, sb, block);
sb                671 fs/ext4/resize.c 		ext4_mark_bitmap_end(EXT4_INODES_PER_GROUP(sb),
sb                672 fs/ext4/resize.c 				     sb->s_blocksize * 8, bh->b_data);
sb                690 fs/ext4/resize.c 			err = set_flexbg_block_bitmap(sb, handle,
sb                704 fs/ext4/resize.c 			err = set_flexbg_block_bitmap(sb, handle,
sb                730 fs/ext4/resize.c static unsigned ext4_list_backups(struct super_block *sb, unsigned *three,
sb                737 fs/ext4/resize.c 	if (!ext4_has_feature_sparse_super(sb)) {
sb                763 fs/ext4/resize.c static int verify_reserved_gdb(struct super_block *sb,
sb                775 fs/ext4/resize.c 	while ((grp = ext4_list_backups(sb, &three, &five, &seven)) < end) {
sb                777 fs/ext4/resize.c 		    grp * EXT4_BLOCKS_PER_GROUP(sb) + blk){
sb                778 fs/ext4/resize.c 			ext4_warning(sb, "reserved GDT %llu"
sb                782 fs/ext4/resize.c 				     (ext4_fsblk_t)EXT4_BLOCKS_PER_GROUP(sb) +
sb                786 fs/ext4/resize.c 		if (++gdbackups > EXT4_ADDR_PER_BLOCK(sb))
sb                809 fs/ext4/resize.c 	struct super_block *sb = inode->i_sb;
sb                810 fs/ext4/resize.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                811 fs/ext4/resize.c 	unsigned long gdb_num = group / EXT4_DESC_PER_BLOCK(sb);
sb                812 fs/ext4/resize.c 	ext4_fsblk_t gdblock = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + gdb_num;
sb                821 fs/ext4/resize.c 	if (test_opt(sb, DEBUG))
sb                826 fs/ext4/resize.c 	gdb_bh = ext4_sb_bread(sb, gdblock, 0);
sb                830 fs/ext4/resize.c 	gdbackups = verify_reserved_gdb(sb, group, gdb_bh);
sb                837 fs/ext4/resize.c 	dind = ext4_sb_bread(sb, le32_to_cpu(*data), 0);
sb                845 fs/ext4/resize.c 	if (le32_to_cpu(data[gdb_num % EXT4_ADDR_PER_BLOCK(sb)]) != gdblock) {
sb                846 fs/ext4/resize.c 		ext4_warning(sb, "new group %u GDT block %llu not reserved",
sb                852 fs/ext4/resize.c 	BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access");
sb                853 fs/ext4/resize.c 	err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh);
sb                865 fs/ext4/resize.c 		ext4_std_error(sb, err);
sb                877 fs/ext4/resize.c 		ext4_warning(sb, "not enough memory for %lu groups",
sb                891 fs/ext4/resize.c 	data[gdb_num % EXT4_ADDR_PER_BLOCK(sb)] = 0;
sb                894 fs/ext4/resize.c 		ext4_std_error(sb, err);
sb                897 fs/ext4/resize.c 	inode->i_blocks -= (gdbackups + 1) * sb->s_blocksize >>
sb                898 fs/ext4/resize.c 			   (9 - EXT4_SB(sb)->s_cluster_bits);
sb                900 fs/ext4/resize.c 	memset(gdb_bh->b_data, 0, sb->s_blocksize);
sb                903 fs/ext4/resize.c 		ext4_std_error(sb, err);
sb                910 fs/ext4/resize.c 	o_group_desc = rcu_dereference(EXT4_SB(sb)->s_group_desc);
sb                912 fs/ext4/resize.c 	       EXT4_SB(sb)->s_gdb_count * sizeof(struct buffer_head *));
sb                915 fs/ext4/resize.c 	rcu_assign_pointer(EXT4_SB(sb)->s_group_desc, n_group_desc);
sb                916 fs/ext4/resize.c 	EXT4_SB(sb)->s_gdb_count++;
sb                920 fs/ext4/resize.c 	err = ext4_handle_dirty_super(handle, sb);
sb                922 fs/ext4/resize.c 		ext4_std_error(sb, err);
sb                937 fs/ext4/resize.c static int add_new_gdb_meta_bg(struct super_block *sb,
sb                942 fs/ext4/resize.c 	unsigned long gdb_num = group / EXT4_DESC_PER_BLOCK(sb);
sb                945 fs/ext4/resize.c 	gdblock = ext4_meta_bg_first_block_no(sb, group) +
sb                946 fs/ext4/resize.c 		   ext4_bg_has_super(sb, group);
sb                947 fs/ext4/resize.c 	gdb_bh = ext4_sb_bread(sb, gdblock, 0);
sb                956 fs/ext4/resize.c 		ext4_warning(sb, "not enough memory for %lu groups",
sb                962 fs/ext4/resize.c 	o_group_desc = rcu_dereference(EXT4_SB(sb)->s_group_desc);
sb                964 fs/ext4/resize.c 	       EXT4_SB(sb)->s_gdb_count * sizeof(struct buffer_head *));
sb                976 fs/ext4/resize.c 	rcu_assign_pointer(EXT4_SB(sb)->s_group_desc, n_group_desc);
sb                977 fs/ext4/resize.c 	EXT4_SB(sb)->s_gdb_count++;
sb                998 fs/ext4/resize.c 	struct super_block *sb = inode->i_sb;
sb                999 fs/ext4/resize.c 	int reserved_gdb =le16_to_cpu(EXT4_SB(sb)->s_es->s_reserved_gdt_blocks);
sb               1000 fs/ext4/resize.c 	int cluster_bits = EXT4_SB(sb)->s_cluster_bits;
sb               1015 fs/ext4/resize.c 	dind = ext4_sb_bread(sb, le32_to_cpu(*data), 0);
sb               1022 fs/ext4/resize.c 	blk = EXT4_SB(sb)->s_sbh->b_blocknr + 1 + EXT4_SB(sb)->s_gdb_count;
sb               1023 fs/ext4/resize.c 	data = (__le32 *)dind->b_data + (EXT4_SB(sb)->s_gdb_count %
sb               1024 fs/ext4/resize.c 					 EXT4_ADDR_PER_BLOCK(sb));
sb               1025 fs/ext4/resize.c 	end = (__le32 *)dind->b_data + EXT4_ADDR_PER_BLOCK(sb);
sb               1030 fs/ext4/resize.c 			ext4_warning(sb, "reserved block %llu"
sb               1037 fs/ext4/resize.c 		primary[res] = ext4_sb_bread(sb, blk, 0);
sb               1043 fs/ext4/resize.c 		gdbackups = verify_reserved_gdb(sb, group, primary[res]);
sb               1066 fs/ext4/resize.c 	blk = group * EXT4_BLOCKS_PER_GROUP(sb);
sb               1079 fs/ext4/resize.c 	inode->i_blocks += reserved_gdb * sb->s_blocksize >> (9 - cluster_bits);
sb               1109 fs/ext4/resize.c static void update_backups(struct super_block *sb, sector_t blk_off, char *data,
sb               1112 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1114 fs/ext4/resize.c 	const int bpg = EXT4_BLOCKS_PER_GROUP(sb);
sb               1119 fs/ext4/resize.c 	int rest = sb->s_blocksize - size;
sb               1123 fs/ext4/resize.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, EXT4_MAX_TRANS_DATA);
sb               1131 fs/ext4/resize.c 		group = ext4_list_backups(sb, &three, &five, &seven);
sb               1134 fs/ext4/resize.c 		group = ext4_get_group_number(sb, blk_off) + 1;
sb               1135 fs/ext4/resize.c 		last = (ext4_group_t)(group + EXT4_DESC_PER_BLOCK(sb) - 2);
sb               1152 fs/ext4/resize.c 			backup_block = (ext4_group_first_block_no(sb, group) +
sb               1153 fs/ext4/resize.c 					ext4_bg_has_super(sb, group));
sb               1155 fs/ext4/resize.c 		bh = sb_getblk(sb, backup_block);
sb               1162 fs/ext4/resize.c 			   ext4_group_first_block_no(sb, group));
sb               1176 fs/ext4/resize.c 			ext4_std_error(sb, err);
sb               1180 fs/ext4/resize.c 			group = ext4_list_backups(sb, &three, &five, &seven);
sb               1201 fs/ext4/resize.c 		ext4_warning(sb, "can't update backup for group %u (err %d), "
sb               1219 fs/ext4/resize.c static int ext4_add_new_descs(handle_t *handle, struct super_block *sb,
sb               1223 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1229 fs/ext4/resize.c 	meta_bg = ext4_has_feature_meta_bg(sb);
sb               1231 fs/ext4/resize.c 		int reserved_gdb = ext4_bg_has_super(sb, group) ?
sb               1234 fs/ext4/resize.c 		gdb_off = group % EXT4_DESC_PER_BLOCK(sb);
sb               1235 fs/ext4/resize.c 		gdb_num = group / EXT4_DESC_PER_BLOCK(sb);
sb               1249 fs/ext4/resize.c 			if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group))
sb               1252 fs/ext4/resize.c 			err = add_new_gdb_meta_bg(sb, handle, group);
sb               1262 fs/ext4/resize.c static struct buffer_head *ext4_get_bitmap(struct super_block *sb, __u64 block)
sb               1264 fs/ext4/resize.c 	struct buffer_head *bh = sb_getblk(sb, block);
sb               1277 fs/ext4/resize.c static int ext4_set_bitmap_checksums(struct super_block *sb,
sb               1284 fs/ext4/resize.c 	if (!ext4_has_metadata_csum(sb))
sb               1287 fs/ext4/resize.c 	bh = ext4_get_bitmap(sb, group_data->inode_bitmap);
sb               1290 fs/ext4/resize.c 	ext4_inode_bitmap_csum_set(sb, group, gdp, bh,
sb               1291 fs/ext4/resize.c 				   EXT4_INODES_PER_GROUP(sb) / 8);
sb               1294 fs/ext4/resize.c 	bh = ext4_get_bitmap(sb, group_data->block_bitmap);
sb               1297 fs/ext4/resize.c 	ext4_block_bitmap_csum_set(sb, group, gdp, bh);
sb               1306 fs/ext4/resize.c static int ext4_setup_new_descs(handle_t *handle, struct super_block *sb,
sb               1311 fs/ext4/resize.c 	struct ext4_sb_info		*sbi = EXT4_SB(sb);
sb               1321 fs/ext4/resize.c 		gdb_off = group % EXT4_DESC_PER_BLOCK(sb);
sb               1322 fs/ext4/resize.c 		gdb_num = group / EXT4_DESC_PER_BLOCK(sb);
sb               1330 fs/ext4/resize.c 						 gdb_off * EXT4_DESC_SIZE(sb));
sb               1332 fs/ext4/resize.c 		memset(gdp, 0, EXT4_DESC_SIZE(sb));
sb               1333 fs/ext4/resize.c 		ext4_block_bitmap_set(sb, gdp, group_data->block_bitmap);
sb               1334 fs/ext4/resize.c 		ext4_inode_bitmap_set(sb, gdp, group_data->inode_bitmap);
sb               1335 fs/ext4/resize.c 		err = ext4_set_bitmap_checksums(sb, group, gdp, group_data);
sb               1337 fs/ext4/resize.c 			ext4_std_error(sb, err);
sb               1341 fs/ext4/resize.c 		ext4_inode_table_set(sb, gdp, group_data->inode_table);
sb               1342 fs/ext4/resize.c 		ext4_free_group_clusters_set(sb, gdp,
sb               1344 fs/ext4/resize.c 		ext4_free_inodes_set(sb, gdp, EXT4_INODES_PER_GROUP(sb));
sb               1345 fs/ext4/resize.c 		if (ext4_has_group_desc_csum(sb))
sb               1346 fs/ext4/resize.c 			ext4_itable_unused_set(sb, gdp,
sb               1347 fs/ext4/resize.c 					       EXT4_INODES_PER_GROUP(sb));
sb               1349 fs/ext4/resize.c 		ext4_group_desc_csum_set(sb, group, gdp);
sb               1353 fs/ext4/resize.c 			ext4_std_error(sb, err);
sb               1361 fs/ext4/resize.c 		err = ext4_mb_add_groupinfo(sb, group, gdp);
sb               1375 fs/ext4/resize.c static void ext4_update_super(struct super_block *sb,
sb               1382 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1409 fs/ext4/resize.c 	le32_add_cpu(&es->s_inodes_count, EXT4_INODES_PER_GROUP(sb) *
sb               1411 fs/ext4/resize.c 	le32_add_cpu(&es->s_free_inodes_count, EXT4_INODES_PER_GROUP(sb) *
sb               1438 fs/ext4/resize.c 			(EXT4_MAX_BLOCK_FILE_PHYS / EXT4_BLOCKS_PER_GROUP(sb)));
sb               1449 fs/ext4/resize.c 			   EXT4_INODES_PER_GROUP(sb) * flex_gd->count);
sb               1453 fs/ext4/resize.c 	if (ext4_has_feature_flex_bg(sb) && sbi->s_log_groups_per_flex) {
sb               1461 fs/ext4/resize.c 		atomic_add(EXT4_INODES_PER_GROUP(sb) * flex_gd->count,
sb               1468 fs/ext4/resize.c 	ext4_calculate_overhead(sb);
sb               1470 fs/ext4/resize.c 	if (test_opt(sb, DEBUG))
sb               1480 fs/ext4/resize.c static int ext4_flex_group_add(struct super_block *sb,
sb               1484 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1497 fs/ext4/resize.c 	ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last);
sb               1500 fs/ext4/resize.c 	err = setup_new_flex_group_blocks(sb, flex_gd);
sb               1512 fs/ext4/resize.c 	credit += 1 + DIV_ROUND_UP(flex_gd->count, EXT4_DESC_PER_BLOCK(sb));
sb               1514 fs/ext4/resize.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credit);
sb               1527 fs/ext4/resize.c 	err = ext4_add_new_descs(handle, sb, group,
sb               1532 fs/ext4/resize.c 	err = ext4_setup_new_descs(handle, sb, flex_gd);
sb               1536 fs/ext4/resize.c 	ext4_update_super(sb, flex_gd);
sb               1538 fs/ext4/resize.c 	err = ext4_handle_dirty_super(handle, sb);
sb               1546 fs/ext4/resize.c 		int gdb_num = group / EXT4_DESC_PER_BLOCK(sb);
sb               1548 fs/ext4/resize.c 				   EXT4_DESC_PER_BLOCK(sb));
sb               1549 fs/ext4/resize.c 		int meta_bg = ext4_has_feature_meta_bg(sb);
sb               1552 fs/ext4/resize.c 		update_backups(sb, sbi->s_sbh->b_blocknr, (char *)es,
sb               1561 fs/ext4/resize.c 			update_backups(sb, gdb_bh->b_blocknr, gdb_bh->b_data,
sb               1570 fs/ext4/resize.c static int ext4_setup_next_flex_gd(struct super_block *sb,
sb               1575 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1586 fs/ext4/resize.c 	clusters_per_group = EXT4_CLUSTERS_PER_GROUP(sb);
sb               1593 fs/ext4/resize.c 	ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last);
sb               1595 fs/ext4/resize.c 	ext4_get_group_no_and_offset(sb, n_blocks_count - 1, &n_group, &last);
sb               1607 fs/ext4/resize.c 		group_data[i].blocks_count = EXT4_BLOCKS_PER_GROUP(sb);
sb               1608 fs/ext4/resize.c 		overhead = ext4_group_overhead_blocks(sb, group + i);
sb               1610 fs/ext4/resize.c 		group_data[i].free_clusters_count = EXT4_CLUSTERS_PER_GROUP(sb);
sb               1611 fs/ext4/resize.c 		if (ext4_has_group_desc_csum(sb)) {
sb               1614 fs/ext4/resize.c 			if (!test_opt(sb, INIT_INODE_TABLE))
sb               1620 fs/ext4/resize.c 	if (last_group == n_group && ext4_has_group_desc_csum(sb))
sb               1646 fs/ext4/resize.c int ext4_group_add(struct super_block *sb, struct ext4_new_group_data *input)
sb               1649 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1651 fs/ext4/resize.c 	int reserved_gdb = ext4_bg_has_super(sb, input->group) ?
sb               1658 fs/ext4/resize.c 	gdb_off = input->group % EXT4_DESC_PER_BLOCK(sb);
sb               1660 fs/ext4/resize.c 	if (gdb_off == 0 && !ext4_has_feature_sparse_super(sb)) {
sb               1661 fs/ext4/resize.c 		ext4_warning(sb, "Can't resize non-sparse filesystem further");
sb               1667 fs/ext4/resize.c 		ext4_warning(sb, "blocks_count overflow");
sb               1671 fs/ext4/resize.c 	if (le32_to_cpu(es->s_inodes_count) + EXT4_INODES_PER_GROUP(sb) <
sb               1673 fs/ext4/resize.c 		ext4_warning(sb, "inodes_count overflow");
sb               1678 fs/ext4/resize.c 		if (!ext4_has_feature_resize_inode(sb) ||
sb               1680 fs/ext4/resize.c 			ext4_warning(sb,
sb               1684 fs/ext4/resize.c 		inode = ext4_iget(sb, EXT4_RESIZE_INO, EXT4_IGET_SPECIAL);
sb               1686 fs/ext4/resize.c 			ext4_warning(sb, "Error opening resize inode");
sb               1692 fs/ext4/resize.c 	err = verify_group_input(sb, input);
sb               1696 fs/ext4/resize.c 	err = ext4_alloc_flex_bg_array(sb, input->group + 1);
sb               1700 fs/ext4/resize.c 	err = ext4_mb_alloc_groupinfo(sb, input->group + 1);
sb               1707 fs/ext4/resize.c 	err = ext4_flex_group_add(sb, inode, &flex_gd);
sb               1716 fs/ext4/resize.c static int ext4_group_extend_no_check(struct super_block *sb,
sb               1719 fs/ext4/resize.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb               1726 fs/ext4/resize.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, 3);
sb               1729 fs/ext4/resize.c 		ext4_warning(sb, "error %d on journal start", err);
sb               1733 fs/ext4/resize.c 	BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access");
sb               1734 fs/ext4/resize.c 	err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh);
sb               1736 fs/ext4/resize.c 		ext4_warning(sb, "error %d on journal write access", err);
sb               1745 fs/ext4/resize.c 	err = ext4_group_add_blocks(handle, sb, o_blocks_count, add);
sb               1748 fs/ext4/resize.c 	ext4_handle_dirty_super(handle, sb);
sb               1757 fs/ext4/resize.c 		if (test_opt(sb, DEBUG))
sb               1760 fs/ext4/resize.c 		update_backups(sb, EXT4_SB(sb)->s_sbh->b_blocknr,
sb               1776 fs/ext4/resize.c int ext4_group_extend(struct super_block *sb, struct ext4_super_block *es,
sb               1788 fs/ext4/resize.c 	if (test_opt(sb, DEBUG))
sb               1789 fs/ext4/resize.c 		ext4_msg(sb, KERN_DEBUG,
sb               1796 fs/ext4/resize.c 	if (n_blocks_count > (sector_t)(~0ULL) >> (sb->s_blocksize_bits - 9)) {
sb               1797 fs/ext4/resize.c 		ext4_msg(sb, KERN_ERR,
sb               1804 fs/ext4/resize.c 		ext4_warning(sb, "can't shrink FS - resize aborted");
sb               1809 fs/ext4/resize.c 	ext4_get_group_no_and_offset(sb, o_blocks_count, &group, &last);
sb               1812 fs/ext4/resize.c 		ext4_warning(sb, "need to use ext2online to resize further");
sb               1816 fs/ext4/resize.c 	add = EXT4_BLOCKS_PER_GROUP(sb) - last;
sb               1819 fs/ext4/resize.c 		ext4_warning(sb, "blocks_count overflow");
sb               1827 fs/ext4/resize.c 		ext4_warning(sb, "will only finish group (%llu blocks, %u new)",
sb               1831 fs/ext4/resize.c 	bh = sb_bread(sb, o_blocks_count + add - 1);
sb               1833 fs/ext4/resize.c 		ext4_warning(sb, "can't read last block, resize aborted");
sb               1838 fs/ext4/resize.c 	err = ext4_group_extend_no_check(sb, o_blocks_count, add);
sb               1843 fs/ext4/resize.c static int num_desc_blocks(struct super_block *sb, ext4_group_t groups)
sb               1845 fs/ext4/resize.c 	return (groups + EXT4_DESC_PER_BLOCK(sb) - 1) / EXT4_DESC_PER_BLOCK(sb);
sb               1853 fs/ext4/resize.c static int ext4_convert_meta_bg(struct super_block *sb, struct inode *inode)
sb               1856 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1863 fs/ext4/resize.c 	ext4_msg(sb, KERN_INFO, "Converting file system to meta_bg");
sb               1866 fs/ext4/resize.c 			ext4_error(sb, "Unexpected non-zero "
sb               1888 fs/ext4/resize.c 	handle = ext4_journal_start_sb(sb, EXT4_HT_RESIZE, credits);
sb               1897 fs/ext4/resize.c 	ext4_clear_feature_resize_inode(sb);
sb               1898 fs/ext4/resize.c 	ext4_set_feature_meta_bg(sb);
sb               1900 fs/ext4/resize.c 		cpu_to_le32(num_desc_blocks(sb, sbi->s_groups_count));
sb               1902 fs/ext4/resize.c 	err = ext4_handle_dirty_super(handle, sb);
sb               1904 fs/ext4/resize.c 		ext4_std_error(sb, err);
sb               1918 fs/ext4/resize.c 			ext4_std_error(sb, err);
sb               1928 fs/ext4/resize.c 	ext4_error(sb, "corrupted/inconsistent resize inode");
sb               1938 fs/ext4/resize.c int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
sb               1941 fs/ext4/resize.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1957 fs/ext4/resize.c 	bh = sb_bread(sb, n_blocks_count - 1);
sb               1959 fs/ext4/resize.c 		ext4_warning(sb, "can't read last block, resize aborted");
sb               1967 fs/ext4/resize.c 	ext4_msg(sb, KERN_INFO, "resizing filesystem from %llu "
sb               1972 fs/ext4/resize.c 		ext4_warning(sb, "can't shrink FS - resize aborted");
sb               1980 fs/ext4/resize.c 	n_group = ext4_get_group_number(sb, n_blocks_count - 1);
sb               1981 fs/ext4/resize.c 	if (n_group >= (0xFFFFFFFFUL / EXT4_INODES_PER_GROUP(sb))) {
sb               1982 fs/ext4/resize.c 		ext4_warning(sb, "resize would cause inodes_count overflow");
sb               1985 fs/ext4/resize.c 	ext4_get_group_no_and_offset(sb, o_blocks_count - 1, &o_group, &offset);
sb               1987 fs/ext4/resize.c 	n_desc_blocks = num_desc_blocks(sb, n_group + 1);
sb               1988 fs/ext4/resize.c 	o_desc_blocks = num_desc_blocks(sb, sbi->s_groups_count);
sb               1990 fs/ext4/resize.c 	meta_bg = ext4_has_feature_meta_bg(sb);
sb               1992 fs/ext4/resize.c 	if (ext4_has_feature_resize_inode(sb)) {
sb               1994 fs/ext4/resize.c 			ext4_error(sb, "resize_inode and meta_bg enabled "
sb               2003 fs/ext4/resize.c 			n_group = n_desc_blocks * EXT4_DESC_PER_BLOCK(sb);
sb               2005 fs/ext4/resize.c 				EXT4_BLOCKS_PER_GROUP(sb) +
sb               2011 fs/ext4/resize.c 			resize_inode = ext4_iget(sb, EXT4_RESIZE_INO,
sb               2014 fs/ext4/resize.c 			ext4_warning(sb, "Error opening resize inode");
sb               2020 fs/ext4/resize.c 		err = ext4_convert_meta_bg(sb, resize_inode);
sb               2041 fs/ext4/resize.c 	if ((ext4_group_first_block_no(sb, n_group) +
sb               2042 fs/ext4/resize.c 	     ext4_group_overhead_blocks(sb, n_group) + 2 +
sb               2044 fs/ext4/resize.c 		n_blocks_count = ext4_group_first_block_no(sb, n_group);
sb               2058 fs/ext4/resize.c 		add = EXT4_C2B(sbi, EXT4_CLUSTERS_PER_GROUP(sb) - (offset + 1));
sb               2060 fs/ext4/resize.c 		err = ext4_group_extend_no_check(sb, o_blocks_count, add);
sb               2068 fs/ext4/resize.c 	err = ext4_alloc_flex_bg_array(sb, n_group + 1);
sb               2072 fs/ext4/resize.c 	err = ext4_mb_alloc_groupinfo(sb, n_group + 1);
sb               2085 fs/ext4/resize.c 	while (ext4_setup_next_flex_gd(sb, flex_gd, n_blocks_count,
sb               2089 fs/ext4/resize.c 				ext4_msg(sb, KERN_INFO,
sb               2094 fs/ext4/resize.c 		if (ext4_alloc_group_tables(sb, flex_gd, flexbg_size) != 0)
sb               2096 fs/ext4/resize.c 		err = ext4_flex_group_add(sb, resize_inode, flex_gd);
sb               2119 fs/ext4/resize.c 		ext4_warning(sb, "error (%d) occurred during "
sb               2121 fs/ext4/resize.c 	ext4_msg(sb, KERN_INFO, "resized filesystem to %llu",
sb                 68 fs/ext4/super.c static int ext4_commit_super(struct super_block *sb, int sync);
sb                 69 fs/ext4/super.c static void ext4_mark_recovery_complete(struct super_block *sb,
sb                 71 fs/ext4/super.c static void ext4_clear_journal_err(struct super_block *sb,
sb                 73 fs/ext4/super.c static int ext4_sync_fs(struct super_block *sb, int wait);
sb                 74 fs/ext4/super.c static int ext4_remount(struct super_block *sb, int *flags, char *data);
sb                 76 fs/ext4/super.c static int ext4_unfreeze(struct super_block *sb);
sb                 77 fs/ext4/super.c static int ext4_freeze(struct super_block *sb);
sb                 80 fs/ext4/super.c static inline int ext2_feature_set_ok(struct super_block *sb);
sb                 81 fs/ext4/super.c static inline int ext3_feature_set_ok(struct super_block *sb);
sb                 82 fs/ext4/super.c static int ext4_feature_set_ok(struct super_block *sb, int readonly);
sb                 84 fs/ext4/super.c static void ext4_unregister_li_request(struct super_block *sb);
sb                 86 fs/ext4/super.c static struct inode *ext4_get_journal_inode(struct super_block *sb,
sb                127 fs/ext4/super.c #define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type)
sb                129 fs/ext4/super.c #define IS_EXT2_SB(sb) (0)
sb                142 fs/ext4/super.c #define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type)
sb                151 fs/ext4/super.c ext4_sb_bread(struct super_block *sb, sector_t block, int op_flags)
sb                153 fs/ext4/super.c 	struct buffer_head *bh = sb_getblk(sb, block);
sb                167 fs/ext4/super.c static int ext4_verify_csum_type(struct super_block *sb,
sb                170 fs/ext4/super.c 	if (!ext4_has_feature_metadata_csum(sb))
sb                176 fs/ext4/super.c static __le32 ext4_superblock_csum(struct super_block *sb,
sb                179 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                188 fs/ext4/super.c static int ext4_superblock_csum_verify(struct super_block *sb,
sb                191 fs/ext4/super.c 	if (!ext4_has_metadata_csum(sb))
sb                194 fs/ext4/super.c 	return es->s_checksum == ext4_superblock_csum(sb, es);
sb                197 fs/ext4/super.c void ext4_superblock_csum_set(struct super_block *sb)
sb                199 fs/ext4/super.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                201 fs/ext4/super.c 	if (!ext4_has_metadata_csum(sb))
sb                204 fs/ext4/super.c 	es->s_checksum = ext4_superblock_csum(sb, es);
sb                227 fs/ext4/super.c ext4_fsblk_t ext4_block_bitmap(struct super_block *sb,
sb                231 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                235 fs/ext4/super.c ext4_fsblk_t ext4_inode_bitmap(struct super_block *sb,
sb                239 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                243 fs/ext4/super.c ext4_fsblk_t ext4_inode_table(struct super_block *sb,
sb                247 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                251 fs/ext4/super.c __u32 ext4_free_group_clusters(struct super_block *sb,
sb                255 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                259 fs/ext4/super.c __u32 ext4_free_inodes_count(struct super_block *sb,
sb                263 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                267 fs/ext4/super.c __u32 ext4_used_dirs_count(struct super_block *sb,
sb                271 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                275 fs/ext4/super.c __u32 ext4_itable_unused_count(struct super_block *sb,
sb                279 fs/ext4/super.c 		(EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT ?
sb                283 fs/ext4/super.c void ext4_block_bitmap_set(struct super_block *sb,
sb                287 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                291 fs/ext4/super.c void ext4_inode_bitmap_set(struct super_block *sb,
sb                295 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                299 fs/ext4/super.c void ext4_inode_table_set(struct super_block *sb,
sb                303 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                307 fs/ext4/super.c void ext4_free_group_clusters_set(struct super_block *sb,
sb                311 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                315 fs/ext4/super.c void ext4_free_inodes_set(struct super_block *sb,
sb                319 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                323 fs/ext4/super.c void ext4_used_dirs_set(struct super_block *sb,
sb                327 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                331 fs/ext4/super.c void ext4_itable_unused_set(struct super_block *sb,
sb                335 fs/ext4/super.c 	if (EXT4_DESC_SIZE(sb) >= EXT4_MIN_DESC_SIZE_64BIT)
sb                358 fs/ext4/super.c static void __save_error_info(struct super_block *sb, const char *func,
sb                361 fs/ext4/super.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                363 fs/ext4/super.c 	EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS;
sb                364 fs/ext4/super.c 	if (bdev_read_only(sb->s_bdev))
sb                384 fs/ext4/super.c 		mod_timer(&EXT4_SB(sb)->s_err_report, jiffies + 24*60*60*HZ);
sb                388 fs/ext4/super.c static void save_error_info(struct super_block *sb, const char *func,
sb                391 fs/ext4/super.c 	__save_error_info(sb, func, line);
sb                392 fs/ext4/super.c 	if (!bdev_read_only(sb->s_bdev))
sb                393 fs/ext4/super.c 		ext4_commit_super(sb, 1);
sb                404 fs/ext4/super.c static int block_device_ejected(struct super_block *sb)
sb                406 fs/ext4/super.c 	struct inode *bd_inode = sb->s_bdev->bd_inode;
sb                414 fs/ext4/super.c 	struct super_block		*sb = journal->j_private;
sb                415 fs/ext4/super.c 	struct ext4_sb_info		*sbi = EXT4_SB(sb);
sb                421 fs/ext4/super.c 	ext4_process_freed_data(sb, txn->t_tid);
sb                429 fs/ext4/super.c 		jce->jce_func(sb, jce, error);
sb                456 fs/ext4/super.c static void ext4_handle_error(struct super_block *sb)
sb                458 fs/ext4/super.c 	if (test_opt(sb, WARN_ON_ERROR))
sb                461 fs/ext4/super.c 	if (sb_rdonly(sb))
sb                464 fs/ext4/super.c 	if (!test_opt(sb, ERRORS_CONT)) {
sb                465 fs/ext4/super.c 		journal_t *journal = EXT4_SB(sb)->s_journal;
sb                467 fs/ext4/super.c 		EXT4_SB(sb)->s_mount_flags |= EXT4_MF_FS_ABORTED;
sb                476 fs/ext4/super.c 	if (test_opt(sb, ERRORS_RO) || system_going_down()) {
sb                477 fs/ext4/super.c 		ext4_msg(sb, KERN_CRIT, "Remounting filesystem read-only");
sb                483 fs/ext4/super.c 		sb->s_flags |= SB_RDONLY;
sb                484 fs/ext4/super.c 	} else if (test_opt(sb, ERRORS_PANIC)) {
sb                485 fs/ext4/super.c 		if (EXT4_SB(sb)->s_journal &&
sb                486 fs/ext4/super.c 		  !(EXT4_SB(sb)->s_journal->j_flags & JBD2_REC_ERR))
sb                489 fs/ext4/super.c 			sb->s_id);
sb                493 fs/ext4/super.c #define ext4_error_ratelimit(sb)					\
sb                494 fs/ext4/super.c 		___ratelimit(&(EXT4_SB(sb)->s_err_ratelimit_state),	\
sb                497 fs/ext4/super.c void __ext4_error(struct super_block *sb, const char *function,
sb                503 fs/ext4/super.c 	if (unlikely(ext4_forced_shutdown(EXT4_SB(sb))))
sb                506 fs/ext4/super.c 	trace_ext4_error(sb, function, line);
sb                507 fs/ext4/super.c 	if (ext4_error_ratelimit(sb)) {
sb                513 fs/ext4/super.c 		       sb->s_id, function, line, current->comm, &vaf);
sb                516 fs/ext4/super.c 	save_error_info(sb, function, line);
sb                517 fs/ext4/super.c 	ext4_handle_error(sb);
sb                595 fs/ext4/super.c const char *ext4_decode_error(struct super_block *sb, int errno,
sb                614 fs/ext4/super.c 		if (!sb || (EXT4_SB(sb)->s_journal &&
sb                615 fs/ext4/super.c 			    EXT4_SB(sb)->s_journal->j_flags & JBD2_ABORT))
sb                638 fs/ext4/super.c void __ext4_std_error(struct super_block *sb, const char *function,
sb                644 fs/ext4/super.c 	if (unlikely(ext4_forced_shutdown(EXT4_SB(sb))))
sb                650 fs/ext4/super.c 	if (errno == -EROFS && journal_current_handle() == NULL && sb_rdonly(sb))
sb                653 fs/ext4/super.c 	if (ext4_error_ratelimit(sb)) {
sb                654 fs/ext4/super.c 		errstr = ext4_decode_error(sb, errno, nbuf);
sb                656 fs/ext4/super.c 		       sb->s_id, function, line, errstr);
sb                659 fs/ext4/super.c 	save_error_info(sb, function, line);
sb                660 fs/ext4/super.c 	ext4_handle_error(sb);
sb                673 fs/ext4/super.c void __ext4_abort(struct super_block *sb, const char *function,
sb                679 fs/ext4/super.c 	if (unlikely(ext4_forced_shutdown(EXT4_SB(sb))))
sb                682 fs/ext4/super.c 	save_error_info(sb, function, line);
sb                687 fs/ext4/super.c 	       sb->s_id, function, line, &vaf);
sb                690 fs/ext4/super.c 	if (sb_rdonly(sb) == 0) {
sb                691 fs/ext4/super.c 		ext4_msg(sb, KERN_CRIT, "Remounting filesystem read-only");
sb                692 fs/ext4/super.c 		EXT4_SB(sb)->s_mount_flags |= EXT4_MF_FS_ABORTED;
sb                698 fs/ext4/super.c 		sb->s_flags |= SB_RDONLY;
sb                699 fs/ext4/super.c 		if (EXT4_SB(sb)->s_journal)
sb                700 fs/ext4/super.c 			jbd2_journal_abort(EXT4_SB(sb)->s_journal, -EIO);
sb                701 fs/ext4/super.c 		save_error_info(sb, function, line);
sb                703 fs/ext4/super.c 	if (test_opt(sb, ERRORS_PANIC) && !system_going_down()) {
sb                704 fs/ext4/super.c 		if (EXT4_SB(sb)->s_journal &&
sb                705 fs/ext4/super.c 		  !(EXT4_SB(sb)->s_journal->j_flags & JBD2_REC_ERR))
sb                711 fs/ext4/super.c void __ext4_msg(struct super_block *sb,
sb                717 fs/ext4/super.c 	if (!___ratelimit(&(EXT4_SB(sb)->s_msg_ratelimit_state), "EXT4-fs"))
sb                723 fs/ext4/super.c 	printk("%sEXT4-fs (%s): %pV\n", prefix, sb->s_id, &vaf);
sb                727 fs/ext4/super.c #define ext4_warning_ratelimit(sb)					\
sb                728 fs/ext4/super.c 		___ratelimit(&(EXT4_SB(sb)->s_warning_ratelimit_state),	\
sb                731 fs/ext4/super.c void __ext4_warning(struct super_block *sb, const char *function,
sb                737 fs/ext4/super.c 	if (!ext4_warning_ratelimit(sb))
sb                744 fs/ext4/super.c 	       sb->s_id, function, line, &vaf);
sb                767 fs/ext4/super.c 			     struct super_block *sb, ext4_group_t grp,
sb                775 fs/ext4/super.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                777 fs/ext4/super.c 	if (unlikely(ext4_forced_shutdown(EXT4_SB(sb))))
sb                780 fs/ext4/super.c 	trace_ext4_error(sb, function, line);
sb                783 fs/ext4/super.c 	__save_error_info(sb, function, line);
sb                785 fs/ext4/super.c 	if (ext4_error_ratelimit(sb)) {
sb                790 fs/ext4/super.c 		       sb->s_id, function, line, grp);
sb                800 fs/ext4/super.c 	if (test_opt(sb, WARN_ON_ERROR))
sb                803 fs/ext4/super.c 	if (test_opt(sb, ERRORS_CONT)) {
sb                804 fs/ext4/super.c 		ext4_commit_super(sb, 0);
sb                808 fs/ext4/super.c 	ext4_unlock_group(sb, grp);
sb                809 fs/ext4/super.c 	ext4_commit_super(sb, 1);
sb                810 fs/ext4/super.c 	ext4_handle_error(sb);
sb                822 fs/ext4/super.c 	ext4_lock_group(sb, grp);
sb                826 fs/ext4/super.c void ext4_mark_group_bitmap_corrupted(struct super_block *sb,
sb                830 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                831 fs/ext4/super.c 	struct ext4_group_info *grp = ext4_get_group_info(sb, group);
sb                832 fs/ext4/super.c 	struct ext4_group_desc *gdp = ext4_get_group_desc(sb, group, NULL);
sb                849 fs/ext4/super.c 			count = ext4_free_inodes_count(sb, gdp);
sb                856 fs/ext4/super.c void ext4_update_dynamic_rev(struct super_block *sb)
sb                858 fs/ext4/super.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb                863 fs/ext4/super.c 	ext4_warning(sb,
sb                884 fs/ext4/super.c static struct block_device *ext4_blkdev_get(dev_t dev, struct super_block *sb)
sb                889 fs/ext4/super.c 	bdev = blkdev_get_by_dev(dev, FMODE_READ|FMODE_WRITE|FMODE_EXCL, sb);
sb                895 fs/ext4/super.c 	ext4_msg(sb, KERN_ERR, "failed to open journal device %s: %ld",
sb                923 fs/ext4/super.c static void dump_orphan_list(struct super_block *sb, struct ext4_sb_info *sbi)
sb                927 fs/ext4/super.c 	ext4_msg(sb, KERN_ERR, "sb orphan head is %d",
sb                942 fs/ext4/super.c static int ext4_quota_off(struct super_block *sb, int type);
sb                944 fs/ext4/super.c static inline void ext4_quota_off_umount(struct super_block *sb)
sb                950 fs/ext4/super.c 		ext4_quota_off(sb, type);
sb                957 fs/ext4/super.c static inline char *get_qf_name(struct super_block *sb,
sb                962 fs/ext4/super.c 					 lockdep_is_held(&sb->s_umount));
sb                965 fs/ext4/super.c static inline void ext4_quota_off_umount(struct super_block *sb)
sb                970 fs/ext4/super.c static void ext4_put_super(struct super_block *sb)
sb                972 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                979 fs/ext4/super.c 	ext4_unregister_li_request(sb);
sb                980 fs/ext4/super.c 	ext4_quota_off_umount(sb);
sb                989 fs/ext4/super.c 			ext4_abort(sb, "Couldn't clean up the journal");
sb                992 fs/ext4/super.c 	ext4_unregister_sysfs(sb);
sb                995 fs/ext4/super.c 	ext4_release_system_zone(sb);
sb                996 fs/ext4/super.c 	ext4_mb_release(sb);
sb                997 fs/ext4/super.c 	ext4_ext_release(sb);
sb                999 fs/ext4/super.c 	if (!sb_rdonly(sb) && !aborted) {
sb               1000 fs/ext4/super.c 		ext4_clear_feature_journal_needs_recovery(sb);
sb               1003 fs/ext4/super.c 	if (!sb_rdonly(sb))
sb               1004 fs/ext4/super.c 		ext4_commit_super(sb, 1);
sb               1025 fs/ext4/super.c 		kfree(get_qf_name(sb, sbi, i));
sb               1033 fs/ext4/super.c 		dump_orphan_list(sb, sbi);
sb               1036 fs/ext4/super.c 	sync_blockdev(sb->s_bdev);
sb               1037 fs/ext4/super.c 	invalidate_bdev(sb->s_bdev);
sb               1038 fs/ext4/super.c 	if (sbi->journal_bdev && sbi->journal_bdev != sb->s_bdev) {
sb               1058 fs/ext4/super.c 	sb->s_fs_info = NULL;
sb               1080 fs/ext4/super.c static struct inode *ext4_alloc_inode(struct super_block *sb)
sb               1199 fs/ext4/super.c static struct inode *ext4_nfs_get_inode(struct super_block *sb,
sb               1208 fs/ext4/super.c 	inode = ext4_iget(sb, ino, EXT4_IGET_HANDLE);
sb               1219 fs/ext4/super.c static struct dentry *ext4_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb               1222 fs/ext4/super.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb               1226 fs/ext4/super.c static struct dentry *ext4_fh_to_parent(struct super_block *sb, struct fid *fid,
sb               1229 fs/ext4/super.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb               1249 fs/ext4/super.c static int bdev_try_to_free_page(struct super_block *sb, struct page *page,
sb               1252 fs/ext4/super.c 	journal_t *journal = EXT4_SB(sb)->s_journal;
sb               1377 fs/ext4/super.c static int ext4_write_info(struct super_block *sb, int type);
sb               1378 fs/ext4/super.c static int ext4_quota_on(struct super_block *sb, int type, int format_id,
sb               1380 fs/ext4/super.c static int ext4_quota_on_mount(struct super_block *sb, int type);
sb               1381 fs/ext4/super.c static ssize_t ext4_quota_read(struct super_block *sb, int type, char *data,
sb               1383 fs/ext4/super.c static ssize_t ext4_quota_write(struct super_block *sb, int type,
sb               1385 fs/ext4/super.c static int ext4_quota_enable(struct super_block *sb, int type, int format_id,
sb               1387 fs/ext4/super.c static int ext4_enable_quotas(struct super_block *sb);
sb               1388 fs/ext4/super.c static int ext4_get_next_id(struct super_block *sb, struct kqid *qid);
sb               1596 fs/ext4/super.c static int set_qf_name(struct super_block *sb, int qtype, substring_t *args)
sb               1598 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1599 fs/ext4/super.c 	char *qname, *old_qname = get_qf_name(sb, sbi, qtype);
sb               1602 fs/ext4/super.c 	if (sb_any_quota_loaded(sb) && !old_qname) {
sb               1603 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               1608 fs/ext4/super.c 	if (ext4_has_feature_quota(sb)) {
sb               1609 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "Journaled quota options "
sb               1615 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               1623 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               1629 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               1634 fs/ext4/super.c 	set_opt(sb, QUOTA);
sb               1641 fs/ext4/super.c static int clear_qf_name(struct super_block *sb, int qtype)
sb               1644 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1645 fs/ext4/super.c 	char *old_qname = get_qf_name(sb, sbi, qtype);
sb               1647 fs/ext4/super.c 	if (sb_any_quota_loaded(sb) && old_qname) {
sb               1648 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Cannot change journaled quota options"
sb               1802 fs/ext4/super.c static int handle_mount_opt(struct super_block *sb, char *opt, int token,
sb               1806 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               1814 fs/ext4/super.c 		return set_qf_name(sb, USRQUOTA, &args[0]);
sb               1816 fs/ext4/super.c 		return set_qf_name(sb, GRPQUOTA, &args[0]);
sb               1818 fs/ext4/super.c 		return clear_qf_name(sb, USRQUOTA);
sb               1820 fs/ext4/super.c 		return clear_qf_name(sb, GRPQUOTA);
sb               1825 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, deprecated_msg, opt, "3.5");
sb               1830 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "Ignoring removed %s option", opt);
sb               1836 fs/ext4/super.c 		sb->s_flags |= SB_I_VERSION;
sb               1839 fs/ext4/super.c 		sb->s_flags |= SB_LAZYTIME;
sb               1842 fs/ext4/super.c 		sb->s_flags &= ~SB_LAZYTIME;
sb               1851 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Unrecognized mount option \"%s\" "
sb               1856 fs/ext4/super.c 	if ((m->flags & MOPT_NO_EXT2) && IS_EXT2_SB(sb)) {
sb               1857 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               1861 fs/ext4/super.c 	if ((m->flags & MOPT_NO_EXT3) && IS_EXT3_SB(sb)) {
sb               1862 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               1873 fs/ext4/super.c 			set_opt2(sb, EXPLICIT_DELALLOC);
sb               1875 fs/ext4/super.c 			set_opt2(sb, EXPLICIT_JOURNAL_CHECKSUM);
sb               1880 fs/ext4/super.c 		clear_opt(sb, ERRORS_MASK);
sb               1881 fs/ext4/super.c 	if (token == Opt_noquota && sb_any_quota_loaded(sb)) {
sb               1882 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Cannot change quota "
sb               1888 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "%s option not supported", opt);
sb               1893 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               1904 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               1915 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               1922 fs/ext4/super.c 		set_opt(sb, INIT_INODE_TABLE);
sb               1933 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "Invalid uid value %d", arg);
sb               1940 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "Invalid gid value %d", arg);
sb               1946 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               1958 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               1964 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "error: could not dup "
sb               1971 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "error: could not find "
sb               1979 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "error: journal path %s "
sb               1991 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "Invalid journal IO priority"
sb               2000 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               2003 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               2009 fs/ext4/super.c 				ext4_msg(sb, KERN_WARNING, "Remounting file system with no journal so ignoring journalled data option");
sb               2010 fs/ext4/super.c 			else if (test_opt(sb, DATA_FLAGS) != m->mount_opt) {
sb               2011 fs/ext4/super.c 				ext4_msg(sb, KERN_ERR,
sb               2016 fs/ext4/super.c 			clear_opt(sb, DATA_FLAGS);
sb               2021 fs/ext4/super.c 		if (sb_any_quota_loaded(sb) &&
sb               2023 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "Cannot change journaled "
sb               2027 fs/ext4/super.c 		if (ext4_has_feature_quota(sb)) {
sb               2028 fs/ext4/super.c 			ext4_msg(sb, KERN_INFO,
sb               2037 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               2041 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "dax option not supported");
sb               2054 fs/ext4/super.c 			ext4_msg(sb, KERN_WARNING,
sb               2067 fs/ext4/super.c static int parse_options(char *options, struct super_block *sb,
sb               2072 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2089 fs/ext4/super.c 		if (handle_mount_opt(sb, p, token, args, journal_devnum,
sb               2099 fs/ext4/super.c 	if (test_opt(sb, PRJQUOTA) && !ext4_has_feature_project(sb)) {
sb               2100 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Project quota feature not enabled. "
sb               2104 fs/ext4/super.c 	usr_qf_name = get_qf_name(sb, sbi, USRQUOTA);
sb               2105 fs/ext4/super.c 	grp_qf_name = get_qf_name(sb, sbi, GRPQUOTA);
sb               2107 fs/ext4/super.c 		if (test_opt(sb, USRQUOTA) && usr_qf_name)
sb               2108 fs/ext4/super.c 			clear_opt(sb, USRQUOTA);
sb               2110 fs/ext4/super.c 		if (test_opt(sb, GRPQUOTA) && grp_qf_name)
sb               2111 fs/ext4/super.c 			clear_opt(sb, GRPQUOTA);
sb               2113 fs/ext4/super.c 		if (test_opt(sb, GRPQUOTA) || test_opt(sb, USRQUOTA)) {
sb               2114 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "old and new quota "
sb               2120 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "journaled quota format "
sb               2126 fs/ext4/super.c 	if (test_opt(sb, DIOREAD_NOLOCK)) {
sb               2131 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               2140 fs/ext4/super.c 					   struct super_block *sb)
sb               2143 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2189 fs/ext4/super.c static int _ext4_show_options(struct seq_file *seq, struct super_block *sb,
sb               2192 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2227 fs/ext4/super.c 	if (test_opt(sb, ERRORS_RO) && def_errors != EXT4_ERRORS_RO)
sb               2229 fs/ext4/super.c 	if (test_opt(sb, ERRORS_CONT) && def_errors != EXT4_ERRORS_CONTINUE)
sb               2231 fs/ext4/super.c 	if (test_opt(sb, ERRORS_PANIC) && def_errors != EXT4_ERRORS_PANIC)
sb               2239 fs/ext4/super.c 	if (sb->s_flags & SB_I_VERSION)
sb               2245 fs/ext4/super.c 		if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA)
sb               2247 fs/ext4/super.c 		else if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_ORDERED_DATA)
sb               2249 fs/ext4/super.c 		else if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_WRITEBACK_DATA)
sb               2257 fs/ext4/super.c 	if (test_opt(sb, INIT_INODE_TABLE) && (nodefs ||
sb               2262 fs/ext4/super.c 	if (test_opt(sb, DATA_ERR_ABORT))
sb               2267 fs/ext4/super.c 	ext4_show_quota_options(seq, sb);
sb               2278 fs/ext4/super.c 	struct super_block *sb = seq->private;
sb               2281 fs/ext4/super.c 	seq_puts(seq, sb_rdonly(sb) ? "ro" : "rw");
sb               2282 fs/ext4/super.c 	rc = _ext4_show_options(seq, sb, 1);
sb               2287 fs/ext4/super.c static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
sb               2290 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2294 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "revision level too high, "
sb               2301 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "warning: mounting unchecked fs, "
sb               2304 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               2310 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               2316 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               2326 fs/ext4/super.c 		ext4_set_feature_journal_needs_recovery(sb);
sb               2328 fs/ext4/super.c 	err = ext4_commit_super(sb, 1);
sb               2330 fs/ext4/super.c 	if (test_opt(sb, DEBUG))
sb               2333 fs/ext4/super.c 			sb->s_blocksize,
sb               2335 fs/ext4/super.c 			EXT4_BLOCKS_PER_GROUP(sb),
sb               2336 fs/ext4/super.c 			EXT4_INODES_PER_GROUP(sb),
sb               2339 fs/ext4/super.c 	cleancache_init_fs(sb);
sb               2343 fs/ext4/super.c int ext4_alloc_flex_bg_array(struct super_block *sb, ext4_group_t ngroup)
sb               2345 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2359 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               2371 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               2390 fs/ext4/super.c static int ext4_fill_flex_info(struct super_block *sb)
sb               2392 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2404 fs/ext4/super.c 	err = ext4_alloc_flex_bg_array(sb, sbi->s_groups_count);
sb               2409 fs/ext4/super.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb               2413 fs/ext4/super.c 		atomic_add(ext4_free_inodes_count(sb, gdp), &fg->free_inodes);
sb               2414 fs/ext4/super.c 		atomic64_add(ext4_free_group_clusters(sb, gdp),
sb               2416 fs/ext4/super.c 		atomic_add(ext4_used_dirs_count(sb, gdp), &fg->used_dirs);
sb               2424 fs/ext4/super.c static __le16 ext4_group_desc_csum(struct super_block *sb, __u32 block_group,
sb               2430 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2452 fs/ext4/super.c 	if (!ext4_has_feature_gdt_csum(sb))
sb               2460 fs/ext4/super.c 	if (ext4_has_feature_64bit(sb) &&
sb               2470 fs/ext4/super.c int ext4_group_desc_csum_verify(struct super_block *sb, __u32 block_group,
sb               2473 fs/ext4/super.c 	if (ext4_has_group_desc_csum(sb) &&
sb               2474 fs/ext4/super.c 	    (gdp->bg_checksum != ext4_group_desc_csum(sb, block_group, gdp)))
sb               2480 fs/ext4/super.c void ext4_group_desc_csum_set(struct super_block *sb, __u32 block_group,
sb               2483 fs/ext4/super.c 	if (!ext4_has_group_desc_csum(sb))
sb               2485 fs/ext4/super.c 	gdp->bg_checksum = ext4_group_desc_csum(sb, block_group, gdp);
sb               2489 fs/ext4/super.c static int ext4_check_descriptors(struct super_block *sb,
sb               2493 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2496 fs/ext4/super.c 	ext4_fsblk_t last_bg_block = sb_block + ext4_bg_num_gdb(sb, 0);
sb               2503 fs/ext4/super.c 	if (ext4_has_feature_flex_bg(sb))
sb               2509 fs/ext4/super.c 		struct ext4_group_desc *gdp = ext4_get_group_desc(sb, i, NULL);
sb               2515 fs/ext4/super.c 				(EXT4_BLOCKS_PER_GROUP(sb) - 1);
sb               2521 fs/ext4/super.c 		block_bitmap = ext4_block_bitmap(sb, gdp);
sb               2523 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2526 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               2531 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2534 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               2538 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2543 fs/ext4/super.c 		inode_bitmap = ext4_inode_bitmap(sb, gdp);
sb               2545 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2548 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               2553 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2556 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               2560 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2565 fs/ext4/super.c 		inode_table = ext4_inode_table(sb, gdp);
sb               2567 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2570 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               2575 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2578 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               2583 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2588 fs/ext4/super.c 		ext4_lock_group(sb, i);
sb               2589 fs/ext4/super.c 		if (!ext4_group_desc_csum_verify(sb, i, gdp)) {
sb               2590 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
sb               2592 fs/ext4/super.c 				 i, le16_to_cpu(ext4_group_desc_csum(sb, i,
sb               2594 fs/ext4/super.c 			if (!sb_rdonly(sb)) {
sb               2595 fs/ext4/super.c 				ext4_unlock_group(sb, i);
sb               2599 fs/ext4/super.c 		ext4_unlock_group(sb, i);
sb               2601 fs/ext4/super.c 			first_block += EXT4_BLOCKS_PER_GROUP(sb);
sb               2625 fs/ext4/super.c static void ext4_orphan_cleanup(struct super_block *sb,
sb               2628 fs/ext4/super.c 	unsigned int s_flags = sb->s_flags;
sb               2639 fs/ext4/super.c 	if (bdev_read_only(sb->s_bdev)) {
sb               2640 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "write access "
sb               2646 fs/ext4/super.c 	if (!ext4_feature_set_ok(sb, 0)) {
sb               2647 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "Skipping orphan cleanup due to "
sb               2652 fs/ext4/super.c 	if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) {
sb               2655 fs/ext4/super.c 			ext4_msg(sb, KERN_INFO, "Errors on filesystem, "
sb               2664 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "orphan cleanup on readonly fs");
sb               2665 fs/ext4/super.c 		sb->s_flags &= ~SB_RDONLY;
sb               2669 fs/ext4/super.c 	sb->s_flags |= SB_ACTIVE;
sb               2675 fs/ext4/super.c 	if (ext4_has_feature_quota(sb) && (s_flags & SB_RDONLY)) {
sb               2676 fs/ext4/super.c 		int ret = ext4_enable_quotas(sb);
sb               2681 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               2687 fs/ext4/super.c 		if (EXT4_SB(sb)->s_qf_names[i]) {
sb               2688 fs/ext4/super.c 			int ret = ext4_quota_on_mount(sb, i);
sb               2693 fs/ext4/super.c 				ext4_msg(sb, KERN_ERR,
sb               2707 fs/ext4/super.c 		if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) {
sb               2713 fs/ext4/super.c 		inode = ext4_orphan_get(sb, le32_to_cpu(es->s_last_orphan));
sb               2719 fs/ext4/super.c 		list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan);
sb               2722 fs/ext4/super.c 			if (test_opt(sb, DEBUG))
sb               2723 fs/ext4/super.c 				ext4_msg(sb, KERN_DEBUG,
sb               2736 fs/ext4/super.c 			if (test_opt(sb, DEBUG))
sb               2737 fs/ext4/super.c 				ext4_msg(sb, KERN_DEBUG,
sb               2750 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "%d orphan inode%s deleted",
sb               2753 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "%d truncate%s cleaned up",
sb               2759 fs/ext4/super.c 			if (sb_dqopt(sb)->files[i])
sb               2760 fs/ext4/super.c 				dquot_quota_off(sb, i);
sb               2764 fs/ext4/super.c 	sb->s_flags = s_flags; /* Restore SB_RDONLY status */
sb               2875 fs/ext4/super.c static ext4_fsblk_t descriptor_loc(struct super_block *sb,
sb               2878 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               2884 fs/ext4/super.c 	if (!ext4_has_feature_meta_bg(sb) || nr < first_meta_bg)
sb               2887 fs/ext4/super.c 	if (ext4_bg_has_super(sb, bg))
sb               2896 fs/ext4/super.c 	if (sb->s_blocksize == 1024 && nr == 0 &&
sb               2900 fs/ext4/super.c 	return (has_super + ext4_group_first_block_no(sb, bg));
sb               2946 fs/ext4/super.c static int ext4_feature_set_ok(struct super_block *sb, int readonly)
sb               2948 fs/ext4/super.c 	if (ext4_has_unknown_ext4_incompat_features(sb)) {
sb               2949 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               2952 fs/ext4/super.c 			(le32_to_cpu(EXT4_SB(sb)->s_es->s_feature_incompat) &
sb               2958 fs/ext4/super.c 	if (ext4_has_feature_casefold(sb)) {
sb               2959 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               2969 fs/ext4/super.c 	if (ext4_has_feature_readonly(sb)) {
sb               2970 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "filesystem is read-only");
sb               2971 fs/ext4/super.c 		sb->s_flags |= SB_RDONLY;
sb               2976 fs/ext4/super.c 	if (ext4_has_unknown_ext4_ro_compat_features(sb)) {
sb               2977 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "couldn't mount RDWR because of "
sb               2979 fs/ext4/super.c 			 (le32_to_cpu(EXT4_SB(sb)->s_es->s_feature_ro_compat) &
sb               2983 fs/ext4/super.c 	if (ext4_has_feature_bigalloc(sb) && !ext4_has_feature_extents(sb)) {
sb               2984 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               2991 fs/ext4/super.c 	if (!readonly && (ext4_has_feature_quota(sb) ||
sb               2992 fs/ext4/super.c 			  ext4_has_feature_project(sb))) {
sb               2993 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               3008 fs/ext4/super.c 	struct super_block *sb = sbi->s_sb;
sb               3013 fs/ext4/super.c 		ext4_msg(sb, KERN_NOTICE, "error count since last fsck: %u",
sb               3017 fs/ext4/super.c 		       sb->s_id,
sb               3032 fs/ext4/super.c 		       sb->s_id,
sb               3053 fs/ext4/super.c 	struct super_block *sb;
sb               3057 fs/ext4/super.c 	sb = elr->lr_super;
sb               3058 fs/ext4/super.c 	ngroups = EXT4_SB(sb)->s_groups_count;
sb               3061 fs/ext4/super.c 		gdp = ext4_get_group_desc(sb, group, NULL);
sb               3076 fs/ext4/super.c 		ret = ext4_init_inode_table(sb, group,
sb               3107 fs/ext4/super.c static void ext4_unregister_li_request(struct super_block *sb)
sb               3116 fs/ext4/super.c 	ext4_remove_li_request(EXT4_SB(sb)->s_li_request);
sb               3271 fs/ext4/super.c static ext4_group_t ext4_has_uninit_itable(struct super_block *sb)
sb               3273 fs/ext4/super.c 	ext4_group_t group, ngroups = EXT4_SB(sb)->s_groups_count;
sb               3276 fs/ext4/super.c 	if (!ext4_has_group_desc_csum(sb))
sb               3280 fs/ext4/super.c 		gdp = ext4_get_group_desc(sb, group, NULL);
sb               3309 fs/ext4/super.c static struct ext4_li_request *ext4_li_request_new(struct super_block *sb,
sb               3312 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3319 fs/ext4/super.c 	elr->lr_super = sb;
sb               3333 fs/ext4/super.c int ext4_register_li_request(struct super_block *sb,
sb               3336 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3351 fs/ext4/super.c 	if (first_not_zeroed == ngroups || sb_rdonly(sb) ||
sb               3352 fs/ext4/super.c 	    !test_opt(sb, INIT_INODE_TABLE))
sb               3355 fs/ext4/super.c 	elr = ext4_li_request_new(sb, first_not_zeroed);
sb               3407 fs/ext4/super.c static int set_journal_csum_feature_set(struct super_block *sb)
sb               3411 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3413 fs/ext4/super.c 	if (ext4_has_metadata_csum(sb)) {
sb               3427 fs/ext4/super.c 	if (test_opt(sb, JOURNAL_ASYNC_COMMIT)) {
sb               3432 fs/ext4/super.c 	} else if (test_opt(sb, JOURNAL_CHECKSUM)) {
sb               3461 fs/ext4/super.c static int count_overhead(struct super_block *sb, ext4_group_t grp,
sb               3464 fs/ext4/super.c 	struct ext4_sb_info	*sbi = EXT4_SB(sb);
sb               3467 fs/ext4/super.c 	ext4_group_t		i, ngroups = ext4_get_groups_count(sb);
sb               3470 fs/ext4/super.c 	if (!ext4_has_feature_bigalloc(sb))
sb               3471 fs/ext4/super.c 		return (ext4_bg_has_super(sb, grp) + ext4_bg_num_gdb(sb, grp) +
sb               3475 fs/ext4/super.c 		(grp * EXT4_BLOCKS_PER_GROUP(sb));
sb               3476 fs/ext4/super.c 	last_block = first_block + EXT4_BLOCKS_PER_GROUP(sb) - 1;
sb               3478 fs/ext4/super.c 		gdp = ext4_get_group_desc(sb, i, NULL);
sb               3479 fs/ext4/super.c 		b = ext4_block_bitmap(sb, gdp);
sb               3484 fs/ext4/super.c 		b = ext4_inode_bitmap(sb, gdp);
sb               3489 fs/ext4/super.c 		b = ext4_inode_table(sb, gdp);
sb               3499 fs/ext4/super.c 		if (ext4_bg_has_super(sb, grp)) {
sb               3503 fs/ext4/super.c 		j = ext4_bg_num_gdb(sb, grp);
sb               3504 fs/ext4/super.c 		if (s + j > EXT4_BLOCKS_PER_GROUP(sb)) {
sb               3505 fs/ext4/super.c 			ext4_error(sb, "Invalid number of block group "
sb               3507 fs/ext4/super.c 			j = EXT4_BLOCKS_PER_GROUP(sb) - s;
sb               3515 fs/ext4/super.c 	return EXT4_CLUSTERS_PER_GROUP(sb) -
sb               3516 fs/ext4/super.c 		ext4_count_free(buf, EXT4_CLUSTERS_PER_GROUP(sb) / 8);
sb               3522 fs/ext4/super.c int ext4_calculate_overhead(struct super_block *sb)
sb               3524 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3528 fs/ext4/super.c 	ext4_group_t i, ngroups = ext4_get_groups_count(sb);
sb               3552 fs/ext4/super.c 		blks = count_overhead(sb, i, buf);
sb               3565 fs/ext4/super.c 	else if (ext4_has_feature_journal(sb) && !sbi->s_journal && j_inum) {
sb               3567 fs/ext4/super.c 		j_inode = ext4_get_journal_inode(sb, j_inum);
sb               3569 fs/ext4/super.c 			j_blocks = j_inode->i_size >> sb->s_blocksize_bits;
sb               3573 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't get journal size");
sb               3582 fs/ext4/super.c static void ext4_set_resv_clusters(struct super_block *sb)
sb               3585 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               3593 fs/ext4/super.c 	if (!ext4_has_feature_extents(sb))
sb               3612 fs/ext4/super.c static int ext4_fill_super(struct super_block *sb, void *data, int silent)
sb               3614 fs/ext4/super.c 	struct dax_device *dax_dev = fs_dax_get_by_bdev(sb->s_bdev);
sb               3647 fs/ext4/super.c 	sb->s_fs_info = sbi;
sb               3648 fs/ext4/super.c 	sbi->s_sb = sb;
sb               3651 fs/ext4/super.c 	if (sb->s_bdev->bd_part)
sb               3653 fs/ext4/super.c 			part_stat_read(sb->s_bdev->bd_part, sectors[STAT_WRITE]);
sb               3656 fs/ext4/super.c 	strreplace(sb->s_id, '/', '!');
sb               3660 fs/ext4/super.c 	blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE);
sb               3662 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "unable to set blocksize");
sb               3677 fs/ext4/super.c 	if (!(bh = sb_bread_unmovable(sb, logical_sb_block))) {
sb               3678 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "unable to read superblock");
sb               3687 fs/ext4/super.c 	sb->s_magic = le16_to_cpu(es->s_magic);
sb               3688 fs/ext4/super.c 	if (sb->s_magic != EXT4_SUPER_MAGIC)
sb               3693 fs/ext4/super.c 	if (ext4_has_feature_metadata_csum(sb) &&
sb               3694 fs/ext4/super.c 	    ext4_has_feature_gdt_csum(sb))
sb               3695 fs/ext4/super.c 		ext4_warning(sb, "metadata_csum and uninit_bg are "
sb               3699 fs/ext4/super.c 	if (!ext4_verify_csum_type(sb, es)) {
sb               3700 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "VFS: Found ext4 filesystem with "
sb               3709 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Cannot load crc32c driver.");
sb               3716 fs/ext4/super.c 	if (!ext4_superblock_csum_verify(sb, es)) {
sb               3717 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "VFS: Found ext4 filesystem with "
sb               3725 fs/ext4/super.c 	if (ext4_has_feature_csum_seed(sb))
sb               3727 fs/ext4/super.c 	else if (ext4_has_metadata_csum(sb) || ext4_has_feature_ea_inode(sb))
sb               3733 fs/ext4/super.c 	set_opt(sb, INIT_INODE_TABLE);
sb               3735 fs/ext4/super.c 		set_opt(sb, DEBUG);
sb               3737 fs/ext4/super.c 		set_opt(sb, GRPID);
sb               3739 fs/ext4/super.c 		set_opt(sb, NO_UID32);
sb               3741 fs/ext4/super.c 	set_opt(sb, XATTR_USER);
sb               3743 fs/ext4/super.c 	set_opt(sb, POSIX_ACL);
sb               3746 fs/ext4/super.c 	if (ext4_has_metadata_csum(sb))
sb               3747 fs/ext4/super.c 		set_opt(sb, JOURNAL_CHECKSUM);
sb               3750 fs/ext4/super.c 		set_opt(sb, JOURNAL_DATA);
sb               3752 fs/ext4/super.c 		set_opt(sb, ORDERED_DATA);
sb               3754 fs/ext4/super.c 		set_opt(sb, WRITEBACK_DATA);
sb               3757 fs/ext4/super.c 		set_opt(sb, ERRORS_PANIC);
sb               3759 fs/ext4/super.c 		set_opt(sb, ERRORS_CONT);
sb               3761 fs/ext4/super.c 		set_opt(sb, ERRORS_RO);
sb               3763 fs/ext4/super.c 	set_opt(sb, BLOCK_VALIDITY);
sb               3765 fs/ext4/super.c 		set_opt(sb, DISCARD);
sb               3774 fs/ext4/super.c 		set_opt(sb, BARRIER);
sb               3780 fs/ext4/super.c 	if (!IS_EXT3_SB(sb) && !IS_EXT2_SB(sb) &&
sb               3782 fs/ext4/super.c 		set_opt(sb, DELALLOC);
sb               3793 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               3806 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "invalid first ino: %u",
sb               3813 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               3816 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "blocksize: %d", blocksize);
sb               3827 fs/ext4/super.c 			sb->s_time_gran = 1;
sb               3828 fs/ext4/super.c 			sb->s_time_max = EXT4_EXTRA_TIMESTAMP_MAX;
sb               3830 fs/ext4/super.c 			sb->s_time_gran = NSEC_PER_SEC;
sb               3831 fs/ext4/super.c 			sb->s_time_max = EXT4_NON_EXTRA_TIMESTAMP_MAX;
sb               3833 fs/ext4/super.c 		sb->s_time_min = EXT4_TIMESTAMP_MIN;
sb               3838 fs/ext4/super.c 		if (ext4_has_feature_extra_isize(sb)) {
sb               3844 fs/ext4/super.c 				ext4_msg(sb, KERN_ERR,
sb               3853 fs/ext4/super.c 				ext4_msg(sb, KERN_ERR,
sb               3868 fs/ext4/super.c 		if (!parse_options(s_mount_opts, sb, &journal_devnum,
sb               3870 fs/ext4/super.c 			ext4_msg(sb, KERN_WARNING,
sb               3877 fs/ext4/super.c 	if (!parse_options((char *) data, sb, &journal_devnum,
sb               3882 fs/ext4/super.c 	if (ext4_has_feature_casefold(sb) && !sbi->s_encoding) {
sb               3887 fs/ext4/super.c 		if (ext4_has_feature_encrypt(sb)) {
sb               3888 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               3895 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               3902 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               3909 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO,"Using encoding defined by superblock: "
sb               3918 fs/ext4/super.c 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
sb               3922 fs/ext4/super.c 		if (test_opt2(sb, EXPLICIT_DELALLOC)) {
sb               3923 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               3927 fs/ext4/super.c 		if (test_opt(sb, DIOREAD_NOLOCK)) {
sb               3928 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               3932 fs/ext4/super.c 		if (test_opt(sb, DAX)) {
sb               3933 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               3937 fs/ext4/super.c 		if (ext4_has_feature_encrypt(sb)) {
sb               3938 fs/ext4/super.c 			ext4_msg(sb, KERN_WARNING,
sb               3942 fs/ext4/super.c 		if (test_opt(sb, DELALLOC))
sb               3943 fs/ext4/super.c 			clear_opt(sb, DELALLOC);
sb               3945 fs/ext4/super.c 		sb->s_iflags |= SB_I_CGROUPWB;
sb               3948 fs/ext4/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb               3949 fs/ext4/super.c 		(test_opt(sb, POSIX_ACL) ? SB_POSIXACL : 0);
sb               3952 fs/ext4/super.c 	    (ext4_has_compat_features(sb) ||
sb               3953 fs/ext4/super.c 	     ext4_has_ro_compat_features(sb) ||
sb               3954 fs/ext4/super.c 	     ext4_has_incompat_features(sb)))
sb               3955 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING,
sb               3960 fs/ext4/super.c 		set_opt2(sb, HURD_COMPAT);
sb               3961 fs/ext4/super.c 		if (ext4_has_feature_64bit(sb)) {
sb               3962 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               3971 fs/ext4/super.c 		if (ext4_has_feature_ea_inode(sb)) {
sb               3972 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               3978 fs/ext4/super.c 	if (IS_EXT2_SB(sb)) {
sb               3979 fs/ext4/super.c 		if (ext2_feature_set_ok(sb))
sb               3980 fs/ext4/super.c 			ext4_msg(sb, KERN_INFO, "mounting ext2 file system "
sb               3987 fs/ext4/super.c 			if (silent && ext4_feature_set_ok(sb, sb_rdonly(sb)))
sb               3989 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "couldn't mount as ext2 due "
sb               3995 fs/ext4/super.c 	if (IS_EXT3_SB(sb)) {
sb               3996 fs/ext4/super.c 		if (ext3_feature_set_ok(sb))
sb               3997 fs/ext4/super.c 			ext4_msg(sb, KERN_INFO, "mounting ext3 file system "
sb               4004 fs/ext4/super.c 			if (silent && ext4_feature_set_ok(sb, sb_rdonly(sb)))
sb               4006 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "couldn't mount as ext3 due "
sb               4017 fs/ext4/super.c 	if (!ext4_feature_set_ok(sb, (sb_rdonly(sb))))
sb               4022 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               4029 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               4036 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               4043 fs/ext4/super.c 		if (ext4_has_feature_inline_data(sb)) {
sb               4044 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "Cannot use DAX on a filesystem"
sb               4048 fs/ext4/super.c 		if (!bdev_dax_supported(sb->s_bdev, blocksize)) {
sb               4049 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4055 fs/ext4/super.c 	if (ext4_has_feature_encrypt(sb) && es->s_encryption_level) {
sb               4056 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Unsupported encryption level %d",
sb               4061 fs/ext4/super.c 	if (sb->s_blocksize != blocksize) {
sb               4063 fs/ext4/super.c 		if (!sb_set_blocksize(sb, blocksize)) {
sb               4064 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "bad block size %d",
sb               4072 fs/ext4/super.c 		bh = sb_bread_unmovable(sb, logical_sb_block);
sb               4074 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4081 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4087 fs/ext4/super.c 	has_huge_files = ext4_has_feature_huge_file(sb);
sb               4088 fs/ext4/super.c 	sbi->s_bitmap_maxbytes = ext4_max_bitmap_size(sb->s_blocksize_bits,
sb               4090 fs/ext4/super.c 	sb->s_maxbytes = ext4_max_size(sb->s_blocksize_bits, has_huge_files);
sb               4093 fs/ext4/super.c 	if (ext4_has_feature_64bit(sb)) {
sb               4097 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4108 fs/ext4/super.c 	sbi->s_inodes_per_block = blocksize / EXT4_INODE_SIZE(sb);
sb               4113 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "invalid inodes per group: %lu\n",
sb               4119 fs/ext4/super.c 	sbi->s_desc_per_block = blocksize / EXT4_DESC_SIZE(sb);
sb               4122 fs/ext4/super.c 	sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb));
sb               4123 fs/ext4/super.c 	sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb));
sb               4128 fs/ext4/super.c 	if (ext4_has_feature_dir_index(sb)) {
sb               4134 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               4139 fs/ext4/super.c 			if (!sb_rdonly(sb))
sb               4148 fs/ext4/super.c 	has_bigalloc = ext4_has_feature_bigalloc(sb);
sb               4151 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4161 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4168 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "blocks per group (%lu) and "
sb               4176 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4182 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4194 fs/ext4/super.c 		set_opt2(sb, STD_GROUP_SIZE);
sb               4200 fs/ext4/super.c 	err = generic_check_addressable(sb->s_blocksize_bits,
sb               4203 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "filesystem"
sb               4208 fs/ext4/super.c 	if (EXT4_BLOCKS_PER_GROUP(sb) == 0)
sb               4212 fs/ext4/super.c 	blocks_count = sb->s_bdev->bd_inode->i_size >> sb->s_blocksize_bits;
sb               4214 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "bad geometry: block count %llu "
sb               4225 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "bad geometry: first data "
sb               4233 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "bad geometry: first data "
sb               4240 fs/ext4/super.c 			EXT4_BLOCKS_PER_GROUP(sb) - 1);
sb               4241 fs/ext4/super.c 	do_div(blocks_count, EXT4_BLOCKS_PER_GROUP(sb));
sb               4242 fs/ext4/super.c 	if (blocks_count > ((uint64_t)1<<32) - EXT4_DESC_PER_BLOCK(sb)) {
sb               4243 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "groups count too large: %llu "
sb               4248 fs/ext4/super.c 		       EXT4_BLOCKS_PER_GROUP(sb));
sb               4253 fs/ext4/super.c 			(EXT4_MAX_BLOCK_FILE_PHYS / EXT4_BLOCKS_PER_GROUP(sb)));
sb               4256 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "inodes count not valid: %u vs %llu",
sb               4262 fs/ext4/super.c 	db_count = (sbi->s_groups_count + EXT4_DESC_PER_BLOCK(sb) - 1) /
sb               4263 fs/ext4/super.c 		   EXT4_DESC_PER_BLOCK(sb);
sb               4264 fs/ext4/super.c 	if (ext4_has_feature_meta_bg(sb)) {
sb               4266 fs/ext4/super.c 			ext4_msg(sb, KERN_WARNING,
sb               4278 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "not enough memory");
sb               4287 fs/ext4/super.c 		block = descriptor_loc(sb, logical_sb_block, i);
sb               4288 fs/ext4/super.c 		sb_breadahead_unmovable(sb, block);
sb               4294 fs/ext4/super.c 		block = descriptor_loc(sb, logical_sb_block, i);
sb               4295 fs/ext4/super.c 		bh = sb_bread_unmovable(sb, block);
sb               4297 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4307 fs/ext4/super.c 	if (!ext4_check_descriptors(sb, logical_sb_block, &first_not_zeroed)) {
sb               4308 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
sb               4325 fs/ext4/super.c 	sb->s_op = &ext4_sops;
sb               4326 fs/ext4/super.c 	sb->s_export_op = &ext4_export_ops;
sb               4327 fs/ext4/super.c 	sb->s_xattr = ext4_xattr_handlers;
sb               4329 fs/ext4/super.c 	sb->s_cop = &ext4_cryptops;
sb               4332 fs/ext4/super.c 	sb->s_vop = &ext4_verityops;
sb               4335 fs/ext4/super.c 	sb->dq_op = &ext4_quota_operations;
sb               4336 fs/ext4/super.c 	if (ext4_has_feature_quota(sb))
sb               4337 fs/ext4/super.c 		sb->s_qcop = &dquot_quotactl_sysfile_ops;
sb               4339 fs/ext4/super.c 		sb->s_qcop = &ext4_qctl_operations;
sb               4340 fs/ext4/super.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ;
sb               4342 fs/ext4/super.c 	memcpy(&sb->s_uuid, es->s_uuid, sizeof(es->s_uuid));
sb               4347 fs/ext4/super.c 	sb->s_root = NULL;
sb               4350 fs/ext4/super.c 			  ext4_has_feature_journal_needs_recovery(sb));
sb               4352 fs/ext4/super.c 	if (ext4_has_feature_mmp(sb) && !sb_rdonly(sb))
sb               4353 fs/ext4/super.c 		if (ext4_multi_mount_protect(sb, le64_to_cpu(es->s_mmp_block)))
sb               4360 fs/ext4/super.c 	if (!test_opt(sb, NOLOAD) && ext4_has_feature_journal(sb)) {
sb               4361 fs/ext4/super.c 		err = ext4_load_journal(sb, es, journal_devnum);
sb               4364 fs/ext4/super.c 	} else if (test_opt(sb, NOLOAD) && !sb_rdonly(sb) &&
sb               4365 fs/ext4/super.c 		   ext4_has_feature_journal_needs_recovery(sb)) {
sb               4366 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "required journal recovery "
sb               4371 fs/ext4/super.c 		if (test_opt2(sb, EXPLICIT_JOURNAL_CHECKSUM)) {
sb               4372 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               4376 fs/ext4/super.c 		if (test_opt(sb, JOURNAL_ASYNC_COMMIT)) {
sb               4377 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               4382 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               4389 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               4394 fs/ext4/super.c 		clear_opt(sb, JOURNAL_CHECKSUM);
sb               4395 fs/ext4/super.c 		clear_opt(sb, DATA_FLAGS);
sb               4401 fs/ext4/super.c 	if (ext4_has_feature_64bit(sb) &&
sb               4402 fs/ext4/super.c 	    !jbd2_journal_set_features(EXT4_SB(sb)->s_journal, 0, 0,
sb               4404 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Failed to set 64-bit journal feature");
sb               4408 fs/ext4/super.c 	if (!set_journal_csum_feature_set(sb)) {
sb               4409 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Failed to set journal checksum "
sb               4416 fs/ext4/super.c 	switch (test_opt(sb, DATA_FLAGS)) {
sb               4424 fs/ext4/super.c 			set_opt(sb, ORDERED_DATA);
sb               4427 fs/ext4/super.c 			set_opt(sb, JOURNAL_DATA);
sb               4436 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "Journal does not support "
sb               4444 fs/ext4/super.c 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_ORDERED_DATA &&
sb               4445 fs/ext4/super.c 	    test_opt(sb, JOURNAL_ASYNC_COMMIT)) {
sb               4446 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "can't mount with "
sb               4456 fs/ext4/super.c 	if (!test_opt(sb, NO_MBCACHE)) {
sb               4459 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4464 fs/ext4/super.c 		if (ext4_has_feature_ea_inode(sb)) {
sb               4467 fs/ext4/super.c 				ext4_msg(sb, KERN_ERR,
sb               4474 fs/ext4/super.c 	if ((DUMMY_ENCRYPTION_ENABLED(sbi) || ext4_has_feature_encrypt(sb)) &&
sb               4476 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               4481 fs/ext4/super.c 	if (ext4_has_feature_verity(sb) && blocksize != PAGE_SIZE) {
sb               4482 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Unsupported blocksize for fs-verity");
sb               4486 fs/ext4/super.c 	if (DUMMY_ENCRYPTION_ENABLED(sbi) && !sb_rdonly(sb) &&
sb               4487 fs/ext4/super.c 	    !ext4_has_feature_encrypt(sb)) {
sb               4488 fs/ext4/super.c 		ext4_set_feature_encrypt(sb);
sb               4489 fs/ext4/super.c 		ext4_commit_super(sb, 1);
sb               4499 fs/ext4/super.c 		err = ext4_calculate_overhead(sb);
sb               4508 fs/ext4/super.c 	EXT4_SB(sb)->rsv_conversion_wq =
sb               4510 fs/ext4/super.c 	if (!EXT4_SB(sb)->rsv_conversion_wq) {
sb               4521 fs/ext4/super.c 	root = ext4_iget(sb, EXT4_ROOT_INO, EXT4_IGET_SPECIAL);
sb               4523 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "get root inode failed");
sb               4529 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "corrupt root inode, run e2fsck");
sb               4536 fs/ext4/super.c 		sb->s_d_op = &ext4_dentry_ops;
sb               4539 fs/ext4/super.c 	sb->s_root = d_make_root(root);
sb               4540 fs/ext4/super.c 	if (!sb->s_root) {
sb               4541 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "get root dentry failed");
sb               4546 fs/ext4/super.c 	ret = ext4_setup_super(sb, es, sb_rdonly(sb));
sb               4548 fs/ext4/super.c 		sb->s_flags |= SB_RDONLY;
sb               4553 fs/ext4/super.c 	ext4_set_resv_clusters(sb);
sb               4555 fs/ext4/super.c 	err = ext4_setup_system_zone(sb);
sb               4557 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "failed to initialize system "
sb               4562 fs/ext4/super.c 	ext4_ext_init(sb);
sb               4563 fs/ext4/super.c 	err = ext4_mb_init(sb);
sb               4565 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "failed to initialize mballoc (%d)",
sb               4570 fs/ext4/super.c 	block = ext4_count_free_clusters(sb);
sb               4573 fs/ext4/super.c 	ext4_superblock_csum_set(sb);
sb               4577 fs/ext4/super.c 		unsigned long freei = ext4_count_free_inodes(sb);
sb               4579 fs/ext4/super.c 		ext4_superblock_csum_set(sb);
sb               4585 fs/ext4/super.c 					  ext4_count_dirs(sb), GFP_KERNEL);
sb               4593 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "insufficient memory");
sb               4597 fs/ext4/super.c 	if (ext4_has_feature_flex_bg(sb))
sb               4598 fs/ext4/super.c 		if (!ext4_fill_flex_info(sb)) {
sb               4599 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR,
sb               4605 fs/ext4/super.c 	err = ext4_register_li_request(sb, first_not_zeroed);
sb               4609 fs/ext4/super.c 	err = ext4_register_sysfs(sb);
sb               4615 fs/ext4/super.c 	if (ext4_has_feature_quota(sb) && !sb_rdonly(sb)) {
sb               4616 fs/ext4/super.c 		err = ext4_enable_quotas(sb);
sb               4622 fs/ext4/super.c 	EXT4_SB(sb)->s_mount_state |= EXT4_ORPHAN_FS;
sb               4623 fs/ext4/super.c 	ext4_orphan_cleanup(sb, es);
sb               4624 fs/ext4/super.c 	EXT4_SB(sb)->s_mount_state &= ~EXT4_ORPHAN_FS;
sb               4626 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "recovery complete");
sb               4627 fs/ext4/super.c 		ext4_mark_recovery_complete(sb, es);
sb               4629 fs/ext4/super.c 	if (EXT4_SB(sb)->s_journal) {
sb               4630 fs/ext4/super.c 		if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA)
sb               4632 fs/ext4/super.c 		else if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_ORDERED_DATA)
sb               4639 fs/ext4/super.c 	if (test_opt(sb, DISCARD)) {
sb               4640 fs/ext4/super.c 		struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb               4642 fs/ext4/super.c 			ext4_msg(sb, KERN_WARNING,
sb               4648 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "mounted filesystem with%s. "
sb               4667 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "VFS: Can't find ext4 filesystem");
sb               4672 fs/ext4/super.c 	ext4_unregister_sysfs(sb);
sb               4675 fs/ext4/super.c 	ext4_unregister_li_request(sb);
sb               4677 fs/ext4/super.c 	ext4_mb_release(sb);
sb               4692 fs/ext4/super.c 	ext4_ext_release(sb);
sb               4693 fs/ext4/super.c 	ext4_release_system_zone(sb);
sb               4695 fs/ext4/super.c 	dput(sb->s_root);
sb               4696 fs/ext4/super.c 	sb->s_root = NULL;
sb               4698 fs/ext4/super.c 	ext4_msg(sb, KERN_ERR, "mount failed");
sb               4699 fs/ext4/super.c 	if (EXT4_SB(sb)->rsv_conversion_wq)
sb               4700 fs/ext4/super.c 		destroy_workqueue(EXT4_SB(sb)->rsv_conversion_wq);
sb               4735 fs/ext4/super.c 		kfree(get_qf_name(sb, sbi, i));
sb               4740 fs/ext4/super.c 	sb->s_fs_info = NULL;
sb               4754 fs/ext4/super.c static void ext4_init_journal_params(struct super_block *sb, journal_t *journal)
sb               4756 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               4763 fs/ext4/super.c 	if (test_opt(sb, BARRIER))
sb               4767 fs/ext4/super.c 	if (test_opt(sb, DATA_ERR_ABORT))
sb               4774 fs/ext4/super.c static struct inode *ext4_get_journal_inode(struct super_block *sb,
sb               4784 fs/ext4/super.c 	journal_inode = ext4_iget(sb, journal_inum, EXT4_IGET_SPECIAL);
sb               4786 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "no journal found");
sb               4792 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "journal inode is deleted");
sb               4799 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "invalid journal inode");
sb               4806 fs/ext4/super.c static journal_t *ext4_get_journal(struct super_block *sb,
sb               4812 fs/ext4/super.c 	BUG_ON(!ext4_has_feature_journal(sb));
sb               4814 fs/ext4/super.c 	journal_inode = ext4_get_journal_inode(sb, journal_inum);
sb               4820 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "Could not load journal inode");
sb               4824 fs/ext4/super.c 	journal->j_private = sb;
sb               4825 fs/ext4/super.c 	ext4_init_journal_params(sb, journal);
sb               4829 fs/ext4/super.c static journal_t *ext4_get_dev_journal(struct super_block *sb,
sb               4842 fs/ext4/super.c 	BUG_ON(!ext4_has_feature_journal(sb));
sb               4844 fs/ext4/super.c 	bdev = ext4_blkdev_get(j_dev, sb);
sb               4848 fs/ext4/super.c 	blocksize = sb->s_blocksize;
sb               4851 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR,
sb               4860 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "couldn't read superblock of "
sb               4869 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "external journal has "
sb               4877 fs/ext4/super.c 	    es->s_checksum != ext4_superblock_csum(sb, es)) {
sb               4878 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "external journal has "
sb               4884 fs/ext4/super.c 	if (memcmp(EXT4_SB(sb)->s_es->s_journal_uuid, es->s_uuid, 16)) {
sb               4885 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "journal UUID does not match");
sb               4894 fs/ext4/super.c 	journal = jbd2_journal_init_dev(bdev, sb->s_bdev,
sb               4897 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "failed to create device journal");
sb               4900 fs/ext4/super.c 	journal->j_private = sb;
sb               4904 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "I/O error on journal device");
sb               4908 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "External journal has more than one "
sb               4913 fs/ext4/super.c 	EXT4_SB(sb)->journal_bdev = bdev;
sb               4914 fs/ext4/super.c 	ext4_init_journal_params(sb, journal);
sb               4924 fs/ext4/super.c static int ext4_load_journal(struct super_block *sb,
sb               4934 fs/ext4/super.c 	BUG_ON(!ext4_has_feature_journal(sb));
sb               4938 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "external journal device major/minor "
sb               4944 fs/ext4/super.c 	really_read_only = bdev_read_only(sb->s_bdev);
sb               4951 fs/ext4/super.c 	if (ext4_has_feature_journal_needs_recovery(sb)) {
sb               4952 fs/ext4/super.c 		if (sb_rdonly(sb)) {
sb               4953 fs/ext4/super.c 			ext4_msg(sb, KERN_INFO, "INFO: recovery "
sb               4956 fs/ext4/super.c 				ext4_msg(sb, KERN_ERR, "write access "
sb               4961 fs/ext4/super.c 			ext4_msg(sb, KERN_INFO, "write access will "
sb               4967 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "filesystem has both journal "
sb               4973 fs/ext4/super.c 		if (!(journal = ext4_get_journal(sb, journal_inum)))
sb               4976 fs/ext4/super.c 		if (!(journal = ext4_get_dev_journal(sb, journal_dev)))
sb               4981 fs/ext4/super.c 		ext4_msg(sb, KERN_INFO, "barriers disabled");
sb               4983 fs/ext4/super.c 	if (!ext4_has_feature_journal_needs_recovery(sb))
sb               4998 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "error loading journal");
sb               5003 fs/ext4/super.c 	EXT4_SB(sb)->s_journal = journal;
sb               5004 fs/ext4/super.c 	ext4_clear_journal_err(sb, es);
sb               5011 fs/ext4/super.c 		ext4_commit_super(sb, 1);
sb               5017 fs/ext4/super.c static int ext4_commit_super(struct super_block *sb, int sync)
sb               5019 fs/ext4/super.c 	struct ext4_super_block *es = EXT4_SB(sb)->s_es;
sb               5020 fs/ext4/super.c 	struct buffer_head *sbh = EXT4_SB(sb)->s_sbh;
sb               5023 fs/ext4/super.c 	if (!sbh || block_device_ejected(sb))
sb               5043 fs/ext4/super.c 	if (!(sb->s_flags & SB_RDONLY))
sb               5045 fs/ext4/super.c 	if (sb->s_bdev->bd_part)
sb               5047 fs/ext4/super.c 			cpu_to_le64(EXT4_SB(sb)->s_kbytes_written +
sb               5048 fs/ext4/super.c 			    ((part_stat_read(sb->s_bdev->bd_part,
sb               5050 fs/ext4/super.c 			      EXT4_SB(sb)->s_sectors_written_start) >> 1));
sb               5053 fs/ext4/super.c 			cpu_to_le64(EXT4_SB(sb)->s_kbytes_written);
sb               5054 fs/ext4/super.c 	if (percpu_counter_initialized(&EXT4_SB(sb)->s_freeclusters_counter))
sb               5056 fs/ext4/super.c 			EXT4_C2B(EXT4_SB(sb), percpu_counter_sum_positive(
sb               5057 fs/ext4/super.c 				&EXT4_SB(sb)->s_freeclusters_counter)));
sb               5058 fs/ext4/super.c 	if (percpu_counter_initialized(&EXT4_SB(sb)->s_freeinodes_counter))
sb               5061 fs/ext4/super.c 				&EXT4_SB(sb)->s_freeinodes_counter));
sb               5063 fs/ext4/super.c 	ext4_superblock_csum_set(sb);
sb               5075 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "previous I/O error to "
sb               5084 fs/ext4/super.c 			REQ_SYNC | (test_opt(sb, BARRIER) ? REQ_FUA : 0));
sb               5086 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "I/O error while writing "
sb               5100 fs/ext4/super.c static void ext4_mark_recovery_complete(struct super_block *sb,
sb               5103 fs/ext4/super.c 	journal_t *journal = EXT4_SB(sb)->s_journal;
sb               5105 fs/ext4/super.c 	if (!ext4_has_feature_journal(sb)) {
sb               5113 fs/ext4/super.c 	if (ext4_has_feature_journal_needs_recovery(sb) && sb_rdonly(sb)) {
sb               5114 fs/ext4/super.c 		ext4_clear_feature_journal_needs_recovery(sb);
sb               5115 fs/ext4/super.c 		ext4_commit_super(sb, 1);
sb               5127 fs/ext4/super.c static void ext4_clear_journal_err(struct super_block *sb,
sb               5134 fs/ext4/super.c 	BUG_ON(!ext4_has_feature_journal(sb));
sb               5136 fs/ext4/super.c 	journal = EXT4_SB(sb)->s_journal;
sb               5147 fs/ext4/super.c 		errstr = ext4_decode_error(sb, j_errno, nbuf);
sb               5148 fs/ext4/super.c 		ext4_warning(sb, "Filesystem error recorded "
sb               5150 fs/ext4/super.c 		ext4_warning(sb, "Marking fs in need of filesystem check.");
sb               5152 fs/ext4/super.c 		EXT4_SB(sb)->s_mount_state |= EXT4_ERROR_FS;
sb               5154 fs/ext4/super.c 		ext4_commit_super(sb, 1);
sb               5165 fs/ext4/super.c int ext4_force_commit(struct super_block *sb)
sb               5169 fs/ext4/super.c 	if (sb_rdonly(sb))
sb               5172 fs/ext4/super.c 	journal = EXT4_SB(sb)->s_journal;
sb               5176 fs/ext4/super.c static int ext4_sync_fs(struct super_block *sb, int wait)
sb               5181 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               5186 fs/ext4/super.c 	trace_ext4_sync_fs(sb, wait);
sb               5192 fs/ext4/super.c 	dquot_writeback_dquots(sb, -1);
sb               5209 fs/ext4/super.c 	} else if (wait && test_opt(sb, BARRIER))
sb               5213 fs/ext4/super.c 		err = blkdev_issue_flush(sb->s_bdev, GFP_KERNEL, NULL);
sb               5229 fs/ext4/super.c static int ext4_freeze(struct super_block *sb)
sb               5234 fs/ext4/super.c 	if (sb_rdonly(sb))
sb               5237 fs/ext4/super.c 	journal = EXT4_SB(sb)->s_journal;
sb               5252 fs/ext4/super.c 		ext4_clear_feature_journal_needs_recovery(sb);
sb               5255 fs/ext4/super.c 	error = ext4_commit_super(sb, 1);
sb               5267 fs/ext4/super.c static int ext4_unfreeze(struct super_block *sb)
sb               5269 fs/ext4/super.c 	if (sb_rdonly(sb) || ext4_forced_shutdown(EXT4_SB(sb)))
sb               5272 fs/ext4/super.c 	if (EXT4_SB(sb)->s_journal) {
sb               5274 fs/ext4/super.c 		ext4_set_feature_journal_needs_recovery(sb);
sb               5277 fs/ext4/super.c 	ext4_commit_super(sb, 1);
sb               5297 fs/ext4/super.c static int ext4_remount(struct super_block *sb, int *flags, char *data)
sb               5300 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               5317 fs/ext4/super.c 	old_sb_flags = sb->s_flags;
sb               5329 fs/ext4/super.c 			char *qf_name = get_qf_name(sb, sbi, i);
sb               5344 fs/ext4/super.c 	if (!parse_options(data, sb, NULL, &journal_ioprio, 1)) {
sb               5350 fs/ext4/super.c 	    test_opt(sb, JOURNAL_CHECKSUM)) {
sb               5351 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "changing journal_checksum "
sb               5356 fs/ext4/super.c 	if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
sb               5357 fs/ext4/super.c 		if (test_opt2(sb, EXPLICIT_DELALLOC)) {
sb               5358 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               5363 fs/ext4/super.c 		if (test_opt(sb, DIOREAD_NOLOCK)) {
sb               5364 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               5369 fs/ext4/super.c 		if (test_opt(sb, DAX)) {
sb               5370 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               5375 fs/ext4/super.c 	} else if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_ORDERED_DATA) {
sb               5376 fs/ext4/super.c 		if (test_opt(sb, JOURNAL_ASYNC_COMMIT)) {
sb               5377 fs/ext4/super.c 			ext4_msg(sb, KERN_ERR, "can't mount with "
sb               5385 fs/ext4/super.c 		ext4_msg(sb, KERN_ERR, "can't enable nombcache during remount");
sb               5391 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "warning: refusing change of "
sb               5397 fs/ext4/super.c 		ext4_abort(sb, "Abort forced by user");
sb               5399 fs/ext4/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb               5400 fs/ext4/super.c 		(test_opt(sb, POSIX_ACL) ? SB_POSIXACL : 0);
sb               5405 fs/ext4/super.c 		ext4_init_journal_params(sb, sbi->s_journal);
sb               5410 fs/ext4/super.c 		sb->s_flags |= SB_LAZYTIME;
sb               5412 fs/ext4/super.c 	if ((bool)(*flags & SB_RDONLY) != sb_rdonly(sb)) {
sb               5419 fs/ext4/super.c 			err = sync_filesystem(sb);
sb               5422 fs/ext4/super.c 			err = dquot_suspend(sb, -1);
sb               5430 fs/ext4/super.c 			sb->s_flags |= SB_RDONLY;
sb               5442 fs/ext4/super.c 				ext4_mark_recovery_complete(sb, es);
sb               5447 fs/ext4/super.c 			if (ext4_has_feature_readonly(sb) ||
sb               5448 fs/ext4/super.c 			    !ext4_feature_set_ok(sb, 0)) {
sb               5458 fs/ext4/super.c 					ext4_get_group_desc(sb, g, NULL);
sb               5460 fs/ext4/super.c 				if (!ext4_group_desc_csum_verify(sb, g, gdp)) {
sb               5461 fs/ext4/super.c 					ext4_msg(sb, KERN_ERR,
sb               5463 fs/ext4/super.c 		g, le16_to_cpu(ext4_group_desc_csum(sb, g, gdp)),
sb               5476 fs/ext4/super.c 				ext4_msg(sb, KERN_WARNING, "Couldn't "
sb               5491 fs/ext4/super.c 				ext4_clear_journal_err(sb, es);
sb               5494 fs/ext4/super.c 			err = ext4_setup_super(sb, es, 0);
sb               5498 fs/ext4/super.c 			sb->s_flags &= ~SB_RDONLY;
sb               5499 fs/ext4/super.c 			if (ext4_has_feature_mmp(sb))
sb               5500 fs/ext4/super.c 				if (ext4_multi_mount_protect(sb,
sb               5513 fs/ext4/super.c 	if (sb_rdonly(sb) || !test_opt(sb, INIT_INODE_TABLE))
sb               5514 fs/ext4/super.c 		ext4_unregister_li_request(sb);
sb               5517 fs/ext4/super.c 		first_not_zeroed = ext4_has_uninit_itable(sb);
sb               5518 fs/ext4/super.c 		ext4_register_li_request(sb, first_not_zeroed);
sb               5521 fs/ext4/super.c 	ext4_setup_system_zone(sb);
sb               5523 fs/ext4/super.c 		err = ext4_commit_super(sb, 1);
sb               5533 fs/ext4/super.c 		if (sb_any_quota_suspended(sb))
sb               5534 fs/ext4/super.c 			dquot_resume(sb, -1);
sb               5535 fs/ext4/super.c 		else if (ext4_has_feature_quota(sb)) {
sb               5536 fs/ext4/super.c 			err = ext4_enable_quotas(sb);
sb               5543 fs/ext4/super.c 	*flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
sb               5544 fs/ext4/super.c 	ext4_msg(sb, KERN_INFO, "re-mounted. Opts: %s", orig_data);
sb               5549 fs/ext4/super.c 	sb->s_flags = old_sb_flags;
sb               5560 fs/ext4/super.c 		to_free[i] = get_qf_name(sb, sbi, i);
sb               5572 fs/ext4/super.c static int ext4_statfs_project(struct super_block *sb,
sb               5581 fs/ext4/super.c 	dquot = dqget(sb, qid);
sb               5593 fs/ext4/super.c 	limit >>= sb->s_blocksize_bits;
sb               5597 fs/ext4/super.c 			    dquot->dq_dqb.dqb_rsvspace) >> sb->s_blocksize_bits;
sb               5627 fs/ext4/super.c 	struct super_block *sb = dentry->d_sb;
sb               5628 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               5635 fs/ext4/super.c 	if (!test_opt(sb, MINIX_DF))
sb               5639 fs/ext4/super.c 	buf->f_bsize = sb->s_blocksize;
sb               5659 fs/ext4/super.c 	    sb_has_quota_limits_enabled(sb, PRJQUOTA))
sb               5660 fs/ext4/super.c 		ext4_statfs_project(sb, EXT4_I(dentry->d_inode)->i_projid, buf);
sb               5732 fs/ext4/super.c 	struct super_block *sb = dquot->dq_sb;
sb               5733 fs/ext4/super.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb               5736 fs/ext4/super.c 	if (ext4_has_feature_quota(sb) ||
sb               5745 fs/ext4/super.c static int ext4_write_info(struct super_block *sb, int type)
sb               5751 fs/ext4/super.c 	handle = ext4_journal_start(d_inode(sb->s_root), EXT4_HT_QUOTA, 2);
sb               5754 fs/ext4/super.c 	ret = dquot_commit_info(sb, type);
sb               5765 fs/ext4/super.c static int ext4_quota_on_mount(struct super_block *sb, int type)
sb               5767 fs/ext4/super.c 	return dquot_quota_on_mount(sb, get_qf_name(sb, EXT4_SB(sb), type),
sb               5768 fs/ext4/super.c 					EXT4_SB(sb)->s_jquota_fmt, type);
sb               5788 fs/ext4/super.c static int ext4_quota_on(struct super_block *sb, int type, int format_id,
sb               5793 fs/ext4/super.c 	if (!test_opt(sb, QUOTA))
sb               5797 fs/ext4/super.c 	if (path->dentry->d_sb != sb)
sb               5800 fs/ext4/super.c 	if (EXT4_SB(sb)->s_qf_names[type]) {
sb               5802 fs/ext4/super.c 		if (path->dentry->d_parent != sb->s_root)
sb               5803 fs/ext4/super.c 			ext4_msg(sb, KERN_WARNING,
sb               5806 fs/ext4/super.c 		sb_dqopt(sb)->flags |= DQUOT_NOLIST_DIRTY;
sb               5812 fs/ext4/super.c 		sb_dqopt(sb)->flags &= ~DQUOT_NOLIST_DIRTY;
sb               5819 fs/ext4/super.c 	if (EXT4_SB(sb)->s_journal &&
sb               5825 fs/ext4/super.c 		jbd2_journal_lock_updates(EXT4_SB(sb)->s_journal);
sb               5826 fs/ext4/super.c 		err = jbd2_journal_flush(EXT4_SB(sb)->s_journal);
sb               5827 fs/ext4/super.c 		jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
sb               5833 fs/ext4/super.c 	err = dquot_quota_on(sb, type, format_id, path);
sb               5861 fs/ext4/super.c static int ext4_quota_enable(struct super_block *sb, int type, int format_id,
sb               5867 fs/ext4/super.c 		le32_to_cpu(EXT4_SB(sb)->s_es->s_usr_quota_inum),
sb               5868 fs/ext4/super.c 		le32_to_cpu(EXT4_SB(sb)->s_es->s_grp_quota_inum),
sb               5869 fs/ext4/super.c 		le32_to_cpu(EXT4_SB(sb)->s_es->s_prj_quota_inum)
sb               5872 fs/ext4/super.c 	BUG_ON(!ext4_has_feature_quota(sb));
sb               5877 fs/ext4/super.c 	qf_inode = ext4_iget(sb, qf_inums[type], EXT4_IGET_SPECIAL);
sb               5879 fs/ext4/super.c 		ext4_error(sb, "Bad quota inode # %lu", qf_inums[type]);
sb               5895 fs/ext4/super.c static int ext4_enable_quotas(struct super_block *sb)
sb               5899 fs/ext4/super.c 		le32_to_cpu(EXT4_SB(sb)->s_es->s_usr_quota_inum),
sb               5900 fs/ext4/super.c 		le32_to_cpu(EXT4_SB(sb)->s_es->s_grp_quota_inum),
sb               5901 fs/ext4/super.c 		le32_to_cpu(EXT4_SB(sb)->s_es->s_prj_quota_inum)
sb               5904 fs/ext4/super.c 		test_opt(sb, USRQUOTA),
sb               5905 fs/ext4/super.c 		test_opt(sb, GRPQUOTA),
sb               5906 fs/ext4/super.c 		test_opt(sb, PRJQUOTA),
sb               5909 fs/ext4/super.c 	sb_dqopt(sb)->flags |= DQUOT_QUOTA_SYS_FILE | DQUOT_NOLIST_DIRTY;
sb               5912 fs/ext4/super.c 			err = ext4_quota_enable(sb, type, QFMT_VFS_V1,
sb               5916 fs/ext4/super.c 				ext4_warning(sb,
sb               5921 fs/ext4/super.c 					dquot_quota_off(sb, type);
sb               5930 fs/ext4/super.c static int ext4_quota_off(struct super_block *sb, int type)
sb               5932 fs/ext4/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               5938 fs/ext4/super.c 	if (test_opt(sb, DELALLOC))
sb               5939 fs/ext4/super.c 		sync_filesystem(sb);
sb               5944 fs/ext4/super.c 	err = dquot_quota_off(sb, type);
sb               5945 fs/ext4/super.c 	if (err || ext4_has_feature_quota(sb))
sb               5969 fs/ext4/super.c 	return dquot_quota_off(sb, type);
sb               5976 fs/ext4/super.c static ssize_t ext4_quota_read(struct super_block *sb, int type, char *data,
sb               5979 fs/ext4/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               5980 fs/ext4/super.c 	ext4_lblk_t blk = off >> EXT4_BLOCK_SIZE_BITS(sb);
sb               5981 fs/ext4/super.c 	int offset = off & (sb->s_blocksize - 1);
sb               5993 fs/ext4/super.c 		tocopy = sb->s_blocksize - offset < toread ?
sb               5994 fs/ext4/super.c 				sb->s_blocksize - offset : toread;
sb               6013 fs/ext4/super.c static ssize_t ext4_quota_write(struct super_block *sb, int type,
sb               6016 fs/ext4/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               6017 fs/ext4/super.c 	ext4_lblk_t blk = off >> EXT4_BLOCK_SIZE_BITS(sb);
sb               6018 fs/ext4/super.c 	int err, offset = off & (sb->s_blocksize - 1);
sb               6023 fs/ext4/super.c 	if (EXT4_SB(sb)->s_journal && !handle) {
sb               6024 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "Quota write (off=%llu, len=%llu)"
sb               6033 fs/ext4/super.c 	if (sb->s_blocksize - offset < len) {
sb               6034 fs/ext4/super.c 		ext4_msg(sb, KERN_WARNING, "Quota write (off=%llu, len=%llu)"
sb               6071 fs/ext4/super.c static int ext4_get_next_id(struct super_block *sb, struct kqid *qid)
sb               6075 fs/ext4/super.c 	if (!sb_has_quota_loaded(sb, qid->type))
sb               6077 fs/ext4/super.c 	ops = sb_dqopt(sb)->ops[qid->type];
sb               6080 fs/ext4/super.c 	return dquot_get_next_id(sb, qid);
sb               6104 fs/ext4/super.c static inline int ext2_feature_set_ok(struct super_block *sb)
sb               6106 fs/ext4/super.c 	if (ext4_has_unknown_ext2_incompat_features(sb))
sb               6108 fs/ext4/super.c 	if (sb_rdonly(sb))
sb               6110 fs/ext4/super.c 	if (ext4_has_unknown_ext2_ro_compat_features(sb))
sb               6117 fs/ext4/super.c static inline int ext2_feature_set_ok(struct super_block *sb) { return 0; }
sb               6133 fs/ext4/super.c static inline int ext3_feature_set_ok(struct super_block *sb)
sb               6135 fs/ext4/super.c 	if (ext4_has_unknown_ext3_incompat_features(sb))
sb               6137 fs/ext4/super.c 	if (!ext4_has_feature_journal(sb))
sb               6139 fs/ext4/super.c 	if (sb_rdonly(sb))
sb               6141 fs/ext4/super.c 	if (ext4_has_unknown_ext3_ro_compat_features(sb))
sb                 57 fs/ext4/sysfs.c 	struct super_block *sb = sbi->s_buddy_cache->i_sb;
sb                 59 fs/ext4/sysfs.c 	if (!sb->s_bdev->bd_part)
sb                 62 fs/ext4/sysfs.c 			(part_stat_read(sb->s_bdev->bd_part,
sb                 69 fs/ext4/sysfs.c 	struct super_block *sb = sbi->s_buddy_cache->i_sb;
sb                 71 fs/ext4/sysfs.c 	if (!sb->s_bdev->bd_part)
sb                 75 fs/ext4/sysfs.c 			((part_stat_read(sb->s_bdev->bd_part,
sb                 77 fs/ext4/sysfs.c 			  EXT4_SB(sb)->s_sectors_written_start) >> 1)));
sb                400 fs/ext4/sysfs.c int ext4_register_sysfs(struct super_block *sb)
sb                402 fs/ext4/sysfs.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                407 fs/ext4/sysfs.c 				   "%s", sb->s_id);
sb                415 fs/ext4/sysfs.c 		sbi->s_proc = proc_mkdir(sb->s_id, ext4_proc_root);
sb                418 fs/ext4/sysfs.c 				ext4_seq_options_show, sb);
sb                421 fs/ext4/sysfs.c 				sb);
sb                423 fs/ext4/sysfs.c 				&ext4_mb_seq_groups_ops, sb);
sb                428 fs/ext4/sysfs.c void ext4_unregister_sysfs(struct super_block *sb)
sb                430 fs/ext4/sysfs.c 	struct ext4_sb_info *sbi = EXT4_SB(sb);
sb                433 fs/ext4/sysfs.c 		remove_proc_subtree(sb->s_id, ext4_proc_root);
sb                786 fs/ext4/xattr.c 					  struct super_block *sb)
sb                788 fs/ext4/xattr.c 	if (ext4_has_feature_xattr(sb))
sb                791 fs/ext4/xattr.c 	BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access");
sb                792 fs/ext4/xattr.c 	if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) {
sb                793 fs/ext4/xattr.c 		ext4_set_feature_xattr(sb);
sb                794 fs/ext4/xattr.c 		ext4_handle_dirty_super(handle, sb);
sb                855 fs/ext4/xattr.c 	struct super_block *sb = inode->i_sb;
sb                856 fs/ext4/xattr.c 	size_t cluster_size = 1 << (EXT4_SB(sb)->s_cluster_bits +
sb                887 fs/ext4/xattr.c int __ext4_xattr_set_credits(struct super_block *sb, struct inode *inode,
sb                910 fs/ext4/xattr.c 	credits += EXT4_MAXQUOTAS_TRANS_BLOCKS(sb);
sb                920 fs/ext4/xattr.c 	if (!ext4_has_feature_ea_inode(sb))
sb                927 fs/ext4/xattr.c 	blocks = (value_len + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
sb                945 fs/ext4/xattr.c 		blocks = XATTR_SIZE_MAX >> sb->s_blocksize_bits;
sb               1814 fs/ext4/xattr.c 	struct super_block *sb = inode->i_sb;
sb               1822 fs/ext4/xattr.c 		bs->bh = ext4_sb_bread(sb, EXT4_I(inode)->i_file_acl, REQ_PRIO);
sb               1850 fs/ext4/xattr.c 	struct super_block *sb = inode->i_sb;
sb               1943 fs/ext4/xattr.c 		s->base = kzalloc(sb->s_blocksize, GFP_NOFS);
sb               1953 fs/ext4/xattr.c 		s->end = s->base + sb->s_blocksize;
sb               1995 fs/ext4/xattr.c 						EXT4_C2B(EXT4_SB(sb), 1));
sb               2024 fs/ext4/xattr.c 							 EXT4_C2B(EXT4_SB(sb),
sb               2061 fs/ext4/xattr.c 			goal = ext4_group_first_block_no(sb,
sb               2079 fs/ext4/xattr.c 			new_bh = sb_getblk(sb, block);
sb               2163 fs/ext4/xattr.c 	dquot_free_block(inode, EXT4_C2B(EXT4_SB(sb), 1));
sb               2484 fs/ext4/xattr.c 	struct super_block *sb = inode->i_sb;
sb               2508 fs/ext4/xattr.c 		    ext4_should_retry_alloc(sb, &retries))
sb                169 fs/ext4/xattr.h extern int __ext4_xattr_set_credits(struct super_block *sb, struct inode *inode,
sb                626 fs/f2fs/checkpoint.c 	inode = f2fs_iget_retry(sbi->sb, ino);
sb                668 fs/f2fs/checkpoint.c 	unsigned int s_flags = sbi->sb->s_flags;
sb                677 fs/f2fs/checkpoint.c 	if (bdev_read_only(sbi->sb->s_bdev)) {
sb                684 fs/f2fs/checkpoint.c 		sbi->sb->s_flags &= ~SB_RDONLY;
sb                689 fs/f2fs/checkpoint.c 	sbi->sb->s_flags |= SB_ACTIVE;
sb                732 fs/f2fs/checkpoint.c 		f2fs_quota_off_umount(sbi->sb);
sb                734 fs/f2fs/checkpoint.c 	sbi->sb->s_flags = s_flags; /* Restore SB_RDONLY status */
sb               1043 fs/f2fs/checkpoint.c 	trace_f2fs_sync_dirty_inodes_enter(sbi->sb, is_dir,
sb               1055 fs/f2fs/checkpoint.c 		trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir,
sb               1184 fs/f2fs/checkpoint.c 		locked = down_read_trylock(&sbi->sb->s_umount);
sb               1185 fs/f2fs/checkpoint.c 		f2fs_quota_sync(sbi->sb, -1);
sb               1187 fs/f2fs/checkpoint.c 			up_read(&sbi->sb->s_umount);
sb               1384 fs/f2fs/checkpoint.c 	struct super_block *sb = sbi->sb;
sb               1482 fs/f2fs/checkpoint.c 	if (sb->s_bdev->bd_part)
sb               1557 fs/f2fs/checkpoint.c 	if (f2fs_readonly(sbi->sb) || f2fs_hw_is_readonly(sbi))
sb               1576 fs/f2fs/checkpoint.c 	trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "start block_ops");
sb               1582 fs/f2fs/checkpoint.c 	trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish block_ops");
sb               1633 fs/f2fs/checkpoint.c 	trace_f2fs_write_checkpoint(sbi->sb, cpc->reason, "finish checkpoint");
sb                243 fs/f2fs/data.c 	struct block_device *bdev = sbi->sb->s_bdev;
sb                353 fs/f2fs/data.c 		trace_f2fs_submit_read_bio(sbi->sb, type, bio);
sb                355 fs/f2fs/data.c 		trace_f2fs_submit_write_bio(sbi->sb, type, bio);
sb                369 fs/f2fs/data.c 		trace_f2fs_prepare_read_bio(io->sbi->sb, fio->type, io->bio);
sb                371 fs/f2fs/data.c 		trace_f2fs_prepare_write_bio(io->sbi->sb, fio->type, io->bio);
sb               3134 fs/f2fs/data.c 	if (f2fs_readonly(F2FS_I_SB(inode)->sb))
sb                196 fs/f2fs/debug.c 	si->base_mem += sizeof(struct f2fs_sb_info) + sbi->sb->s_blocksize;
sb                290 fs/f2fs/debug.c 			si->sbi->sb->s_bdev, i++,
sb                291 fs/f2fs/debug.c 			f2fs_readonly(si->sbi->sb) ? "RO": "RW",
sb               1173 fs/f2fs/f2fs.h 	struct super_block *sb;			/* pointer to VFS super block */
sb               1414 fs/f2fs/f2fs.h (((u64)part_stat_read((s)->sb->s_bdev->bd_part, sectors[STAT_WRITE]) -   \
sb               1497 fs/f2fs/f2fs.h static inline struct f2fs_sb_info *F2FS_SB(struct super_block *sb)
sb               1499 fs/f2fs/f2fs.h 	return sb->s_fs_info;
sb               1592 fs/f2fs/f2fs.h static inline unsigned long f2fs_qf_ino(struct super_block *sb, int type)
sb               1595 fs/f2fs/f2fs.h 		return le32_to_cpu(F2FS_SB(sb)->raw_super->qf_ino[type]);
sb               2750 fs/f2fs/f2fs.h static inline bool f2fs_readonly(struct super_block *sb)
sb               2752 fs/f2fs/f2fs.h 	return sb_rdonly(sb);
sb               2946 fs/f2fs/f2fs.h struct inode *f2fs_iget(struct super_block *sb, unsigned long ino);
sb               2947 fs/f2fs/f2fs.h struct inode *f2fs_iget_retry(struct super_block *sb, unsigned long ino);
sb               3021 fs/f2fs/f2fs.h int f2fs_quota_sync(struct super_block *sb, int type);
sb               3022 fs/f2fs/f2fs.h void f2fs_quota_off_umount(struct super_block *sb);
sb               3024 fs/f2fs/f2fs.h int f2fs_sync_fs(struct super_block *sb, int sync);
sb               3442 fs/f2fs/f2fs.h #define stat_inc_total_hit(sb)				do { } while (0)
sb               3443 fs/f2fs/f2fs.h #define stat_inc_rbtree_node_hit(sb)			do { } while (0)
sb               3639 fs/f2fs/f2fs.h 		return f2fs_bdev_support_discard(sbi->sb->s_bdev);
sb               3658 fs/f2fs/f2fs.h 		return bdev_read_only(sbi->sb->s_bdev);
sb               2047 fs/f2fs/file.c 	struct super_block *sb = sbi->sb;
sb               2065 fs/f2fs/file.c 		sb = freeze_bdev(sb->s_bdev);
sb               2066 fs/f2fs/file.c 		if (IS_ERR(sb)) {
sb               2067 fs/f2fs/file.c 			ret = PTR_ERR(sb);
sb               2070 fs/f2fs/file.c 		if (sb) {
sb               2073 fs/f2fs/file.c 			thaw_bdev(sb->s_bdev, sb);
sb               2078 fs/f2fs/file.c 		ret = f2fs_sync_fs(sb, 1);
sb               2098 fs/f2fs/file.c 		ret = f2fs_sync_fs(sb, 1);
sb               2124 fs/f2fs/file.c 	struct super_block *sb = inode->i_sb;
sb               2125 fs/f2fs/file.c 	struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb               2132 fs/f2fs/file.c 	if (!f2fs_hw_support_discard(F2FS_SB(sb)))
sb               2145 fs/f2fs/file.c 	ret = f2fs_trim_fs(F2FS_SB(sb), &range);
sb               2279 fs/f2fs/file.c 	if (f2fs_readonly(sbi->sb))
sb               2316 fs/f2fs/file.c 	if (f2fs_readonly(sbi->sb))
sb               2356 fs/f2fs/file.c 	if (f2fs_readonly(sbi->sb))
sb               2368 fs/f2fs/file.c 	ret = f2fs_sync_fs(sbi->sb, 1);
sb               2535 fs/f2fs/file.c 	if (f2fs_readonly(sbi->sb))
sb               2735 fs/f2fs/file.c 	if (f2fs_readonly(sbi->sb))
sb               2801 fs/f2fs/file.c 	struct super_block *sb = sbi->sb;
sb               2804 fs/f2fs/file.c 	transfer_to[PRJQUOTA] = dqget(sb, make_kqid_projid(kprojid));
sb               3037 fs/f2fs/file.c 	if (f2fs_readonly(F2FS_I_SB(inode)->sb))
sb               3132 fs/f2fs/file.c 	if (f2fs_readonly(sbi->sb))
sb                 50 fs/f2fs/gc.c   		if (sbi->sb->s_writers.frozen >= SB_FREEZE_WRITE) {
sb                 61 fs/f2fs/gc.c   		if (!sb_start_write_trylock(sbi->sb)) {
sb                108 fs/f2fs/gc.c   		trace_f2fs_background_gc(sbi->sb, wait_ms,
sb                114 fs/f2fs/gc.c   		sb_end_write(sbi->sb);
sb                123 fs/f2fs/gc.c   	dev_t dev = sbi->sb->s_bdev->bd_dev;
sb                439 fs/f2fs/gc.c   		trace_f2fs_get_victim(sbi->sb, type, gc_type, &p,
sb                995 fs/f2fs/gc.c   	struct super_block *sb = sbi->sb;
sb               1045 fs/f2fs/gc.c   			inode = f2fs_iget(sb, dni.ino);
sb               1268 fs/f2fs/gc.c   	trace_f2fs_gc_begin(sbi->sb, sync, background,
sb               1281 fs/f2fs/gc.c   	if (unlikely(!(sbi->sb->s_flags & SB_ACTIVE))) {
sb               1356 fs/f2fs/gc.c   	trace_f2fs_gc_end(sbi->sb, ret, total_freed, sec_freed,
sb               1413 fs/f2fs/gc.c   	err = f2fs_sync_fs(sbi->sb, 1);
sb               1486 fs/f2fs/gc.c   	freeze_bdev(sbi->sb->s_bdev);
sb               1499 fs/f2fs/gc.c   		thaw_bdev(sbi->sb->s_bdev, sbi->sb);
sb               1541 fs/f2fs/gc.c   	err = f2fs_sync_fs(sbi->sb, 1);
sb               1561 fs/f2fs/gc.c   	thaw_bdev(sbi->sb->s_bdev, sbi->sb);
sb                423 fs/f2fs/inode.c struct inode *f2fs_iget(struct super_block *sb, unsigned long ino)
sb                425 fs/f2fs/inode.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                429 fs/f2fs/inode.c 	inode = iget_locked(sb, ino);
sb                486 fs/f2fs/inode.c struct inode *f2fs_iget_retry(struct super_block *sb, unsigned long ino)
sb                490 fs/f2fs/inode.c 	inode = f2fs_iget(sb, ino);
sb                305 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb                354 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb                385 fs/f2fs/namei.c 	if (f2fs_readonly(sbi->sb)) {
sb                562 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb                646 fs/f2fs/namei.c 			f2fs_sync_fs(sbi->sb, 1);
sb                696 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb                749 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb               1021 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb               1186 fs/f2fs/namei.c 		f2fs_sync_fs(sbi->sb, 1);
sb                 71 fs/f2fs/node.c 		if (sbi->sb->s_bdi->wb.dirty_exceeded)
sb                 94 fs/f2fs/node.c 		if (!sbi->sb->s_bdi->wb.dirty_exceeded)
sb               1413 fs/f2fs/node.c 	inode = ilookup(sbi->sb, ino);
sb               1797 fs/f2fs/node.c 	inode = find_inode_nowait(sbi->sb, ino, f2fs_match_ino, NULL);
sb                 75 fs/f2fs/recovery.c 	inode = f2fs_iget_retry(sbi->sb, ino);
sb                460 fs/f2fs/recovery.c 		inode = f2fs_iget_retry(sbi->sb, ino);
sb                724 fs/f2fs/recovery.c 	unsigned long s_flags = sbi->sb->s_flags;
sb                732 fs/f2fs/recovery.c 		sbi->sb->s_flags &= ~SB_RDONLY;
sb                737 fs/f2fs/recovery.c 	sbi->sb->s_flags |= SB_ACTIVE;
sb                774 fs/f2fs/recovery.c 		sbi->sb->s_flags = s_flags;
sb                811 fs/f2fs/recovery.c 		f2fs_quota_off_umount(sbi->sb);
sb                813 fs/f2fs/recovery.c 	sbi->sb->s_flags = s_flags; /* Restore SB_RDONLY status */
sb                553 fs/f2fs/segment.c 		f2fs_sync_fs(sbi->sb, true);
sb                584 fs/f2fs/segment.c 		return __submit_flush_wait(sbi, sbi->sb->s_bdev);
sb                605 fs/f2fs/segment.c 	sb_start_intwrite(sbi->sb);
sb                627 fs/f2fs/segment.c 	sb_end_intwrite(sbi->sb);
sb                703 fs/f2fs/segment.c 	dev_t dev = sbi->sb->s_bdev->bd_dev;
sb               1720 fs/f2fs/segment.c 		if (f2fs_readonly(sbi->sb))
sb               1732 fs/f2fs/segment.c 		sb_start_intwrite(sbi->sb);
sb               1746 fs/f2fs/segment.c 		sb_end_intwrite(sbi->sb);
sb               2033 fs/f2fs/segment.c 	dev_t dev = sbi->sb->s_bdev->bd_dev;
sb               4408 fs/f2fs/segment.c 	if (!f2fs_readonly(sbi->sb)) {
sb                818 fs/f2fs/segment.h 	if (sbi->sb->s_bdi->wb.dirty_exceeded)
sb                221 fs/f2fs/super.c 	       KERN_SOH_ASCII, level, sbi->sb->s_id, &vaf);
sb                235 fs/f2fs/super.c static int f2fs_sb_read_encoding(const struct f2fs_super_block *sb,
sb                239 fs/f2fs/super.c 	__u16 magic = le16_to_cpu(sb->s_encoding);
sb                250 fs/f2fs/super.c 	*flags = le16_to_cpu(sb->s_encoding_flags);
sb                290 fs/f2fs/super.c static int f2fs_set_qf_name(struct super_block *sb, int qtype,
sb                293 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                297 fs/f2fs/super.c 	if (sb_any_quota_loaded(sb) && !F2FS_OPTION(sbi).s_qf_names[qtype]) {
sb                331 fs/f2fs/super.c static int f2fs_clear_qf_name(struct super_block *sb, int qtype)
sb                333 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                335 fs/f2fs/super.c 	if (sb_any_quota_loaded(sb) && F2FS_OPTION(sbi).s_qf_names[qtype]) {
sb                390 fs/f2fs/super.c static int parse_options(struct super_block *sb, char *options)
sb                392 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                443 fs/f2fs/super.c 			if (!f2fs_readonly(sb))
sb                640 fs/f2fs/super.c 			sb->s_flags |= SB_LAZYTIME;
sb                643 fs/f2fs/super.c 			sb->s_flags &= ~SB_LAZYTIME;
sb                657 fs/f2fs/super.c 			ret = f2fs_set_qf_name(sb, USRQUOTA, &args[0]);
sb                662 fs/f2fs/super.c 			ret = f2fs_set_qf_name(sb, GRPQUOTA, &args[0]);
sb                667 fs/f2fs/super.c 			ret = f2fs_set_qf_name(sb, PRJQUOTA, &args[0]);
sb                672 fs/f2fs/super.c 			ret = f2fs_clear_qf_name(sb, USRQUOTA);
sb                677 fs/f2fs/super.c 			ret = f2fs_clear_qf_name(sb, GRPQUOTA);
sb                682 fs/f2fs/super.c 			ret = f2fs_clear_qf_name(sb, PRJQUOTA);
sb                823 fs/f2fs/super.c 	if (f2fs_sb_has_quota_ino(sbi) && !f2fs_readonly(sbi->sb)) {
sb                827 fs/f2fs/super.c 	if (f2fs_sb_has_project_quota(sbi) && !f2fs_readonly(sbi->sb)) {
sb                883 fs/f2fs/super.c static struct inode *f2fs_alloc_inode(struct super_block *sb)
sb                907 fs/f2fs/super.c 	fi->i_dir_level = F2FS_SB(sb)->dir_level;
sb               1061 fs/f2fs/super.c static void f2fs_put_super(struct super_block *sb)
sb               1063 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1067 fs/f2fs/super.c 	f2fs_quota_off_umount(sb);
sb               1132 fs/f2fs/super.c 	sb->s_fs_info = NULL;
sb               1152 fs/f2fs/super.c int f2fs_sync_fs(struct super_block *sb, int sync)
sb               1154 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1162 fs/f2fs/super.c 	trace_f2fs_sync_fs(sb, sync);
sb               1181 fs/f2fs/super.c static int f2fs_freeze(struct super_block *sb)
sb               1183 fs/f2fs/super.c 	if (f2fs_readonly(sb))
sb               1187 fs/f2fs/super.c 	if (unlikely(f2fs_cp_error(F2FS_SB(sb))))
sb               1191 fs/f2fs/super.c 	if (is_sbi_flag_set(F2FS_SB(sb), SBI_IS_DIRTY))
sb               1196 fs/f2fs/super.c static int f2fs_unfreeze(struct super_block *sb)
sb               1202 fs/f2fs/super.c static int f2fs_statfs_project(struct super_block *sb,
sb               1211 fs/f2fs/super.c 	dquot = dqget(sb, qid);
sb               1219 fs/f2fs/super.c 		limit >>= sb->s_blocksize_bits;
sb               1222 fs/f2fs/super.c 		curblock = dquot->dq_dqb.dqb_curspace >> sb->s_blocksize_bits;
sb               1247 fs/f2fs/super.c 	struct super_block *sb = dentry->d_sb;
sb               1248 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1249 fs/f2fs/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb               1293 fs/f2fs/super.c 			sb_has_quota_limits_enabled(sb, PRJQUOTA)) {
sb               1294 fs/f2fs/super.c 		f2fs_statfs_project(sb, F2FS_I(dentry->d_inode)->i_projid, buf);
sb               1301 fs/f2fs/super.c 					   struct super_block *sb)
sb               1304 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1341 fs/f2fs/super.c 	if (!f2fs_readonly(sbi->sb) && test_opt(sbi, BG_GC)) {
sb               1390 fs/f2fs/super.c 	if (!f2fs_readonly(sbi->sb) && test_opt(sbi, FLUSH_MERGE))
sb               1437 fs/f2fs/super.c 	f2fs_show_quota_options(seq, sbi->sb);
sb               1484 fs/f2fs/super.c 	sbi->sb->s_flags |= SB_LAZYTIME;
sb               1503 fs/f2fs/super.c static int f2fs_enable_quotas(struct super_block *sb);
sb               1508 fs/f2fs/super.c 	unsigned int s_flags = sbi->sb->s_flags;
sb               1518 fs/f2fs/super.c 	sbi->sb->s_flags |= SB_ACTIVE;
sb               1533 fs/f2fs/super.c 	ret = sync_filesystem(sbi->sb);
sb               1559 fs/f2fs/super.c 	sbi->sb->s_flags = s_flags;	/* Restore MS_RDONLY status */
sb               1572 fs/f2fs/super.c 	f2fs_sync_fs(sbi->sb, 1);
sb               1575 fs/f2fs/super.c static int f2fs_remount(struct super_block *sb, int *flags, char *data)
sb               1577 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1596 fs/f2fs/super.c 	old_sb_flags = sb->s_flags;
sb               1628 fs/f2fs/super.c 	err = parse_options(sb, data);
sb               1638 fs/f2fs/super.c 	if (f2fs_readonly(sb) && (*flags & SB_RDONLY))
sb               1642 fs/f2fs/super.c 	if (!f2fs_readonly(sb) && (*flags & SB_RDONLY)) {
sb               1643 fs/f2fs/super.c 		err = dquot_suspend(sb, -1);
sb               1646 fs/f2fs/super.c 	} else if (f2fs_readonly(sb) && !(*flags & SB_RDONLY)) {
sb               1648 fs/f2fs/super.c 		sb->s_flags &= ~SB_RDONLY;
sb               1649 fs/f2fs/super.c 		if (sb_any_quota_suspended(sb)) {
sb               1650 fs/f2fs/super.c 			dquot_resume(sb, -1);
sb               1652 fs/f2fs/super.c 			err = f2fs_enable_quotas(sb);
sb               1696 fs/f2fs/super.c 		writeback_inodes_sb(sb, WB_REASON_SYNC);
sb               1697 fs/f2fs/super.c 		sync_inodes_sb(sb);
sb               1701 fs/f2fs/super.c 		f2fs_sync_fs(sb, 1);
sb               1734 fs/f2fs/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb               1738 fs/f2fs/super.c 	*flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
sb               1756 fs/f2fs/super.c 	sb->s_flags = old_sb_flags;
sb               1762 fs/f2fs/super.c static ssize_t f2fs_quota_read(struct super_block *sb, int type, char *data,
sb               1765 fs/f2fs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               1768 fs/f2fs/super.c 	int offset = off & (sb->s_blocksize - 1);
sb               1782 fs/f2fs/super.c 		tocopy = min_t(unsigned long, sb->s_blocksize - offset, toread);
sb               1790 fs/f2fs/super.c 			set_sbi_flag(F2FS_SB(sb), SBI_QUOTA_NEED_REPAIR);
sb               1802 fs/f2fs/super.c 			set_sbi_flag(F2FS_SB(sb), SBI_QUOTA_NEED_REPAIR);
sb               1820 fs/f2fs/super.c static ssize_t f2fs_quota_write(struct super_block *sb, int type,
sb               1823 fs/f2fs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               1826 fs/f2fs/super.c 	int offset = off & (sb->s_blocksize - 1);
sb               1835 fs/f2fs/super.c 		tocopy = min_t(unsigned long, sb->s_blocksize - offset,
sb               1845 fs/f2fs/super.c 			set_sbi_flag(F2FS_SB(sb), SBI_QUOTA_NEED_REPAIR);
sb               1887 fs/f2fs/super.c 	return dquot_quota_on_mount(sbi->sb, F2FS_OPTION(sbi).s_qf_names[type],
sb               1897 fs/f2fs/super.c 		err = f2fs_enable_quotas(sbi->sb);
sb               1919 fs/f2fs/super.c static int f2fs_quota_enable(struct super_block *sb, int type, int format_id,
sb               1926 fs/f2fs/super.c 	BUG_ON(!f2fs_sb_has_quota_ino(F2FS_SB(sb)));
sb               1928 fs/f2fs/super.c 	qf_inum = f2fs_qf_ino(sb, type);
sb               1932 fs/f2fs/super.c 	qf_inode = f2fs_iget(sb, qf_inum);
sb               1934 fs/f2fs/super.c 		f2fs_err(F2FS_SB(sb), "Bad quota inode %u:%lu", type, qf_inum);
sb               1945 fs/f2fs/super.c static int f2fs_enable_quotas(struct super_block *sb)
sb               1947 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1956 fs/f2fs/super.c 	if (is_set_ckpt_flags(F2FS_SB(sb), CP_QUOTA_NEED_FSCK_FLAG)) {
sb               1961 fs/f2fs/super.c 	sb_dqopt(sb)->flags |= DQUOT_QUOTA_SYS_FILE;
sb               1964 fs/f2fs/super.c 		qf_inum = f2fs_qf_ino(sb, type);
sb               1966 fs/f2fs/super.c 			err = f2fs_quota_enable(sb, type, QFMT_VFS_V1,
sb               1973 fs/f2fs/super.c 					dquot_quota_off(sb, type);
sb               1974 fs/f2fs/super.c 				set_sbi_flag(F2FS_SB(sb),
sb               1983 fs/f2fs/super.c int f2fs_quota_sync(struct super_block *sb, int type)
sb               1985 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               1986 fs/f2fs/super.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2002 fs/f2fs/super.c 	ret = dquot_writeback_dquots(sb, type);
sb               2015 fs/f2fs/super.c 		if (!sb_has_quota_active(sb, cnt))
sb               2030 fs/f2fs/super.c 			set_sbi_flag(F2FS_SB(sb), SBI_QUOTA_NEED_REPAIR);
sb               2038 fs/f2fs/super.c 		set_sbi_flag(F2FS_SB(sb), SBI_QUOTA_NEED_REPAIR);
sb               2044 fs/f2fs/super.c static int f2fs_quota_on(struct super_block *sb, int type, int format_id,
sb               2051 fs/f2fs/super.c 	if (f2fs_sb_has_quota_ino(F2FS_SB(sb))) {
sb               2052 fs/f2fs/super.c 		f2fs_err(F2FS_SB(sb), "quota sysfile already exists");
sb               2056 fs/f2fs/super.c 	err = f2fs_quota_sync(sb, type);
sb               2060 fs/f2fs/super.c 	err = dquot_quota_on(sb, type, format_id, path);
sb               2075 fs/f2fs/super.c static int __f2fs_quota_off(struct super_block *sb, int type)
sb               2077 fs/f2fs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               2081 fs/f2fs/super.c 		return dquot_quota_off(sb, type);
sb               2083 fs/f2fs/super.c 	err = f2fs_quota_sync(sb, type);
sb               2087 fs/f2fs/super.c 	err = dquot_quota_off(sb, type);
sb               2088 fs/f2fs/super.c 	if (err || f2fs_sb_has_quota_ino(F2FS_SB(sb)))
sb               2101 fs/f2fs/super.c static int f2fs_quota_off(struct super_block *sb, int type)
sb               2103 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               2106 fs/f2fs/super.c 	err = __f2fs_quota_off(sb, type);
sb               2118 fs/f2fs/super.c void f2fs_quota_off_umount(struct super_block *sb)
sb               2124 fs/f2fs/super.c 		err = __f2fs_quota_off(sb, type);
sb               2126 fs/f2fs/super.c 			int ret = dquot_quota_off(sb, type);
sb               2128 fs/f2fs/super.c 			f2fs_err(F2FS_SB(sb), "Fail to turn off disk quota (type: %d, err: %d, ret:%d), Please run fsck to fix it.",
sb               2130 fs/f2fs/super.c 			set_sbi_flag(F2FS_SB(sb), SBI_QUOTA_NEED_REPAIR);
sb               2138 fs/f2fs/super.c 	sync_filesystem(sb);
sb               2141 fs/f2fs/super.c static void f2fs_truncate_quota_inode_pages(struct super_block *sb)
sb               2143 fs/f2fs/super.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2194 fs/f2fs/super.c 	struct super_block *sb = dquot->dq_sb;
sb               2195 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               2209 fs/f2fs/super.c static int f2fs_dquot_commit_info(struct super_block *sb, int type)
sb               2211 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               2215 fs/f2fs/super.c 	ret = dquot_commit_info(sb, type);
sb               2252 fs/f2fs/super.c int f2fs_quota_sync(struct super_block *sb, int type)
sb               2257 fs/f2fs/super.c void f2fs_quota_off_umount(struct super_block *sb)
sb               2326 fs/f2fs/super.c static struct inode *f2fs_nfs_get_inode(struct super_block *sb,
sb               2329 fs/f2fs/super.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               2340 fs/f2fs/super.c 	inode = f2fs_iget(sb, ino);
sb               2351 fs/f2fs/super.c static struct dentry *f2fs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb               2354 fs/f2fs/super.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb               2358 fs/f2fs/super.c static struct dentry *f2fs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb               2361 fs/f2fs/super.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb               2415 fs/f2fs/super.c 	struct super_block *sb = sbi->sb;
sb               2487 fs/f2fs/super.c 		if (f2fs_readonly(sb) || bdev_read_only(sb->s_bdev)) {
sb               2943 fs/f2fs/super.c 	struct super_block *sb = sbi->sb;
sb               2954 fs/f2fs/super.c 		bh = sb_bread(sb, block);
sb               2999 fs/f2fs/super.c 	if ((recover && f2fs_readonly(sbi->sb)) ||
sb               3000 fs/f2fs/super.c 				bdev_read_only(sbi->sb->s_bdev)) {
sb               3013 fs/f2fs/super.c 	bh = sb_bread(sbi->sb, sbi->valid_super_block ? 0 : 1);
sb               3024 fs/f2fs/super.c 	bh = sb_bread(sbi->sb, sbi->valid_super_block);
sb               3040 fs/f2fs/super.c 		if (!bdev_is_zoned(sbi->sb->s_bdev))
sb               3064 fs/f2fs/super.c 				blkdev_get_by_dev(sbi->sb->s_bdev->bd_dev,
sb               3065 fs/f2fs/super.c 					sbi->sb->s_mode, sbi->sb->s_type);
sb               3084 fs/f2fs/super.c 					sbi->sb->s_mode, sbi->sb->s_type);
sb               3160 fs/f2fs/super.c 		sbi->sb->s_d_op = &f2fs_dentry_ops;
sb               3185 fs/f2fs/super.c static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
sb               3208 fs/f2fs/super.c 	sbi->sb = sb;
sb               3220 fs/f2fs/super.c 	if (unlikely(!sb_set_blocksize(sb, F2FS_BLKSIZE))) {
sb               3230 fs/f2fs/super.c 	sb->s_fs_info = sbi;
sb               3258 fs/f2fs/super.c 	err = parse_options(sb, options);
sb               3263 fs/f2fs/super.c 	sb->s_maxbytes = sbi->max_file_blocks <<
sb               3265 fs/f2fs/super.c 	sb->s_max_links = F2FS_LINK_MAX;
sb               3272 fs/f2fs/super.c 	sb->dq_op = &f2fs_quota_operations;
sb               3273 fs/f2fs/super.c 	sb->s_qcop = &f2fs_quotactl_ops;
sb               3274 fs/f2fs/super.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ;
sb               3278 fs/f2fs/super.c 			if (f2fs_qf_ino(sbi->sb, i))
sb               3284 fs/f2fs/super.c 	sb->s_op = &f2fs_sops;
sb               3286 fs/f2fs/super.c 	sb->s_cop = &f2fs_cryptops;
sb               3289 fs/f2fs/super.c 	sb->s_vop = &f2fs_verityops;
sb               3291 fs/f2fs/super.c 	sb->s_xattr = f2fs_xattr_handlers;
sb               3292 fs/f2fs/super.c 	sb->s_export_op = &f2fs_export_ops;
sb               3293 fs/f2fs/super.c 	sb->s_magic = F2FS_SUPER_MAGIC;
sb               3294 fs/f2fs/super.c 	sb->s_time_gran = 1;
sb               3295 fs/f2fs/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb               3297 fs/f2fs/super.c 	memcpy(&sb->s_uuid, raw_super->uuid, sizeof(raw_super->uuid));
sb               3298 fs/f2fs/super.c 	sb->s_iflags |= SB_I_CGROUPWB;
sb               3359 fs/f2fs/super.c 	sbi->meta_inode = f2fs_iget(sb, F2FS_META_INO(sbi));
sb               3428 fs/f2fs/super.c 	if (sb->s_bdev->bd_part)
sb               3430 fs/f2fs/super.c 			(u64)part_stat_read(sb->s_bdev->bd_part,
sb               3446 fs/f2fs/super.c 	sbi->node_inode = f2fs_iget(sb, F2FS_NODE_INO(sbi));
sb               3454 fs/f2fs/super.c 	root = f2fs_iget(sb, F2FS_ROOT_INO(sbi));
sb               3467 fs/f2fs/super.c 	sb->s_root = d_make_root(root); /* allocate root dentry */
sb               3468 fs/f2fs/super.c 	if (!sb->s_root) {
sb               3479 fs/f2fs/super.c 	if (f2fs_sb_has_quota_ino(sbi) && !f2fs_readonly(sb)) {
sb               3480 fs/f2fs/super.c 		err = f2fs_enable_quotas(sb);
sb               3528 fs/f2fs/super.c 		if (!f2fs_readonly(sb) && err > 0) {
sb               3550 fs/f2fs/super.c 	if (test_opt(sbi, BG_GC) && !f2fs_readonly(sb)) {
sb               3578 fs/f2fs/super.c 	sync_filesystem(sbi->sb);
sb               3583 fs/f2fs/super.c 	f2fs_truncate_quota_inode_pages(sb);
sb               3584 fs/f2fs/super.c 	if (f2fs_sb_has_quota_ino(sbi) && !f2fs_readonly(sb))
sb               3585 fs/f2fs/super.c 		f2fs_quota_off_umount(sbi->sb);
sb               3595 fs/f2fs/super.c 	evict_inodes(sb);
sb               3598 fs/f2fs/super.c 	dput(sb->s_root);
sb               3599 fs/f2fs/super.c 	sb->s_root = NULL;
sb               3645 fs/f2fs/super.c 		shrink_dcache_sb(sb);
sb               3657 fs/f2fs/super.c static void kill_f2fs_super(struct super_block *sb)
sb               3659 fs/f2fs/super.c 	if (sb->s_root) {
sb               3660 fs/f2fs/super.c 		struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb               3674 fs/f2fs/super.c 		if (is_sbi_flag_set(sbi, SBI_IS_RECOVERED) && f2fs_readonly(sb))
sb               3675 fs/f2fs/super.c 			sb->s_flags &= ~SB_RDONLY;
sb               3677 fs/f2fs/super.c 	kill_block_super(sb);
sb                102 fs/f2fs/sysfs.c 	struct super_block *sb = sbi->sb;
sb                104 fs/f2fs/sysfs.c 	if (!sb->s_bdev->bd_part)
sb                115 fs/f2fs/sysfs.c 	struct super_block *sb = sbi->sb;
sb                118 fs/f2fs/sysfs.c 	if (!sb->s_bdev->bd_part)
sb                339 fs/f2fs/sysfs.c 		if (!down_read_trylock(&sbi->sb->s_umount))
sb                344 fs/f2fs/sysfs.c 		up_read(&sbi->sb->s_umount);
sb                607 fs/f2fs/sysfs.c 	struct super_block *sb = seq->private;
sb                608 fs/f2fs/sysfs.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                634 fs/f2fs/sysfs.c 	struct super_block *sb = seq->private;
sb                635 fs/f2fs/sysfs.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                658 fs/f2fs/sysfs.c 	struct super_block *sb = seq->private;
sb                659 fs/f2fs/sysfs.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                701 fs/f2fs/sysfs.c 	struct super_block *sb = seq->private;
sb                702 fs/f2fs/sysfs.c 	struct f2fs_sb_info *sbi = F2FS_SB(sb);
sb                751 fs/f2fs/sysfs.c 	struct super_block *sb = sbi->sb;
sb                757 fs/f2fs/sysfs.c 				"%s", sb->s_id);
sb                765 fs/f2fs/sysfs.c 		sbi->s_proc = proc_mkdir(sb->s_id, f2fs_proc_root);
sb                769 fs/f2fs/sysfs.c 				segment_info_seq_show, sb);
sb                771 fs/f2fs/sysfs.c 				segment_bits_seq_show, sb);
sb                773 fs/f2fs/sysfs.c 				iostat_info_seq_show, sb);
sb                775 fs/f2fs/sysfs.c 				victim_bits_seq_show, sb);
sb                787 fs/f2fs/sysfs.c 		remove_proc_entry(sbi->sb->s_id, f2fs_proc_root);
sb                227 fs/fat/cache.c 	struct super_block *sb = inode->i_sb;
sb                228 fs/fat/cache.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                229 fs/fat/cache.c 	const int limit = sb->s_maxbytes >> sbi->cluster_bits;
sb                239 fs/fat/cache.c 		fat_fs_error_ratelimit(sb,
sb                259 fs/fat/cache.c 			fat_fs_error_ratelimit(sb,
sb                270 fs/fat/cache.c 			fat_fs_error_ratelimit(sb,
sb                293 fs/fat/cache.c 	struct super_block *sb = inode->i_sb;
sb                303 fs/fat/cache.c 		fat_fs_error(sb, "%s: request beyond EOF (i_pos %lld)",
sb                314 fs/fat/cache.c 	struct super_block *sb = inode->i_sb;
sb                315 fs/fat/cache.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                318 fs/fat/cache.c 	cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits);
sb                336 fs/fat/cache.c 	struct super_block *sb = inode->i_sb;
sb                337 fs/fat/cache.c 	const unsigned long blocksize = sb->s_blocksize;
sb                338 fs/fat/cache.c 	const unsigned char blocksize_bits = sb->s_blocksize_bits;
sb                 41 fs/fat/dir.c   static inline loff_t fat_make_i_pos(struct super_block *sb,
sb                 45 fs/fat/dir.c   	return ((loff_t)bh->b_blocknr << MSDOS_SB(sb)->dir_per_block_bits)
sb                 52 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb                 53 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                 64 fs/fat/dir.c   	bh = sb_find_get_block(sb, phys);
sb                 67 fs/fat/dir.c   			sb_breadahead(sb, phys + sec);
sb                 85 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb                 93 fs/fat/dir.c   	iblock = *pos >> sb->s_blocksize_bits;
sb                100 fs/fat/dir.c   	*bh = sb_bread(sb, phys);
sb                102 fs/fat/dir.c   		fat_msg_ratelimit(sb, KERN_ERR,
sb                105 fs/fat/dir.c   		*pos = (iblock + 1) << sb->s_blocksize_bits;
sb                109 fs/fat/dir.c   	offset = *pos & (sb->s_blocksize - 1);
sb                141 fs/fat/dir.c   static int uni16_to_x8(struct super_block *sb, unsigned char *ascii,
sb                144 fs/fat/dir.c   	int uni_xlate = MSDOS_SB(sb)->options.unicode_xlate;
sb                173 fs/fat/dir.c   		fat_msg(sb, KERN_WARNING,
sb                181 fs/fat/dir.c   static inline int fat_uni_to_x8(struct super_block *sb, const wchar_t *uni,
sb                184 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                189 fs/fat/dir.c   		return uni16_to_x8(sb, buf, uni, size, sbi->nls_io);
sb                349 fs/fat/dir.c   static int fat_parse_short(struct super_block *sb,
sb                353 fs/fat/dir.c   	const struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                452 fs/fat/dir.c   			name_len = fat_uni_to_x8(sb, uni_name, name,
sb                466 fs/fat/dir.c   	struct super_block *sb = inode->i_sb;
sb                467 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                507 fs/fat/dir.c   		len = fat_parse_short(sb, de, bufname, 0);
sb                520 fs/fat/dir.c   			len = fat_uni_to_x8(sb, unicode, longname, size);
sb                532 fs/fat/dir.c   	sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de);
sb                557 fs/fat/dir.c   	struct super_block *sb = inode->i_sb;
sb                558 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                627 fs/fat/dir.c   			int len = fat_uni_to_x8(sb, unicode, longname, size);
sb                635 fs/fat/dir.c   			short_len = fat_parse_short(sb, de, bufname,
sb                650 fs/fat/dir.c   	short_len = fat_parse_short(sb, de, bufname, sbi->options.dotsOK);
sb                670 fs/fat/dir.c   		loff_t i_pos = fat_make_i_pos(sb, bh, de);
sb                671 fs/fat/dir.c   		struct inode *tmp = fat_iget(sb, i_pos);
sb                676 fs/fat/dir.c   			inum = iunique(sb, MSDOS_ROOT_INO);
sb                958 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb                967 fs/fat/dir.c   			sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de);
sb                982 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb                988 fs/fat/dir.c   		if (fat_get_start(MSDOS_SB(sb), sinfo->de) == i_logstart) {
sb                991 fs/fat/dir.c   			sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de);
sb               1000 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb               1013 fs/fat/dir.c   		endp = (struct msdos_dir_entry *)(bh->b_data + sb->s_blocksize);
sb               1035 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb               1070 fs/fat/dir.c   			fat_msg(sb, KERN_WARNING,
sb               1088 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb               1089 fs/fat/dir.c   	sector_t last_blknr = blknr + MSDOS_SB(sb)->sec_per_clus;
sb               1096 fs/fat/dir.c   		bhs[n] = sb_getblk(sb, blknr);
sb               1103 fs/fat/dir.c   		memset(bhs[n]->b_data, 0, sb->s_blocksize);
sb               1139 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb               1140 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb               1153 fs/fat/dir.c   	bhs[0] = sb_getblk(sb, blknr);
sb               1184 fs/fat/dir.c   	memset(de + 2, 0, sb->s_blocksize - 2 * sizeof(*de));
sb               1206 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb               1207 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb               1236 fs/fat/dir.c   			bhs[n] = sb_getblk(sb, blknr);
sb               1243 fs/fat/dir.c   			copy = min(size, sb->s_blocksize);
sb               1259 fs/fat/dir.c   	memset(bhs[n]->b_data + copy, 0, sb->s_blocksize - copy);
sb               1264 fs/fat/dir.c   	*i_pos = fat_make_i_pos(sb, *bh, *de);
sb               1288 fs/fat/dir.c   	struct super_block *sb = dir->i_sb;
sb               1289 fs/fat/dir.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb               1327 fs/fat/dir.c   		fat_msg(sb, KERN_ERR, "Corrupted directory (i_pos %lld)",
sb               1344 fs/fat/dir.c   		int offset = pos & (sb->s_blocksize - 1);
sb               1349 fs/fat/dir.c   			int copy = min_t(int, sb->s_blocksize - offset, size);
sb               1360 fs/fat/dir.c   			int copy = min_t(int, sb->s_blocksize - offset, size);
sb               1392 fs/fat/dir.c   			fat_fs_error(sb, "Odd directory size");
sb               1402 fs/fat/dir.c   	sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de);
sb                140 fs/fat/fat.h   static inline struct msdos_sb_info *MSDOS_SB(struct super_block *sb)
sb                142 fs/fat/fat.h   	return sb->s_fs_info;
sb                165 fs/fat/fat.h   static inline u32 max_fat(struct super_block *sb)
sb                167 fs/fat/fat.h   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                384 fs/fat/fat.h   extern void fat_ent_access_init(struct super_block *sb);
sb                392 fs/fat/fat.h   extern int fat_count_free_clusters(struct super_block *sb);
sb                411 fs/fat/fat.h   extern struct inode *fat_iget(struct super_block *sb, loff_t i_pos);
sb                412 fs/fat/fat.h   extern struct inode *fat_build_inode(struct super_block *sb,
sb                415 fs/fat/fat.h   extern int fat_fill_super(struct super_block *sb, void *data, int silent,
sb                419 fs/fat/fat.h   extern int fat_flush_inodes(struct super_block *sb, struct inode *i1,
sb                429 fs/fat/fat.h   void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...);
sb                430 fs/fat/fat.h   #define fat_fs_error(sb, fmt, args...)		\
sb                431 fs/fat/fat.h   	__fat_fs_error(sb, 1, fmt , ## args)
sb                432 fs/fat/fat.h   #define fat_fs_error_ratelimit(sb, fmt, args...) \
sb                433 fs/fat/fat.h   	__fat_fs_error(sb, __ratelimit(&MSDOS_SB(sb)->ratelimit), fmt , ## args)
sb                435 fs/fat/fat.h   void fat_msg(struct super_block *sb, const char *level, const char *fmt, ...);
sb                436 fs/fat/fat.h   #define fat_msg_ratelimit(sb, level, fmt, args...)	\
sb                438 fs/fat/fat.h   			if (__ratelimit(&MSDOS_SB(sb)->ratelimit))	\
sb                439 fs/fat/fat.h   				fat_msg(sb, level, fmt, ## args);	\
sb                441 fs/fat/fat.h   extern int fat_clusters_flush(struct super_block *sb);
sb                 22 fs/fat/fatent.c static void fat12_ent_blocknr(struct super_block *sb, int entry,
sb                 25 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                 28 fs/fat/fatent.c 	*offset = bytes & (sb->s_blocksize - 1);
sb                 29 fs/fat/fatent.c 	*blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits);
sb                 32 fs/fat/fatent.c static void fat_ent_blocknr(struct super_block *sb, int entry,
sb                 35 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                 38 fs/fat/fatent.c 	*offset = bytes & (sb->s_blocksize - 1);
sb                 39 fs/fat/fatent.c 	*blocknr = sbi->fat_start + (bytes >> sb->s_blocksize_bits);
sb                 68 fs/fat/fatent.c static int fat12_ent_bread(struct super_block *sb, struct fat_entry *fatent,
sb                 73 fs/fat/fatent.c 	WARN_ON(blocknr < MSDOS_SB(sb)->fat_start);
sb                 74 fs/fat/fatent.c 	fatent->fat_inode = MSDOS_SB(sb)->fat_inode;
sb                 76 fs/fat/fatent.c 	bhs[0] = sb_bread(sb, blocknr);
sb                 80 fs/fat/fatent.c 	if ((offset + 1) < sb->s_blocksize)
sb                 85 fs/fat/fatent.c 		bhs[1] = sb_bread(sb, blocknr);
sb                 96 fs/fat/fatent.c 	fat_msg(sb, KERN_ERR, "FAT read failed (blocknr %llu)", (llu)blocknr);
sb                100 fs/fat/fatent.c static int fat_ent_bread(struct super_block *sb, struct fat_entry *fatent,
sb                103 fs/fat/fatent.c 	const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops;
sb                105 fs/fat/fatent.c 	WARN_ON(blocknr < MSDOS_SB(sb)->fat_start);
sb                106 fs/fat/fatent.c 	fatent->fat_inode = MSDOS_SB(sb)->fat_inode;
sb                107 fs/fat/fatent.c 	fatent->bhs[0] = sb_bread(sb, blocknr);
sb                109 fs/fat/fatent.c 		fat_msg(sb, KERN_ERR, "FAT read failed (blocknr %llu)",
sb                287 fs/fat/fatent.c void fat_ent_access_init(struct super_block *sb)
sb                289 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                303 fs/fat/fatent.c 		fat_fs_error(sb, "invalid FAT variant, %u bits", sbi->fat_bits);
sb                307 fs/fat/fatent.c static void mark_fsinfo_dirty(struct super_block *sb)
sb                309 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                311 fs/fat/fatent.c 	if (sb_rdonly(sb) || !is_fat32(sbi))
sb                317 fs/fat/fatent.c static inline int fat_ent_update_ptr(struct super_block *sb,
sb                321 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                329 fs/fat/fatent.c 		if ((offset + 1) < sb->s_blocksize) {
sb                349 fs/fat/fatent.c 	struct super_block *sb = inode->i_sb;
sb                357 fs/fat/fatent.c 		fat_fs_error(sb, "invalid access to FAT (entry 0x%08x)", entry);
sb                362 fs/fat/fatent.c 	ops->ent_blocknr(sb, entry, &offset, &blocknr);
sb                364 fs/fat/fatent.c 	if (!fat_ent_update_ptr(sb, fatent, offset, blocknr)) {
sb                366 fs/fat/fatent.c 		err = ops->ent_bread(sb, fatent, offset, blocknr);
sb                374 fs/fat/fatent.c static int fat_mirror_bhs(struct super_block *sb, struct buffer_head **bhs,
sb                377 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                386 fs/fat/fatent.c 			c_bh = sb_getblk(sb, backup_fat + bhs[n]->b_blocknr);
sb                393 fs/fat/fatent.c 			memcpy(c_bh->b_data, bhs[n]->b_data, sb->s_blocksize);
sb                397 fs/fat/fatent.c 			if (sb->s_flags & SB_SYNCHRONOUS)
sb                411 fs/fat/fatent.c 	struct super_block *sb = inode->i_sb;
sb                412 fs/fat/fatent.c 	const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops;
sb                421 fs/fat/fatent.c 	return fat_mirror_bhs(sb, fatent->bhs, fatent->nr_bhs);
sb                434 fs/fat/fatent.c static inline int fat_ent_read_block(struct super_block *sb,
sb                437 fs/fat/fatent.c 	const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops;
sb                442 fs/fat/fatent.c 	ops->ent_blocknr(sb, fatent->entry, &offset, &blocknr);
sb                443 fs/fat/fatent.c 	return ops->ent_bread(sb, fatent, offset, blocknr);
sb                466 fs/fat/fatent.c 	struct super_block *sb = inode->i_sb;
sb                467 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                491 fs/fat/fatent.c 		err = fat_ent_read_block(sb, &fatent);
sb                535 fs/fat/fatent.c 	mark_fsinfo_dirty(sb);
sb                541 fs/fat/fatent.c 			err = fat_mirror_bhs(sb, bhs, nr_bhs);
sb                554 fs/fat/fatent.c 	struct super_block *sb = inode->i_sb;
sb                555 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                571 fs/fat/fatent.c 			fat_fs_error(sb, "%s: deleting FAT entry beyond EOF",
sb                586 fs/fat/fatent.c 				sb_issue_discard(sb,
sb                602 fs/fat/fatent.c 			if (sb->s_flags & SB_SYNCHRONOUS) {
sb                607 fs/fat/fatent.c 			err = fat_mirror_bhs(sb, bhs, nr_bhs);
sb                617 fs/fat/fatent.c 	if (sb->s_flags & SB_SYNCHRONOUS) {
sb                622 fs/fat/fatent.c 	err = fat_mirror_bhs(sb, bhs, nr_bhs);
sb                629 fs/fat/fatent.c 		mark_fsinfo_dirty(sb);
sb                638 fs/fat/fatent.c static void fat_ent_reada(struct super_block *sb, struct fat_entry *fatent,
sb                641 fs/fat/fatent.c 	const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops;
sb                645 fs/fat/fatent.c 	ops->ent_blocknr(sb, fatent->entry, &offset, &blocknr);
sb                648 fs/fat/fatent.c 		sb_breadahead(sb, blocknr + i);
sb                651 fs/fat/fatent.c int fat_count_free_clusters(struct super_block *sb)
sb                653 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                663 fs/fat/fatent.c 	reada_blocks = FAT_READA_SIZE >> sb->s_blocksize_bits;
sb                674 fs/fat/fatent.c 			fat_ent_reada(sb, &fatent, min(reada_blocks, rest));
sb                678 fs/fat/fatent.c 		err = fat_ent_read_block(sb, &fatent);
sb                690 fs/fat/fatent.c 	mark_fsinfo_dirty(sb);
sb                697 fs/fat/fatent.c static int fat_trim_clusters(struct super_block *sb, u32 clus, u32 nr_clus)
sb                699 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                700 fs/fat/fatent.c 	return sb_issue_discard(sb, fat_clus_to_blknr(sbi, clus),
sb                706 fs/fat/fatent.c 	struct super_block *sb = inode->i_sb;
sb                707 fs/fat/fatent.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                730 fs/fat/fatent.c 	reada_blocks = FAT_READA_SIZE >> sb->s_blocksize_bits;
sb                740 fs/fat/fatent.c 			fat_ent_reada(sb, &fatent, min(reada_blocks, rest));
sb                744 fs/fat/fatent.c 		err = fat_ent_read_block(sb, &fatent);
sb                754 fs/fat/fatent.c 					err = fat_trim_clusters(sb, clus, free);
sb                781 fs/fat/fatent.c 		err = fat_trim_clusters(sb, clus, free);
sb                127 fs/fat/file.c  	struct super_block *sb = inode->i_sb;
sb                130 fs/fat/file.c  	struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb                277 fs/fat/file.c  	struct super_block *sb = inode->i_sb;
sb                278 fs/fat/file.c  	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                322 fs/fat/file.c  	struct super_block *sb = inode->i_sb;
sb                368 fs/fat/file.c  			fat_fs_error(sb,
sb                383 fs/fat/file.c  	inode->i_blocks = skip << (MSDOS_SB(sb)->cluster_bits - 9);
sb                122 fs/fat/inode.c 	struct super_block *sb = inode->i_sb;
sb                123 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                132 fs/fat/inode.c 		map_bh(bh_result, sb, phys);
sb                139 fs/fat/inode.c 	if (iblock != MSDOS_I(inode)->mmu_private >> sb->s_blocksize_bits) {
sb                140 fs/fat/inode.c 		fat_fs_error(sb, "corrupted file size (i_pos %lld, %lld)",
sb                145 fs/fat/inode.c 	last_block = inode->i_blocks >> (sb->s_blocksize_bits - 9);
sb                162 fs/fat/inode.c 	MSDOS_I(inode)->mmu_private += *max_blocks << sb->s_blocksize_bits;
sb                168 fs/fat/inode.c 		fat_fs_error(sb,
sb                177 fs/fat/inode.c 	map_bh(bh_result, sb, phys);
sb                185 fs/fat/inode.c 	struct super_block *sb = inode->i_sb;
sb                192 fs/fat/inode.c 	bh_result->b_size = max_blocks << sb->s_blocksize_bits;
sb                298 fs/fat/inode.c 	struct super_block *sb = inode->i_sb;
sb                311 fs/fat/inode.c 		map_bh(bh_result, sb, bmap);
sb                315 fs/fat/inode.c 	bh_result->b_size = max_blocks << sb->s_blocksize_bits;
sb                379 fs/fat/inode.c static void fat_hash_init(struct super_block *sb)
sb                381 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                394 fs/fat/inode.c static void dir_hash_init(struct super_block *sb)
sb                396 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                449 fs/fat/inode.c struct inode *fat_iget(struct super_block *sb, loff_t i_pos)
sb                451 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                458 fs/fat/inode.c 		BUG_ON(i->vfs_inode.i_sb != sb);
sb                498 fs/fat/inode.c 	struct super_block *sb = dir->i_sb;
sb                502 fs/fat/inode.c 		fat_fs_error(sb, "corrupted directory (invalid entries)");
sb                506 fs/fat/inode.c 	    MSDOS_I(dir)->i_start == MSDOS_SB(sb)->root_cluster) {
sb                508 fs/fat/inode.c 		fat_fs_error(sb, "corrupted directory (invalid i_start)");
sb                590 fs/fat/inode.c struct inode *fat_build_inode(struct super_block *sb,
sb                596 fs/fat/inode.c 	fat_lock_build_inode(MSDOS_SB(sb));
sb                597 fs/fat/inode.c 	inode = fat_iget(sb, i_pos);
sb                600 fs/fat/inode.c 	inode = new_inode(sb);
sb                605 fs/fat/inode.c 	inode->i_ino = iunique(sb, MSDOS_ROOT_INO);
sb                616 fs/fat/inode.c 	fat_unlock_build_inode(MSDOS_SB(sb));
sb                665 fs/fat/inode.c static void fat_set_state(struct super_block *sb,
sb                670 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                673 fs/fat/inode.c 	if (sb_rdonly(sb) && !force)
sb                680 fs/fat/inode.c 			fat_msg(sb, KERN_WARNING, "Volume was not properly "
sb                686 fs/fat/inode.c 	bh = sb_bread(sb, 0);
sb                688 fs/fat/inode.c 		fat_msg(sb, KERN_ERR, "unable to read boot sector "
sb                730 fs/fat/inode.c static void fat_put_super(struct super_block *sb)
sb                732 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                734 fs/fat/inode.c 	fat_set_state(sb, 0, 0);
sb                744 fs/fat/inode.c static struct inode *fat_alloc_inode(struct super_block *sb)
sb                802 fs/fat/inode.c static int fat_remount(struct super_block *sb, int *flags, char *data)
sb                805 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                808 fs/fat/inode.c 	sync_filesystem(sb);
sb                812 fs/fat/inode.c 	if (new_rdonly != sb_rdonly(sb)) {
sb                814 fs/fat/inode.c 			fat_set_state(sb, 0, 0);
sb                816 fs/fat/inode.c 			fat_set_state(sb, 1, 1);
sb                823 fs/fat/inode.c 	struct super_block *sb = dentry->d_sb;
sb                824 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                825 fs/fat/inode.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                849 fs/fat/inode.c 	struct super_block *sb = inode->i_sb;
sb                850 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                866 fs/fat/inode.c 	bh = sb_bread(sb, blocknr);
sb                868 fs/fat/inode.c 		fat_msg(sb, KERN_ERR, "unable to read inode block "
sb                909 fs/fat/inode.c 		struct super_block *sb = inode->i_sb;
sb                911 fs/fat/inode.c 		mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                912 fs/fat/inode.c 		err = fat_clusters_flush(sb);
sb                913 fs/fat/inode.c 		mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb               1127 fs/fat/inode.c static int parse_options(struct super_block *sb, char *options, int is_vfat,
sb               1348 fs/fat/inode.c 			fat_msg(sb, KERN_INFO, "\"%s\" option is obsolete, "
sb               1354 fs/fat/inode.c 				fat_msg(sb, KERN_ERR,
sb               1365 fs/fat/inode.c 		fat_msg(sb, KERN_WARNING, "utf8 is not a recommended IO charset"
sb               1376 fs/fat/inode.c 		sb->s_flags |= SB_RDONLY;
sb               1377 fs/fat/inode.c 		sb->s_export_op = &fat_export_ops_nostale;
sb               1418 fs/fat/inode.c static unsigned long calc_fat_clusters(struct super_block *sb)
sb               1420 fs/fat/inode.c 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb               1424 fs/fat/inode.c 		unsigned long ent_per_sec = sb->s_blocksize * 8 / sbi->fat_bits;
sb               1428 fs/fat/inode.c 	return sbi->fat_length * sb->s_blocksize * 8 / sbi->fat_bits;
sb               1456 fs/fat/inode.c static int fat_read_bpb(struct super_block *sb, struct fat_boot_sector *b,
sb               1484 fs/fat/inode.c 			fat_msg(sb, KERN_ERR,
sb               1490 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "bogus number of FAT structure");
sb               1501 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "invalid media value (0x%02x)",
sb               1510 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "bogus logical sector size %u",
sb               1517 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "bogus sectors per cluster %u",
sb               1524 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "bogus number of FAT sectors");
sb               1534 fs/fat/inode.c static int fat_read_static_bpb(struct super_block *sb,
sb               1545 fs/fat/inode.c 	bd_sects = i_size_read(sb->s_bdev->bd_inode) / SECTOR_SIZE;
sb               1550 fs/fat/inode.c 			fat_msg(sb, KERN_ERR,
sb               1561 fs/fat/inode.c 			fat_msg(sb, KERN_ERR,
sb               1575 fs/fat/inode.c 			fat_msg(sb, KERN_WARNING,
sb               1582 fs/fat/inode.c 		fat_msg(sb, KERN_INFO,
sb               1603 fs/fat/inode.c int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
sb               1627 fs/fat/inode.c 	sb->s_fs_info = sbi;
sb               1629 fs/fat/inode.c 	sb->s_flags |= SB_NODIRATIME;
sb               1630 fs/fat/inode.c 	sb->s_magic = MSDOS_SUPER_MAGIC;
sb               1631 fs/fat/inode.c 	sb->s_op = &fat_sops;
sb               1632 fs/fat/inode.c 	sb->s_export_op = &fat_export_ops;
sb               1637 fs/fat/inode.c 	sb->s_time_gran = 1;
sb               1642 fs/fat/inode.c 	error = parse_options(sb, data, isvfat, silent, &debug, &sbi->options);
sb               1646 fs/fat/inode.c 	setup(sb); /* flavour-specific stuff that needs options */
sb               1649 fs/fat/inode.c 	sb_min_blocksize(sb, 512);
sb               1650 fs/fat/inode.c 	bh = sb_bread(sb, 0);
sb               1652 fs/fat/inode.c 		fat_msg(sb, KERN_ERR, "unable to read boot sector");
sb               1656 fs/fat/inode.c 	error = fat_read_bpb(sb, (struct fat_boot_sector *)bh->b_data, silent,
sb               1659 fs/fat/inode.c 		error = fat_read_static_bpb(sb,
sb               1672 fs/fat/inode.c 	if (logical_sector_size < sb->s_blocksize) {
sb               1673 fs/fat/inode.c 		fat_msg(sb, KERN_ERR, "logical sector size too small for device"
sb               1678 fs/fat/inode.c 	if (logical_sector_size > sb->s_blocksize) {
sb               1681 fs/fat/inode.c 		if (!sb_set_blocksize(sb, logical_sector_size)) {
sb               1682 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "unable to set blocksize %u",
sb               1688 fs/fat/inode.c 		bh_resize = sb_bread(sb, 0);
sb               1690 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "unable to read boot sector"
sb               1692 fs/fat/inode.c 			       sb->s_blocksize);
sb               1699 fs/fat/inode.c 	sbi->cluster_size = sb->s_blocksize * sbi->sec_per_clus;
sb               1709 fs/fat/inode.c 	sb->s_maxbytes = 0xffffffff;
sb               1711 fs/fat/inode.c 	sb->s_time_min = ts.tv_sec;
sb               1715 fs/fat/inode.c 	sb->s_time_max = ts.tv_sec;
sb               1731 fs/fat/inode.c 		fsinfo_bh = sb_bread(sb, sbi->fsinfo_sector);
sb               1733 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "bread failed, FSINFO block"
sb               1740 fs/fat/inode.c 			fat_msg(sb, KERN_WARNING, "Invalid FSINFO signature: "
sb               1761 fs/fat/inode.c 	sbi->dir_per_block = sb->s_blocksize / sizeof(struct msdos_dir_entry);
sb               1768 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "bogus number of directory entries"
sb               1774 fs/fat/inode.c 		* sizeof(struct msdos_dir_entry) / sb->s_blocksize;
sb               1792 fs/fat/inode.c 	fat_clusters = calc_fat_clusters(sb);
sb               1794 fs/fat/inode.c 	if (total_clusters > max_fat(sb)) {
sb               1796 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "count of clusters too big (%u)",
sb               1811 fs/fat/inode.c 	fat_hash_init(sb);
sb               1812 fs/fat/inode.c 	dir_hash_init(sb);
sb               1813 fs/fat/inode.c 	fat_ent_access_init(sb);
sb               1831 fs/fat/inode.c 		fat_msg(sb, KERN_ERR, "codepage %s not found", buf);
sb               1839 fs/fat/inode.c 			fat_msg(sb, KERN_ERR, "IO charset %s not found",
sb               1846 fs/fat/inode.c 	fat_inode = new_inode(sb);
sb               1851 fs/fat/inode.c 	fsinfo_inode = new_inode(sb);
sb               1858 fs/fat/inode.c 	root_inode = new_inode(sb);
sb               1871 fs/fat/inode.c 	sb->s_root = d_make_root(root_inode);
sb               1872 fs/fat/inode.c 	if (!sb->s_root) {
sb               1873 fs/fat/inode.c 		fat_msg(sb, KERN_ERR, "get root inode failed");
sb               1878 fs/fat/inode.c 		struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb               1880 fs/fat/inode.c 			fat_msg(sb, KERN_WARNING,
sb               1885 fs/fat/inode.c 	fat_set_state(sb, 1, 0);
sb               1891 fs/fat/inode.c 		fat_msg(sb, KERN_INFO, "Can't find a valid FAT filesystem");
sb               1901 fs/fat/inode.c 	sb->s_fs_info = NULL;
sb               1937 fs/fat/inode.c int fat_flush_inodes(struct super_block *sb, struct inode *i1, struct inode *i2)
sb               1940 fs/fat/inode.c 	if (!MSDOS_SB(sb)->options.flush)
sb               1947 fs/fat/inode.c 		struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping;
sb                 21 fs/fat/misc.c  void __fat_fs_error(struct super_block *sb, int report, const char *fmt, ...)
sb                 23 fs/fat/misc.c  	struct fat_mount_options *opts = &MSDOS_SB(sb)->options;
sb                 31 fs/fat/misc.c  		fat_msg(sb, KERN_ERR, "error, %pV", &vaf);
sb                 36 fs/fat/misc.c  		panic("FAT-fs (%s): fs panic from previous error\n", sb->s_id);
sb                 37 fs/fat/misc.c  	else if (opts->errors == FAT_ERRORS_RO && !sb_rdonly(sb)) {
sb                 38 fs/fat/misc.c  		sb->s_flags |= SB_RDONLY;
sb                 39 fs/fat/misc.c  		fat_msg(sb, KERN_ERR, "Filesystem has been set read-only");
sb                 48 fs/fat/misc.c  void fat_msg(struct super_block *sb, const char *level, const char *fmt, ...)
sb                 56 fs/fat/misc.c  	printk("%sFAT-fs (%s): %pV\n", level, sb->s_id, &vaf);
sb                 62 fs/fat/misc.c  int fat_clusters_flush(struct super_block *sb)
sb                 64 fs/fat/misc.c  	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                 71 fs/fat/misc.c  	bh = sb_bread(sb, sbi->fsinfo_sector);
sb                 73 fs/fat/misc.c  		fat_msg(sb, KERN_ERR, "bread failed in fat_clusters_flush");
sb                 80 fs/fat/misc.c  		fat_msg(sb, KERN_ERR, "Invalid FSINFO signature: "
sb                103 fs/fat/misc.c  	struct super_block *sb = inode->i_sb;
sb                104 fs/fat/misc.c  	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                155 fs/fat/misc.c  		fat_fs_error(sb, "clusters badly computed (%d != %llu)",
sb                204 fs/fat/namei_msdos.c 	struct super_block *sb = dir->i_sb;
sb                209 fs/fat/namei_msdos.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                216 fs/fat/namei_msdos.c 		inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                222 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                267 fs/fat/namei_msdos.c 	struct super_block *sb = dir->i_sb;
sb                274 fs/fat/namei_msdos.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                277 fs/fat/namei_msdos.c 				msdos_name, &MSDOS_SB(sb)->options);
sb                292 fs/fat/namei_msdos.c 	inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                303 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                305 fs/fat/namei_msdos.c 		err = fat_flush_inodes(sb, dir, inode);
sb                312 fs/fat/namei_msdos.c 	struct super_block *sb = dir->i_sb;
sb                317 fs/fat/namei_msdos.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                334 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                336 fs/fat/namei_msdos.c 		err = fat_flush_inodes(sb, dir, inode);
sb                344 fs/fat/namei_msdos.c 	struct super_block *sb = dir->i_sb;
sb                351 fs/fat/namei_msdos.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                354 fs/fat/namei_msdos.c 				msdos_name, &MSDOS_SB(sb)->options);
sb                376 fs/fat/namei_msdos.c 	inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                389 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                390 fs/fat/namei_msdos.c 	fat_flush_inodes(sb, dir, inode);
sb                396 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                404 fs/fat/namei_msdos.c 	struct super_block *sb = inode->i_sb;
sb                408 fs/fat/namei_msdos.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                420 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                422 fs/fat/namei_msdos.c 		err = fat_flush_inodes(sb, dir, inode);
sb                600 fs/fat/namei_msdos.c 	struct super_block *sb = old_dir->i_sb;
sb                607 fs/fat/namei_msdos.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                626 fs/fat/namei_msdos.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                628 fs/fat/namei_msdos.c 		err = fat_flush_inodes(sb, old_dir, new_dir);
sb                644 fs/fat/namei_msdos.c static void setup(struct super_block *sb)
sb                646 fs/fat/namei_msdos.c 	MSDOS_SB(sb)->dir_ops = &msdos_dir_inode_operations;
sb                647 fs/fat/namei_msdos.c 	sb->s_d_op = &msdos_dentry_operations;
sb                648 fs/fat/namei_msdos.c 	sb->s_flags |= SB_NOATIME;
sb                651 fs/fat/namei_msdos.c static int msdos_fill_super(struct super_block *sb, void *data, int silent)
sb                653 fs/fat/namei_msdos.c 	return fat_fill_super(sb, data, silent, 0, setup);
sb                704 fs/fat/namei_vfat.c 	struct super_block *sb = dir->i_sb;
sb                710 fs/fat/namei_vfat.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                721 fs/fat/namei_vfat.c 	inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                744 fs/fat/namei_vfat.c 		mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                750 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                755 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                762 fs/fat/namei_vfat.c 	struct super_block *sb = dir->i_sb;
sb                768 fs/fat/namei_vfat.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                776 fs/fat/namei_vfat.c 	inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                788 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                795 fs/fat/namei_vfat.c 	struct super_block *sb = dir->i_sb;
sb                799 fs/fat/namei_vfat.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                818 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                826 fs/fat/namei_vfat.c 	struct super_block *sb = dir->i_sb;
sb                830 fs/fat/namei_vfat.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                844 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                851 fs/fat/namei_vfat.c 	struct super_block *sb = dir->i_sb;
sb                857 fs/fat/namei_vfat.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                871 fs/fat/namei_vfat.c 	inode = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                885 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                891 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb                906 fs/fat/namei_vfat.c 	struct super_block *sb = old_dir->i_sb;
sb                914 fs/fat/namei_vfat.c 	mutex_lock(&MSDOS_SB(sb)->s_lock);
sb                989 fs/fat/namei_vfat.c 	mutex_unlock(&MSDOS_SB(sb)->s_lock);
sb               1039 fs/fat/namei_vfat.c static void setup(struct super_block *sb)
sb               1041 fs/fat/namei_vfat.c 	MSDOS_SB(sb)->dir_ops = &vfat_dir_inode_operations;
sb               1042 fs/fat/namei_vfat.c 	if (MSDOS_SB(sb)->options.name_check != 's')
sb               1043 fs/fat/namei_vfat.c 		sb->s_d_op = &vfat_ci_dentry_ops;
sb               1045 fs/fat/namei_vfat.c 		sb->s_d_op = &vfat_dentry_ops;
sb               1048 fs/fat/namei_vfat.c static int vfat_fill_super(struct super_block *sb, void *data, int silent)
sb               1050 fs/fat/namei_vfat.c 	return fat_fill_super(sb, data, silent, 1, setup);
sb                 23 fs/fat/nfs.c   static struct inode *fat_dget(struct super_block *sb, int i_logstart)
sb                 25 fs/fat/nfs.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                 33 fs/fat/nfs.c   		BUG_ON(i->vfs_inode.i_sb != sb);
sb                 44 fs/fat/nfs.c   static struct inode *fat_ilookup(struct super_block *sb, u64 ino, loff_t i_pos)
sb                 46 fs/fat/nfs.c   	if (MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO)
sb                 47 fs/fat/nfs.c   		return fat_iget(sb, i_pos);
sb                 52 fs/fat/nfs.c   		return ilookup(sb, ino);
sb                 56 fs/fat/nfs.c   static struct inode *__fat_nfs_get_inode(struct super_block *sb,
sb                 59 fs/fat/nfs.c   	struct inode *inode = fat_ilookup(sb, ino, i_pos);
sb                 65 fs/fat/nfs.c   	if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) {
sb                 70 fs/fat/nfs.c   		fat_get_blknr_offset(MSDOS_SB(sb), i_pos, &blocknr, &offset);
sb                 71 fs/fat/nfs.c   		bh = sb_bread(sb, blocknr);
sb                 73 fs/fat/nfs.c   			fat_msg(sb, KERN_ERR,
sb                 85 fs/fat/nfs.c   			inode = fat_build_inode(sb, &de[offset], i_pos);
sb                 92 fs/fat/nfs.c   static struct inode *fat_nfs_get_inode(struct super_block *sb,
sb                 96 fs/fat/nfs.c   	return __fat_nfs_get_inode(sb, ino, generation, 0);
sb                142 fs/fat/nfs.c   static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                145 fs/fat/nfs.c   	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                149 fs/fat/nfs.c   static struct dentry *fat_fh_to_dentry_nostale(struct super_block *sb,
sb                171 fs/fat/nfs.c   	inode = __fat_nfs_get_inode(sb, 0, fid->i_gen, i_pos);
sb                180 fs/fat/nfs.c   static struct dentry *fat_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                183 fs/fat/nfs.c   	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                187 fs/fat/nfs.c   static struct dentry *fat_fh_to_parent_nostale(struct super_block *sb,
sb                202 fs/fat/nfs.c   		inode = __fat_nfs_get_inode(sb, 0, fid->parent_i_gen, i_pos);
sb                214 fs/fat/nfs.c   struct inode *fat_rebuild_parent(struct super_block *sb, int parent_logstart)
sb                221 fs/fat/nfs.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                223 fs/fat/nfs.c   	struct buffer_head *parent_bh = sb_bread(sb, blknr);
sb                225 fs/fat/nfs.c   		fat_msg(sb, KERN_ERR,
sb                234 fs/fat/nfs.c   	dummy_grand_parent = fat_dget(sb, search_clus);
sb                236 fs/fat/nfs.c   		dummy_grand_parent = new_inode(sb);
sb                242 fs/fat/nfs.c   		dummy_grand_parent->i_ino = iunique(sb, MSDOS_ROOT_INO);
sb                248 fs/fat/nfs.c   		parent = fat_build_inode(sb, sinfo.de, sinfo.i_pos);
sb                264 fs/fat/nfs.c   	struct super_block *sb = child_dir->d_sb;
sb                268 fs/fat/nfs.c   	struct msdos_sb_info *sbi = MSDOS_SB(sb);
sb                272 fs/fat/nfs.c   		parent_inode = fat_dget(sb, parent_logstart);
sb                274 fs/fat/nfs.c   			parent_inode = fat_rebuild_parent(sb, parent_logstart);
sb                 69 fs/freevxfs/vxfs_bmap.c 	struct super_block *sb = ip->i_sb;
sb                 71 fs/freevxfs/vxfs_bmap.c 	struct vxfs_sb_info *sbi = VXFS_SBI(sb);
sb                 72 fs/freevxfs/vxfs_bmap.c 	unsigned long bsize = sb->s_blocksize;
sb                 76 fs/freevxfs/vxfs_bmap.c 	if (indsize > sb->s_blocksize)
sb                 91 fs/freevxfs/vxfs_bmap.c 		buf = sb_bread(sb,
sb                116 fs/freevxfs/vxfs_super.c static int vxfs_remount(struct super_block *sb, int *flags, char *data)
sb                118 fs/freevxfs/vxfs_super.c 	sync_filesystem(sb);
sb                123 fs/freevxfs/vxfs_super.c static struct inode *vxfs_alloc_inode(struct super_block *sb)
sb                 44 fs/fs-writeback.c 	struct super_block *sb;
sb               1135 fs/fs-writeback.c 	struct super_block *sb = inode->i_sb;
sb               1139 fs/fs-writeback.c 		spin_lock_irqsave(&sb->s_inode_wblist_lock, flags);
sb               1141 fs/fs-writeback.c 			list_add_tail(&inode->i_wb_list, &sb->s_inodes_wb);
sb               1144 fs/fs-writeback.c 		spin_unlock_irqrestore(&sb->s_inode_wblist_lock, flags);
sb               1153 fs/fs-writeback.c 	struct super_block *sb = inode->i_sb;
sb               1157 fs/fs-writeback.c 		spin_lock_irqsave(&sb->s_inode_wblist_lock, flags);
sb               1162 fs/fs-writeback.c 		spin_unlock_irqrestore(&sb->s_inode_wblist_lock, flags);
sb               1235 fs/fs-writeback.c 	struct super_block *sb = NULL;
sb               1257 fs/fs-writeback.c 		if (sb && sb != inode->i_sb)
sb               1259 fs/fs-writeback.c 		sb = inode->i_sb;
sb               1270 fs/fs-writeback.c 		sb = wb_inode(tmp.prev)->i_sb;
sb               1273 fs/fs-writeback.c 			if (inode->i_sb == sb)
sb               1624 fs/fs-writeback.c static long writeback_sb_inodes(struct super_block *sb,
sb               1646 fs/fs-writeback.c 		if (inode->i_sb != sb) {
sb               1647 fs/fs-writeback.c 			if (work->sb) {
sb               1774 fs/fs-writeback.c 		struct super_block *sb = inode->i_sb;
sb               1776 fs/fs-writeback.c 		if (!trylock_super(sb)) {
sb               1785 fs/fs-writeback.c 		wrote += writeback_sb_inodes(sb, wb, work);
sb               1786 fs/fs-writeback.c 		up_read(&sb->s_umount);
sb               1891 fs/fs-writeback.c 		if (work->sb)
sb               1892 fs/fs-writeback.c 			progress = writeback_sb_inodes(work->sb, wb, work);
sb               2245 fs/fs-writeback.c 	struct super_block *sb = inode->i_sb;
sb               2257 fs/fs-writeback.c 		if (sb->s_op->dirty_inode)
sb               2258 fs/fs-writeback.c 			sb->s_op->dirty_inode(inode, flags);
sb               2365 fs/fs-writeback.c static void wait_sb_inodes(struct super_block *sb)
sb               2373 fs/fs-writeback.c 	WARN_ON(!rwsem_is_locked(&sb->s_umount));
sb               2375 fs/fs-writeback.c 	mutex_lock(&sb->s_sync_lock);
sb               2387 fs/fs-writeback.c 	spin_lock_irq(&sb->s_inode_wblist_lock);
sb               2388 fs/fs-writeback.c 	list_splice_init(&sb->s_inodes_wb, &sync_list);
sb               2408 fs/fs-writeback.c 		list_move_tail(&inode->i_wb_list, &sb->s_inodes_wb);
sb               2418 fs/fs-writeback.c 		spin_unlock_irq(&sb->s_inode_wblist_lock);
sb               2424 fs/fs-writeback.c 			spin_lock_irq(&sb->s_inode_wblist_lock);
sb               2443 fs/fs-writeback.c 		spin_lock_irq(&sb->s_inode_wblist_lock);
sb               2445 fs/fs-writeback.c 	spin_unlock_irq(&sb->s_inode_wblist_lock);
sb               2447 fs/fs-writeback.c 	mutex_unlock(&sb->s_sync_lock);
sb               2450 fs/fs-writeback.c static void __writeback_inodes_sb_nr(struct super_block *sb, unsigned long nr,
sb               2453 fs/fs-writeback.c 	struct backing_dev_info *bdi = sb->s_bdi;
sb               2456 fs/fs-writeback.c 		.sb			= sb,
sb               2466 fs/fs-writeback.c 	WARN_ON(!rwsem_is_locked(&sb->s_umount));
sb               2468 fs/fs-writeback.c 	bdi_split_work_to_wbs(sb->s_bdi, &work, skip_if_busy);
sb               2482 fs/fs-writeback.c void writeback_inodes_sb_nr(struct super_block *sb,
sb               2486 fs/fs-writeback.c 	__writeback_inodes_sb_nr(sb, nr, reason, false);
sb               2499 fs/fs-writeback.c void writeback_inodes_sb(struct super_block *sb, enum wb_reason reason)
sb               2501 fs/fs-writeback.c 	return writeback_inodes_sb_nr(sb, get_nr_dirty_pages(), reason);
sb               2512 fs/fs-writeback.c void try_to_writeback_inodes_sb(struct super_block *sb, enum wb_reason reason)
sb               2514 fs/fs-writeback.c 	if (!down_read_trylock(&sb->s_umount))
sb               2517 fs/fs-writeback.c 	__writeback_inodes_sb_nr(sb, get_nr_dirty_pages(), reason, true);
sb               2518 fs/fs-writeback.c 	up_read(&sb->s_umount);
sb               2529 fs/fs-writeback.c void sync_inodes_sb(struct super_block *sb)
sb               2531 fs/fs-writeback.c 	struct backing_dev_info *bdi = sb->s_bdi;
sb               2534 fs/fs-writeback.c 		.sb		= sb,
sb               2550 fs/fs-writeback.c 	WARN_ON(!rwsem_is_locked(&sb->s_umount));
sb               2558 fs/fs-writeback.c 	wait_sb_inodes(sb);
sb                330 fs/fs_context.c 	struct super_block *sb = fc->root->d_sb;
sb                333 fs/fs_context.c 	deactivate_locked_super(sb);
sb                491 fs/fs_context.c 	struct super_block *sb;
sb                494 fs/fs_context.c 		sb = fc->root->d_sb;
sb                497 fs/fs_context.c 		deactivate_super(sb);
sb                644 fs/fs_context.c 	struct super_block *sb;
sb                652 fs/fs_context.c 	sb = root->d_sb;
sb                653 fs/fs_context.c 	BUG_ON(!sb);
sb                665 fs/fs_context.c 	struct super_block *sb = fc->root->d_sb;
sb                667 fs/fs_context.c 	if (!sb->s_op->remount_fs)
sb                670 fs/fs_context.c 	return sb->s_op->remount_fs(sb, &fc->sb_flags,
sb                219 fs/fsopen.c    	struct super_block *sb;
sb                235 fs/fsopen.c    		sb = fc->root->d_sb;
sb                236 fs/fsopen.c    		ret = security_sb_kern_mount(sb);
sb                241 fs/fsopen.c    		up_write(&sb->s_umount);
sb                248 fs/fsopen.c    		sb = fc->root->d_sb;
sb                249 fs/fsopen.c    		if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) {
sb                253 fs/fsopen.c    		down_write(&sb->s_umount);
sb                255 fs/fsopen.c    		up_write(&sb->s_umount);
sb                179 fs/fuse/control.c 	if (fc->sb) {
sb                181 fs/fuse/control.c 			clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
sb                182 fs/fuse/control.c 			clear_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
sb                184 fs/fuse/control.c 			set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
sb                185 fs/fuse/control.c 			set_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
sb                321 fs/fuse/control.c static int fuse_ctl_fill_super(struct super_block *sb, struct fs_context *fctx)
sb                327 fs/fuse/control.c 	err = simple_fill_super(sb, FUSE_CTL_SUPER_MAGIC, &empty_descr);
sb                333 fs/fuse/control.c 	fuse_control_sb = sb;
sb                362 fs/fuse/control.c static void fuse_ctl_kill_sb(struct super_block *sb)
sb                372 fs/fuse/control.c 	kill_litter_super(sb);
sb                312 fs/fuse/dev.c  		if (fc->num_background == fc->congestion_threshold && fc->sb) {
sb                313 fs/fuse/dev.c  			clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
sb                314 fs/fuse/dev.c  			clear_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
sb                530 fs/fuse/dev.c  		if (fc->num_background == fc->congestion_threshold && fc->sb) {
sb                531 fs/fuse/dev.c  			set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
sb                532 fs/fuse/dev.c  			set_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
sb               1421 fs/fuse/dev.c  	if (fc->sb) {
sb               1422 fs/fuse/dev.c  		err = fuse_reverse_inval_inode(fc->sb, outarg.ino,
sb               1471 fs/fuse/dev.c  	if (fc->sb)
sb               1472 fs/fuse/dev.c  		err = fuse_reverse_inval_entry(fc->sb, outarg.parent, 0, &name);
sb               1521 fs/fuse/dev.c  	if (fc->sb)
sb               1522 fs/fuse/dev.c  		err = fuse_reverse_inval_entry(fc->sb, outarg.parent,
sb               1565 fs/fuse/dev.c  	if (!fc->sb)
sb               1568 fs/fuse/dev.c  	inode = ilookup5(fc->sb, nodeid, fuse_inode_eq, &nodeid);
sb               1733 fs/fuse/dev.c  	if (fc->sb) {
sb               1736 fs/fuse/dev.c  		inode = ilookup5(fc->sb, nodeid, fuse_inode_eq, &nodeid);
sb                329 fs/fuse/dir.c  int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name,
sb                332 fs/fuse/dir.c  	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                363 fs/fuse/dir.c  	*inode = fuse_iget(sb, outarg->nodeid, outarg->generation,
sb               1005 fs/fuse/dir.c  int fuse_reverse_inval_entry(struct super_block *sb, u64 parent_nodeid,
sb               1013 fs/fuse/dir.c  	parent = ilookup5(sb, parent_nodeid, fuse_inode_eq, &parent_nodeid);
sb                750 fs/fuse/fuse_i.h 	struct super_block *sb;
sb                759 fs/fuse/fuse_i.h static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb)
sb                761 fs/fuse/fuse_i.h 	return sb->s_fs_info;
sb                803 fs/fuse/fuse_i.h struct inode *fuse_iget(struct super_block *sb, u64 nodeid,
sb                807 fs/fuse/fuse_i.h int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name,
sb                970 fs/fuse/fuse_i.h int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx);
sb                977 fs/fuse/fuse_i.h void fuse_kill_sb_anon(struct super_block *sb);
sb               1015 fs/fuse/fuse_i.h int fuse_reverse_inval_inode(struct super_block *sb, u64 nodeid,
sb               1028 fs/fuse/fuse_i.h int fuse_reverse_inval_entry(struct super_block *sb, u64 parent_nodeid,
sb                 72 fs/fuse/inode.c static struct inode *fuse_alloc_inode(struct super_block *sb)
sb                124 fs/fuse/inode.c static int fuse_remount_fs(struct super_block *sb, int *flags, char *data)
sb                126 fs/fuse/inode.c 	sync_filesystem(sb);
sb                285 fs/fuse/inode.c struct inode *fuse_iget(struct super_block *sb, u64 nodeid,
sb                291 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                294 fs/fuse/inode.c 	inode = iget5_locked(sb, nodeid, fuse_inode_eq, fuse_inode_set, &nodeid);
sb                321 fs/fuse/inode.c int fuse_reverse_inval_inode(struct super_block *sb, u64 nodeid,
sb                328 fs/fuse/inode.c 	inode = ilookup5(sb, nodeid, fuse_inode_eq, &nodeid);
sb                365 fs/fuse/inode.c static void fuse_umount_begin(struct super_block *sb)
sb                367 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                385 fs/fuse/inode.c static void fuse_put_super(struct super_block *sb)
sb                387 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                413 fs/fuse/inode.c 	struct super_block *sb = dentry->d_sb;
sb                414 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                558 fs/fuse/inode.c 	struct super_block *sb = root->d_sb;
sb                559 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                572 fs/fuse/inode.c 	if (sb->s_bdev && sb->s_blocksize != FUSE_DEFAULT_BLKSIZE)
sb                573 fs/fuse/inode.c 		seq_printf(m, ",blksize=%lu", sb->s_blocksize);
sb                654 fs/fuse/inode.c static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned mode)
sb                662 fs/fuse/inode.c 	return fuse_iget(sb, 1, 0, &attr, 0, 0);
sb                670 fs/fuse/inode.c static struct dentry *fuse_get_dentry(struct super_block *sb,
sb                673 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb                681 fs/fuse/inode.c 	inode = ilookup5(sb, handle->nodeid, fuse_inode_eq, &handle->nodeid);
sb                689 fs/fuse/inode.c 		err = fuse_lookup_name(sb, handle->nodeid, &name, &outarg,
sb                749 fs/fuse/inode.c static struct dentry *fuse_fh_to_dentry(struct super_block *sb,
sb                760 fs/fuse/inode.c 	return fuse_get_dentry(sb, &handle);
sb                763 fs/fuse/inode.c static struct dentry *fuse_fh_to_parent(struct super_block *sb,
sb                774 fs/fuse/inode.c 	return fuse_get_dentry(sb, &parent);
sb                939 fs/fuse/inode.c 				fc->sb->s_time_gran = arg->time_gran;
sb                943 fs/fuse/inode.c 				fc->sb->s_xattr = fuse_acl_xattr_handlers;
sb                960 fs/fuse/inode.c 		fc->sb->s_bdi->ra_pages =
sb                961 fs/fuse/inode.c 				min(fc->sb->s_bdi->ra_pages, ra_pages);
sb                981 fs/fuse/inode.c 	ia->in.max_readahead = fc->sb->s_bdi->ra_pages * PAGE_SIZE;
sb               1019 fs/fuse/inode.c static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb)
sb               1024 fs/fuse/inode.c 	if (sb->s_bdev) {
sb               1030 fs/fuse/inode.c 		bdi_put(sb->s_bdi);
sb               1031 fs/fuse/inode.c 		sb->s_bdi = &noop_backing_dev_info;
sb               1033 fs/fuse/inode.c 	err = super_setup_bdi_name(sb, "%u:%u%s", MAJOR(fc->dev),
sb               1038 fs/fuse/inode.c 	sb->s_bdi->ra_pages = VM_READAHEAD_PAGES;
sb               1040 fs/fuse/inode.c 	sb->s_bdi->capabilities = BDI_CAP_NO_ACCT_WB | BDI_CAP_STRICTLIMIT;
sb               1054 fs/fuse/inode.c 	bdi_set_max_ratio(sb->s_bdi, 1);
sb               1119 fs/fuse/inode.c int fuse_fill_super_common(struct super_block *sb, struct fuse_fs_context *ctx)
sb               1122 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb               1128 fs/fuse/inode.c 	if (sb->s_flags & SB_MANDLOCK)
sb               1131 fs/fuse/inode.c 	sb->s_flags &= ~(SB_NOSEC | SB_I_VERSION);
sb               1136 fs/fuse/inode.c 		if (!sb_set_blocksize(sb, ctx->blksize))
sb               1140 fs/fuse/inode.c 		sb->s_blocksize = PAGE_SIZE;
sb               1141 fs/fuse/inode.c 		sb->s_blocksize_bits = PAGE_SHIFT;
sb               1144 fs/fuse/inode.c 	sb->s_subtype = ctx->subtype;
sb               1146 fs/fuse/inode.c 	sb->s_magic = FUSE_SUPER_MAGIC;
sb               1147 fs/fuse/inode.c 	sb->s_op = &fuse_super_operations;
sb               1148 fs/fuse/inode.c 	sb->s_xattr = fuse_xattr_handlers;
sb               1149 fs/fuse/inode.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               1150 fs/fuse/inode.c 	sb->s_time_gran = 1;
sb               1151 fs/fuse/inode.c 	sb->s_export_op = &fuse_export_operations;
sb               1152 fs/fuse/inode.c 	sb->s_iflags |= SB_I_IMA_UNVERIFIABLE_SIGNATURE;
sb               1153 fs/fuse/inode.c 	if (sb->s_user_ns != &init_user_ns)
sb               1154 fs/fuse/inode.c 		sb->s_iflags |= SB_I_UNTRUSTED_MOUNTER;
sb               1160 fs/fuse/inode.c 	if (sb->s_user_ns != &init_user_ns)
sb               1161 fs/fuse/inode.c 		sb->s_xattr = fuse_no_acl_xattr_handlers;
sb               1167 fs/fuse/inode.c 	fc->dev = sb->s_dev;
sb               1168 fs/fuse/inode.c 	fc->sb = sb;
sb               1169 fs/fuse/inode.c 	err = fuse_bdi_init(fc, sb);
sb               1174 fs/fuse/inode.c 	if (sb->s_flags & SB_POSIXACL)
sb               1176 fs/fuse/inode.c 	sb->s_flags |= SB_POSIXACL;
sb               1189 fs/fuse/inode.c 	root = fuse_get_root_inode(sb, ctx->rootmode);
sb               1190 fs/fuse/inode.c 	sb->s_d_op = &fuse_root_dentry_operations;
sb               1195 fs/fuse/inode.c 	sb->s_d_op = &fuse_dentry_operations;
sb               1207 fs/fuse/inode.c 	sb->s_root = root_dentry;
sb               1222 fs/fuse/inode.c static int fuse_fill_super(struct super_block *sb, struct fs_context *fsc)
sb               1239 fs/fuse/inode.c 	    (file->f_cred->user_ns != sb->s_user_ns))
sb               1248 fs/fuse/inode.c 	fuse_conn_init(fc, sb->s_user_ns, &fuse_dev_fiq_ops, NULL);
sb               1250 fs/fuse/inode.c 	sb->s_fs_info = fc;
sb               1252 fs/fuse/inode.c 	err = fuse_fill_super_common(sb, ctx);
sb               1261 fs/fuse/inode.c 	fuse_send_init(get_fuse_conn_super(sb));
sb               1266 fs/fuse/inode.c 	sb->s_fs_info = NULL;
sb               1321 fs/fuse/inode.c static void fuse_sb_destroy(struct super_block *sb)
sb               1323 fs/fuse/inode.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb               1333 fs/fuse/inode.c 		fc->sb = NULL;
sb               1338 fs/fuse/inode.c void fuse_kill_sb_anon(struct super_block *sb)
sb               1340 fs/fuse/inode.c 	fuse_sb_destroy(sb);
sb               1341 fs/fuse/inode.c 	kill_anon_super(sb);
sb               1356 fs/fuse/inode.c static void fuse_kill_sb_blk(struct super_block *sb)
sb               1358 fs/fuse/inode.c 	fuse_sb_destroy(sb);
sb               1359 fs/fuse/inode.c 	kill_block_super(sb);
sb               1036 fs/fuse/virtio_fs.c static int virtio_fs_fill_super(struct super_block *sb)
sb               1038 fs/fuse/virtio_fs.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb               1077 fs/fuse/virtio_fs.c 	err = fuse_fill_super_common(sb, &ctx);
sb               1104 fs/fuse/virtio_fs.c static void virtio_kill_sb(struct super_block *sb)
sb               1106 fs/fuse/virtio_fs.c 	struct fuse_conn *fc = get_fuse_conn_super(sb);
sb               1112 fs/fuse/virtio_fs.c 		return fuse_kill_sb_anon(sb);
sb               1123 fs/fuse/virtio_fs.c 	fuse_kill_sb_anon(sb);
sb               1135 fs/fuse/virtio_fs.c static int virtio_fs_test_super(struct super_block *sb,
sb               1140 fs/fuse/virtio_fs.c 	return fc->iq.priv == get_fuse_conn_super(sb)->iq.priv;
sb               1143 fs/fuse/virtio_fs.c static int virtio_fs_set_super(struct super_block *sb,
sb               1148 fs/fuse/virtio_fs.c 	err = get_anon_bdev(&sb->s_dev);
sb               1158 fs/fuse/virtio_fs.c 	struct super_block *sb;
sb               1186 fs/fuse/virtio_fs.c 	sb = sget_fc(fsc, virtio_fs_test_super, virtio_fs_set_super);
sb               1188 fs/fuse/virtio_fs.c 	if (IS_ERR(sb))
sb               1189 fs/fuse/virtio_fs.c 		return PTR_ERR(sb);
sb               1191 fs/fuse/virtio_fs.c 	if (!sb->s_root) {
sb               1192 fs/fuse/virtio_fs.c 		err = virtio_fs_fill_super(sb);
sb               1194 fs/fuse/virtio_fs.c 			deactivate_locked_super(sb);
sb               1198 fs/fuse/virtio_fs.c 		sb->s_flags |= SB_ACTIVE;
sb               1202 fs/fuse/virtio_fs.c 	fsc->root = dget(sb->s_root);
sb                 32 fs/gfs2/export.c 	struct super_block *sb = inode->i_sb;
sb                 49 fs/gfs2/export.c 	if (!parent || inode == d_inode(sb->s_root))
sb                131 fs/gfs2/export.c static struct dentry *gfs2_get_dentry(struct super_block *sb,
sb                134 fs/gfs2/export.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                144 fs/gfs2/export.c static struct dentry *gfs2_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                160 fs/gfs2/export.c 		return gfs2_get_dentry(sb, &this);
sb                166 fs/gfs2/export.c static struct dentry *gfs2_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                181 fs/gfs2/export.c 		return gfs2_get_dentry(sb, &parent);
sb                913 fs/gfs2/file.c 	struct super_block *sb = inode->i_sb;
sb                941 fs/gfs2/file.c 		error = sb_issue_zeroout(sb, iomap.addr >> inode->i_blkbits,
sb                 54 fs/gfs2/inode.c static struct inode *gfs2_iget(struct super_block *sb, u64 no_addr)
sb                 59 fs/gfs2/inode.c 	inode = iget5_locked(sb, no_addr, iget_test, iget_set, &no_addr);
sb                120 fs/gfs2/inode.c struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
sb                131 fs/gfs2/inode.c 	inode = gfs2_iget(sb, no_addr);
sb                218 fs/gfs2/inode.c 	struct super_block *sb = sdp->sd_vfs;
sb                222 fs/gfs2/inode.c 	inode = gfs2_inode_lookup(sb, DT_UNKNOWN, no_addr, 0, blktype);
sb                280 fs/gfs2/inode.c 	struct super_block *sb = dir->i_sb;
sb                292 fs/gfs2/inode.c 	     dir == d_inode(sb->s_root))) {
sb               1277 fs/gfs2/inode.c 	struct super_block *sb = dir->i_sb;
sb               1288 fs/gfs2/inode.c 		if (dir == d_inode(sb->s_root)) {
sb                 91 fs/gfs2/inode.h extern struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type, 
sb                696 fs/gfs2/log.c  	struct super_block *sb = sdp->sd_vfs;
sb                746 fs/gfs2/log.c  		     sb->s_blocksize - LH_V1_SIZE - 4);
sb                749 fs/gfs2/log.c  	gfs2_log_write(sdp, page, sb->s_blocksize, 0, dblock);
sb                264 fs/gfs2/lops.c 	struct super_block *sb = sdp->sd_vfs;
sb                268 fs/gfs2/lops.c 	bio_set_dev(bio, sb->s_bdev);
sb                371 fs/gfs2/lops.c 	struct super_block *sb = sdp->sd_vfs;
sb                372 fs/gfs2/lops.c 	gfs2_log_write(sdp, page, sb->s_blocksize, 0,
sb                 72 fs/gfs2/ops_fstype.c static struct gfs2_sbd *init_sbd(struct super_block *sb)
sb                 81 fs/gfs2/ops_fstype.c 	sdp->sd_vfs = sb;
sb                 85 fs/gfs2/ops_fstype.c 	sb->s_fs_info = sdp;
sb                117 fs/gfs2/ops_fstype.c 	mapping->host = sb->s_bdev->bd_inode;
sb                163 fs/gfs2/ops_fstype.c 	struct gfs2_sb_host *sb = &sdp->sd_sb;
sb                165 fs/gfs2/ops_fstype.c 	if (sb->sb_magic != GFS2_MAGIC ||
sb                166 fs/gfs2/ops_fstype.c 	    sb->sb_type != GFS2_METATYPE_SB) {
sb                174 fs/gfs2/ops_fstype.c 	if (sb->sb_fs_format == GFS2_FORMAT_FS &&
sb                175 fs/gfs2/ops_fstype.c 	    sb->sb_multihost_format == GFS2_FORMAT_MULTI)
sb                196 fs/gfs2/ops_fstype.c 	struct gfs2_sb_host *sb = &sdp->sd_sb;
sb                200 fs/gfs2/ops_fstype.c 	sb->sb_magic = be32_to_cpu(str->sb_header.mh_magic);
sb                201 fs/gfs2/ops_fstype.c 	sb->sb_type = be32_to_cpu(str->sb_header.mh_type);
sb                202 fs/gfs2/ops_fstype.c 	sb->sb_format = be32_to_cpu(str->sb_header.mh_format);
sb                203 fs/gfs2/ops_fstype.c 	sb->sb_fs_format = be32_to_cpu(str->sb_fs_format);
sb                204 fs/gfs2/ops_fstype.c 	sb->sb_multihost_format = be32_to_cpu(str->sb_multihost_format);
sb                205 fs/gfs2/ops_fstype.c 	sb->sb_bsize = be32_to_cpu(str->sb_bsize);
sb                206 fs/gfs2/ops_fstype.c 	sb->sb_bsize_shift = be32_to_cpu(str->sb_bsize_shift);
sb                207 fs/gfs2/ops_fstype.c 	sb->sb_master_dir.no_addr = be64_to_cpu(str->sb_master_dir.no_addr);
sb                208 fs/gfs2/ops_fstype.c 	sb->sb_master_dir.no_formal_ino = be64_to_cpu(str->sb_master_dir.no_formal_ino);
sb                209 fs/gfs2/ops_fstype.c 	sb->sb_root_dir.no_addr = be64_to_cpu(str->sb_root_dir.no_addr);
sb                210 fs/gfs2/ops_fstype.c 	sb->sb_root_dir.no_formal_ino = be64_to_cpu(str->sb_root_dir.no_formal_ino);
sb                212 fs/gfs2/ops_fstype.c 	memcpy(sb->sb_lockproto, str->sb_lockproto, GFS2_LOCKNAME_LEN);
sb                213 fs/gfs2/ops_fstype.c 	memcpy(sb->sb_locktable, str->sb_locktable, GFS2_LOCKNAME_LEN);
sb                238 fs/gfs2/ops_fstype.c 	struct super_block *sb = sdp->sd_vfs;
sb                252 fs/gfs2/ops_fstype.c 	bio->bi_iter.bi_sector = sector * (sb->s_blocksize >> 9);
sb                253 fs/gfs2/ops_fstype.c 	bio_set_dev(bio, sb->s_bdev);
sb                441 fs/gfs2/ops_fstype.c static int gfs2_lookup_root(struct super_block *sb, struct dentry **dptr,
sb                444 fs/gfs2/ops_fstype.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                448 fs/gfs2/ops_fstype.c 	inode = gfs2_inode_lookup(sb, DT_DIR, no_addr, 0,
sb                465 fs/gfs2/ops_fstype.c 	struct super_block *sb = sdp->sd_vfs;
sb                484 fs/gfs2/ops_fstype.c 	if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) {
sb                488 fs/gfs2/ops_fstype.c 		       sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev));
sb                498 fs/gfs2/ops_fstype.c 	sb_set_blocksize(sb, sdp->sd_sb.sb_bsize);
sb                502 fs/gfs2/ops_fstype.c 	ret = gfs2_lookup_root(sb, &sdp->sd_root_dir, no_addr, "root");
sb                508 fs/gfs2/ops_fstype.c 	ret = gfs2_lookup_root(sb, &sdp->sd_master_dir, no_addr, "master");
sb                513 fs/gfs2/ops_fstype.c 	sb->s_root = dget(sdp->sd_args.ar_meta ? sdp->sd_master_dir : sdp->sd_root_dir);
sb               1025 fs/gfs2/ops_fstype.c 	struct super_block *sb = sdp->sd_vfs;
sb               1029 fs/gfs2/ops_fstype.c 	sprintf(ro, "RDONLY=%d", sb_rdonly(sb));
sb               1042 fs/gfs2/ops_fstype.c static int gfs2_fill_super(struct super_block *sb, struct fs_context *fc)
sb               1050 fs/gfs2/ops_fstype.c 	sdp = init_sbd(sb);
sb               1058 fs/gfs2/ops_fstype.c                 sb->s_flags |= SB_RDONLY;
sb               1062 fs/gfs2/ops_fstype.c 		sb->s_flags |= SB_POSIXACL;
sb               1066 fs/gfs2/ops_fstype.c 	sb->s_flags |= SB_NOSEC;
sb               1067 fs/gfs2/ops_fstype.c 	sb->s_magic = GFS2_MAGIC;
sb               1068 fs/gfs2/ops_fstype.c 	sb->s_op = &gfs2_super_ops;
sb               1069 fs/gfs2/ops_fstype.c 	sb->s_d_op = &gfs2_dops;
sb               1070 fs/gfs2/ops_fstype.c 	sb->s_export_op = &gfs2_export_ops;
sb               1071 fs/gfs2/ops_fstype.c 	sb->s_xattr = gfs2_xattr_handlers;
sb               1072 fs/gfs2/ops_fstype.c 	sb->s_qcop = &gfs2_quotactl_ops;
sb               1073 fs/gfs2/ops_fstype.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP;
sb               1074 fs/gfs2/ops_fstype.c 	sb_dqopt(sb)->flags |= DQUOT_QUOTA_SYS_FILE;
sb               1075 fs/gfs2/ops_fstype.c 	sb->s_time_gran = 1;
sb               1076 fs/gfs2/ops_fstype.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               1080 fs/gfs2/ops_fstype.c 	sdp->sd_sb.sb_bsize = sb_min_blocksize(sb, GFS2_BASIC_BLOCK);
sb               1081 fs/gfs2/ops_fstype.c 	sdp->sd_sb.sb_bsize_shift = sb->s_blocksize_bits;
sb               1101 fs/gfs2/ops_fstype.c 		sb->s_fs_info = NULL;
sb               1171 fs/gfs2/ops_fstype.c 	if (!sb_rdonly(sb)) {
sb               1192 fs/gfs2/ops_fstype.c 	if (sb->s_root)
sb               1193 fs/gfs2/ops_fstype.c 		dput(sb->s_root);
sb               1194 fs/gfs2/ops_fstype.c 	sb->s_root = NULL;
sb               1206 fs/gfs2/ops_fstype.c 	sb->s_fs_info = NULL;
sb               1448 fs/gfs2/ops_fstype.c 	struct super_block *sb = fc->root->d_sb;
sb               1449 fs/gfs2/ops_fstype.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1455 fs/gfs2/ops_fstype.c 	sync_filesystem(sb);
sb               1493 fs/gfs2/ops_fstype.c 	if ((sb->s_flags ^ fc->sb_flags) & SB_RDONLY) {
sb               1507 fs/gfs2/ops_fstype.c 		sb->s_flags |= SB_POSIXACL;
sb               1509 fs/gfs2/ops_fstype.c 		sb->s_flags &= ~SB_POSIXACL;
sb               1624 fs/gfs2/ops_fstype.c static void gfs2_kill_sb(struct super_block *sb)
sb               1626 fs/gfs2/ops_fstype.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1629 fs/gfs2/ops_fstype.c 		kill_block_super(sb);
sb               1638 fs/gfs2/ops_fstype.c 	shrink_dcache_sb(sb);
sb               1639 fs/gfs2/ops_fstype.c 	kill_block_super(sb);
sb               1271 fs/gfs2/quota.c int gfs2_quota_sync(struct super_block *sb, int type)
sb               1273 fs/gfs2/quota.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1485 fs/gfs2/quota.c 			       int (*fxn)(struct super_block *sb, int type),
sb               1579 fs/gfs2/quota.c static int gfs2_quota_get_state(struct super_block *sb, struct qc_state *state)
sb               1581 fs/gfs2/quota.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1610 fs/gfs2/quota.c static int gfs2_get_dqblk(struct super_block *sb, struct kqid qid,
sb               1613 fs/gfs2/quota.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1649 fs/gfs2/quota.c static int gfs2_set_dqblk(struct super_block *sb, struct kqid qid,
sb               1652 fs/gfs2/quota.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                 31 fs/gfs2/quota.h extern int gfs2_quota_sync(struct super_block *sb, int type);
sb               1322 fs/gfs2/rgrp.c 	struct super_block *sb = sdp->sd_vfs;
sb               1351 fs/gfs2/rgrp.c 						rv = sb_issue_discard(sb,
sb               1369 fs/gfs2/rgrp.c 		rv = sb_issue_discard(sb, start, nr_blks, GFP_NOFS, 0);
sb                333 fs/gfs2/super.c int gfs2_statfs_sync(struct super_block *sb, int type)
sb                335 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                344 fs/gfs2/super.c 	sb_start_write(sb);
sb                383 fs/gfs2/super.c 	sb_end_write(sb);
sb                638 fs/gfs2/super.c static void gfs2_put_super(struct super_block *sb)
sb                640 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                661 fs/gfs2/super.c 	if (!sb_rdonly(sb)) {
sb                707 fs/gfs2/super.c static int gfs2_sync_fs(struct super_block *sb, int wait)
sb                709 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                711 fs/gfs2/super.c 	gfs2_quota_sync(sb, -1);
sb                723 fs/gfs2/super.c 	struct super_block *sb = sdp->sd_vfs;
sb                725 fs/gfs2/super.c 	atomic_inc(&sb->s_active);
sb                733 fs/gfs2/super.c 		error = thaw_super(sb);
sb                743 fs/gfs2/super.c 	deactivate_super(sb);
sb                755 fs/gfs2/super.c static int gfs2_freeze(struct super_block *sb)
sb                757 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                794 fs/gfs2/super.c static int gfs2_unfreeze(struct super_block *sb)
sb                796 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb                948 fs/gfs2/super.c 	struct super_block *sb = dentry->d_sb;
sb                949 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1242 fs/gfs2/super.c 	struct super_block *sb = inode->i_sb;
sb               1243 fs/gfs2/super.c 	struct gfs2_sbd *sdp = sb->s_fs_info;
sb               1254 fs/gfs2/super.c 	if (inode->i_nlink || sb_rdonly(sb))
sb               1390 fs/gfs2/super.c static struct inode *gfs2_alloc_inode(struct super_block *sb)
sb                 43 fs/gfs2/super.h extern int gfs2_statfs_sync(struct super_block *sb, int type);
sb                 83 fs/gfs2/sys.c  	struct super_block *sb = sdp->sd_vfs;
sb                 84 fs/gfs2/sys.c  	int frozen = (sb->s_writers.frozen == SB_UNFROZEN) ? 0 : 1;
sb                646 fs/gfs2/sys.c  	struct super_block *sb = sdp->sd_vfs;
sb                652 fs/gfs2/sys.c  	sprintf(ro, "RDONLY=%d", sb_rdonly(sb));
sb                670 fs/gfs2/sys.c  				  &disk_to_dev(sb->s_bdev->bd_disk)->kobj,
sb                685 fs/gfs2/sys.c  	sb->s_fs_info = NULL;
sb                139 fs/hfs/bitmap.c u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits)
sb                148 fs/hfs/bitmap.c 	mutex_lock(&HFS_SB(sb)->bitmap_lock);
sb                149 fs/hfs/bitmap.c 	bitmap = HFS_SB(sb)->bitmap;
sb                151 fs/hfs/bitmap.c 	pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits);
sb                152 fs/hfs/bitmap.c 	if (pos >= HFS_SB(sb)->fs_ablocks) {
sb                155 fs/hfs/bitmap.c 		if (pos >= HFS_SB(sb)->fs_ablocks) {
sb                162 fs/hfs/bitmap.c 	HFS_SB(sb)->free_ablocks -= *num_bits;
sb                163 fs/hfs/bitmap.c 	hfs_bitmap_dirty(sb);
sb                165 fs/hfs/bitmap.c 	mutex_unlock(&HFS_SB(sb)->bitmap_lock);
sb                193 fs/hfs/bitmap.c int hfs_clear_vbm_bits(struct super_block *sb, u16 start, u16 count)
sb                205 fs/hfs/bitmap.c 	if ((start + count) > HFS_SB(sb)->fs_ablocks)
sb                208 fs/hfs/bitmap.c 	mutex_lock(&HFS_SB(sb)->bitmap_lock);
sb                210 fs/hfs/bitmap.c 	curr = HFS_SB(sb)->bitmap + (start / 32);
sb                238 fs/hfs/bitmap.c 	HFS_SB(sb)->free_ablocks += len;
sb                239 fs/hfs/bitmap.c 	mutex_unlock(&HFS_SB(sb)->bitmap_lock);
sb                240 fs/hfs/bitmap.c 	hfs_bitmap_dirty(sb);
sb                 19 fs/hfs/btree.c struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp keycmp)
sb                 34 fs/hfs/btree.c 	tree->sb = sb;
sb                 38 fs/hfs/btree.c 	tree->inode = iget_locked(sb, id);
sb                 43 fs/hfs/btree.c 	struct hfs_mdb *mdb = HFS_SB(sb)->mdb;
sb                236 fs/hfs/btree.c 				HFS_SB(tree->sb)->alloc_blksz;
sb                238 fs/hfs/btree.c 					  tree->sb->s_blocksize_bits;
sb                 18 fs/hfs/btree.h 	struct super_block *sb;
sb                 23 fs/hfs/catalog.c void hfs_cat_build_key(struct super_block *sb, btree_key *key, u32 parent, const struct qstr *name)
sb                 28 fs/hfs/catalog.c 		hfs_asc2mac(sb, &key->cat.CName, name);
sb                 65 fs/hfs/catalog.c static int hfs_cat_build_thread(struct super_block *sb,
sb                 72 fs/hfs/catalog.c 	hfs_asc2mac(sb, &rec->thread.CName, name);
sb                 85 fs/hfs/catalog.c 	struct super_block *sb;
sb                 95 fs/hfs/catalog.c 	sb = dir->i_sb;
sb                 96 fs/hfs/catalog.c 	err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd);
sb                108 fs/hfs/catalog.c 	hfs_cat_build_key(sb, fd.search_key, cnid, NULL);
sb                109 fs/hfs/catalog.c 	entry_size = hfs_cat_build_thread(sb, &entry, S_ISDIR(inode->i_mode) ?
sb                122 fs/hfs/catalog.c 	hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str);
sb                142 fs/hfs/catalog.c 	hfs_cat_build_key(sb, fd.search_key, cnid, NULL);
sb                187 fs/hfs/catalog.c int hfs_cat_find_brec(struct super_block *sb, u32 cnid,
sb                193 fs/hfs/catalog.c 	hfs_cat_build_key(sb, fd->search_key, cnid, NULL);
sb                223 fs/hfs/catalog.c 	struct super_block *sb;
sb                229 fs/hfs/catalog.c 	sb = dir->i_sb;
sb                230 fs/hfs/catalog.c 	res = hfs_find_init(HFS_SB(sb)->cat_tree, &fd);
sb                234 fs/hfs/catalog.c 	hfs_cat_build_key(sb, fd.search_key, dir->i_ino, str);
sb                245 fs/hfs/catalog.c 			hfs_free_fork(sb, &file, HFS_FK_DATA);
sb                247 fs/hfs/catalog.c 			hfs_free_fork(sb, &file, HFS_FK_RSRC);
sb                263 fs/hfs/catalog.c 	hfs_cat_build_key(sb, fd.search_key, cnid, NULL);
sb                291 fs/hfs/catalog.c 	struct super_block *sb;
sb                300 fs/hfs/catalog.c 	sb = src_dir->i_sb;
sb                301 fs/hfs/catalog.c 	err = hfs_find_init(HFS_SB(sb)->cat_tree, &src_fd);
sb                315 fs/hfs/catalog.c 	hfs_cat_build_key(sb, src_fd.search_key, src_dir->i_ino, src_name);
sb                328 fs/hfs/catalog.c 	hfs_cat_build_key(sb, dst_fd.search_key, dst_dir->i_ino, dst_name);
sb                344 fs/hfs/catalog.c 	hfs_cat_build_key(sb, src_fd.search_key, src_dir->i_ino, src_name);
sb                360 fs/hfs/catalog.c 	hfs_cat_build_key(sb, src_fd.search_key, cnid, NULL);
sb                369 fs/hfs/catalog.c 	hfs_cat_build_key(sb, dst_fd.search_key, cnid, NULL);
sb                370 fs/hfs/catalog.c 	entry_size = hfs_cat_build_thread(sb, &entry, type == HFS_CDR_FIL ? HFS_CDR_FTH : HFS_CDR_THD,
sb                 51 fs/hfs/dir.c   	struct super_block *sb = inode->i_sb;
sb                 62 fs/hfs/dir.c   	err = hfs_find_init(HFS_SB(sb)->cat_tree, &fd);
sb                 65 fs/hfs/dir.c   	hfs_cat_build_key(sb, fd.search_key, inode->i_ino, NULL);
sb                118 fs/hfs/dir.c   		len = hfs_mac2asc(sb, strbuf, &fd.key->cat.CName);
sb                248 fs/hfs/extent.c static int hfs_free_extents(struct super_block *sb, struct hfs_extent *extent,
sb                269 fs/hfs/extent.c 			hfs_clear_vbm_bits(sb, start, count);
sb                275 fs/hfs/extent.c 			hfs_clear_vbm_bits(sb, start + count, block_nr);
sb                287 fs/hfs/extent.c int hfs_free_fork(struct super_block *sb, struct hfs_cat_file *file, int type)
sb                302 fs/hfs/extent.c 	total_blocks /= HFS_SB(sb)->alloc_blksz;
sb                310 fs/hfs/extent.c 	res = hfs_free_extents(sb, extent, blocks, blocks);
sb                316 fs/hfs/extent.c 	res = hfs_find_init(HFS_SB(sb)->ext_tree, &fd);
sb                324 fs/hfs/extent.c 		hfs_free_extents(sb, extent, total_blocks - start, total_blocks);
sb                339 fs/hfs/extent.c 	struct super_block *sb;
sb                343 fs/hfs/extent.c 	sb = inode->i_sb;
sb                345 fs/hfs/extent.c 	ablock = (u32)block / HFS_SB(sb)->fs_div;
sb                377 fs/hfs/extent.c 	map_bh(bh_result, sb, HFS_SB(sb)->fs_start +
sb                378 fs/hfs/extent.c 	       dblock * HFS_SB(sb)->fs_div +
sb                379 fs/hfs/extent.c 	       (u32)block % HFS_SB(sb)->fs_div);
sb                383 fs/hfs/extent.c 		HFS_I(inode)->phys_size += sb->s_blocksize;
sb                385 fs/hfs/extent.c 		inode_add_bytes(inode, sb->s_blocksize);
sb                393 fs/hfs/extent.c 	struct super_block *sb = inode->i_sb;
sb                408 fs/hfs/extent.c 	start = hfs_vbm_search_free(sb, goal, &len);
sb                452 fs/hfs/extent.c 			set_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags);
sb                453 fs/hfs/extent.c 		set_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags);
sb                454 fs/hfs/extent.c 		hfs_mark_mdb_dirty(sb);
sb                478 fs/hfs/extent.c 	struct super_block *sb = inode->i_sb;
sb                505 fs/hfs/extent.c 	size = inode->i_size + HFS_SB(sb)->alloc_blksz - 1;
sb                506 fs/hfs/extent.c 	blk_cnt = size / HFS_SB(sb)->alloc_blksz;
sb                512 fs/hfs/extent.c 	res = hfs_find_init(HFS_SB(sb)->ext_tree, &fd);
sb                520 fs/hfs/extent.c 			hfs_free_extents(sb, HFS_I(inode)->first_extents,
sb                530 fs/hfs/extent.c 		hfs_free_extents(sb, HFS_I(inode)->cached_extents,
sb                548 fs/hfs/extent.c 	HFS_I(inode)->fs_blocks = (inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
sb                549 fs/hfs/extent.c 	inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits);
sb                163 fs/hfs/hfs_fs.h 	struct super_block *sb;
sb                240 fs/hfs/hfs_fs.h extern void hfs_mark_mdb_dirty(struct super_block *sb);
sb                253 fs/hfs/hfs_fs.h #define HFS_SB(sb)	((struct hfs_sb_info *)(sb)->s_fs_info)
sb                259 fs/hfs/hfs_fs.h static inline const char *hfs_mdb_name(struct super_block *sb)
sb                261 fs/hfs/hfs_fs.h 	return sb->s_id;
sb                264 fs/hfs/hfs_fs.h static inline void hfs_bitmap_dirty(struct super_block *sb)
sb                266 fs/hfs/hfs_fs.h 	set_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags);
sb                267 fs/hfs/hfs_fs.h 	hfs_mark_mdb_dirty(sb);
sb                270 fs/hfs/hfs_fs.h #define sb_bread512(sb, sec, data) ({			\
sb                277 fs/hfs/hfs_fs.h 	__block = __start >> (sb)->s_blocksize_bits;	\
sb                278 fs/hfs/hfs_fs.h 	__offset = __start & ((sb)->s_blocksize - 1);	\
sb                279 fs/hfs/hfs_fs.h 	__bh = sb_bread((sb), __block);			\
sb                 75 fs/hfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                 83 fs/hfs/inode.c 		tree = HFS_SB(sb)->ext_tree;
sb                 86 fs/hfs/inode.c 		tree = HFS_SB(sb)->cat_tree;
sb                184 fs/hfs/inode.c 	struct super_block *sb = dir->i_sb;
sb                185 fs/hfs/inode.c 	struct inode *inode = new_inode(sb);
sb                192 fs/hfs/inode.c 	hfs_cat_build_key(sb, (btree_key *)&HFS_I(inode)->cat_key, dir->i_ino, name);
sb                193 fs/hfs/inode.c 	inode->i_ino = HFS_SB(sb)->next_id++;
sb                204 fs/hfs/inode.c 		HFS_SB(sb)->folder_count++;
sb                206 fs/hfs/inode.c 			HFS_SB(sb)->root_dirs++;
sb                212 fs/hfs/inode.c 		HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks;
sb                213 fs/hfs/inode.c 		HFS_SB(sb)->file_count++;
sb                215 fs/hfs/inode.c 			HFS_SB(sb)->root_files++;
sb                233 fs/hfs/inode.c 	set_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags);
sb                234 fs/hfs/inode.c 	hfs_mark_mdb_dirty(sb);
sb                241 fs/hfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                245 fs/hfs/inode.c 		HFS_SB(sb)->folder_count--;
sb                247 fs/hfs/inode.c 			HFS_SB(sb)->root_dirs--;
sb                248 fs/hfs/inode.c 		set_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags);
sb                249 fs/hfs/inode.c 		hfs_mark_mdb_dirty(sb);
sb                252 fs/hfs/inode.c 	HFS_SB(sb)->file_count--;
sb                254 fs/hfs/inode.c 		HFS_SB(sb)->root_files--;
sb                261 fs/hfs/inode.c 	set_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags);
sb                262 fs/hfs/inode.c 	hfs_mark_mdb_dirty(sb);
sb                268 fs/hfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                279 fs/hfs/inode.c 	HFS_I(inode)->fs_blocks = (log_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
sb                280 fs/hfs/inode.c 	inode_set_bytes(inode, HFS_I(inode)->fs_blocks << sb->s_blocksize_bits);
sb                282 fs/hfs/inode.c 				     HFS_SB(sb)->alloc_blksz;
sb                283 fs/hfs/inode.c 	HFS_I(inode)->clump_blocks = clump_size / HFS_SB(sb)->alloc_blksz;
sb                285 fs/hfs/inode.c 		HFS_I(inode)->clump_blocks = HFS_SB(sb)->clumpablks;
sb                384 fs/hfs/inode.c struct inode *hfs_iget(struct super_block *sb, struct hfs_cat_key *key, hfs_cat_rec *rec)
sb                400 fs/hfs/inode.c 	inode = iget5_locked(sb, cnid, hfs_test_inode, hfs_read_inode, &data);
sb                658 fs/hfs/inode.c 	struct super_block * sb;
sb                670 fs/hfs/inode.c 	sb = inode->i_sb;
sb                671 fs/hfs/inode.c 	flush_delayed_work(&HFS_SB(sb)->mdb_work);
sb                673 fs/hfs/inode.c 	err = sync_blockdev(sb->s_bdev);
sb                 32 fs/hfs/mdb.c   static int hfs_get_last_session(struct super_block *sb,
sb                 41 fs/hfs/mdb.c   	*size = i_size_read(sb->s_bdev->bd_inode) >> 9;
sb                 43 fs/hfs/mdb.c   	if (HFS_SB(sb)->session >= 0) {
sb                 44 fs/hfs/mdb.c   		te.cdte_track = HFS_SB(sb)->session;
sb                 46 fs/hfs/mdb.c   		res = ioctl_by_bdev(sb->s_bdev, CDROMREADTOCENTRY, (unsigned long)&te);
sb                 55 fs/hfs/mdb.c   	res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION, (unsigned long)&ms_info);
sb                 67 fs/hfs/mdb.c   int hfs_mdb_get(struct super_block *sb)
sb                 79 fs/hfs/mdb.c   	size = sb_min_blocksize(sb, HFS_SECTOR_SIZE);
sb                 83 fs/hfs/mdb.c   	if (hfs_get_last_session(sb, &part_start, &part_size))
sb                 87 fs/hfs/mdb.c   		bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb);
sb                 98 fs/hfs/mdb.c   		if (hfs_part_find(sb, &part_start, &part_size))
sb                102 fs/hfs/mdb.c   	HFS_SB(sb)->alloc_blksz = size = be32_to_cpu(mdb->drAlBlkSiz);
sb                108 fs/hfs/mdb.c   	size = min(HFS_SB(sb)->alloc_blksz, (u32)PAGE_SIZE);
sb                117 fs/hfs/mdb.c   	while (HFS_SB(sb)->alloc_blksz & (size - 1))
sb                120 fs/hfs/mdb.c   	if (!sb_set_blocksize(sb, size)) {
sb                125 fs/hfs/mdb.c   	bh = sb_bread512(sb, part_start + HFS_MDB_BLK, mdb);
sb                131 fs/hfs/mdb.c   	HFS_SB(sb)->mdb_bh = bh;
sb                132 fs/hfs/mdb.c   	HFS_SB(sb)->mdb = mdb;
sb                135 fs/hfs/mdb.c   	HFS_SB(sb)->part_start = part_start;
sb                136 fs/hfs/mdb.c   	HFS_SB(sb)->fs_ablocks = be16_to_cpu(mdb->drNmAlBlks);
sb                137 fs/hfs/mdb.c   	HFS_SB(sb)->fs_div = HFS_SB(sb)->alloc_blksz >> sb->s_blocksize_bits;
sb                138 fs/hfs/mdb.c   	HFS_SB(sb)->clumpablks = be32_to_cpu(mdb->drClpSiz) /
sb                139 fs/hfs/mdb.c   				 HFS_SB(sb)->alloc_blksz;
sb                140 fs/hfs/mdb.c   	if (!HFS_SB(sb)->clumpablks)
sb                141 fs/hfs/mdb.c   		HFS_SB(sb)->clumpablks = 1;
sb                142 fs/hfs/mdb.c   	HFS_SB(sb)->fs_start = (be16_to_cpu(mdb->drAlBlSt) + part_start) >>
sb                143 fs/hfs/mdb.c   			       (sb->s_blocksize_bits - HFS_SECTOR_SIZE_BITS);
sb                146 fs/hfs/mdb.c   	HFS_SB(sb)->free_ablocks = be16_to_cpu(mdb->drFreeBks);
sb                147 fs/hfs/mdb.c   	HFS_SB(sb)->next_id = be32_to_cpu(mdb->drNxtCNID);
sb                148 fs/hfs/mdb.c   	HFS_SB(sb)->root_files = be16_to_cpu(mdb->drNmFls);
sb                149 fs/hfs/mdb.c   	HFS_SB(sb)->root_dirs = be16_to_cpu(mdb->drNmRtDirs);
sb                150 fs/hfs/mdb.c   	HFS_SB(sb)->file_count = be32_to_cpu(mdb->drFilCnt);
sb                151 fs/hfs/mdb.c   	HFS_SB(sb)->folder_count = be32_to_cpu(mdb->drDirCnt);
sb                155 fs/hfs/mdb.c   	bh = sb_bread512(sb, sect, mdb2);
sb                158 fs/hfs/mdb.c   			HFS_SB(sb)->alt_mdb_bh = bh;
sb                159 fs/hfs/mdb.c   			HFS_SB(sb)->alt_mdb = mdb2;
sb                164 fs/hfs/mdb.c   	if (!HFS_SB(sb)->alt_mdb) {
sb                169 fs/hfs/mdb.c   	HFS_SB(sb)->bitmap = kmalloc(8192, GFP_KERNEL);
sb                170 fs/hfs/mdb.c   	if (!HFS_SB(sb)->bitmap)
sb                176 fs/hfs/mdb.c   	size = (HFS_SB(sb)->fs_ablocks + 8) / 8;
sb                177 fs/hfs/mdb.c   	ptr = (u8 *)HFS_SB(sb)->bitmap;
sb                179 fs/hfs/mdb.c   		bh = sb_bread(sb, off >> sb->s_blocksize_bits);
sb                184 fs/hfs/mdb.c   		off2 = off & (sb->s_blocksize - 1);
sb                185 fs/hfs/mdb.c   		len = min((int)sb->s_blocksize - off2, size);
sb                193 fs/hfs/mdb.c   	HFS_SB(sb)->ext_tree = hfs_btree_open(sb, HFS_EXT_CNID, hfs_ext_keycmp);
sb                194 fs/hfs/mdb.c   	if (!HFS_SB(sb)->ext_tree) {
sb                198 fs/hfs/mdb.c   	HFS_SB(sb)->cat_tree = hfs_btree_open(sb, HFS_CAT_CNID, hfs_cat_keycmp);
sb                199 fs/hfs/mdb.c   	if (!HFS_SB(sb)->cat_tree) {
sb                207 fs/hfs/mdb.c   		sb->s_flags |= SB_RDONLY;
sb                211 fs/hfs/mdb.c   		sb->s_flags |= SB_RDONLY;
sb                213 fs/hfs/mdb.c   	if (!sb_rdonly(sb)) {
sb                221 fs/hfs/mdb.c   		mark_buffer_dirty(HFS_SB(sb)->mdb_bh);
sb                222 fs/hfs/mdb.c   		sync_dirty_buffer(HFS_SB(sb)->mdb_bh);
sb                230 fs/hfs/mdb.c   	hfs_mdb_put(sb);
sb                258 fs/hfs/mdb.c   void hfs_mdb_commit(struct super_block *sb)
sb                260 fs/hfs/mdb.c   	struct hfs_mdb *mdb = HFS_SB(sb)->mdb;
sb                262 fs/hfs/mdb.c   	if (sb_rdonly(sb))
sb                265 fs/hfs/mdb.c   	lock_buffer(HFS_SB(sb)->mdb_bh);
sb                266 fs/hfs/mdb.c   	if (test_and_clear_bit(HFS_FLG_MDB_DIRTY, &HFS_SB(sb)->flags)) {
sb                269 fs/hfs/mdb.c   		mdb->drFreeBks = cpu_to_be16(HFS_SB(sb)->free_ablocks);
sb                270 fs/hfs/mdb.c   		mdb->drNxtCNID = cpu_to_be32(HFS_SB(sb)->next_id);
sb                271 fs/hfs/mdb.c   		mdb->drNmFls = cpu_to_be16(HFS_SB(sb)->root_files);
sb                272 fs/hfs/mdb.c   		mdb->drNmRtDirs = cpu_to_be16(HFS_SB(sb)->root_dirs);
sb                273 fs/hfs/mdb.c   		mdb->drFilCnt = cpu_to_be32(HFS_SB(sb)->file_count);
sb                274 fs/hfs/mdb.c   		mdb->drDirCnt = cpu_to_be32(HFS_SB(sb)->folder_count);
sb                277 fs/hfs/mdb.c   		mark_buffer_dirty(HFS_SB(sb)->mdb_bh);
sb                283 fs/hfs/mdb.c   	if (test_and_clear_bit(HFS_FLG_ALT_MDB_DIRTY, &HFS_SB(sb)->flags) &&
sb                284 fs/hfs/mdb.c   	    HFS_SB(sb)->alt_mdb) {
sb                285 fs/hfs/mdb.c   		hfs_inode_write_fork(HFS_SB(sb)->ext_tree->inode, mdb->drXTExtRec,
sb                287 fs/hfs/mdb.c   		hfs_inode_write_fork(HFS_SB(sb)->cat_tree->inode, mdb->drCTExtRec,
sb                290 fs/hfs/mdb.c   		lock_buffer(HFS_SB(sb)->alt_mdb_bh);
sb                291 fs/hfs/mdb.c   		memcpy(HFS_SB(sb)->alt_mdb, HFS_SB(sb)->mdb, HFS_SECTOR_SIZE);
sb                292 fs/hfs/mdb.c   		HFS_SB(sb)->alt_mdb->drAtrb |= cpu_to_be16(HFS_SB_ATTRIB_UNMNT);
sb                293 fs/hfs/mdb.c   		HFS_SB(sb)->alt_mdb->drAtrb &= cpu_to_be16(~HFS_SB_ATTRIB_INCNSTNT);
sb                294 fs/hfs/mdb.c   		unlock_buffer(HFS_SB(sb)->alt_mdb_bh);
sb                296 fs/hfs/mdb.c   		mark_buffer_dirty(HFS_SB(sb)->alt_mdb_bh);
sb                297 fs/hfs/mdb.c   		sync_dirty_buffer(HFS_SB(sb)->alt_mdb_bh);
sb                300 fs/hfs/mdb.c   	if (test_and_clear_bit(HFS_FLG_BITMAP_DIRTY, &HFS_SB(sb)->flags)) {
sb                306 fs/hfs/mdb.c   		block = be16_to_cpu(HFS_SB(sb)->mdb->drVBMSt) + HFS_SB(sb)->part_start;
sb                307 fs/hfs/mdb.c   		off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1);
sb                308 fs/hfs/mdb.c   		block >>= sb->s_blocksize_bits - HFS_SECTOR_SIZE_BITS;
sb                309 fs/hfs/mdb.c   		size = (HFS_SB(sb)->fs_ablocks + 7) / 8;
sb                310 fs/hfs/mdb.c   		ptr = (u8 *)HFS_SB(sb)->bitmap;
sb                312 fs/hfs/mdb.c   			bh = sb_bread(sb, block);
sb                317 fs/hfs/mdb.c   			len = min((int)sb->s_blocksize - off, size);
sb                331 fs/hfs/mdb.c   	unlock_buffer(HFS_SB(sb)->mdb_bh);
sb                334 fs/hfs/mdb.c   void hfs_mdb_close(struct super_block *sb)
sb                337 fs/hfs/mdb.c   	if (sb_rdonly(sb))
sb                339 fs/hfs/mdb.c   	HFS_SB(sb)->mdb->drAtrb |= cpu_to_be16(HFS_SB_ATTRIB_UNMNT);
sb                340 fs/hfs/mdb.c   	HFS_SB(sb)->mdb->drAtrb &= cpu_to_be16(~HFS_SB_ATTRIB_INCNSTNT);
sb                341 fs/hfs/mdb.c   	mark_buffer_dirty(HFS_SB(sb)->mdb_bh);
sb                348 fs/hfs/mdb.c   void hfs_mdb_put(struct super_block *sb)
sb                350 fs/hfs/mdb.c   	if (!HFS_SB(sb))
sb                353 fs/hfs/mdb.c   	hfs_btree_close(HFS_SB(sb)->ext_tree);
sb                354 fs/hfs/mdb.c   	hfs_btree_close(HFS_SB(sb)->cat_tree);
sb                357 fs/hfs/mdb.c   	brelse(HFS_SB(sb)->mdb_bh);
sb                358 fs/hfs/mdb.c   	brelse(HFS_SB(sb)->alt_mdb_bh);
sb                360 fs/hfs/mdb.c   	unload_nls(HFS_SB(sb)->nls_io);
sb                361 fs/hfs/mdb.c   	unload_nls(HFS_SB(sb)->nls_disk);
sb                363 fs/hfs/mdb.c   	kfree(HFS_SB(sb)->bitmap);
sb                364 fs/hfs/mdb.c   	kfree(HFS_SB(sb));
sb                365 fs/hfs/mdb.c   	sb->s_fs_info = NULL;
sb                 58 fs/hfs/part_tbl.c int hfs_part_find(struct super_block *sb,
sb                 66 fs/hfs/part_tbl.c 	bh = sb_bread512(sb, *part_start + HFS_PMAP_BLK, data);
sb                 82 fs/hfs/part_tbl.c 			    (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) {
sb                 98 fs/hfs/part_tbl.c 			    (HFS_SB(sb)->part < 0 || HFS_SB(sb)->part == i)) {
sb                105 fs/hfs/part_tbl.c 			bh = sb_bread512(sb, *part_start + HFS_PMAP_BLK + ++i, pm);
sb                 33 fs/hfs/super.c static int hfs_sync_fs(struct super_block *sb, int wait)
sb                 35 fs/hfs/super.c 	hfs_mdb_commit(sb);
sb                 46 fs/hfs/super.c static void hfs_put_super(struct super_block *sb)
sb                 48 fs/hfs/super.c 	cancel_delayed_work_sync(&HFS_SB(sb)->mdb_work);
sb                 49 fs/hfs/super.c 	hfs_mdb_close(sb);
sb                 51 fs/hfs/super.c 	hfs_mdb_put(sb);
sb                 57 fs/hfs/super.c 	struct super_block *sb;
sb                 60 fs/hfs/super.c 	sb = sbi->sb;
sb                 66 fs/hfs/super.c 	hfs_mdb_commit(sb);
sb                 69 fs/hfs/super.c void hfs_mark_mdb_dirty(struct super_block *sb)
sb                 71 fs/hfs/super.c 	struct hfs_sb_info *sbi = HFS_SB(sb);
sb                 74 fs/hfs/super.c 	if (sb_rdonly(sb))
sb                 97 fs/hfs/super.c 	struct super_block *sb = dentry->d_sb;
sb                 98 fs/hfs/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                101 fs/hfs/super.c 	buf->f_bsize = sb->s_blocksize;
sb                102 fs/hfs/super.c 	buf->f_blocks = (u32)HFS_SB(sb)->fs_ablocks * HFS_SB(sb)->fs_div;
sb                103 fs/hfs/super.c 	buf->f_bfree = (u32)HFS_SB(sb)->free_ablocks * HFS_SB(sb)->fs_div;
sb                105 fs/hfs/super.c 	buf->f_files = HFS_SB(sb)->fs_ablocks;
sb                106 fs/hfs/super.c 	buf->f_ffree = HFS_SB(sb)->free_ablocks;
sb                114 fs/hfs/super.c static int hfs_remount(struct super_block *sb, int *flags, char *data)
sb                116 fs/hfs/super.c 	sync_filesystem(sb);
sb                118 fs/hfs/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb                121 fs/hfs/super.c 		if (!(HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_UNMNT))) {
sb                123 fs/hfs/super.c 			sb->s_flags |= SB_RDONLY;
sb                125 fs/hfs/super.c 		} else if (HFS_SB(sb)->mdb->drAtrb & cpu_to_be16(HFS_SB_ATTRIB_SLOCK)) {
sb                127 fs/hfs/super.c 			sb->s_flags |= SB_RDONLY;
sb                162 fs/hfs/super.c static struct inode *hfs_alloc_inode(struct super_block *sb)
sb                379 fs/hfs/super.c static int hfs_fill_super(struct super_block *sb, void *data, int silent)
sb                391 fs/hfs/super.c 	sbi->sb = sb;
sb                392 fs/hfs/super.c 	sb->s_fs_info = sbi;
sb                402 fs/hfs/super.c 	sb->s_op = &hfs_super_operations;
sb                403 fs/hfs/super.c 	sb->s_xattr = hfs_xattr_handlers;
sb                404 fs/hfs/super.c 	sb->s_flags |= SB_NODIRATIME;
sb                407 fs/hfs/super.c 	res = hfs_mdb_get(sb);
sb                411 fs/hfs/super.c 				hfs_mdb_name(sb));
sb                417 fs/hfs/super.c 	res = hfs_find_init(HFS_SB(sb)->cat_tree, &fd);
sb                420 fs/hfs/super.c 	res = hfs_cat_find_brec(sb, HFS_ROOT_CNID, &fd);
sb                433 fs/hfs/super.c 	root_inode = hfs_iget(sb, &fd.search_key->cat, &rec);
sb                438 fs/hfs/super.c 	sb->s_d_op = &hfs_dentry_operations;
sb                440 fs/hfs/super.c 	sb->s_root = d_make_root(root_inode);
sb                441 fs/hfs/super.c 	if (!sb->s_root)
sb                450 fs/hfs/super.c 	hfs_mdb_put(sb);
sb                 33 fs/hfs/trans.c int hfs_mac2asc(struct super_block *sb, char *out, const struct hfs_name *in)
sb                 35 fs/hfs/trans.c 	struct nls_table *nls_disk = HFS_SB(sb)->nls_disk;
sb                 36 fs/hfs/trans.c 	struct nls_table *nls_io = HFS_SB(sb)->nls_io;
sb                 97 fs/hfs/trans.c void hfs_asc2mac(struct super_block *sb, struct hfs_name *out, const struct qstr *in)
sb                 99 fs/hfs/trans.c 	struct nls_table *nls_disk = HFS_SB(sb)->nls_disk;
sb                100 fs/hfs/trans.c 	struct nls_table *nls_io = HFS_SB(sb)->nls_io;
sb                 50 fs/hfsplus/attributes.c int hfsplus_attr_build_key(struct super_block *sb, hfsplus_btree_key *key,
sb                 58 fs/hfsplus/attributes.c 		int res = hfsplus_asc2uni(sb,
sb                137 fs/hfsplus/attributes.c int hfsplus_find_attr(struct super_block *sb, u32 cnid,
sb                144 fs/hfsplus/attributes.c 	if (!HFSPLUS_SB(sb)->attr_tree) {
sb                150 fs/hfsplus/attributes.c 		err = hfsplus_attr_build_key(sb, fd->search_key, cnid, name);
sb                157 fs/hfsplus/attributes.c 		err = hfsplus_attr_build_key(sb, fd->search_key, cnid, NULL);
sb                172 fs/hfsplus/attributes.c 	struct super_block *sb = inode->i_sb;
sb                175 fs/hfsplus/attributes.c 	if (!HFSPLUS_SB(sb)->attr_tree)
sb                178 fs/hfsplus/attributes.c 	err = hfs_find_init(HFSPLUS_SB(sb)->attr_tree, &fd);
sb                182 fs/hfsplus/attributes.c 	err = hfsplus_find_attr(sb, inode->i_ino, name, &fd);
sb                198 fs/hfsplus/attributes.c 	struct super_block *sb = inode->i_sb;
sb                207 fs/hfsplus/attributes.c 	if (!HFSPLUS_SB(sb)->attr_tree) {
sb                216 fs/hfsplus/attributes.c 	err = hfs_find_init(HFSPLUS_SB(sb)->attr_tree, &fd);
sb                226 fs/hfsplus/attributes.c 		err = hfsplus_attr_build_key(sb, fd.search_key,
sb                310 fs/hfsplus/attributes.c 	struct super_block *sb = inode->i_sb;
sb                316 fs/hfsplus/attributes.c 	if (!HFSPLUS_SB(sb)->attr_tree) {
sb                321 fs/hfsplus/attributes.c 	err = hfs_find_init(HFSPLUS_SB(sb)->attr_tree, &fd);
sb                331 fs/hfsplus/attributes.c 		err = hfsplus_attr_build_key(sb, fd.search_key,
sb                 19 fs/hfsplus/bitmap.c int hfsplus_block_allocate(struct super_block *sb, u32 size,
sb                 22 fs/hfsplus/bitmap.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                157 fs/hfsplus/bitmap.c 	hfsplus_mark_mdb_dirty(sb);
sb                164 fs/hfsplus/bitmap.c int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count)
sb                166 fs/hfsplus/bitmap.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                236 fs/hfsplus/bitmap.c 	hfsplus_mark_mdb_dirty(sb);
sb                659 fs/hfsplus/bnode.c 	struct super_block *sb = tree->inode->i_sb;
sb                660 fs/hfsplus/bnode.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                133 fs/hfsplus/btree.c struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id)
sb                148 fs/hfsplus/btree.c 	tree->sb = sb;
sb                150 fs/hfsplus/btree.c 	inode = hfsplus_iget(sb, id);
sb                205 fs/hfsplus/btree.c 		if (test_bit(HFSPLUS_SB_HFSX, &HFSPLUS_SB(sb)->flags) &&
sb                210 fs/hfsplus/btree.c 			set_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags);
sb                362 fs/hfsplus/btree.c 				HFSPLUS_SB(tree->sb)->alloc_blksz_shift;
sb                364 fs/hfsplus/btree.c 			hip->alloc_blocks << HFSPLUS_SB(tree->sb)->fs_shift;
sb                 43 fs/hfsplus/catalog.c int hfsplus_cat_build_key(struct super_block *sb,
sb                 49 fs/hfsplus/catalog.c 	err = hfsplus_asc2uni(sb, &key->cat.name, HFSPLUS_MAX_STRLEN,
sb                 60 fs/hfsplus/catalog.c void hfsplus_cat_build_key_with_cnid(struct super_block *sb,
sb                176 fs/hfsplus/catalog.c static int hfsplus_fill_cat_thread(struct super_block *sb,
sb                185 fs/hfsplus/catalog.c 	err = hfsplus_asc2uni(sb, &entry->thread.nodeName, HFSPLUS_MAX_STRLEN,
sb                194 fs/hfsplus/catalog.c int hfsplus_find_cat(struct super_block *sb, u32 cnid,
sb                201 fs/hfsplus/catalog.c 	hfsplus_cat_build_key_with_cnid(sb, fd->search_key, cnid);
sb                256 fs/hfsplus/catalog.c 	struct super_block *sb = dir->i_sb;
sb                264 fs/hfsplus/catalog.c 	err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd);
sb                276 fs/hfsplus/catalog.c 	hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid);
sb                277 fs/hfsplus/catalog.c 	entry_size = hfsplus_fill_cat_thread(sb, &entry,
sb                296 fs/hfsplus/catalog.c 	err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str);
sb                322 fs/hfsplus/catalog.c 	hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid);
sb                332 fs/hfsplus/catalog.c 	struct super_block *sb = dir->i_sb;
sb                340 fs/hfsplus/catalog.c 	err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd);
sb                355 fs/hfsplus/catalog.c 		hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid);
sb                371 fs/hfsplus/catalog.c 		err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str);
sb                385 fs/hfsplus/catalog.c 		hfsplus_free_fork(sb, cnid, &fork, HFSPLUS_TYPE_DATA);
sb                391 fs/hfsplus/catalog.c 		hfsplus_free_fork(sb, cnid, &fork, HFSPLUS_TYPE_RSRC);
sb                408 fs/hfsplus/catalog.c 	hfsplus_cat_build_key_with_cnid(sb, fd.search_key, cnid);
sb                424 fs/hfsplus/catalog.c 		if (HFSPLUS_SB(sb)->attr_tree)
sb                438 fs/hfsplus/catalog.c 	struct super_block *sb = src_dir->i_sb;
sb                447 fs/hfsplus/catalog.c 	err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &src_fd);
sb                461 fs/hfsplus/catalog.c 	err = hfsplus_cat_build_key(sb, src_fd.search_key,
sb                479 fs/hfsplus/catalog.c 	err = hfsplus_cat_build_key(sb, dst_fd.search_key,
sb                500 fs/hfsplus/catalog.c 	err = hfsplus_cat_build_key(sb, src_fd.search_key,
sb                517 fs/hfsplus/catalog.c 	hfsplus_cat_build_key_with_cnid(sb, src_fd.search_key, cnid);
sb                527 fs/hfsplus/catalog.c 	hfsplus_cat_build_key_with_cnid(sb, dst_fd.search_key, cnid);
sb                528 fs/hfsplus/catalog.c 	entry_size = hfsplus_fill_cat_thread(sb, &entry, type,
sb                 35 fs/hfsplus/dir.c 	struct super_block *sb;
sb                 41 fs/hfsplus/dir.c 	sb = dir->i_sb;
sb                 44 fs/hfsplus/dir.c 	err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd);
sb                 47 fs/hfsplus/dir.c 	err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino,
sb                 80 fs/hfsplus/dir.c 				HFSPLUS_SB(sb)->hidden_dir &&
sb                 82 fs/hfsplus/dir.c 					HFSPLUS_I(HFSPLUS_SB(sb)->hidden_dir)->
sb                 85 fs/hfsplus/dir.c 					HFSPLUS_I(d_inode(sb->s_root))->
sb                103 fs/hfsplus/dir.c 				err = hfsplus_cat_build_key(sb, fd.search_key,
sb                104 fs/hfsplus/dir.c 					HFSPLUS_SB(sb)->hidden_dir->i_ino,
sb                133 fs/hfsplus/dir.c 	struct super_block *sb = inode->i_sb;
sb                144 fs/hfsplus/dir.c 	err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &fd);
sb                152 fs/hfsplus/dir.c 	hfsplus_cat_build_key_with_cnid(sb, fd.search_key, inode->i_ino);
sb                207 fs/hfsplus/dir.c 		err = hfsplus_uni2asc(sb, &fd.key->cat.name, strbuf, &len);
sb                217 fs/hfsplus/dir.c 			if (HFSPLUS_SB(sb)->hidden_dir &&
sb                218 fs/hfsplus/dir.c 			    HFSPLUS_SB(sb)->hidden_dir->i_ino ==
sb                228 fs/hfsplus/extents.c 	struct super_block *sb = inode->i_sb;
sb                229 fs/hfsplus/extents.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                284 fs/hfsplus/extents.c 	map_bh(bh_result, sb, sector);
sb                288 fs/hfsplus/extents.c 		hip->phys_size += sb->s_blocksize;
sb                290 fs/hfsplus/extents.c 		inode_add_bytes(inode, sb->s_blocksize);
sb                337 fs/hfsplus/extents.c static int hfsplus_free_extents(struct super_block *sb,
sb                346 fs/hfsplus/extents.c 	WARN_ON(mutex_is_locked(&HFSPLUS_SB(sb)->ext_tree->tree_lock));
sb                363 fs/hfsplus/extents.c 			err = hfsplus_block_free(sb, start, count);
sb                374 fs/hfsplus/extents.c 			err = hfsplus_block_free(sb, start + count, block_nr);
sb                396 fs/hfsplus/extents.c int hfsplus_free_fork(struct super_block *sb, u32 cnid,
sb                412 fs/hfsplus/extents.c 	res = hfsplus_free_extents(sb, fork->extents, blocks, blocks);
sb                418 fs/hfsplus/extents.c 	res = hfs_find_init(HFSPLUS_SB(sb)->ext_tree, &fd);
sb                430 fs/hfsplus/extents.c 		hfsplus_free_extents(sb, ext_entry, total_blocks - start,
sb                442 fs/hfsplus/extents.c 	struct super_block *sb = inode->i_sb;
sb                443 fs/hfsplus/extents.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                468 fs/hfsplus/extents.c 	start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len);
sb                470 fs/hfsplus/extents.c 		start = hfsplus_block_allocate(sb, goal, 0, &len);
sb                478 fs/hfsplus/extents.c 		res = sb_issue_zeroout(sb, start, len, GFP_NOFS);
sb                545 fs/hfsplus/extents.c 	struct super_block *sb = inode->i_sb;
sb                573 fs/hfsplus/extents.c 	blk_cnt = (inode->i_size + HFSPLUS_SB(sb)->alloc_blksz - 1) >>
sb                574 fs/hfsplus/extents.c 			HFSPLUS_SB(sb)->alloc_blksz_shift;
sb                582 fs/hfsplus/extents.c 	res = hfs_find_init(HFSPLUS_SB(sb)->ext_tree, &fd);
sb                591 fs/hfsplus/extents.c 			hfsplus_free_extents(sb, hip->first_extents,
sb                605 fs/hfsplus/extents.c 		hfsplus_free_extents(sb, hip->cached_extents,
sb                623 fs/hfsplus/extents.c 	hip->fs_blocks = (inode->i_size + sb->s_blocksize - 1) >>
sb                624 fs/hfsplus/extents.c 		sb->s_blocksize_bits;
sb                625 fs/hfsplus/extents.c 	inode_set_bytes(inode, hip->fs_blocks << sb->s_blocksize_bits);
sb                 74 fs/hfsplus/hfsplus_fs.h 	struct super_block *sb;
sb                202 fs/hfsplus/hfsplus_fs.h static inline struct hfsplus_sb_info *HFSPLUS_SB(struct super_block *sb)
sb                204 fs/hfsplus/hfsplus_fs.h 	return sb->s_fs_info;
sb                305 fs/hfsplus/hfsplus_fs.h static inline unsigned short hfsplus_min_io_size(struct super_block *sb)
sb                307 fs/hfsplus/hfsplus_fs.h 	return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev),
sb                376 fs/hfsplus/hfsplus_fs.h int hfsplus_attr_build_key(struct super_block *sb, hfsplus_btree_key *key,
sb                380 fs/hfsplus/hfsplus_fs.h int hfsplus_find_attr(struct super_block *sb, u32 cnid, const char *name,
sb                389 fs/hfsplus/hfsplus_fs.h int hfsplus_block_allocate(struct super_block *sb, u32 size, u32 offset,
sb                391 fs/hfsplus/hfsplus_fs.h int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count);
sb                396 fs/hfsplus/hfsplus_fs.h struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id);
sb                449 fs/hfsplus/hfsplus_fs.h int hfsplus_cat_build_key(struct super_block *sb, hfsplus_btree_key *key,
sb                451 fs/hfsplus/hfsplus_fs.h void hfsplus_cat_build_key_with_cnid(struct super_block *sb,
sb                454 fs/hfsplus/hfsplus_fs.h int hfsplus_find_cat(struct super_block *sb, u32 cnid,
sb                472 fs/hfsplus/hfsplus_fs.h int hfsplus_free_fork(struct super_block *sb, u32 cnid,
sb                482 fs/hfsplus/hfsplus_fs.h struct inode *hfsplus_new_inode(struct super_block *sb, struct inode *dir,
sb                506 fs/hfsplus/hfsplus_fs.h int hfs_part_find(struct super_block *sb, sector_t *part_start,
sb                510 fs/hfsplus/hfsplus_fs.h struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino);
sb                511 fs/hfsplus/hfsplus_fs.h void hfsplus_mark_mdb_dirty(struct super_block *sb);
sb                523 fs/hfsplus/hfsplus_fs.h int hfsplus_uni2asc(struct super_block *sb, const struct hfsplus_unistr *ustr,
sb                525 fs/hfsplus/hfsplus_fs.h int hfsplus_asc2uni(struct super_block *sb, struct hfsplus_unistr *ustr,
sb                532 fs/hfsplus/hfsplus_fs.h int hfsplus_submit_bio(struct super_block *sb, sector_t sector, void *buf,
sb                534 fs/hfsplus/hfsplus_fs.h int hfsplus_read_wrapper(struct super_block *sb);
sb                 69 fs/hfsplus/inode.c 	struct super_block *sb = inode->i_sb;
sb                 77 fs/hfsplus/inode.c 		tree = HFSPLUS_SB(sb)->ext_tree;
sb                 80 fs/hfsplus/inode.c 		tree = HFSPLUS_SB(sb)->cat_tree;
sb                 83 fs/hfsplus/inode.c 		tree = HFSPLUS_SB(sb)->attr_tree;
sb                227 fs/hfsplus/inode.c 	struct super_block *sb = inode->i_sb;
sb                236 fs/hfsplus/inode.c 					   HFSPLUS_SB(sb)->hidden_dir, NULL);
sb                368 fs/hfsplus/inode.c struct inode *hfsplus_new_inode(struct super_block *sb, struct inode *dir,
sb                371 fs/hfsplus/inode.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                372 fs/hfsplus/inode.c 	struct inode *inode = new_inode(sb);
sb                422 fs/hfsplus/inode.c 	hfsplus_mark_mdb_dirty(sb);
sb                429 fs/hfsplus/inode.c 	struct super_block *sb = inode->i_sb;
sb                432 fs/hfsplus/inode.c 		HFSPLUS_SB(sb)->folder_count--;
sb                433 fs/hfsplus/inode.c 		hfsplus_mark_mdb_dirty(sb);
sb                436 fs/hfsplus/inode.c 	HFSPLUS_SB(sb)->file_count--;
sb                446 fs/hfsplus/inode.c 	hfsplus_mark_mdb_dirty(sb);
sb                451 fs/hfsplus/inode.c 	struct super_block *sb = inode->i_sb;
sb                452 fs/hfsplus/inode.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                468 fs/hfsplus/inode.c 		(inode->i_size + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
sb                469 fs/hfsplus/inode.c 	inode_set_bytes(inode, hip->fs_blocks << sb->s_blocksize_bits);
sb                 70 fs/hfsplus/part_tbl.c static int hfs_parse_old_pmap(struct super_block *sb, struct old_pmap *pm,
sb                 73 fs/hfsplus/part_tbl.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                 91 fs/hfsplus/part_tbl.c static int hfs_parse_new_pmap(struct super_block *sb, void *buf,
sb                 94 fs/hfsplus/part_tbl.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                 96 fs/hfsplus/part_tbl.c 	int buf_size = hfsplus_min_io_size(sb);
sb                113 fs/hfsplus/part_tbl.c 			res = hfsplus_submit_bio(sb,
sb                129 fs/hfsplus/part_tbl.c int hfs_part_find(struct super_block *sb,
sb                135 fs/hfsplus/part_tbl.c 	buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL);
sb                139 fs/hfsplus/part_tbl.c 	res = hfsplus_submit_bio(sb, *part_start + HFS_PMAP_BLK,
sb                146 fs/hfsplus/part_tbl.c 		res = hfs_parse_old_pmap(sb, data, part_start, part_size);
sb                149 fs/hfsplus/part_tbl.c 		res = hfs_parse_new_pmap(sb, buf, data, part_start, part_size);
sb                 21 fs/hfsplus/super.c static struct inode *hfsplus_alloc_inode(struct super_block *sb);
sb                 58 fs/hfsplus/super.c struct inode *hfsplus_iget(struct super_block *sb, unsigned long ino)
sb                 64 fs/hfsplus/super.c 	inode = iget_locked(sb, ino);
sb                176 fs/hfsplus/super.c static int hfsplus_sync_fs(struct super_block *sb, int wait)
sb                178 fs/hfsplus/super.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                222 fs/hfsplus/super.c 	error2 = hfsplus_submit_bio(sb,
sb                231 fs/hfsplus/super.c 	error2 = hfsplus_submit_bio(sb,
sb                242 fs/hfsplus/super.c 		blkdev_issue_flush(sb->s_bdev, GFP_KERNEL, NULL);
sb                263 fs/hfsplus/super.c void hfsplus_mark_mdb_dirty(struct super_block *sb)
sb                265 fs/hfsplus/super.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                268 fs/hfsplus/super.c 	if (sb_rdonly(sb))
sb                280 fs/hfsplus/super.c static void hfsplus_put_super(struct super_block *sb)
sb                282 fs/hfsplus/super.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                288 fs/hfsplus/super.c 	if (!sb_rdonly(sb) && sbi->s_vhdr) {
sb                295 fs/hfsplus/super.c 		hfsplus_sync_fs(sb, 1);
sb                306 fs/hfsplus/super.c 	kfree(sb->s_fs_info);
sb                307 fs/hfsplus/super.c 	sb->s_fs_info = NULL;
sb                312 fs/hfsplus/super.c 	struct super_block *sb = dentry->d_sb;
sb                313 fs/hfsplus/super.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                314 fs/hfsplus/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                317 fs/hfsplus/super.c 	buf->f_bsize = sb->s_blocksize;
sb                330 fs/hfsplus/super.c static int hfsplus_remount(struct super_block *sb, int *flags, char *data)
sb                332 fs/hfsplus/super.c 	sync_filesystem(sb);
sb                333 fs/hfsplus/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb                336 fs/hfsplus/super.c 		struct hfsplus_vh *vhdr = HFSPLUS_SB(sb)->s_vhdr;
sb                344 fs/hfsplus/super.c 			sb->s_flags |= SB_RDONLY;
sb                351 fs/hfsplus/super.c 			sb->s_flags |= SB_RDONLY;
sb                356 fs/hfsplus/super.c 			sb->s_flags |= SB_RDONLY;
sb                375 fs/hfsplus/super.c static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
sb                392 fs/hfsplus/super.c 	sb->s_fs_info = sbi;
sb                414 fs/hfsplus/super.c 	if (hfsplus_read_wrapper(sb)) {
sb                422 fs/hfsplus/super.c 	sb->s_magic = HFSPLUS_VOLHEAD_SIG;
sb                454 fs/hfsplus/super.c 	sb->s_op = &hfsplus_sops;
sb                455 fs/hfsplus/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                459 fs/hfsplus/super.c 		sb->s_flags |= SB_RDONLY;
sb                464 fs/hfsplus/super.c 		sb->s_flags |= SB_RDONLY;
sb                466 fs/hfsplus/super.c 			!sb_rdonly(sb)) {
sb                468 fs/hfsplus/super.c 		sb->s_flags |= SB_RDONLY;
sb                474 fs/hfsplus/super.c 	sbi->ext_tree = hfs_btree_open(sb, HFSPLUS_EXT_CNID);
sb                479 fs/hfsplus/super.c 	sbi->cat_tree = hfs_btree_open(sb, HFSPLUS_CAT_CNID);
sb                486 fs/hfsplus/super.c 		sbi->attr_tree = hfs_btree_open(sb, HFSPLUS_ATTR_CNID);
sb                493 fs/hfsplus/super.c 	sb->s_xattr = hfsplus_xattr_handlers;
sb                495 fs/hfsplus/super.c 	inode = hfsplus_iget(sb, HFSPLUS_ALLOC_CNID);
sb                504 fs/hfsplus/super.c 	root = hfsplus_iget(sb, HFSPLUS_ROOT_CNID);
sb                511 fs/hfsplus/super.c 	sb->s_d_op = &hfsplus_dentry_operations;
sb                512 fs/hfsplus/super.c 	sb->s_root = d_make_root(root);
sb                513 fs/hfsplus/super.c 	if (!sb->s_root) {
sb                523 fs/hfsplus/super.c 	err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
sb                532 fs/hfsplus/super.c 		inode = hfsplus_iget(sb, be32_to_cpu(entry.folder.id));
sb                541 fs/hfsplus/super.c 	if (!sb_rdonly(sb)) {
sb                551 fs/hfsplus/super.c 		hfsplus_sync_fs(sb, 1);
sb                555 fs/hfsplus/super.c 			sbi->hidden_dir = hfsplus_new_inode(sb, root, S_IFDIR);
sb                597 fs/hfsplus/super.c 	dput(sb->s_root);
sb                598 fs/hfsplus/super.c 	sb->s_root = NULL;
sb                624 fs/hfsplus/super.c static struct inode *hfsplus_alloc_inode(struct super_block *sb)
sb                122 fs/hfsplus/unicode.c int hfsplus_uni2asc(struct super_block *sb,
sb                127 fs/hfsplus/unicode.c 	struct nls_table *nls = HFSPLUS_SB(sb)->nls;
sb                138 fs/hfsplus/unicode.c 	compose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags);
sb                256 fs/hfsplus/unicode.c static inline int asc2unichar(struct super_block *sb, const char *astr, int len,
sb                259 fs/hfsplus/unicode.c 	int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc);
sb                344 fs/hfsplus/unicode.c int hfsplus_asc2uni(struct super_block *sb,
sb                353 fs/hfsplus/unicode.c 	decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags);
sb                355 fs/hfsplus/unicode.c 		size = asc2unichar(sb, astr, len, &c);
sb                386 fs/hfsplus/unicode.c 	struct super_block *sb = dentry->d_sb;
sb                395 fs/hfsplus/unicode.c 	casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags);
sb                396 fs/hfsplus/unicode.c 	decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags);
sb                402 fs/hfsplus/unicode.c 		size = asc2unichar(sb, astr, len, &c);
sb                439 fs/hfsplus/unicode.c 	struct super_block *sb = dentry->d_sb;
sb                448 fs/hfsplus/unicode.c 	casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags);
sb                449 fs/hfsplus/unicode.c 	decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags);
sb                459 fs/hfsplus/unicode.c 			size = asc2unichar(sb, astr1, len1, &c);
sb                474 fs/hfsplus/unicode.c 			size = asc2unichar(sb, astr2, len2, &c);
sb                 48 fs/hfsplus/wrapper.c int hfsplus_submit_bio(struct super_block *sb, sector_t sector,
sb                 62 fs/hfsplus/wrapper.c 	io_size = hfsplus_min_io_size(sb);
sb                 69 fs/hfsplus/wrapper.c 	bio_set_dev(bio, sb->s_bdev);
sb                127 fs/hfsplus/wrapper.c static int hfsplus_get_last_session(struct super_block *sb,
sb                136 fs/hfsplus/wrapper.c 	*size = i_size_read(sb->s_bdev->bd_inode) >> 9;
sb                138 fs/hfsplus/wrapper.c 	if (HFSPLUS_SB(sb)->session >= 0) {
sb                139 fs/hfsplus/wrapper.c 		te.cdte_track = HFSPLUS_SB(sb)->session;
sb                141 fs/hfsplus/wrapper.c 		res = ioctl_by_bdev(sb->s_bdev,
sb                151 fs/hfsplus/wrapper.c 	res = ioctl_by_bdev(sb->s_bdev, CDROMMULTISESSION,
sb                160 fs/hfsplus/wrapper.c int hfsplus_read_wrapper(struct super_block *sb)
sb                162 fs/hfsplus/wrapper.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                169 fs/hfsplus/wrapper.c 	blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE);
sb                173 fs/hfsplus/wrapper.c 	if (hfsplus_get_last_session(sb, &part_start, &part_size))
sb                177 fs/hfsplus/wrapper.c 	sbi->s_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL);
sb                180 fs/hfsplus/wrapper.c 	sbi->s_backup_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL);
sb                185 fs/hfsplus/wrapper.c 	error = hfsplus_submit_bio(sb, part_start + HFSPLUS_VOLHEAD_SECTOR,
sb                212 fs/hfsplus/wrapper.c 		if (hfs_part_find(sb, &part_start, &part_size))
sb                217 fs/hfsplus/wrapper.c 	error = hfsplus_submit_bio(sb, part_start + part_size - 2,
sb                247 fs/hfsplus/wrapper.c 	if (sb_set_blocksize(sb, blocksize) != blocksize) {
sb                253 fs/hfsplus/wrapper.c 		part_start >> (sb->s_blocksize_bits - HFSPLUS_SECTOR_SHIFT);
sb                256 fs/hfsplus/wrapper.c 	sbi->fs_shift = sbi->alloc_blksz_shift - sb->s_blocksize_bits;
sb                121 fs/hfsplus/xattr.c static int hfsplus_create_attributes_file(struct super_block *sb)
sb                124 fs/hfsplus/xattr.c 	struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb);
sb                169 fs/hfsplus/xattr.c 	attr_file = hfsplus_iget(sb, HFSPLUS_ATTR_CNID);
sb                179 fs/hfsplus/xattr.c 	clump_size = hfsplus_calc_btree_clump_size(sb->s_blocksize,
sb                238 fs/hfsplus/xattr.c 	sbi->attr_tree = hfs_btree_open(sb, HFSPLUS_ATTR_CNID);
sb                185 fs/hostfs/hostfs_kern.c static struct inode *hostfs_iget(struct super_block *sb)
sb                187 fs/hostfs/hostfs_kern.c 	struct inode *inode = new_inode(sb);
sb                222 fs/hostfs/hostfs_kern.c static struct inode *hostfs_alloc_inode(struct super_block *sb)
sb                908 fs/hostfs/hostfs_kern.c static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
sb                914 fs/hostfs/hostfs_kern.c 	sb->s_blocksize = 1024;
sb                915 fs/hostfs/hostfs_kern.c 	sb->s_blocksize_bits = 10;
sb                916 fs/hostfs/hostfs_kern.c 	sb->s_magic = HOSTFS_SUPER_MAGIC;
sb                917 fs/hostfs/hostfs_kern.c 	sb->s_op = &hostfs_sbops;
sb                918 fs/hostfs/hostfs_kern.c 	sb->s_d_op = &simple_dentry_operations;
sb                919 fs/hostfs/hostfs_kern.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                926 fs/hostfs/hostfs_kern.c 	sb->s_fs_info = host_root_path =
sb                933 fs/hostfs/hostfs_kern.c 	root_inode = new_inode(sb);
sb                954 fs/hostfs/hostfs_kern.c 	sb->s_root = d_make_root(root_inode);
sb                955 fs/hostfs/hostfs_kern.c 	if (sb->s_root == NULL)
sb                320 fs/hpfs/hpfs_fn.h static inline struct hpfs_sb_info *hpfs_sb(struct super_block *sb)
sb                322 fs/hpfs/hpfs_fn.h 	return sb->s_fs_info;
sb                 16 fs/hpfs/inode.c 	struct super_block *sb = i->i_sb;
sb                 19 fs/hpfs/inode.c 	i->i_uid = hpfs_sb(sb)->sb_uid;
sb                 20 fs/hpfs/inode.c 	i->i_gid = hpfs_sb(sb)->sb_gid;
sb                 21 fs/hpfs/inode.c 	i->i_mode = hpfs_sb(sb)->sb_mode;
sb                 48 fs/hpfs/inode.c 	struct super_block *sb = i->i_sb;
sb                 53 fs/hpfs/inode.c 	if (!(fnode = hpfs_map_fnode(sb, i->i_ino, &bh))) {
sb                 91 fs/hpfs/inode.c 			umode_t mode = hpfs_sb(sb)->sb_mode;
sb                123 fs/hpfs/inode.c 		if (hpfs_sb(sb)->sb_chk >= 2) {
sb                125 fs/hpfs/inode.c 			if (hpfs_map_fnode(sb, hpfs_inode->i_parent_dir, &bh0)) brelse(bh0);
sb                 27 fs/hpfs/super.c 		struct hpfs_spare_block *sb;
sb                 28 fs/hpfs/super.c 		if ((sb = hpfs_map_sector(s, 17, &bh, 0))) {
sb                 29 fs/hpfs/super.c 			sb->dirty = 1;
sb                 30 fs/hpfs/super.c 			sb->old_wrote = 0;
sb                 44 fs/hpfs/super.c 	struct hpfs_spare_block *sb;
sb                 47 fs/hpfs/super.c 	if ((sb = hpfs_map_sector(s, 17, &bh, 0))) {
sb                 48 fs/hpfs/super.c 		sb->dirty = hpfs_sb(s)->sb_chkdsk > 1 - hpfs_sb(s)->sb_was_error;
sb                 49 fs/hpfs/super.c 		sb->old_wrote = hpfs_sb(s)->sb_chkdsk >= 2 && !hpfs_sb(s)->sb_was_error;
sb                233 fs/hpfs/super.c static struct inode *hpfs_alloc_inode(struct super_block *sb)
sb                728 fs/hugetlbfs/inode.c static struct inode *hugetlbfs_get_root(struct super_block *sb,
sb                733 fs/hugetlbfs/inode.c 	inode = new_inode(sb);
sb                757 fs/hugetlbfs/inode.c static struct inode *hugetlbfs_get_inode(struct super_block *sb,
sb                774 fs/hugetlbfs/inode.c 	inode = new_inode(sb);
sb                990 fs/hugetlbfs/inode.c static void hugetlbfs_put_super(struct super_block *sb)
sb                992 fs/hugetlbfs/inode.c 	struct hugetlbfs_sb_info *sbi = HUGETLBFS_SB(sb);
sb                995 fs/hugetlbfs/inode.c 		sb->s_fs_info = NULL;
sb               1031 fs/hugetlbfs/inode.c static struct inode *hugetlbfs_alloc_inode(struct super_block *sb)
sb               1033 fs/hugetlbfs/inode.c 	struct hugetlbfs_sb_info *sbinfo = HUGETLBFS_SB(sb);
sb               1251 fs/hugetlbfs/inode.c hugetlbfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb               1259 fs/hugetlbfs/inode.c 	sb->s_fs_info = sbinfo;
sb               1281 fs/hugetlbfs/inode.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               1282 fs/hugetlbfs/inode.c 	sb->s_blocksize = huge_page_size(ctx->hstate);
sb               1283 fs/hugetlbfs/inode.c 	sb->s_blocksize_bits = huge_page_shift(ctx->hstate);
sb               1284 fs/hugetlbfs/inode.c 	sb->s_magic = HUGETLBFS_MAGIC;
sb               1285 fs/hugetlbfs/inode.c 	sb->s_op = &hugetlbfs_ops;
sb               1286 fs/hugetlbfs/inode.c 	sb->s_time_gran = 1;
sb               1287 fs/hugetlbfs/inode.c 	sb->s_root = d_make_root(hugetlbfs_get_root(sb, ctx));
sb               1288 fs/hugetlbfs/inode.c 	if (!sb->s_root)
sb                131 fs/inode.c     int inode_init_always(struct super_block *sb, struct inode *inode)
sb                137 fs/inode.c     	inode->i_sb = sb;
sb                138 fs/inode.c     	inode->i_blkbits = sb->s_blocksize_bits;
sb                146 fs/inode.c     	if (sb->s_xattr)
sb                173 fs/inode.c     	lockdep_set_class(&inode->i_lock, &sb->s_type->i_lock_key);
sb                176 fs/inode.c     	lockdep_set_class(&inode->i_rwsem, &sb->s_type->i_mutex_key);
sb                225 fs/inode.c     static struct inode *alloc_inode(struct super_block *sb)
sb                227 fs/inode.c     	const struct super_operations *ops = sb->s_op;
sb                231 fs/inode.c     		inode = ops->alloc_inode(sb);
sb                238 fs/inode.c     	if (unlikely(inode_init_always(sb, inode))) {
sb                475 fs/inode.c     static unsigned long hash(struct super_block *sb, unsigned long hashval)
sb                479 fs/inode.c     	tmp = (hashval * (unsigned long)sb) ^ (GOLDEN_RATIO_PRIME + hashval) /
sb                624 fs/inode.c     void evict_inodes(struct super_block *sb)
sb                630 fs/inode.c     	spin_lock(&sb->s_inode_list_lock);
sb                631 fs/inode.c     	list_for_each_entry_safe(inode, next, &sb->s_inodes, i_sb_list) {
sb                652 fs/inode.c     			spin_unlock(&sb->s_inode_list_lock);
sb                658 fs/inode.c     	spin_unlock(&sb->s_inode_list_lock);
sb                674 fs/inode.c     int invalidate_inodes(struct super_block *sb, bool kill_dirty)
sb                681 fs/inode.c     	spin_lock(&sb->s_inode_list_lock);
sb                682 fs/inode.c     	list_for_each_entry_safe(inode, next, &sb->s_inodes, i_sb_list) {
sb                704 fs/inode.c     			spin_unlock(&sb->s_inode_list_lock);
sb                710 fs/inode.c     	spin_unlock(&sb->s_inode_list_lock);
sb                798 fs/inode.c     long prune_icache_sb(struct super_block *sb, struct shrink_control *sc)
sb                803 fs/inode.c     	freed = list_lru_shrink_walk(&sb->s_inode_lru, sc,
sb                813 fs/inode.c     static struct inode *find_inode(struct super_block *sb,
sb                822 fs/inode.c     		if (inode->i_sb != sb)
sb                846 fs/inode.c     static struct inode *find_inode_fast(struct super_block *sb,
sb                855 fs/inode.c     		if (inode->i_sb != sb)
sb                925 fs/inode.c     struct inode *new_inode_pseudo(struct super_block *sb)
sb                927 fs/inode.c     	struct inode *inode = alloc_inode(sb);
sb                950 fs/inode.c     struct inode *new_inode(struct super_block *sb)
sb                954 fs/inode.c     	spin_lock_prefetch(&sb->s_inode_list_lock);
sb                956 fs/inode.c     	inode = new_inode_pseudo(sb);
sb               1140 fs/inode.c     struct inode *iget5_locked(struct super_block *sb, unsigned long hashval,
sb               1144 fs/inode.c     	struct inode *inode = ilookup5(sb, hashval, test, data);
sb               1147 fs/inode.c     		struct inode *new = alloc_inode(sb);
sb               1173 fs/inode.c     struct inode *iget_locked(struct super_block *sb, unsigned long ino)
sb               1175 fs/inode.c     	struct hlist_head *head = inode_hashtable + hash(sb, ino);
sb               1179 fs/inode.c     	inode = find_inode_fast(sb, head, ino);
sb               1192 fs/inode.c     	inode = alloc_inode(sb);
sb               1198 fs/inode.c     		old = find_inode_fast(sb, head, ino);
sb               1241 fs/inode.c     static int test_inode_iunique(struct super_block *sb, unsigned long ino)
sb               1243 fs/inode.c     	struct hlist_head *b = inode_hashtable + hash(sb, ino);
sb               1248 fs/inode.c     		if (inode->i_ino == ino && inode->i_sb == sb) {
sb               1272 fs/inode.c     ino_t iunique(struct super_block *sb, ino_t max_reserved)
sb               1288 fs/inode.c     	} while (!test_inode_iunique(sb, res));
sb               1330 fs/inode.c     struct inode *ilookup5_nowait(struct super_block *sb, unsigned long hashval,
sb               1333 fs/inode.c     	struct hlist_head *head = inode_hashtable + hash(sb, hashval);
sb               1337 fs/inode.c     	inode = find_inode(sb, head, test, data);
sb               1361 fs/inode.c     struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
sb               1366 fs/inode.c     	inode = ilookup5_nowait(sb, hashval, test, data);
sb               1386 fs/inode.c     struct inode *ilookup(struct super_block *sb, unsigned long ino)
sb               1388 fs/inode.c     	struct hlist_head *head = inode_hashtable + hash(sb, ino);
sb               1392 fs/inode.c     	inode = find_inode_fast(sb, head, ino);
sb               1431 fs/inode.c     struct inode *find_inode_nowait(struct super_block *sb,
sb               1437 fs/inode.c     	struct hlist_head *head = inode_hashtable + hash(sb, hashval);
sb               1443 fs/inode.c     		if (inode->i_sb != sb)
sb               1460 fs/inode.c     	struct super_block *sb = inode->i_sb;
sb               1462 fs/inode.c     	struct hlist_head *head = inode_hashtable + hash(sb, ino);
sb               1470 fs/inode.c     			if (old->i_sb != sb)
sb               1540 fs/inode.c     	struct super_block *sb = inode->i_sb;
sb               1551 fs/inode.c     	if (!drop && (sb->s_flags & SB_ACTIVE)) {
sb               2191 fs/inode.c     	struct super_block *sb = inode->i_sb;
sb               2192 fs/inode.c     	unsigned int gran = sb->s_time_gran;
sb               2194 fs/inode.c     	t.tv_sec = clamp(t.tv_sec, sb->s_time_min, sb->s_time_max);
sb               2195 fs/inode.c     	if (unlikely(t.tv_sec == sb->s_time_max || t.tv_sec == sb->s_time_min))
sb                109 fs/internal.h  extern bool trylock_super(struct super_block *sb);
sb                139 fs/internal.h  extern long prune_icache_sb(struct super_block *sb, struct shrink_control *sc);
sb                156 fs/internal.h  extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
sb                191 fs/internal.h  int sb_init_dio_done_wq(struct super_block *sb);
sb                156 fs/ioctl.c     static int fiemap_check_ranges(struct super_block *sb,
sb                159 fs/ioctl.c     	u64 maxbytes = (u64) sb->s_maxbytes;
sb                184 fs/ioctl.c     	struct super_block *sb = inode->i_sb;
sb                197 fs/ioctl.c     	error = fiemap_check_ranges(sb, fiemap.fm_start, fiemap.fm_length,
sb                560 fs/ioctl.c     	struct super_block *sb = file_inode(filp)->i_sb;
sb                562 fs/ioctl.c     	if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN))
sb                566 fs/ioctl.c     	if (sb->s_op->freeze_fs == NULL && sb->s_op->freeze_super == NULL)
sb                570 fs/ioctl.c     	if (sb->s_op->freeze_super)
sb                571 fs/ioctl.c     		return sb->s_op->freeze_super(sb);
sb                572 fs/ioctl.c     	return freeze_super(sb);
sb                577 fs/ioctl.c     	struct super_block *sb = file_inode(filp)->i_sb;
sb                579 fs/ioctl.c     	if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN))
sb                583 fs/ioctl.c     	if (sb->s_op->thaw_super)
sb                584 fs/ioctl.c     		return sb->s_op->thaw_super(sb);
sb                585 fs/ioctl.c     	return thaw_super(sb);
sb                 20 fs/isofs/export.c isofs_export_iget(struct super_block *sb,
sb                 29 fs/isofs/export.c 	inode = isofs_iget(sb, block, offset);
sb                162 fs/isofs/export.c static struct dentry *isofs_fh_to_dentry(struct super_block *sb,
sb                170 fs/isofs/export.c 	return isofs_export_iget(sb, ifid->block, ifid->offset,
sb                174 fs/isofs/export.c static struct dentry *isofs_fh_to_parent(struct super_block *sb,
sb                182 fs/isofs/export.c 	return isofs_export_iget(sb,
sb                 51 fs/isofs/inode.c static void isofs_put_super(struct super_block *sb)
sb                 53 fs/isofs/inode.c 	struct isofs_sb_info *sbi = ISOFS_SB(sb);
sb                 60 fs/isofs/inode.c 	sb->s_fs_info = NULL;
sb                 70 fs/isofs/inode.c static struct inode *isofs_alloc_inode(struct super_block *sb)
sb                113 fs/isofs/inode.c static int isofs_remount(struct super_block *sb, int *flags, char *data)
sb                115 fs/isofs/inode.c 	sync_filesystem(sb);
sb                545 fs/isofs/inode.c static unsigned int isofs_get_last_session(struct super_block *sb, s32 session)
sb                549 fs/isofs/inode.c 	struct block_device *bdev = sb->s_bdev;
sb                594 fs/isofs/inode.c static bool rootdir_empty(struct super_block *sb, unsigned long block)
sb                600 fs/isofs/inode.c 	bh = sb_bread(sb, block);
sb               1035 fs/isofs/inode.c 	struct super_block *sb = dentry->d_sb;
sb               1036 fs/isofs/inode.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb               1039 fs/isofs/inode.c 	buf->f_bsize = sb->s_blocksize;
sb               1040 fs/isofs/inode.c 	buf->f_blocks = (ISOFS_SB(sb)->s_nzones
sb               1041 fs/isofs/inode.c 		<< (ISOFS_SB(sb)->s_log_zone_size - sb->s_blocksize_bits));
sb               1044 fs/isofs/inode.c 	buf->f_files = ISOFS_SB(sb)->s_ninodes;
sb               1310 fs/isofs/inode.c 	struct super_block *sb = inode->i_sb;
sb               1311 fs/isofs/inode.c 	struct isofs_sb_info *sbi = ISOFS_SB(sb);
sb               1532 fs/isofs/inode.c struct inode *__isofs_iget(struct super_block *sb,
sb               1542 fs/isofs/inode.c 	if (offset >= 1ul << sb->s_blocksize_bits)
sb               1548 fs/isofs/inode.c 	hashval = (block << sb->s_blocksize_bits) | offset;
sb               1550 fs/isofs/inode.c 	inode = iget5_locked(sb, hashval, &isofs_iget5_test,
sb                 66 fs/isofs/isofs.h static inline struct isofs_sb_info *ISOFS_SB(struct super_block *sb)
sb                 68 fs/isofs/isofs.h 	return sb->s_fs_info;
sb                125 fs/isofs/isofs.h struct inode *__isofs_iget(struct super_block *sb,
sb                130 fs/isofs/isofs.h static inline struct inode *isofs_iget(struct super_block *sb,
sb                134 fs/isofs/isofs.h 	return __isofs_iget(sb, block, offset, 0);
sb                137 fs/isofs/isofs.h static inline struct inode *isofs_iget_reloc(struct super_block *sb,
sb                141 fs/isofs/isofs.h 	return __isofs_iget(sb, block, offset, 1);
sb                121 fs/jbd2/journal.c static int jbd2_verify_csum_type(journal_t *j, journal_superblock_t *sb)
sb                126 fs/jbd2/journal.c 	return sb->s_checksum_type == JBD2_CRC32C_CHKSUM;
sb                129 fs/jbd2/journal.c static __be32 jbd2_superblock_csum(journal_t *j, journal_superblock_t *sb)
sb                134 fs/jbd2/journal.c 	old_csum = sb->s_checksum;
sb                135 fs/jbd2/journal.c 	sb->s_checksum = 0;
sb                136 fs/jbd2/journal.c 	csum = jbd2_chksum(j, ~0, (char *)sb, sizeof(journal_superblock_t));
sb                137 fs/jbd2/journal.c 	sb->s_checksum = old_csum;
sb               1286 fs/jbd2/journal.c 	journal_superblock_t *sb = journal->j_superblock;
sb               1289 fs/jbd2/journal.c 	first = be32_to_cpu(sb->s_first);
sb               1290 fs/jbd2/journal.c 	last = be32_to_cpu(sb->s_maxlen);
sb               1317 fs/jbd2/journal.c 	if (sb->s_start == 0) {
sb               1348 fs/jbd2/journal.c 	journal_superblock_t *sb = journal->j_superblock;
sb               1374 fs/jbd2/journal.c 		sb->s_checksum = jbd2_superblock_csum(journal, sb);
sb               1407 fs/jbd2/journal.c 	journal_superblock_t *sb = journal->j_superblock;
sb               1418 fs/jbd2/journal.c 	sb->s_sequence = cpu_to_be32(tail_tid);
sb               1419 fs/jbd2/journal.c 	sb->s_start    = cpu_to_be32(tail_block);
sb               1427 fs/jbd2/journal.c 	WARN_ON(!sb->s_sequence);
sb               1445 fs/jbd2/journal.c 	journal_superblock_t *sb = journal->j_superblock;
sb               1449 fs/jbd2/journal.c 	if (sb->s_start == 0) {		/* Is it already empty? */
sb               1457 fs/jbd2/journal.c 	sb->s_sequence = cpu_to_be32(journal->j_tail_sequence);
sb               1458 fs/jbd2/journal.c 	sb->s_start    = cpu_to_be32(0);
sb               1478 fs/jbd2/journal.c 	journal_superblock_t *sb = journal->j_superblock;
sb               1486 fs/jbd2/journal.c 	sb->s_errno    = cpu_to_be32(errcode);
sb               1499 fs/jbd2/journal.c 	journal_superblock_t *sb;
sb               1518 fs/jbd2/journal.c 	sb = journal->j_superblock;
sb               1522 fs/jbd2/journal.c 	if (sb->s_header.h_magic != cpu_to_be32(JBD2_MAGIC_NUMBER) ||
sb               1523 fs/jbd2/journal.c 	    sb->s_blocksize != cpu_to_be32(journal->j_blocksize)) {
sb               1528 fs/jbd2/journal.c 	switch(be32_to_cpu(sb->s_header.h_blocktype)) {
sb               1540 fs/jbd2/journal.c 	if (be32_to_cpu(sb->s_maxlen) < journal->j_maxlen)
sb               1541 fs/jbd2/journal.c 		journal->j_maxlen = be32_to_cpu(sb->s_maxlen);
sb               1542 fs/jbd2/journal.c 	else if (be32_to_cpu(sb->s_maxlen) > journal->j_maxlen) {
sb               1547 fs/jbd2/journal.c 	if (be32_to_cpu(sb->s_first) == 0 ||
sb               1548 fs/jbd2/journal.c 	    be32_to_cpu(sb->s_first) >= journal->j_maxlen) {
sb               1551 fs/jbd2/journal.c 			be32_to_cpu(sb->s_first));
sb               1571 fs/jbd2/journal.c 	if (!jbd2_verify_csum_type(journal, sb)) {
sb               1589 fs/jbd2/journal.c 		if (sb->s_checksum != jbd2_superblock_csum(journal, sb)) {
sb               1596 fs/jbd2/journal.c 		journal->j_csum_seed = jbd2_chksum(journal, ~0, sb->s_uuid,
sb               1597 fs/jbd2/journal.c 						   sizeof(sb->s_uuid));
sb               1617 fs/jbd2/journal.c 	journal_superblock_t *sb;
sb               1623 fs/jbd2/journal.c 	sb = journal->j_superblock;
sb               1625 fs/jbd2/journal.c 	journal->j_tail_sequence = be32_to_cpu(sb->s_sequence);
sb               1626 fs/jbd2/journal.c 	journal->j_tail = be32_to_cpu(sb->s_start);
sb               1627 fs/jbd2/journal.c 	journal->j_first = be32_to_cpu(sb->s_first);
sb               1628 fs/jbd2/journal.c 	journal->j_last = be32_to_cpu(sb->s_maxlen);
sb               1629 fs/jbd2/journal.c 	journal->j_errno = be32_to_cpu(sb->s_errno);
sb               1646 fs/jbd2/journal.c 	journal_superblock_t *sb;
sb               1652 fs/jbd2/journal.c 	sb = journal->j_superblock;
sb               1657 fs/jbd2/journal.c 		if ((sb->s_feature_ro_compat &
sb               1659 fs/jbd2/journal.c 		    (sb->s_feature_incompat &
sb               1670 fs/jbd2/journal.c 	err = jbd2_journal_create_slab(be32_to_cpu(sb->s_blocksize));
sb               1795 fs/jbd2/journal.c 	journal_superblock_t *sb;
sb               1806 fs/jbd2/journal.c 	sb = journal->j_superblock;
sb               1808 fs/jbd2/journal.c 	if (((be32_to_cpu(sb->s_feature_compat) & compat) == compat) &&
sb               1809 fs/jbd2/journal.c 	    ((be32_to_cpu(sb->s_feature_ro_compat) & ro) == ro) &&
sb               1810 fs/jbd2/journal.c 	    ((be32_to_cpu(sb->s_feature_incompat) & incompat) == incompat))
sb               1864 fs/jbd2/journal.c 		((incompat & (f)) && !(sb->s_feature_incompat & cpu_to_be32(f)))
sb               1866 fs/jbd2/journal.c 		((compat & (f)) && !(sb->s_feature_compat & cpu_to_be32(f)))
sb               1867 fs/jbd2/journal.c 	journal_superblock_t *sb;
sb               1889 fs/jbd2/journal.c 	sb = journal->j_superblock;
sb               1901 fs/jbd2/journal.c 		journal->j_csum_seed = jbd2_chksum(journal, ~0, sb->s_uuid,
sb               1902 fs/jbd2/journal.c 						   sizeof(sb->s_uuid));
sb               1909 fs/jbd2/journal.c 		sb->s_checksum_type = JBD2_CRC32C_CHKSUM;
sb               1910 fs/jbd2/journal.c 		sb->s_feature_compat &=
sb               1916 fs/jbd2/journal.c 		sb->s_feature_incompat &=
sb               1920 fs/jbd2/journal.c 	sb->s_feature_compat    |= cpu_to_be32(compat);
sb               1921 fs/jbd2/journal.c 	sb->s_feature_ro_compat |= cpu_to_be32(ro);
sb               1922 fs/jbd2/journal.c 	sb->s_feature_incompat  |= cpu_to_be32(incompat);
sb               1944 fs/jbd2/journal.c 	journal_superblock_t *sb;
sb               1949 fs/jbd2/journal.c 	sb = journal->j_superblock;
sb               1951 fs/jbd2/journal.c 	sb->s_feature_compat    &= ~cpu_to_be32(compat);
sb               1952 fs/jbd2/journal.c 	sb->s_feature_ro_compat &= ~cpu_to_be32(ro);
sb               1953 fs/jbd2/journal.c 	sb->s_feature_incompat  &= ~cpu_to_be32(incompat);
sb                247 fs/jbd2/recovery.c 	journal_superblock_t *	sb;
sb                252 fs/jbd2/recovery.c 	sb = journal->j_superblock;
sb                260 fs/jbd2/recovery.c 	if (!sb->s_start) {
sb                262 fs/jbd2/recovery.c 			  be32_to_cpu(sb->s_sequence));
sb                263 fs/jbd2/recovery.c 		journal->j_transaction_sequence = be32_to_cpu(sb->s_sequence) + 1;
sb                422 fs/jbd2/recovery.c 	journal_superblock_t *	sb;
sb                438 fs/jbd2/recovery.c 	sb = journal->j_superblock;
sb                439 fs/jbd2/recovery.c 	next_commit_ID = be32_to_cpu(sb->s_sequence);
sb                440 fs/jbd2/recovery.c 	next_log_block = be32_to_cpu(sb->s_start);
sb                252 fs/jffs2/fs.c  struct inode *jffs2_iget(struct super_block *sb, unsigned long ino)
sb                264 fs/jffs2/fs.c  	inode = iget_locked(sb, ino);
sb                395 fs/jffs2/fs.c  int jffs2_do_remount_fs(struct super_block *sb, struct fs_context *fc)
sb                397 fs/jffs2/fs.c  	struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
sb                399 fs/jffs2/fs.c  	if (c->flags & JFFS2_SB_FLAG_RO && !sb_rdonly(sb))
sb                406 fs/jffs2/fs.c  	if (!sb_rdonly(sb)) {
sb                425 fs/jffs2/fs.c  	struct super_block *sb = dir_i->i_sb;
sb                433 fs/jffs2/fs.c  	c = JFFS2_SB_INFO(sb);
sb                435 fs/jffs2/fs.c  	inode = new_inode(sb);
sb                513 fs/jffs2/fs.c  int jffs2_do_fill_super(struct super_block *sb, struct fs_context *fc)
sb                520 fs/jffs2/fs.c  	c = JFFS2_SB_INFO(sb);
sb                576 fs/jffs2/fs.c  	root_i = jffs2_iget(sb, 1);
sb                586 fs/jffs2/fs.c  	sb->s_root = d_make_root(root_i);
sb                587 fs/jffs2/fs.c  	if (!sb->s_root)
sb                590 fs/jffs2/fs.c  	sb->s_maxbytes = 0xFFFFFFFF;
sb                591 fs/jffs2/fs.c  	sb->s_blocksize = PAGE_SIZE;
sb                592 fs/jffs2/fs.c  	sb->s_blocksize_bits = PAGE_SHIFT;
sb                593 fs/jffs2/fs.c  	sb->s_magic = JFFS2_SUPER_MAGIC;
sb                594 fs/jffs2/fs.c  	sb->s_time_min = 0;
sb                595 fs/jffs2/fs.c  	sb->s_time_max = U32_MAX;
sb                597 fs/jffs2/fs.c  	if (!sb_rdonly(sb))
sb                 24 fs/jffs2/os-linux.h #define JFFS2_SB_INFO(sb) (sb->s_fs_info)
sb                175 fs/jffs2/os-linux.h int jffs2_do_remount_fs(struct super_block *sb, struct fs_context *fc);
sb                176 fs/jffs2/os-linux.h int jffs2_do_fill_super(struct super_block *sb, struct fs_context *fc);
sb                 38 fs/jffs2/super.c static struct inode *jffs2_alloc_inode(struct super_block *sb)
sb                 97 fs/jffs2/super.c static int jffs2_sync_fs(struct super_block *sb, int wait)
sb                 99 fs/jffs2/super.c 	struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
sb                112 fs/jffs2/super.c static struct inode *jffs2_nfs_get_inode(struct super_block *sb, uint64_t ino,
sb                118 fs/jffs2/super.c 	return jffs2_iget(sb, ino);
sb                121 fs/jffs2/super.c static struct dentry *jffs2_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                124 fs/jffs2/super.c         return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                128 fs/jffs2/super.c static struct dentry *jffs2_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                131 fs/jffs2/super.c         return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                226 fs/jffs2/super.c 	struct super_block *sb = fc->root->d_sb;
sb                228 fs/jffs2/super.c 	sync_filesystem(sb);
sb                229 fs/jffs2/super.c 	return jffs2_do_remount_fs(sb, fc);
sb                247 fs/jffs2/super.c static int jffs2_fill_super(struct super_block *sb, struct fs_context *fc)
sb                249 fs/jffs2/super.c 	struct jffs2_sb_info *c = sb->s_fs_info;
sb                253 fs/jffs2/super.c 		  sb->s_mtd->index, sb->s_mtd->name);
sb                255 fs/jffs2/super.c 	c->mtd = sb->s_mtd;
sb                256 fs/jffs2/super.c 	c->os_priv = sb;
sb                267 fs/jffs2/super.c 	sb->s_op = &jffs2_super_operations;
sb                268 fs/jffs2/super.c 	sb->s_export_op = &jffs2_export_ops;
sb                269 fs/jffs2/super.c 	sb->s_flags = sb->s_flags | SB_NOATIME;
sb                270 fs/jffs2/super.c 	sb->s_xattr = jffs2_xattr_handlers;
sb                272 fs/jffs2/super.c 	sb->s_flags |= SB_POSIXACL;
sb                274 fs/jffs2/super.c 	return jffs2_do_fill_super(sb, fc);
sb                307 fs/jffs2/super.c static void jffs2_put_super (struct super_block *sb)
sb                309 fs/jffs2/super.c 	struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
sb                329 fs/jffs2/super.c static void jffs2_kill_sb(struct super_block *sb)
sb                331 fs/jffs2/super.c 	struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
sb                332 fs/jffs2/super.c 	if (c && !sb_rdonly(sb))
sb                334 fs/jffs2/super.c 	kill_mtd_super(sb);
sb               1163 fs/jffs2/wbuf.c 	struct super_block *sb = OFNI_BS_2SFFJ(c);
sb               1165 fs/jffs2/wbuf.c 	if (!sb_rdonly(sb)) {
sb               1173 fs/jffs2/wbuf.c 	struct super_block *sb = OFNI_BS_2SFFJ(c);
sb               1176 fs/jffs2/wbuf.c 	if (sb_rdonly(sb))
sb                 24 fs/jfs/inode.c struct inode *jfs_iget(struct super_block *sb, unsigned long ino)
sb                 29 fs/jfs/inode.c 	inode = iget_locked(sb, ino);
sb                124 fs/jfs/ioctl.c 		struct super_block *sb = inode->i_sb;
sb                125 fs/jfs/ioctl.c 		struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb                 34 fs/jfs/jfs_discard.c 	struct super_block *sb = ip->i_sb;
sb                 37 fs/jfs/jfs_discard.c 	r = sb_issue_discard(sb, blkno, nblocks, GFP_NOFS, 0);
sb                 40 fs/jfs/jfs_discard.c 			sb, (unsigned long long)blkno,
sb                 45 fs/jfs/jfs_discard.c 		sb, (unsigned long long)blkno,
sb                 69 fs/jfs/jfs_discard.c 	struct super_block *sb = ipbmap->i_sb;
sb                 80 fs/jfs/jfs_discard.c 	start = range->start >> sb->s_blocksize_bits;
sb                 81 fs/jfs/jfs_discard.c 	end = start + (range->len >> sb->s_blocksize_bits) - 1;
sb                 82 fs/jfs/jfs_discard.c 	minlen = range->minlen >> sb->s_blocksize_bits;
sb                 88 fs/jfs/jfs_discard.c 	    range->len < sb->s_blocksize)
sb                103 fs/jfs/jfs_discard.c 	range->len = trimmed << sb->s_blocksize_bits;
sb                326 fs/jfs/jfs_dmap.c 	struct super_block *sb = ipbmap->i_sb;
sb                343 fs/jfs/jfs_dmap.c 	if (JFS_SBI(sb)->flag & JFS_DISCARD)
sb                344 fs/jfs/jfs_dmap.c 		if (JFS_SBI(sb)->minblks_trim <= nblocks)
sb                436 fs/jfs/jfs_dmap.c 	log = (struct jfs_log *) JFS_SBI(tblk->sb)->log;
sb               1613 fs/jfs/jfs_dmap.c 	struct super_block *sb = ipbmap->i_sb;
sb               1676 fs/jfs/jfs_dmap.c 		if (!(JFS_SBI(sb)->flag & JFS_DISCARD))
sb               4041 fs/jfs/jfs_dmap.c 	struct super_block *sb = ipbmap->i_sb;
sb               4047 fs/jfs/jfs_dmap.c 	nblocks = ipbmap->i_size >> JFS_SBI(sb)->l2bsize;
sb               4048 fs/jfs/jfs_dmap.c 	npages = nblocks >> JFS_SBI(sb)->l2nbperpage;
sb                323 fs/jfs/jfs_dtree.c 	struct super_block *sb = ip->i_sb;
sb                324 fs/jfs/jfs_dtree.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                582 fs/jfs/jfs_dtree.c 	struct super_block *sb = ip->i_sb;
sb                597 fs/jfs/jfs_dtree.c 	if ((JFS_SBI(sb)->mntflag & JFS_OS2) == JFS_OS2) {
sb                640 fs/jfs/jfs_dtree.c 					      JFS_SBI(sb)->mntflag);
sb                767 fs/jfs/jfs_dtree.c 			jfs_error(sb, "stack overrun!\n");
sb               1633 fs/jfs/jfs_dtree.c 	struct super_block *sb = ip->i_sb;
sb               1727 fs/jfs/jfs_dtree.c 	xsize = xlen << JFS_SBI(sb)->l2bsize;
sb               1866 fs/jfs/jfs_dtree.c 	struct super_block *sb = ip->i_sb;
sb               1901 fs/jfs/jfs_dtree.c 	xsize = xlen << JFS_SBI(sb)->l2bsize;
sb                204 fs/jfs/jfs_extent.c 	struct super_block *sb = ip->i_sb;
sb                207 fs/jfs/jfs_extent.c 	int rc, nbperpage = JFS_SBI(sb)->nbperpage;
sb                353 fs/jfs/jfs_extent.c 	struct super_block *sb = ip->i_sb;
sb                354 fs/jfs/jfs_extent.c 	int nbperpage = JFS_SBI(sb)->nbperpage;
sb                367 fs/jfs/jfs_extent.c 	prev = ((offset & ~POFFSET) >> JFS_SBI(sb)->l2bsize) - nbperpage;
sb                139 fs/jfs/jfs_filsys.h #define	LBLK2PBLK(sb,b)	((b) << (sb->s_blocksize_bits - L2PBSIZE))
sb                140 fs/jfs/jfs_filsys.h #define	PBLK2LBLK(sb,b)	((b) >> (sb->s_blocksize_bits - L2PBSIZE))
sb                416 fs/jfs/jfs_imap.c struct inode *diReadSpecial(struct super_block *sb, ino_t inum, int secondary)
sb                418 fs/jfs/jfs_imap.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                424 fs/jfs/jfs_imap.c 	ip = new_inode(sb);
sb               2437 fs/jfs/jfs_imap.c 	struct super_block *sb;
sb               2448 fs/jfs/jfs_imap.c 	sb = ipimap->i_sb;
sb               2449 fs/jfs/jfs_imap.c 	sbi = JFS_SBI(sb);
sb               2513 fs/jfs/jfs_imap.c 		tid = txBegin(sb, COMMIT_FORCE);
sb               2589 fs/jfs/jfs_imap.c 		duplicateIXtree(sb, blkno, xlen, &xaddr);
sb               2801 fs/jfs/jfs_imap.c 	log = JFS_SBI(tblk->sb)->log;
sb               2974 fs/jfs/jfs_imap.c static void duplicateIXtree(struct super_block *sb, s64 blkno,
sb               2983 fs/jfs/jfs_imap.c 	if (JFS_SBI(sb)->mntflag & JFS_BAD_SAIT)	/* s_flag */
sb               2985 fs/jfs/jfs_imap.c 	ip = diReadSpecial(sb, FILESYSTEM_I, 1);
sb               2987 fs/jfs/jfs_imap.c 		JFS_SBI(sb)->mntflag |= JFS_BAD_SAIT;
sb               2988 fs/jfs/jfs_imap.c 		if (readSuper(sb, &bh))
sb               3000 fs/jfs/jfs_imap.c 	tid = txBegin(sb, COMMIT_FORCE);
sb               3003 fs/jfs/jfs_imap.c 		JFS_SBI(sb)->mntflag |= JFS_BAD_SAIT;
sb                152 fs/jfs/jfs_incore.h 	struct super_block *sb;		/* Point back to vfs super block */
sb                207 fs/jfs/jfs_incore.h static inline struct jfs_sb_info *JFS_SBI(struct super_block *sb)
sb                209 fs/jfs/jfs_incore.h 	return sb->s_fs_info;
sb                 43 fs/jfs/jfs_inode.c 	struct super_block *sb = parent->i_sb;
sb                 48 fs/jfs/jfs_inode.c 	inode = new_inode(sb);
sb                102 fs/jfs/jfs_inode.c 	inode->i_generation = JFS_SBI(sb)->gengen++;
sb                 23 fs/jfs/jfs_inode.h extern struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                 25 fs/jfs/jfs_inode.h extern struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                170 fs/jfs/jfs_logmgr.c static int open_inline_log(struct super_block *sb);
sb                171 fs/jfs/jfs_logmgr.c static int open_dummy_log(struct super_block *sb);
sb               1066 fs/jfs/jfs_logmgr.c int lmLogOpen(struct super_block *sb)
sb               1071 fs/jfs/jfs_logmgr.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb               1074 fs/jfs/jfs_logmgr.c 		return open_dummy_log(sb);
sb               1077 fs/jfs/jfs_logmgr.c 		return open_inline_log(sb);
sb               1162 fs/jfs/jfs_logmgr.c static int open_inline_log(struct super_block *sb)
sb               1173 fs/jfs/jfs_logmgr.c 	log->bdev = sb->s_bdev;
sb               1174 fs/jfs/jfs_logmgr.c 	log->base = addressPXD(&JFS_SBI(sb)->logpxd);
sb               1175 fs/jfs/jfs_logmgr.c 	log->size = lengthPXD(&JFS_SBI(sb)->logpxd) >>
sb               1176 fs/jfs/jfs_logmgr.c 	    (L2LOGPSIZE - sb->s_blocksize_bits);
sb               1177 fs/jfs/jfs_logmgr.c 	log->l2bsize = sb->s_blocksize_bits;
sb               1178 fs/jfs/jfs_logmgr.c 	ASSERT(L2LOGPSIZE >= sb->s_blocksize_bits);
sb               1189 fs/jfs/jfs_logmgr.c 	list_add(&JFS_SBI(sb)->log_list, &log->sb_list);
sb               1190 fs/jfs/jfs_logmgr.c 	JFS_SBI(sb)->log = log;
sb               1195 fs/jfs/jfs_logmgr.c static int open_dummy_log(struct super_block *sb)
sb               1222 fs/jfs/jfs_logmgr.c 	list_add(&JFS_SBI(sb)->log_list, &dummy_log->sb_list);
sb               1223 fs/jfs/jfs_logmgr.c 	JFS_SBI(sb)->log = dummy_log;
sb               1442 fs/jfs/jfs_logmgr.c int lmLogClose(struct super_block *sb)
sb               1444 fs/jfs/jfs_logmgr.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb               1461 fs/jfs/jfs_logmgr.c 	sync_blockdev(sb->s_bdev);
sb                490 fs/jfs/jfs_logmgr.h extern int lmLogOpen(struct super_block *sb);
sb                491 fs/jfs/jfs_logmgr.h extern int lmLogClose(struct super_block *sb);
sb                656 fs/jfs/jfs_metapage.c 		mp->sb = inode->i_sb;
sb                705 fs/jfs/jfs_metapage.c 		jfs_error(mp->sb, "write_one_page() failed\n");
sb                751 fs/jfs/jfs_metapage.c 				jfs_error(mp->sb, "write_one_page() failed\n");
sb                 28 fs/jfs/jfs_metapage.h 	struct super_block *sb;
sb                 53 fs/jfs/jfs_mount.c static int logMOUNT(struct super_block *sb);
sb                 68 fs/jfs/jfs_mount.c int jfs_mount(struct super_block *sb)
sb                 71 fs/jfs/jfs_mount.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                 81 fs/jfs/jfs_mount.c 	if ((rc = chkSuper(sb))) {
sb                 85 fs/jfs/jfs_mount.c 	ipaimap = diReadSpecial(sb, AGGREGATE_I, 0);
sb                106 fs/jfs/jfs_mount.c 	ipbmap = diReadSpecial(sb, BMAP_I, 0);
sb                136 fs/jfs/jfs_mount.c 		ipaimap2 = diReadSpecial(sb, AGGREGATE_I, 1);
sb                164 fs/jfs/jfs_mount.c 	ipimap = diReadSpecial(sb, FILESYSTEM_I, 0);
sb                226 fs/jfs/jfs_mount.c int jfs_mount_rw(struct super_block *sb, int remount)
sb                228 fs/jfs/jfs_mount.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                237 fs/jfs/jfs_mount.c 		if (chkSuper(sb) || (sbi->state != FM_CLEAN))
sb                258 fs/jfs/jfs_mount.c 	if ((rc = lmLogOpen(sb)))
sb                264 fs/jfs/jfs_mount.c 	if ((rc = updateSuper(sb, FM_MOUNT))) {
sb                266 fs/jfs/jfs_mount.c 		lmLogClose(sb);
sb                273 fs/jfs/jfs_mount.c 	logMOUNT(sb);
sb                288 fs/jfs/jfs_mount.c static int chkSuper(struct super_block *sb)
sb                291 fs/jfs/jfs_mount.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                300 fs/jfs/jfs_mount.c 	if ((rc = readSuper(sb, &bh)))
sb                352 fs/jfs/jfs_mount.c 	    !sb_rdonly(sb)) {
sb                396 fs/jfs/jfs_mount.c int updateSuper(struct super_block *sb, uint state)
sb                399 fs/jfs/jfs_mount.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                417 fs/jfs/jfs_mount.c 	if ((rc = readSuper(sb, &bh)))
sb                451 fs/jfs/jfs_mount.c int readSuper(struct super_block *sb, struct buffer_head **bpp)
sb                454 fs/jfs/jfs_mount.c 	*bpp = sb_bread(sb, SUPER1_OFF >> sb->s_blocksize_bits);
sb                459 fs/jfs/jfs_mount.c 	*bpp = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits);
sb                481 fs/jfs/jfs_mount.c static int logMOUNT(struct super_block *sb)
sb                483 fs/jfs/jfs_mount.c 	struct jfs_log *log = JFS_SBI(sb)->log;
sb                490 fs/jfs/jfs_mount.c 	lrd.aggregate = cpu_to_le32(new_encode_dev(sb->s_bdev->bd_dev));
sb                348 fs/jfs/jfs_txnmgr.c tid_t txBegin(struct super_block *sb, int flag)
sb                355 fs/jfs/jfs_txnmgr.c 	log = JFS_SBI(sb)->log;
sb                420 fs/jfs/jfs_txnmgr.c 	tblk->sb = sb;
sb                447 fs/jfs/jfs_txnmgr.c void txBeginAnon(struct super_block *sb)
sb                451 fs/jfs/jfs_txnmgr.c 	log = JFS_SBI(sb)->log;
sb                501 fs/jfs/jfs_txnmgr.c 	log = JFS_SBI(tblk->sb)->log;
sb                906 fs/jfs/jfs_txnmgr.c 	log = JFS_SBI(tblk->sb)->log;
sb               1136 fs/jfs/jfs_txnmgr.c 	struct super_block *sb;
sb               1145 fs/jfs/jfs_txnmgr.c 	sb = cd.sb = iplist[0]->i_sb;
sb               1149 fs/jfs/jfs_txnmgr.c 		tid = txBegin(sb, 0);
sb               1155 fs/jfs/jfs_txnmgr.c 	log = JFS_SBI(sb)->log;
sb               1449 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
sb               1569 fs/jfs/jfs_txnmgr.c 	PXDlength(pxd, mp->logical_size >> tblk->sb->s_blocksize_bits);
sb               1620 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
sb               1649 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
sb               1739 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
sb               1828 fs/jfs/jfs_txnmgr.c 				  mp->logical_size >> tblk->sb->
sb               1949 fs/jfs/jfs_txnmgr.c 			  mp->logical_size >> tblk->sb->s_blocksize_bits);
sb               2289 fs/jfs/jfs_txnmgr.c 	ipimap = JFS_SBI(tblk->sb)->ipimap;
sb               2669 fs/jfs/jfs_txnmgr.c 		jfs_error(tblk->sb, "\n");
sb               2698 fs/jfs/jfs_txnmgr.c 	log = (struct jfs_log *) JFS_SBI(tblk->sb)->log;
sb               2745 fs/jfs/jfs_txnmgr.c 				sbi = JFS_SBI(tblk->sb);
sb               2815 fs/jfs/jfs_txnmgr.c 	if (!(JFS_SBI(tblk->sb)->commit_state & IN_LAZYCOMMIT) &&
sb               2842 fs/jfs/jfs_txnmgr.c void txQuiesce(struct super_block *sb)
sb               2846 fs/jfs/jfs_txnmgr.c 	struct jfs_log *log = JFS_SBI(sb)->log;
sb               2898 fs/jfs/jfs_txnmgr.c void txResume(struct super_block *sb)
sb               2900 fs/jfs/jfs_txnmgr.c 	struct jfs_log *log = JFS_SBI(sb)->log;
sb                 34 fs/jfs/jfs_txnmgr.h 	struct super_block *sb;	/* super block */
sb                264 fs/jfs/jfs_txnmgr.h 	struct super_block *sb;	/* superblock */
sb                 37 fs/jfs/jfs_umount.c int jfs_umount(struct super_block *sb)
sb                 39 fs/jfs/jfs_umount.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                 47 fs/jfs/jfs_umount.c 	jfs_info("UnMount JFS: sb:0x%p", sb);
sb                109 fs/jfs/jfs_umount.c 		updateSuper(sb, FM_CLEAN);
sb                116 fs/jfs/jfs_umount.c 		rc = lmLogClose(sb);
sb                123 fs/jfs/jfs_umount.c int jfs_umount_rw(struct super_block *sb)
sb                125 fs/jfs/jfs_umount.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                152 fs/jfs/jfs_umount.c 	updateSuper(sb, FM_CLEAN);
sb                154 fs/jfs/jfs_umount.c 	return lmLogClose(sb);
sb                885 fs/jfs/namei.c 	struct super_block *sb;
sb                977 fs/jfs/namei.c 		sb = ip->i_sb;
sb                978 fs/jfs/namei.c 		bmask = JFS_SBI(sb)->bsize - 1;
sb                981 fs/jfs/namei.c 		xlen = xsize >> JFS_SBI(sb)->l2bsize;
sb               1003 fs/jfs/namei.c 			xaddr += JFS_SBI(sb)->nbperpage;
sb               1469 fs/jfs/namei.c static struct inode *jfs_nfs_get_inode(struct super_block *sb,
sb               1476 fs/jfs/namei.c 	inode = jfs_iget(sb, ino);
sb               1488 fs/jfs/namei.c struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb               1491 fs/jfs/namei.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb               1495 fs/jfs/namei.c struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb               1498 fs/jfs/namei.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                 49 fs/jfs/resize.c int jfs_extendfs(struct super_block *sb, s64 newLVSize, int newLogSize)
sb                 52 fs/jfs/resize.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                 88 fs/jfs/resize.c 	VolumeSize = i_size_read(sb->s_bdev->bd_inode) >> sb->s_blocksize_bits;
sb                 98 fs/jfs/resize.c 		bh = sb_bread(sb, newLVSize - 1);
sb                198 fs/jfs/resize.c 	txQuiesce(sb);
sb                201 fs/jfs/resize.c 	sbi->direct_inode->i_size =  i_size_read(sb->s_bdev->bd_inode);
sb                224 fs/jfs/resize.c 		if ((rc = readSuper(sb, &bh)))
sb                255 fs/jfs/resize.c 		log->size = newLogSize >> (L2LOGPSIZE - sb->s_blocksize_bits);
sb                385 fs/jfs/resize.c 	tid = txBegin(sb, COMMIT_FORCE);
sb                467 fs/jfs/resize.c 	ipbmap2 = diReadSpecial(sb, BMAP_I, 1);
sb                482 fs/jfs/resize.c 	if ((rc = readSuper(sb, &bh)))
sb                508 fs/jfs/resize.c 	bh2 = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits);
sb                526 fs/jfs/resize.c 	jfs_error(sb, "\n");
sb                532 fs/jfs/resize.c 	txResume(sb);
sb                 62 fs/jfs/super.c static void jfs_handle_error(struct super_block *sb)
sb                 64 fs/jfs/super.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                 66 fs/jfs/super.c 	if (sb_rdonly(sb))
sb                 69 fs/jfs/super.c 	updateSuper(sb, FM_DIRTY);
sb                 73 fs/jfs/super.c 			sb->s_id);
sb                 76 fs/jfs/super.c 			sb->s_id);
sb                 77 fs/jfs/super.c 		sb->s_flags |= SB_RDONLY;
sb                 83 fs/jfs/super.c void jfs_error(struct super_block *sb, const char *fmt, ...)
sb                 94 fs/jfs/super.c 	       sb->s_id, __builtin_return_address(0), &vaf);
sb                 98 fs/jfs/super.c 	jfs_handle_error(sb);
sb                101 fs/jfs/super.c static struct inode *jfs_alloc_inode(struct super_block *sb)
sb                157 fs/jfs/super.c static int jfs_quota_off(struct super_block *sb, int type);
sb                158 fs/jfs/super.c static int jfs_quota_on(struct super_block *sb, int type, int format_id,
sb                161 fs/jfs/super.c static void jfs_quota_off_umount(struct super_block *sb)
sb                166 fs/jfs/super.c 		jfs_quota_off(sb, type);
sb                180 fs/jfs/super.c static inline void jfs_quota_off_umount(struct super_block *sb)
sb                185 fs/jfs/super.c static void jfs_put_super(struct super_block *sb)
sb                187 fs/jfs/super.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                192 fs/jfs/super.c 	jfs_quota_off_umount(sb);
sb                194 fs/jfs/super.c 	rc = jfs_umount(sb);
sb                233 fs/jfs/super.c static int parse_options(char *options, struct super_block *sb, s64 *newLVSize,
sb                238 fs/jfs/super.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                287 fs/jfs/super.c 			*newLVSize = i_size_read(sb->s_bdev->bd_inode) >>
sb                288 fs/jfs/super.c 				sb->s_blocksize_bits;
sb                377 fs/jfs/super.c 			struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb                396 fs/jfs/super.c 			struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb                430 fs/jfs/super.c static int jfs_remount(struct super_block *sb, int *flags, char *data)
sb                434 fs/jfs/super.c 	int flag = JFS_SBI(sb)->flag;
sb                437 fs/jfs/super.c 	sync_filesystem(sb);
sb                438 fs/jfs/super.c 	if (!parse_options(data, sb, &newLVSize, &flag))
sb                442 fs/jfs/super.c 		if (sb_rdonly(sb)) {
sb                446 fs/jfs/super.c 		rc = jfs_extendfs(sb, newLVSize, 0);
sb                451 fs/jfs/super.c 	if (sb_rdonly(sb) && !(*flags & SB_RDONLY)) {
sb                456 fs/jfs/super.c 		truncate_inode_pages(JFS_SBI(sb)->direct_inode->i_mapping, 0);
sb                458 fs/jfs/super.c 		JFS_SBI(sb)->flag = flag;
sb                459 fs/jfs/super.c 		ret = jfs_mount_rw(sb, 1);
sb                462 fs/jfs/super.c 		sb->s_flags &= ~SB_RDONLY;
sb                464 fs/jfs/super.c 		dquot_resume(sb, -1);
sb                467 fs/jfs/super.c 	if (!sb_rdonly(sb) && (*flags & SB_RDONLY)) {
sb                468 fs/jfs/super.c 		rc = dquot_suspend(sb, -1);
sb                471 fs/jfs/super.c 		rc = jfs_umount_rw(sb);
sb                472 fs/jfs/super.c 		JFS_SBI(sb)->flag = flag;
sb                475 fs/jfs/super.c 	if ((JFS_SBI(sb)->flag & JFS_NOINTEGRITY) != (flag & JFS_NOINTEGRITY))
sb                476 fs/jfs/super.c 		if (!sb_rdonly(sb)) {
sb                477 fs/jfs/super.c 			rc = jfs_umount_rw(sb);
sb                481 fs/jfs/super.c 			JFS_SBI(sb)->flag = flag;
sb                482 fs/jfs/super.c 			ret = jfs_mount_rw(sb, 1);
sb                485 fs/jfs/super.c 	JFS_SBI(sb)->flag = flag;
sb                490 fs/jfs/super.c static int jfs_fill_super(struct super_block *sb, void *data, int silent)
sb                498 fs/jfs/super.c 	jfs_info("In jfs_read_super: s_flags=0x%lx", sb->s_flags);
sb                504 fs/jfs/super.c 	sb->s_fs_info = sbi;
sb                505 fs/jfs/super.c 	sb->s_max_links = JFS_LINK_MAX;
sb                506 fs/jfs/super.c 	sb->s_time_min = 0;
sb                507 fs/jfs/super.c 	sb->s_time_max = U32_MAX;
sb                508 fs/jfs/super.c 	sbi->sb = sb;
sb                516 fs/jfs/super.c 	if (!parse_options((char *) data, sb, &newLVSize, &flag))
sb                521 fs/jfs/super.c 	sb->s_flags |= SB_POSIXACL;
sb                532 fs/jfs/super.c 	sb_set_blocksize(sb, PSIZE);
sb                537 fs/jfs/super.c 	sb->s_op = &jfs_super_operations;
sb                538 fs/jfs/super.c 	sb->s_export_op = &jfs_export_operations;
sb                539 fs/jfs/super.c 	sb->s_xattr = jfs_xattr_handlers;
sb                541 fs/jfs/super.c 	sb->dq_op = &dquot_operations;
sb                542 fs/jfs/super.c 	sb->s_qcop = &jfs_quotactl_ops;
sb                543 fs/jfs/super.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP;
sb                549 fs/jfs/super.c 	inode = new_inode(sb);
sb                555 fs/jfs/super.c 	inode->i_size = i_size_read(sb->s_bdev->bd_inode);
sb                562 fs/jfs/super.c 	rc = jfs_mount(sb);
sb                568 fs/jfs/super.c 	if (sb_rdonly(sb))
sb                571 fs/jfs/super.c 		rc = jfs_mount_rw(sb, 0);
sb                581 fs/jfs/super.c 	sb->s_magic = JFS_SUPER_MAGIC;
sb                584 fs/jfs/super.c 		sb->s_d_op = &jfs_ci_dentry_operations;
sb                586 fs/jfs/super.c 	inode = jfs_iget(sb, ROOT_I);
sb                591 fs/jfs/super.c 	sb->s_root = d_make_root(inode);
sb                592 fs/jfs/super.c 	if (!sb->s_root)
sb                598 fs/jfs/super.c 	sb->s_maxbytes = min(((loff_t)sb->s_blocksize) << 40, MAX_LFS_FILESIZE);
sb                599 fs/jfs/super.c 	sb->s_time_gran = 1;
sb                606 fs/jfs/super.c 	rc = jfs_umount(sb);
sb                622 fs/jfs/super.c static int jfs_freeze(struct super_block *sb)
sb                624 fs/jfs/super.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                628 fs/jfs/super.c 	if (!sb_rdonly(sb)) {
sb                629 fs/jfs/super.c 		txQuiesce(sb);
sb                632 fs/jfs/super.c 			jfs_error(sb, "lmLogShutdown failed\n");
sb                635 fs/jfs/super.c 			txResume(sb);
sb                639 fs/jfs/super.c 		rc = updateSuper(sb, FM_CLEAN);
sb                652 fs/jfs/super.c static int jfs_unfreeze(struct super_block *sb)
sb                654 fs/jfs/super.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                658 fs/jfs/super.c 	if (!sb_rdonly(sb)) {
sb                659 fs/jfs/super.c 		rc = updateSuper(sb, FM_MOUNT);
sb                661 fs/jfs/super.c 			jfs_error(sb, "updateSuper failed\n");
sb                666 fs/jfs/super.c 			jfs_error(sb, "lmLogInit failed\n");
sb                668 fs/jfs/super.c 		txResume(sb);
sb                679 fs/jfs/super.c static int jfs_sync_fs(struct super_block *sb, int wait)
sb                681 fs/jfs/super.c 	struct jfs_log *log = JFS_SBI(sb)->log;
sb                689 fs/jfs/super.c 		dquot_writeback_dquots(sb, -1);
sb                735 fs/jfs/super.c static ssize_t jfs_quota_read(struct super_block *sb, int type, char *data,
sb                738 fs/jfs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb                739 fs/jfs/super.c 	sector_t blk = off >> sb->s_blocksize_bits;
sb                741 fs/jfs/super.c 	int offset = off & (sb->s_blocksize - 1);
sb                754 fs/jfs/super.c 		tocopy = sb->s_blocksize - offset < toread ?
sb                755 fs/jfs/super.c 				sb->s_blocksize - offset : toread;
sb                765 fs/jfs/super.c 			bh = sb_bread(sb, tmp_bh.b_blocknr);
sb                780 fs/jfs/super.c static ssize_t jfs_quota_write(struct super_block *sb, int type,
sb                783 fs/jfs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb                784 fs/jfs/super.c 	sector_t blk = off >> sb->s_blocksize_bits;
sb                786 fs/jfs/super.c 	int offset = off & (sb->s_blocksize - 1);
sb                794 fs/jfs/super.c 		tocopy = sb->s_blocksize - offset < towrite ?
sb                795 fs/jfs/super.c 				sb->s_blocksize - offset : towrite;
sb                802 fs/jfs/super.c 		if (offset || tocopy != sb->s_blocksize)
sb                803 fs/jfs/super.c 			bh = sb_bread(sb, tmp_bh.b_blocknr);
sb                805 fs/jfs/super.c 			bh = sb_getblk(sb, tmp_bh.b_blocknr);
sb                840 fs/jfs/super.c static int jfs_quota_on(struct super_block *sb, int type, int format_id,
sb                846 fs/jfs/super.c 	err = dquot_quota_on(sb, type, format_id, path);
sb                861 fs/jfs/super.c static int jfs_quota_off(struct super_block *sb, int type)
sb                863 fs/jfs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb                869 fs/jfs/super.c 	err = dquot_quota_off(sb, type);
sb                882 fs/jfs/super.c 	return dquot_quota_off(sb, type);
sb                204 fs/jfs/xattr.c 	struct super_block *sb = ip->i_sb;
sb                206 fs/jfs/xattr.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                225 fs/jfs/xattr.c 	nblocks = (size + (sb->s_blocksize - 1)) >> sb->s_blocksize_bits;
sb                253 fs/jfs/xattr.c 		    ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits))
sb                254 fs/jfs/xattr.c 		    << sb->s_blocksize_bits;
sb                353 fs/jfs/xattr.c 	struct super_block *sb = ip->i_sb;
sb                355 fs/jfs/xattr.c 	struct jfs_sb_info *sbi = JFS_SBI(sb);
sb                370 fs/jfs/xattr.c 		jfs_error(sb, "nbytes is 0\n");
sb                393 fs/jfs/xattr.c 		    ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits))
sb                394 fs/jfs/xattr.c 		    << sb->s_blocksize_bits;
sb                429 fs/jfs/xattr.c 	struct super_block *sb = inode->i_sb;
sb                470 fs/jfs/xattr.c 			jfs_error(sb, "invalid ea.flag\n");
sb                473 fs/jfs/xattr.c 		current_blocks = (ea_size + sb->s_blocksize - 1) >>
sb                474 fs/jfs/xattr.c 		    sb->s_blocksize_bits;
sb                484 fs/jfs/xattr.c 		ea_buf->max_size = (size + sb->s_blocksize - 1) &
sb                485 fs/jfs/xattr.c 		    ~(sb->s_blocksize - 1);
sb                503 fs/jfs/xattr.c 	blocks_needed = (min_size + sb->s_blocksize - 1) >>
sb                504 fs/jfs/xattr.c 	    sb->s_blocksize_bits;
sb                527 fs/jfs/xattr.c 					  blocks_needed << sb->s_blocksize_bits,
sb                535 fs/jfs/xattr.c 		ea_buf->max_size = (min_size + sb->s_blocksize - 1) &
sb                536 fs/jfs/xattr.c 		    ~(sb->s_blocksize - 1);
sb                548 fs/jfs/xattr.c 				   lengthDXD(&ji->ea) << sb->s_blocksize_bits,
sb                555 fs/jfs/xattr.c 	ea_buf->max_size = (ea_size + sb->s_blocksize - 1) &
sb                556 fs/jfs/xattr.c 	    ~(sb->s_blocksize - 1);
sb                895 fs/kernfs/file.c 		inode = ilookup(info->sb, kn->id.ino);
sb                904 fs/kernfs/file.c 			p_inode = ilookup(info->sb, parent->id.ino);
sb                246 fs/kernfs/inode.c struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn)
sb                250 fs/kernfs/inode.c 	inode = iget_locked(sb, kn->id.ino);
sb                 54 fs/kernfs/kernfs-internal.h 	struct super_block	*sb;
sb                 75 fs/kernfs/mount.c static struct inode *kernfs_fh_get_inode(struct super_block *sb,
sb                 78 fs/kernfs/mount.c 	struct kernfs_super_info *info = kernfs_info(sb);
sb                 88 fs/kernfs/mount.c 	inode = kernfs_get_inode(sb, kn);
sb                101 fs/kernfs/mount.c static struct dentry *kernfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                104 fs/kernfs/mount.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                108 fs/kernfs/mount.c static struct dentry *kernfs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                111 fs/kernfs/mount.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                135 fs/kernfs/mount.c struct kernfs_root *kernfs_root_from_sb(struct super_block *sb)
sb                137 fs/kernfs/mount.c 	if (sb->s_op == &kernfs_sops)
sb                138 fs/kernfs/mount.c 		return kernfs_info(sb)->root;
sb                173 fs/kernfs/mount.c 				  struct super_block *sb)
sb                178 fs/kernfs/mount.c 	BUG_ON(sb->s_op != &kernfs_sops);
sb                180 fs/kernfs/mount.c 	dentry = dget(sb->s_root);
sb                213 fs/kernfs/mount.c static int kernfs_fill_super(struct super_block *sb, struct kernfs_fs_context *kfc)
sb                215 fs/kernfs/mount.c 	struct kernfs_super_info *info = kernfs_info(sb);
sb                219 fs/kernfs/mount.c 	info->sb = sb;
sb                221 fs/kernfs/mount.c 	sb->s_iflags |= SB_I_NOEXEC | SB_I_NODEV;
sb                222 fs/kernfs/mount.c 	sb->s_blocksize = PAGE_SIZE;
sb                223 fs/kernfs/mount.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                224 fs/kernfs/mount.c 	sb->s_magic = kfc->magic;
sb                225 fs/kernfs/mount.c 	sb->s_op = &kernfs_sops;
sb                226 fs/kernfs/mount.c 	sb->s_xattr = kernfs_xattr_handlers;
sb                228 fs/kernfs/mount.c 		sb->s_export_op = &kernfs_export_ops;
sb                229 fs/kernfs/mount.c 	sb->s_time_gran = 1;
sb                232 fs/kernfs/mount.c 	sb->s_shrink.seeks = 0;
sb                236 fs/kernfs/mount.c 	inode = kernfs_get_inode(sb, info->root->kn);
sb                249 fs/kernfs/mount.c 	sb->s_root = root;
sb                250 fs/kernfs/mount.c 	sb->s_d_op = &kernfs_dops;
sb                254 fs/kernfs/mount.c static int kernfs_test_super(struct super_block *sb, struct fs_context *fc)
sb                256 fs/kernfs/mount.c 	struct kernfs_super_info *sb_info = kernfs_info(sb);
sb                262 fs/kernfs/mount.c static int kernfs_set_super(struct super_block *sb, struct fs_context *fc)
sb                267 fs/kernfs/mount.c 	return set_anon_super_fc(sb, fc);
sb                276 fs/kernfs/mount.c const void *kernfs_super_ns(struct super_block *sb)
sb                278 fs/kernfs/mount.c 	struct kernfs_super_info *info = kernfs_info(sb);
sb                295 fs/kernfs/mount.c 	struct super_block *sb;
sb                308 fs/kernfs/mount.c 	sb = sget_fc(fc, kernfs_test_super, kernfs_set_super);
sb                309 fs/kernfs/mount.c 	if (IS_ERR(sb))
sb                310 fs/kernfs/mount.c 		return PTR_ERR(sb);
sb                312 fs/kernfs/mount.c 	if (!sb->s_root) {
sb                313 fs/kernfs/mount.c 		struct kernfs_super_info *info = kernfs_info(sb);
sb                317 fs/kernfs/mount.c 		error = kernfs_fill_super(sb, kfc);
sb                319 fs/kernfs/mount.c 			deactivate_locked_super(sb);
sb                322 fs/kernfs/mount.c 		sb->s_flags |= SB_ACTIVE;
sb                329 fs/kernfs/mount.c 	fc->root = dget(sb->s_root);
sb                348 fs/kernfs/mount.c void kernfs_kill_sb(struct super_block *sb)
sb                350 fs/kernfs/mount.c 	struct kernfs_super_info *info = kernfs_info(sb);
sb                360 fs/kernfs/mount.c 	kill_anon_super(sb);
sb                930 fs/libfs.c     struct dentry *generic_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                932 fs/libfs.c     			(struct super_block *sb, u64 ino, u32 gen))
sb                942 fs/libfs.c     		inode = get_inode(sb, fid->i32.ino, fid->i32.gen);
sb                963 fs/libfs.c     struct dentry *generic_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                965 fs/libfs.c     			(struct super_block *sb, u64 ino, u32 gen))
sb                974 fs/libfs.c     		inode = get_inode(sb, fid->i32.parent_ino,
sb                416 fs/lockd/svcsubs.c 	struct super_block *sb = datap;
sb                418 fs/lockd/svcsubs.c 	return sb == locks_inode(file->f_file)->i_sb;
sb                428 fs/lockd/svcsubs.c nlmsvc_unlock_all_by_sb(struct super_block *sb)
sb                432 fs/lockd/svcsubs.c 	ret = nlm_traverse_files(sb, nlmsvc_always_match, nlmsvc_match_sb);
sb                 44 fs/minix/bitmap.c 	struct super_block *sb = inode->i_sb;
sb                 45 fs/minix/bitmap.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                 47 fs/minix/bitmap.c 	int k = sb->s_blocksize_bits + 3;
sb                 65 fs/minix/bitmap.c 		       sb->s_id, block);
sb                 97 fs/minix/bitmap.c unsigned long minix_count_free_blocks(struct super_block *sb)
sb                 99 fs/minix/bitmap.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                102 fs/minix/bitmap.c 	return (count_free(sbi->s_zmap, sb->s_blocksize, bits)
sb                107 fs/minix/bitmap.c minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh)
sb                110 fs/minix/bitmap.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                115 fs/minix/bitmap.c 		       sb->s_id, (long)ino);
sb                121 fs/minix/bitmap.c 	*bh = sb_bread(sb, block);
sb                131 fs/minix/bitmap.c minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh)
sb                134 fs/minix/bitmap.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                136 fs/minix/bitmap.c 	int minix2_inodes_per_block = sb->s_blocksize / sizeof(struct minix2_inode);
sb                141 fs/minix/bitmap.c 		       sb->s_id, (long)ino);
sb                147 fs/minix/bitmap.c 	*bh = sb_bread(sb, block);
sb                185 fs/minix/bitmap.c 	struct super_block *sb = inode->i_sb;
sb                188 fs/minix/bitmap.c 	int k = sb->s_blocksize_bits + 3;
sb                215 fs/minix/bitmap.c 	struct super_block *sb = dir->i_sb;
sb                216 fs/minix/bitmap.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                217 fs/minix/bitmap.c 	struct inode *inode = new_inode(sb);
sb                219 fs/minix/bitmap.c 	int bits_per_zone = 8 * sb->s_blocksize;
sb                267 fs/minix/bitmap.c unsigned long minix_count_free_inodes(struct super_block *sb)
sb                269 fs/minix/bitmap.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                272 fs/minix/bitmap.c 	return count_free(sbi->s_imap, sb->s_blocksize, bits);
sb                 84 fs/minix/dir.c 	struct super_block *sb = inode->i_sb;
sb                 85 fs/minix/dir.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                156 fs/minix/dir.c 	struct super_block * sb = dir->i_sb;
sb                157 fs/minix/dir.c 	struct minix_sb_info * sbi = minix_sb(sb);
sb                205 fs/minix/dir.c 	struct super_block * sb = dir->i_sb;
sb                206 fs/minix/dir.c 	struct minix_sb_info * sbi = minix_sb(sb);
sb                 26 fs/minix/inode.c static int minix_remount (struct super_block * sb, int * flags, char * data);
sb                 41 fs/minix/inode.c static void minix_put_super(struct super_block *sb)
sb                 44 fs/minix/inode.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                 46 fs/minix/inode.c 	if (!sb_rdonly(sb)) {
sb                 57 fs/minix/inode.c 	sb->s_fs_info = NULL;
sb                 63 fs/minix/inode.c static struct inode *minix_alloc_inode(struct super_block *sb)
sb                116 fs/minix/inode.c static int minix_remount (struct super_block * sb, int * flags, char * data)
sb                118 fs/minix/inode.c 	struct minix_sb_info * sbi = minix_sb(sb);
sb                121 fs/minix/inode.c 	sync_filesystem(sb);
sb                123 fs/minix/inode.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb                355 fs/minix/inode.c 	struct super_block *sb = dentry->d_sb;
sb                356 fs/minix/inode.c 	struct minix_sb_info *sbi = minix_sb(sb);
sb                357 fs/minix/inode.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                358 fs/minix/inode.c 	buf->f_type = sb->s_magic;
sb                359 fs/minix/inode.c 	buf->f_bsize = sb->s_blocksize;
sb                361 fs/minix/inode.c 	buf->f_bfree = minix_count_free_blocks(sb);
sb                364 fs/minix/inode.c 	buf->f_ffree = minix_count_free_inodes(sb);
sb                527 fs/minix/inode.c struct inode *minix_iget(struct super_block *sb, unsigned long ino)
sb                531 fs/minix/inode.c 	inode = iget_locked(sb, ino);
sb                625 fs/minix/inode.c 	struct super_block *sb = path->dentry->d_sb;
sb                630 fs/minix/inode.c 		stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb);
sb                632 fs/minix/inode.c 		stat->blocks = (sb->s_blocksize / 512) * V2_minix_blocks(stat->size, sb);
sb                633 fs/minix/inode.c 	stat->blksize = sb->s_blocksize;
sb                 36 fs/minix/itree_common.c 	struct super_block *sb = inode->i_sb;
sb                 46 fs/minix/itree_common.c 		bh = sb_bread(sb, block_to_cpu(p->key));
sb                296 fs/minix/itree_common.c 	struct super_block *sb = inode->i_sb;
sb                306 fs/minix/itree_common.c 	iblock = (inode->i_size + sb->s_blocksize -1) >> sb->s_blocksize_bits;
sb                351 fs/minix/itree_common.c static inline unsigned nblocks(loff_t size, struct super_block *sb)
sb                353 fs/minix/itree_common.c 	int k = sb->s_blocksize_bits - 10;
sb                355 fs/minix/itree_common.c 	blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k);
sb                359 fs/minix/itree_common.c 		blocks += sb->s_blocksize/sizeof(block_t) - 1;
sb                360 fs/minix/itree_common.c 		blocks /= sb->s_blocksize/sizeof(block_t);
sb                 64 fs/minix/itree_v1.c unsigned V1_minix_blocks(loff_t size, struct super_block *sb)
sb                 66 fs/minix/itree_v1.c 	return nblocks(size, sb);
sb                 25 fs/minix/itree_v2.c #define INDIRCOUNT(sb) (1 << ((sb)->s_blocksize_bits - 2))
sb                 30 fs/minix/itree_v2.c 	struct super_block *sb = inode->i_sb;
sb                 34 fs/minix/itree_v2.c 			block, sb->s_bdev);
sb                 35 fs/minix/itree_v2.c 	} else if ((u64)block * (u64)sb->s_blocksize >=
sb                 36 fs/minix/itree_v2.c 			minix_sb(sb)->s_max_size) {
sb                 40 fs/minix/itree_v2.c 				block, sb->s_bdev);
sb                 43 fs/minix/itree_v2.c 	} else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) {
sb                 46 fs/minix/itree_v2.c 	} else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) {
sb                 48 fs/minix/itree_v2.c 		offsets[n++] = block / INDIRCOUNT(sb);
sb                 49 fs/minix/itree_v2.c 		offsets[n++] = block % INDIRCOUNT(sb);
sb                 51 fs/minix/itree_v2.c 		block -= INDIRCOUNT(sb) * INDIRCOUNT(sb);
sb                 53 fs/minix/itree_v2.c 		offsets[n++] = (block / INDIRCOUNT(sb)) / INDIRCOUNT(sb);
sb                 54 fs/minix/itree_v2.c 		offsets[n++] = (block / INDIRCOUNT(sb)) % INDIRCOUNT(sb);
sb                 55 fs/minix/itree_v2.c 		offsets[n++] = block % INDIRCOUNT(sb);
sb                 73 fs/minix/itree_v2.c unsigned V2_minix_blocks(loff_t size, struct super_block *sb)
sb                 75 fs/minix/itree_v2.c 	return nblocks(size, sb);
sb                 51 fs/minix/minix.h extern unsigned long minix_count_free_inodes(struct super_block *sb);
sb                 54 fs/minix/minix.h extern unsigned long minix_count_free_blocks(struct super_block *sb);
sb                 81 fs/minix/minix.h static inline struct minix_sb_info *minix_sb(struct super_block *sb)
sb                 83 fs/minix/minix.h 	return sb->s_fs_info;
sb                402 fs/namei.c     static int sb_permission(struct super_block *sb, struct inode *inode, int mask)
sb                408 fs/namei.c     		if (sb_rdonly(sb) && (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)))
sb                563 fs/namei.c     	struct super_block *sb = mnt->mnt_sb;
sb                566 fs/namei.c     	if (!(sb->s_iflags & SB_I_MULTIROOT) && (mnt->mnt_root == sb->s_root))
sb                512 fs/namespace.c int sb_prepare_remount_readonly(struct super_block *sb)
sb                518 fs/namespace.c 	if (atomic_long_read(&sb->s_remove_count))
sb                522 fs/namespace.c 	list_for_each_entry(mnt, &sb->s_mounts, mnt_instance) {
sb                532 fs/namespace.c 	if (!err && atomic_long_read(&sb->s_remove_count))
sb                536 fs/namespace.c 		sb->s_readonly_remount = 1;
sb                539 fs/namespace.c 	list_for_each_entry(mnt, &sb->s_mounts, mnt_instance) {
sb               1019 fs/namespace.c 	struct super_block *sb = old->mnt.mnt_sb;
sb               1041 fs/namespace.c 	atomic_inc(&sb->s_active);
sb               1042 fs/namespace.c 	mnt->mnt.mnt_sb = sb;
sb               1047 fs/namespace.c 	list_add_tail(&mnt->mnt_instance, &sb->s_mounts);
sb               1483 fs/namespace.c static int do_umount_root(struct super_block *sb)
sb               1487 fs/namespace.c 	down_write(&sb->s_umount);
sb               1488 fs/namespace.c 	if (!sb_rdonly(sb)) {
sb               1491 fs/namespace.c 		fc = fs_context_for_reconfigure(sb->s_root, SB_RDONLY,
sb               1502 fs/namespace.c 	up_write(&sb->s_umount);
sb               1508 fs/namespace.c 	struct super_block *sb = mnt->mnt.mnt_sb;
sb               1551 fs/namespace.c 	if (flags & MNT_FORCE && sb->s_op->umount_begin) {
sb               1552 fs/namespace.c 		sb->s_op->umount_begin(sb);
sb               1569 fs/namespace.c 		if (!ns_capable(sb->s_user_ns, CAP_SYS_ADMIN))
sb               1571 fs/namespace.c 		return do_umount_root(sb);
sb               2471 fs/namespace.c 	struct super_block *sb = mnt->mnt_sb;
sb               2474 fs/namespace.c 	   (ktime_get_real_seconds() + TIME_UPTIME_SEC_MAX > sb->s_time_max)) {
sb               2479 fs/namespace.c 		time64_to_tm(sb->s_time_max, 0, &tm);
sb               2482 fs/namespace.c 			sb->s_type->name,
sb               2485 fs/namespace.c 			tm.tm_year+1900, (unsigned long long)sb->s_time_max);
sb               2498 fs/namespace.c 	struct super_block *sb = path->mnt->mnt_sb;
sb               2511 fs/namespace.c 	down_write(&sb->s_umount);
sb               2515 fs/namespace.c 	up_write(&sb->s_umount);
sb               2531 fs/namespace.c 	struct super_block *sb = path->mnt->mnt_sb;
sb               2550 fs/namespace.c 		down_write(&sb->s_umount);
sb               2552 fs/namespace.c 		if (ns_capable(sb->s_user_ns, CAP_SYS_ADMIN)) {
sb               2557 fs/namespace.c 		up_write(&sb->s_umount);
sb               2741 fs/namespace.c static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags);
sb               2751 fs/namespace.c 	struct super_block *sb = fc->root->d_sb;
sb               2754 fs/namespace.c 	error = security_sb_kern_mount(sb);
sb               2755 fs/namespace.c 	if (!error && mount_too_revealing(sb, &mnt_flags))
sb               2763 fs/namespace.c 	up_write(&sb->s_umount);
sb               3844 fs/namespace.c 				const struct super_block *sb,
sb               3856 fs/namespace.c 		if (mnt->mnt.mnt_sb->s_type != sb->s_type)
sb               3907 fs/namespace.c static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags)
sb               3917 fs/namespace.c 	s_iflags = sb->s_iflags;
sb               3927 fs/namespace.c 	return !mnt_already_visible(ns, sb, new_mnt_flags);
sb                145 fs/nfs/blocklayout/rpc_pipefs.c static struct dentry *nfs4blocklayout_register_sb(struct super_block *sb,
sb                150 fs/nfs/blocklayout/rpc_pipefs.c 	dir = rpc_d_lookup_sb(sb, NFS_PIPE_DIRNAME);
sb                158 fs/nfs/blocklayout/rpc_pipefs.c static void nfs4blocklayout_unregister_sb(struct super_block *sb,
sb                168 fs/nfs/blocklayout/rpc_pipefs.c 	struct super_block *sb = ptr;
sb                169 fs/nfs/blocklayout/rpc_pipefs.c 	struct net *net = sb->s_fs_info;
sb                184 fs/nfs/blocklayout/rpc_pipefs.c 		dentry = nfs4blocklayout_register_sb(sb, nn->bl_device_pipe);
sb                193 fs/nfs/blocklayout/rpc_pipefs.c 			nfs4blocklayout_unregister_sb(sb, nn->bl_device_pipe);
sb                116 fs/nfs/cache_lib.c int nfs_cache_register_sb(struct super_block *sb, struct cache_detail *cd)
sb                121 fs/nfs/cache_lib.c 	dir = rpc_d_lookup_sb(sb, "cache");
sb                143 fs/nfs/cache_lib.c void nfs_cache_unregister_sb(struct super_block *sb, struct cache_detail *cd)
sb                 29 fs/nfs/cache_lib.h extern int nfs_cache_register_sb(struct super_block *sb,
sb                 31 fs/nfs/cache_lib.h extern void nfs_cache_unregister_sb(struct super_block *sb,
sb                428 fs/nfs/dns_resolve.c 	struct super_block *sb = ptr;
sb                429 fs/nfs/dns_resolve.c 	struct net *net = sb->s_fs_info;
sb                442 fs/nfs/dns_resolve.c 		ret = nfs_cache_register_sb(sb, cd);
sb                445 fs/nfs/dns_resolve.c 		nfs_cache_unregister_sb(sb, cd);
sb                 64 fs/nfs/export.c nfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                 94 fs/nfs/export.c 	inode = nfs_ilookup(sb, fattr, server_fh);
sb                 98 fs/nfs/export.c 	label = nfs4_label_alloc(NFS_SB(sb), GFP_KERNEL);
sb                104 fs/nfs/export.c 	rpc_ops = NFS_SB(sb)->nfs_client->rpc_ops;
sb                105 fs/nfs/export.c 	ret = rpc_ops->getattr(NFS_SB(sb), server_fh, fattr, label, NULL);
sb                112 fs/nfs/export.c 	inode = nfs_fhget(sb, server_fh, fattr, label);
sb                130 fs/nfs/export.c 	struct super_block *sb = inode->i_sb;
sb                131 fs/nfs/export.c 	struct nfs_server *server = NFS_SB(sb);
sb                159 fs/nfs/export.c 	pinode = nfs_fhget(sb, &fh, fattr, label);
sb                112 fs/nfs/fscache.c void nfs_fscache_get_super_cookie(struct super_block *sb, const char *uniq, int ulen)
sb                115 fs/nfs/fscache.c 	struct nfs_server *nfss = NFS_SB(sb);
sb                133 fs/nfs/fscache.c 	key->key.super.s_flags = sb->s_flags & NFS_MS_MASK;
sb                211 fs/nfs/fscache.c void nfs_fscache_release_super_cookie(struct super_block *sb)
sb                213 fs/nfs/fscache.c 	struct nfs_server *nfss = NFS_SB(sb);
sb                199 fs/nfs/fscache.h static inline void nfs_fscache_release_super_cookie(struct super_block *sb) {}
sb                 39 fs/nfs/getroot.c static int nfs_superblock_set_dummy_root(struct super_block *sb, struct inode *inode)
sb                 42 fs/nfs/getroot.c 	if (sb->s_root == NULL) {
sb                 43 fs/nfs/getroot.c 		sb->s_root = d_make_root(inode);
sb                 44 fs/nfs/getroot.c 		if (sb->s_root == NULL)
sb                 55 fs/nfs/getroot.c 		spin_lock(&d_inode(sb->s_root)->i_lock);
sb                 56 fs/nfs/getroot.c 		spin_lock(&sb->s_root->d_lock);
sb                 57 fs/nfs/getroot.c 		hlist_del_init(&sb->s_root->d_u.d_alias);
sb                 58 fs/nfs/getroot.c 		spin_unlock(&sb->s_root->d_lock);
sb                 59 fs/nfs/getroot.c 		spin_unlock(&d_inode(sb->s_root)->i_lock);
sb                 67 fs/nfs/getroot.c struct dentry *nfs_get_root(struct super_block *sb, struct nfs_fh *mntfh,
sb                 70 fs/nfs/getroot.c 	struct nfs_server *server = NFS_SB(sb);
sb                 94 fs/nfs/getroot.c 	inode = nfs_fhget(sb, mntfh, fsinfo.fattr, NULL);
sb                101 fs/nfs/getroot.c 	error = nfs_superblock_set_dummy_root(sb, inode);
sb                398 fs/nfs/inode.c nfs_ilookup(struct super_block *sb, struct nfs_fattr *fattr, struct nfs_fh *fh)
sb                412 fs/nfs/inode.c 	inode = ilookup5(sb, hash, nfs_find_actor, &desc);
sb                423 fs/nfs/inode.c nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *label)
sb                432 fs/nfs/inode.c 	nfs_attr_check_mountpoint(sb, fattr);
sb                443 fs/nfs/inode.c 	inode = iget5_locked(sb, hash, nfs_find_actor, nfs_init_locked, &desc);
sb                467 fs/nfs/inode.c 		inode->i_op = NFS_SB(sb)->nfs_client->rpc_ops->file_inode_ops;
sb                469 fs/nfs/inode.c 			inode->i_fop = NFS_SB(sb)->nfs_client->rpc_ops->file_ops;
sb                472 fs/nfs/inode.c 			inode->i_op = NFS_SB(sb)->nfs_client->rpc_ops->dir_inode_ops;
sb                997 fs/nfs/inode.c 	struct super_block *sb = ctx->dentry->d_sb;
sb               1010 fs/nfs/inode.c 	nfs_sb_deactive(sb);
sb               2065 fs/nfs/inode.c struct inode *nfs_alloc_inode(struct super_block *sb)
sb                 35 fs/nfs/internal.h 	const struct super_block *sb;
sb                377 fs/nfs/internal.h extern struct inode *nfs_alloc_inode(struct super_block *sb);
sb                412 fs/nfs/internal.h extern bool nfs_sb_active(struct super_block *sb);
sb                413 fs/nfs/internal.h extern void nfs_sb_deactive(struct super_block *sb);
sb                463 fs/nfs/internal.h int nfs_remount(struct super_block *sb, int *flags, char *raw_data);
sb                583 fs/nfs/internal.h 		struct super_block *sb = inode->i_sb;
sb                586 fs/nfs/internal.h 		nfs_sb_deactive(sb);
sb                647 fs/nfs/internal.h void nfs_super_set_maxbytes(struct super_block *sb, __u64 maxfilesize)
sb                649 fs/nfs/internal.h 	sb->s_maxbytes = (loff_t)maxfilesize;
sb                650 fs/nfs/internal.h 	if (sb->s_maxbytes > MAX_LFS_FILESIZE || sb->s_maxbytes <= 0)
sb                651 fs/nfs/internal.h 		sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                235 fs/nfs/namespace.c 		.sb = dentry->d_sb,
sb               1157 fs/nfs/nfs4client.c 	parent_server = NFS_SB(data->sb);
sb                244 fs/nfs/nfs4namespace.c 	struct net *net = rpc_net_ns(NFS_SB(mountdata->sb)->client);
sb                301 fs/nfs/nfs4namespace.c 		.sb = dentry->d_sb,
sb               1374 fs/nfs/nfs4proc.c 	struct super_block *sb = p->dentry->d_sb;
sb               1388 fs/nfs/nfs4proc.c 	nfs_sb_deactive(sb);
sb               3430 fs/nfs/nfs4proc.c 	struct super_block *sb = calldata->state->inode->i_sb;
sb               3438 fs/nfs/nfs4proc.c 	nfs_sb_deactive(sb);
sb                418 fs/nfs/super.c bool nfs_sb_active(struct super_block *sb)
sb                420 fs/nfs/super.c 	struct nfs_server *server = NFS_SB(sb);
sb                422 fs/nfs/super.c 	if (!atomic_inc_not_zero(&sb->s_active))
sb                425 fs/nfs/super.c 		atomic_dec(&sb->s_active);
sb                430 fs/nfs/super.c void nfs_sb_deactive(struct super_block *sb)
sb                432 fs/nfs/super.c 	struct nfs_server *server = NFS_SB(sb);
sb                435 fs/nfs/super.c 		deactivate_super(sb);
sb                918 fs/nfs/super.c void nfs_umount_begin(struct super_block *sb)
sb                923 fs/nfs/super.c 	server = NFS_SB(sb);
sb               2274 fs/nfs/super.c nfs_remount(struct super_block *sb, int *flags, char *raw_data)
sb               2277 fs/nfs/super.c 	struct nfs_server *nfss = sb->s_fs_info;
sb               2283 fs/nfs/super.c 	sync_filesystem(sb);
sb               2336 fs/nfs/super.c 		error = security_sb_remount(sb, data->lsm_opts);
sb               2346 fs/nfs/super.c static void nfs_initialise_sb(struct super_block *sb)
sb               2348 fs/nfs/super.c 	struct nfs_server *server = NFS_SB(sb);
sb               2350 fs/nfs/super.c 	sb->s_magic = NFS_SUPER_MAGIC;
sb               2353 fs/nfs/super.c 	snprintf(sb->s_id, sizeof(sb->s_id),
sb               2354 fs/nfs/super.c 		 "%u:%u", MAJOR(sb->s_dev), MINOR(sb->s_dev));
sb               2356 fs/nfs/super.c 	if (sb->s_blocksize == 0)
sb               2357 fs/nfs/super.c 		sb->s_blocksize = nfs_block_bits(server->wsize,
sb               2358 fs/nfs/super.c 						 &sb->s_blocksize_bits);
sb               2360 fs/nfs/super.c 	nfs_super_set_maxbytes(sb, server->maxfilesize);
sb               2366 fs/nfs/super.c void nfs_fill_super(struct super_block *sb, struct nfs_mount_info *mount_info)
sb               2369 fs/nfs/super.c 	struct nfs_server *server = NFS_SB(sb);
sb               2371 fs/nfs/super.c 	sb->s_blocksize_bits = 0;
sb               2372 fs/nfs/super.c 	sb->s_blocksize = 0;
sb               2373 fs/nfs/super.c 	sb->s_xattr = server->nfs_client->cl_nfs_mod->xattr;
sb               2374 fs/nfs/super.c 	sb->s_op = server->nfs_client->cl_nfs_mod->sops;
sb               2376 fs/nfs/super.c 		sb->s_blocksize = nfs_block_size(data->bsize, &sb->s_blocksize_bits);
sb               2382 fs/nfs/super.c 		sb->s_flags |= SB_POSIXACL;
sb               2383 fs/nfs/super.c 		sb->s_time_gran = 1;
sb               2384 fs/nfs/super.c 		sb->s_export_op = &nfs_export_ops;
sb               2386 fs/nfs/super.c 		sb->s_time_gran = 1000;
sb               2389 fs/nfs/super.c 		sb->s_time_min = 0;
sb               2390 fs/nfs/super.c 		sb->s_time_max = U32_MAX;
sb               2392 fs/nfs/super.c 		sb->s_time_min = S64_MIN;
sb               2393 fs/nfs/super.c 		sb->s_time_max = S64_MAX;
sb               2396 fs/nfs/super.c  	nfs_initialise_sb(sb);
sb               2403 fs/nfs/super.c static void nfs_clone_super(struct super_block *sb,
sb               2406 fs/nfs/super.c 	const struct super_block *old_sb = mount_info->cloned->sb;
sb               2407 fs/nfs/super.c 	struct nfs_server *server = NFS_SB(sb);
sb               2409 fs/nfs/super.c 	sb->s_blocksize_bits = old_sb->s_blocksize_bits;
sb               2410 fs/nfs/super.c 	sb->s_blocksize = old_sb->s_blocksize;
sb               2411 fs/nfs/super.c 	sb->s_maxbytes = old_sb->s_maxbytes;
sb               2412 fs/nfs/super.c 	sb->s_xattr = old_sb->s_xattr;
sb               2413 fs/nfs/super.c 	sb->s_op = old_sb->s_op;
sb               2414 fs/nfs/super.c 	sb->s_export_op = old_sb->s_export_op;
sb               2420 fs/nfs/super.c 		sb->s_flags |= SB_POSIXACL;
sb               2421 fs/nfs/super.c 		sb->s_time_gran = 1;
sb               2423 fs/nfs/super.c 		sb->s_time_gran = 1000;
sb               2426 fs/nfs/super.c 		sb->s_time_min = 0;
sb               2427 fs/nfs/super.c 		sb->s_time_max = U32_MAX;
sb               2429 fs/nfs/super.c 		sb->s_time_min = S64_MIN;
sb               2430 fs/nfs/super.c 		sb->s_time_max = S64_MAX;
sb               2433 fs/nfs/super.c  	nfs_initialise_sb(sb);
sb               2544 fs/nfs/super.c static int nfs_compare_super(struct super_block *sb, void *data)
sb               2547 fs/nfs/super.c 	struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb);
sb               2559 fs/nfs/super.c 	return nfs_compare_mount_options(sb, server, mntflags);
sb               2563 fs/nfs/super.c static void nfs_get_cache_cookie(struct super_block *sb,
sb               2567 fs/nfs/super.c 	struct nfs_server *nfss = NFS_SB(sb);
sb               2582 fs/nfs/super.c 		struct nfs_server *mnt_s = NFS_SB(cloned->sb);
sb               2592 fs/nfs/super.c 	nfs_fscache_get_super_cookie(sb, uniq, ulen);
sb               2595 fs/nfs/super.c static void nfs_get_cache_cookie(struct super_block *sb,
sb               2636 fs/nfs/super.c 	error = security_sb_clone_mnt_opts(mount_info->cloned->sb, s, kflags,
sb               2676 fs/nfs/super.c 	if (mount_info->cloned != NULL && mount_info->cloned->sb != NULL)
sb               2677 fs/nfs/super.c 		if (mount_info->cloned->sb->s_flags & SB_SYNCHRONOUS)
sb               2808 fs/nfs/super.c 	struct nfs_subversion *nfs_mod = NFS_SB(data->sb)->nfs_client->cl_nfs_mod;
sb               2815 fs/nfs/super.c 	server = nfs_mod->rpc_ops->clone_server(NFS_SB(data->sb), data->fh, data->fattr, data->authflavor);
sb                 67 fs/nfs/unlink.c 	struct super_block *sb = dentry->d_sb;
sb                 73 fs/nfs/unlink.c 	nfs_sb_deactive(sb);
sb                283 fs/nfs/unlink.c 	struct super_block *sb = data->old_dir->i_sb;
sb                305 fs/nfs/unlink.c 	nfs_sb_deactive(sb);
sb                 28 fs/nfsd/blocklayout.c 	struct super_block *sb = inode->i_sb;
sb                 50 fs/nfsd/blocklayout.c 	error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length,
sb                146 fs/nfsd/blocklayout.c nfsd4_block_get_device_info_simple(struct super_block *sb,
sb                163 fs/nfsd/blocklayout.c 	return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len,
sb                168 fs/nfsd/blocklayout.c nfsd4_block_proc_getdeviceinfo(struct super_block *sb,
sb                173 fs/nfsd/blocklayout.c 	if (sb->s_bdev != sb->s_bdev->bd_contains)
sb                175 fs/nfsd/blocklayout.c 	return nfserrno(nfsd4_block_get_device_info_simple(sb, gdp));
sb                329 fs/nfsd/blocklayout.c nfsd4_block_get_device_info_scsi(struct super_block *sb,
sb                350 fs/nfsd/blocklayout.c 	error = nfsd4_scsi_identify_device(sb->s_bdev, b);
sb                354 fs/nfsd/blocklayout.c 	ops = sb->s_bdev->bd_disk->fops->pr_ops;
sb                357 fs/nfsd/blocklayout.c 			sb->s_id);
sb                361 fs/nfsd/blocklayout.c 	error = ops->pr_register(sb->s_bdev, 0, NFSD_MDS_PR_KEY, true);
sb                364 fs/nfsd/blocklayout.c 			sb->s_id);
sb                368 fs/nfsd/blocklayout.c 	error = ops->pr_reserve(sb->s_bdev, NFSD_MDS_PR_KEY,
sb                372 fs/nfsd/blocklayout.c 			sb->s_id);
sb                380 fs/nfsd/blocklayout.c nfsd4_scsi_proc_getdeviceinfo(struct super_block *sb,
sb                385 fs/nfsd/blocklayout.c 	if (sb->s_bdev != sb->s_bdev->bd_contains)
sb                387 fs/nfsd/blocklayout.c 	return nfserrno(nfsd4_block_get_device_info_scsi(sb, clp, gdp));
sb                 80 fs/nfsd/flexfilelayout.c nfsd4_ff_proc_getdeviceinfo(struct super_block *sb, struct svc_rqst *rqstp,
sb                610 fs/nfsd/nfs3proc.c 		struct super_block *sb = argp->fh.fh_dentry->d_sb;
sb                613 fs/nfsd/nfs3proc.c 		if (sb->s_magic == MSDOS_SUPER_MAGIC) {
sb                616 fs/nfsd/nfs3proc.c 		resp->f_maxfilesize = sb->s_maxbytes;
sb                647 fs/nfsd/nfs3proc.c 		struct super_block *sb = argp->fh.fh_dentry->d_sb;
sb                650 fs/nfsd/nfs3proc.c 		switch (sb->s_magic) {
sb                130 fs/nfsd/nfs4layouts.c 	struct super_block *sb = exp->ex_path.mnt->mnt_sb;
sb                140 fs/nfsd/nfs4layouts.c 	if (sb->s_export_op->get_uuid &&
sb                141 fs/nfsd/nfs4layouts.c 	    sb->s_export_op->map_blocks &&
sb                142 fs/nfsd/nfs4layouts.c 	    sb->s_export_op->commit_blocks)
sb                146 fs/nfsd/nfs4layouts.c 	if (sb->s_export_op->map_blocks &&
sb                147 fs/nfsd/nfs4layouts.c 	    sb->s_export_op->commit_blocks &&
sb                148 fs/nfsd/nfs4layouts.c 	    sb->s_bdev && sb->s_bdev->bd_disk->fops->pr_ops &&
sb                149 fs/nfsd/nfs4layouts.c 		blk_queue_scsi_passthrough(sb->s_bdev->bd_disk->queue))
sb                943 fs/nfsd/nfs4recover.c nfsd4_cld_register_sb(struct super_block *sb, struct rpc_pipe *pipe)
sb                947 fs/nfsd/nfs4recover.c 	dir = rpc_d_lookup_sb(sb, NFSD_PIPE_DIR);
sb                965 fs/nfsd/nfs4recover.c 	struct super_block *sb;
sb                968 fs/nfsd/nfs4recover.c 	sb = rpc_get_sb_net(net);
sb                969 fs/nfsd/nfs4recover.c 	if (!sb)
sb                971 fs/nfsd/nfs4recover.c 	dentry = nfsd4_cld_register_sb(sb, pipe);
sb                979 fs/nfsd/nfs4recover.c 	struct super_block *sb;
sb                981 fs/nfsd/nfs4recover.c 	sb = rpc_get_sb_net(net);
sb                982 fs/nfsd/nfs4recover.c 	if (sb) {
sb               2137 fs/nfsd/nfs4recover.c 	struct super_block *sb = ptr;
sb               2138 fs/nfsd/nfs4recover.c 	struct net *net = sb->s_fs_info;
sb               2154 fs/nfsd/nfs4recover.c 		dentry = nfsd4_cld_register_sb(sb, cn->cn_pipe);
sb               1154 fs/nfsd/nfsctl.c static struct inode *nfsd_get_inode(struct super_block *sb, umode_t mode)
sb               1156 fs/nfsd/nfsctl.c 	struct inode *inode = new_inode(sb);
sb               1160 fs/nfsd/nfsctl.c 	inode->i_ino = iunique(sb, NFSD_MaxReserved);
sb               1341 fs/nfsd/nfsctl.c static int nfsd_fill_super(struct super_block *sb, struct fs_context *fc)
sb               1377 fs/nfsd/nfsctl.c 	ret = simple_fill_super(sb, 0x6e667364, nfsd_files);
sb               1380 fs/nfsd/nfsctl.c 	dentry = nfsd_mkdir(sb->s_root, NULL, "clients");
sb               1411 fs/nfsd/nfsctl.c static void nfsd_umount(struct super_block *sb)
sb               1413 fs/nfsd/nfsctl.c 	struct net *net = sb->s_fs_info;
sb               1415 fs/nfsd/nfsctl.c 	kill_litter_super(sb);
sb                 25 fs/nfsd/pnfs.h 	__be32 (*proc_getdeviceinfo)(struct super_block *sb,
sb                977 fs/nilfs2/cpfile.c int nilfs_cpfile_read(struct super_block *sb, size_t cpsize,
sb                983 fs/nilfs2/cpfile.c 	if (cpsize > sb->s_blocksize) {
sb                984 fs/nilfs2/cpfile.c 		nilfs_msg(sb, KERN_ERR,
sb                988 fs/nilfs2/cpfile.c 		nilfs_msg(sb, KERN_ERR,
sb                993 fs/nilfs2/cpfile.c 	cpfile = nilfs_iget_locked(sb, NULL, NILFS_CPFILE_INO);
sb                 31 fs/nilfs2/cpfile.h int nilfs_cpfile_read(struct super_block *sb, size_t cpsize,
sb                465 fs/nilfs2/dat.c int nilfs_dat_read(struct super_block *sb, size_t entry_size,
sb                473 fs/nilfs2/dat.c 	if (entry_size > sb->s_blocksize) {
sb                474 fs/nilfs2/dat.c 		nilfs_msg(sb, KERN_ERR, "too large DAT entry size: %zu bytes",
sb                478 fs/nilfs2/dat.c 		nilfs_msg(sb, KERN_ERR, "too small DAT entry size: %zu bytes",
sb                483 fs/nilfs2/dat.c 	dat = nilfs_iget_locked(sb, NULL, NILFS_DAT_INO);
sb                 44 fs/nilfs2/dat.h int nilfs_dat_read(struct super_block *sb, size_t entry_size,
sb                119 fs/nilfs2/dir.c 	struct super_block *sb = dir->i_sb;
sb                156 fs/nilfs2/dir.c 	nilfs_error(sb,
sb                172 fs/nilfs2/dir.c 	nilfs_error(sb,
sb                180 fs/nilfs2/dir.c 	nilfs_error(sb,
sb                267 fs/nilfs2/dir.c 	struct super_block *sb = inode->i_sb;
sb                281 fs/nilfs2/dir.c 			nilfs_error(sb, "bad page in #%lu", inode->i_ino);
sb                291 fs/nilfs2/dir.c 				nilfs_error(sb, "zero-length directory entry");
sb                135 fs/nilfs2/ifile.c 	struct super_block *sb = ifile->i_sb;
sb                138 fs/nilfs2/ifile.c 	if (unlikely(!NILFS_VALID_INODE(sb, ino))) {
sb                139 fs/nilfs2/ifile.c 		nilfs_error(sb, "bad inode number: %lu", (unsigned long)ino);
sb                145 fs/nilfs2/ifile.c 		nilfs_msg(sb, KERN_WARNING, "error %d reading inode: ino=%lu",
sb                180 fs/nilfs2/ifile.c int nilfs_ifile_read(struct super_block *sb, struct nilfs_root *root,
sb                187 fs/nilfs2/ifile.c 	ifile = nilfs_iget_locked(sb, root, NILFS_IFILE_INO);
sb                 41 fs/nilfs2/ifile.h int nilfs_ifile_read(struct super_block *sb, struct nilfs_root *root,
sb                333 fs/nilfs2/inode.c 	struct super_block *sb = dir->i_sb;
sb                334 fs/nilfs2/inode.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                341 fs/nilfs2/inode.c 	inode = new_inode(sb);
sb                473 fs/nilfs2/inode.c static int __nilfs_read_inode(struct super_block *sb,
sb                477 fs/nilfs2/inode.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                560 fs/nilfs2/inode.c struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root,
sb                567 fs/nilfs2/inode.c 	return ilookup5(sb, ino, nilfs_iget_test, &args);
sb                570 fs/nilfs2/inode.c struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root,
sb                577 fs/nilfs2/inode.c 	return iget5_locked(sb, ino, nilfs_iget_test, nilfs_iget_set, &args);
sb                580 fs/nilfs2/inode.c struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root,
sb                586 fs/nilfs2/inode.c 	inode = nilfs_iget_locked(sb, root, ino);
sb                592 fs/nilfs2/inode.c 	err = __nilfs_read_inode(sb, root, ino, inode);
sb                601 fs/nilfs2/inode.c struct inode *nilfs_iget_for_gc(struct super_block *sb, unsigned long ino,
sb                610 fs/nilfs2/inode.c 	inode = iget5_locked(sb, ino, nilfs_iget_test, nilfs_iget_set, &args);
sb                727 fs/nilfs2/inode.c 	struct super_block *sb = inode->i_sb;
sb                735 fs/nilfs2/inode.c 	blocksize = sb->s_blocksize;
sb                736 fs/nilfs2/inode.c 	blkoff = (inode->i_size + blocksize - 1) >> sb->s_blocksize_bits;
sb                737 fs/nilfs2/inode.c 	nilfs_transaction_begin(sb, &ti, 0); /* never fails */
sb                749 fs/nilfs2/inode.c 	nilfs_transaction_commit(sb);
sb                782 fs/nilfs2/inode.c 	struct super_block *sb = inode->i_sb;
sb                792 fs/nilfs2/inode.c 	nilfs_transaction_begin(sb, &ti, 0); /* never fails */
sb                809 fs/nilfs2/inode.c 	nilfs_transaction_commit(sb);
sb                820 fs/nilfs2/inode.c 	struct super_block *sb = inode->i_sb;
sb                827 fs/nilfs2/inode.c 	err = nilfs_transaction_begin(sb, &ti, 0);
sb                847 fs/nilfs2/inode.c 	return nilfs_transaction_commit(sb);
sb                850 fs/nilfs2/inode.c 	nilfs_transaction_abort(sb);
sb                611 fs/nilfs2/ioctl.c static int nilfs_ioctl_move_blocks(struct super_block *sb,
sb                615 fs/nilfs2/ioctl.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                627 fs/nilfs2/ioctl.c 		inode = nilfs_iget_for_gc(sb, ino, cno);
sb                 72 fs/nilfs2/mdt.c 	struct super_block *sb = inode->i_sb;
sb                 77 fs/nilfs2/mdt.c 	nilfs_transaction_begin(sb, &ti, 0);
sb                 92 fs/nilfs2/mdt.c 	bh->b_bdev = sb->s_bdev;
sb                106 fs/nilfs2/mdt.c 		err = nilfs_transaction_commit(sb);
sb                108 fs/nilfs2/mdt.c 		nilfs_transaction_abort(sb);
sb                404 fs/nilfs2/mdt.c 	struct super_block *sb;
sb                425 fs/nilfs2/mdt.c 	sb = inode->i_sb;
sb                428 fs/nilfs2/mdt.c 		err = nilfs_construct_segment(sb);
sb                430 fs/nilfs2/mdt.c 		nilfs_flush_segment(sb, inode->i_ino);
sb                131 fs/nilfs2/namei.c 	struct super_block *sb = dir->i_sb;
sb                136 fs/nilfs2/namei.c 	if (l > sb->s_blocksize)
sb                456 fs/nilfs2/namei.c static struct dentry *nilfs_get_dentry(struct super_block *sb, u64 cno,
sb                462 fs/nilfs2/namei.c 	if (ino < NILFS_FIRST_INO(sb) && ino != NILFS_ROOT_INO)
sb                465 fs/nilfs2/namei.c 	root = nilfs_lookup_root(sb->s_fs_info, cno);
sb                469 fs/nilfs2/namei.c 	inode = nilfs_iget(sb, root, ino);
sb                481 fs/nilfs2/namei.c static struct dentry *nilfs_fh_to_dentry(struct super_block *sb, struct fid *fh,
sb                491 fs/nilfs2/namei.c 	return nilfs_get_dentry(sb, fid->cno, fid->ino, fid->gen);
sb                494 fs/nilfs2/namei.c static struct dentry *nilfs_fh_to_parent(struct super_block *sb, struct fid *fh,
sb                503 fs/nilfs2/namei.c 	return nilfs_get_dentry(sb, fid->cno, fid->parent_ino, fid->parent_gen);
sb                121 fs/nilfs2/nilfs.h #define NILFS_FIRST_INO(sb) (((struct the_nilfs *)sb->s_fs_info)->ns_first_ino)
sb                123 fs/nilfs2/nilfs.h #define NILFS_MDT_INODE(sb, ino) \
sb                124 fs/nilfs2/nilfs.h 	((ino) < NILFS_FIRST_INO(sb) && (NILFS_MDT_INO_BITS & BIT(ino)))
sb                125 fs/nilfs2/nilfs.h #define NILFS_VALID_INODE(sb, ino) \
sb                126 fs/nilfs2/nilfs.h 	((ino) >= NILFS_FIRST_INO(sb) || (NILFS_SYS_INO_BITS & BIT(ino)))
sb                259 fs/nilfs2/nilfs.h struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root,
sb                261 fs/nilfs2/nilfs.h struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root,
sb                263 fs/nilfs2/nilfs.h struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root,
sb                265 fs/nilfs2/nilfs.h extern struct inode *nilfs_iget_for_gc(struct super_block *sb,
sb                293 fs/nilfs2/nilfs.h void __nilfs_msg(struct super_block *sb, const char *level,
sb                296 fs/nilfs2/nilfs.h void __nilfs_error(struct super_block *sb, const char *function,
sb                301 fs/nilfs2/nilfs.h #define nilfs_msg(sb, level, fmt, ...)					\
sb                302 fs/nilfs2/nilfs.h 	__nilfs_msg(sb, level, fmt, ##__VA_ARGS__)
sb                303 fs/nilfs2/nilfs.h #define nilfs_error(sb, fmt, ...)					\
sb                304 fs/nilfs2/nilfs.h 	__nilfs_error(sb, __func__, fmt, ##__VA_ARGS__)
sb                308 fs/nilfs2/nilfs.h #define nilfs_msg(sb, level, fmt, ...)					\
sb                311 fs/nilfs2/nilfs.h 		(void)(sb);						\
sb                313 fs/nilfs2/nilfs.h #define nilfs_error(sb, fmt, ...)					\
sb                316 fs/nilfs2/nilfs.h 		__nilfs_error(sb, "", " ");				\
sb                329 fs/nilfs2/nilfs.h struct nilfs_super_block **nilfs_prepare_super(struct super_block *sb,
sb                331 fs/nilfs2/nilfs.h int nilfs_commit_super(struct super_block *sb, int flag);
sb                332 fs/nilfs2/nilfs.h int nilfs_cleanup_super(struct super_block *sb);
sb                333 fs/nilfs2/nilfs.h int nilfs_resize_fs(struct super_block *sb, __u64 newsize);
sb                334 fs/nilfs2/nilfs.h int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
sb                336 fs/nilfs2/nilfs.h int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno);
sb                389 fs/nilfs2/page.c 	struct super_block *sb = inode->i_sb;
sb                394 fs/nilfs2/page.c 		nilfs_msg(sb, KERN_WARNING,
sb                412 fs/nilfs2/page.c 				nilfs_msg(sb, KERN_WARNING,
sb                 48 fs/nilfs2/recovery.c static int nilfs_warn_segment_error(struct super_block *sb, int err)
sb                 54 fs/nilfs2/recovery.c 		nilfs_msg(sb, KERN_ERR, "I/O error reading segment");
sb                 75 fs/nilfs2/recovery.c 		nilfs_msg(sb, KERN_ERR, "unrecognized segment error %d", err);
sb                 78 fs/nilfs2/recovery.c 	nilfs_msg(sb, KERN_WARNING, "invalid segment: %s", msg);
sb                416 fs/nilfs2/recovery.c 					      struct super_block *sb,
sb                492 fs/nilfs2/recovery.c 				      struct super_block *sb,
sb                505 fs/nilfs2/recovery.c 		inode = nilfs_iget(sb, root, rb->ino);
sb                546 fs/nilfs2/recovery.c 		nilfs_msg(sb, KERN_WARNING,
sb                568 fs/nilfs2/recovery.c 				 struct super_block *sb,
sb                640 fs/nilfs2/recovery.c 					nilfs, sb, root, &dsync_blocks,
sb                672 fs/nilfs2/recovery.c 		nilfs_msg(sb, KERN_INFO, "salvaged %lu blocks",
sb                684 fs/nilfs2/recovery.c 	nilfs_msg(sb, KERN_ERR,
sb                731 fs/nilfs2/recovery.c 			      struct super_block *sb,
sb                740 fs/nilfs2/recovery.c 	err = nilfs_attach_checkpoint(sb, ri->ri_cno, true, &root);
sb                742 fs/nilfs2/recovery.c 		nilfs_msg(sb, KERN_ERR,
sb                747 fs/nilfs2/recovery.c 	err = nilfs_do_roll_forward(nilfs, sb, root, ri);
sb                752 fs/nilfs2/recovery.c 		err = nilfs_prepare_segment_for_recovery(nilfs, sb, ri);
sb                754 fs/nilfs2/recovery.c 			nilfs_msg(sb, KERN_ERR,
sb                760 fs/nilfs2/recovery.c 		err = nilfs_attach_log_writer(sb, root);
sb                765 fs/nilfs2/recovery.c 		err = nilfs_construct_segment(sb);
sb                766 fs/nilfs2/recovery.c 		nilfs_detach_log_writer(sb);
sb                769 fs/nilfs2/recovery.c 			nilfs_msg(sb, KERN_ERR,
sb                 34 fs/nilfs2/segbuf.c struct nilfs_segment_buffer *nilfs_segbuf_new(struct super_block *sb)
sb                 42 fs/nilfs2/segbuf.c 	segbuf->sb_super = sb;
sb                146 fs/nilfs2/segment.c static int nilfs_prepare_segment_lock(struct super_block *sb,
sb                161 fs/nilfs2/segment.c 		nilfs_msg(sb, KERN_WARNING, "journal info from a different FS");
sb                206 fs/nilfs2/segment.c int nilfs_transaction_begin(struct super_block *sb,
sb                211 fs/nilfs2/segment.c 	int ret = nilfs_prepare_segment_lock(sb, ti);
sb                219 fs/nilfs2/segment.c 		trace_nilfs2_transaction_transition(sb, trace_ti,
sb                225 fs/nilfs2/segment.c 	sb_start_intwrite(sb);
sb                227 fs/nilfs2/segment.c 	nilfs = sb->s_fs_info;
sb                236 fs/nilfs2/segment.c 	trace_nilfs2_transaction_transition(sb, trace_ti, trace_ti->ti_count,
sb                246 fs/nilfs2/segment.c 	sb_end_intwrite(sb);
sb                261 fs/nilfs2/segment.c int nilfs_transaction_commit(struct super_block *sb)
sb                264 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                271 fs/nilfs2/segment.c 		trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb                284 fs/nilfs2/segment.c 	trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb                290 fs/nilfs2/segment.c 		err = nilfs_construct_segment(sb);
sb                293 fs/nilfs2/segment.c 	sb_end_intwrite(sb);
sb                297 fs/nilfs2/segment.c void nilfs_transaction_abort(struct super_block *sb)
sb                300 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                305 fs/nilfs2/segment.c 		trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb                311 fs/nilfs2/segment.c 	trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb                317 fs/nilfs2/segment.c 	sb_end_intwrite(sb);
sb                320 fs/nilfs2/segment.c void nilfs_relax_pressure_in_lock(struct super_block *sb)
sb                322 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                343 fs/nilfs2/segment.c static void nilfs_transaction_lock(struct super_block *sb,
sb                348 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                359 fs/nilfs2/segment.c 		trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb                374 fs/nilfs2/segment.c 	trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb                378 fs/nilfs2/segment.c static void nilfs_transaction_unlock(struct super_block *sb)
sb                381 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                389 fs/nilfs2/segment.c 	trace_nilfs2_transaction_transition(sb, ti, ti->ti_count,
sb               2141 fs/nilfs2/segment.c void nilfs_flush_segment(struct super_block *sb, ino_t ino)
sb               2143 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2148 fs/nilfs2/segment.c 	nilfs_segctor_do_flush(sci, NILFS_MDT_INODE(sb, ino) ? ino : 0);
sb               2230 fs/nilfs2/segment.c int nilfs_construct_segment(struct super_block *sb)
sb               2232 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2267 fs/nilfs2/segment.c int nilfs_construct_dsync_segment(struct super_block *sb, struct inode *inode,
sb               2270 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2279 fs/nilfs2/segment.c 	nilfs_transaction_lock(sb, &ti, 0);
sb               2286 fs/nilfs2/segment.c 		nilfs_transaction_unlock(sb);
sb               2295 fs/nilfs2/segment.c 		nilfs_transaction_unlock(sb);
sb               2307 fs/nilfs2/segment.c 	nilfs_transaction_unlock(sb);
sb               2418 fs/nilfs2/segment.c int nilfs_clean_segments(struct super_block *sb, struct nilfs_argv *argv,
sb               2421 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2429 fs/nilfs2/segment.c 	nilfs_transaction_lock(sb, &ti, 1);
sb               2452 fs/nilfs2/segment.c 		nilfs_msg(sb, KERN_WARNING, "error %d cleaning segments", err);
sb               2460 fs/nilfs2/segment.c 			nilfs_msg(sb, KERN_WARNING,
sb               2471 fs/nilfs2/segment.c 	nilfs_transaction_unlock(sb);
sb               2644 fs/nilfs2/segment.c static struct nilfs_sc_info *nilfs_segctor_new(struct super_block *sb,
sb               2647 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2654 fs/nilfs2/segment.c 	sci->sc_super = sb;
sb               2765 fs/nilfs2/segment.c int nilfs_attach_log_writer(struct super_block *sb, struct nilfs_root *root)
sb               2767 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2776 fs/nilfs2/segment.c 		nilfs_detach_log_writer(sb);
sb               2779 fs/nilfs2/segment.c 	nilfs->ns_writer = nilfs_segctor_new(sb, root);
sb               2800 fs/nilfs2/segment.c void nilfs_detach_log_writer(struct super_block *sb)
sb               2802 fs/nilfs2/segment.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               2815 fs/nilfs2/segment.c 		nilfs_msg(sb, KERN_WARNING,
sb                237 fs/nilfs2/segment.h int nilfs_attach_log_writer(struct super_block *sb, struct nilfs_root *root);
sb                238 fs/nilfs2/segment.h void nilfs_detach_log_writer(struct super_block *sb);
sb                245 fs/nilfs2/segment.h int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb,
sb               1160 fs/nilfs2/sufile.c int nilfs_sufile_read(struct super_block *sb, size_t susize,
sb               1170 fs/nilfs2/sufile.c 	if (susize > sb->s_blocksize) {
sb               1171 fs/nilfs2/sufile.c 		nilfs_msg(sb, KERN_ERR,
sb               1175 fs/nilfs2/sufile.c 		nilfs_msg(sb, KERN_ERR,
sb               1180 fs/nilfs2/sufile.c 	sufile = nilfs_iget_locked(sb, NULL, NILFS_SUFILE_INO);
sb                 53 fs/nilfs2/sufile.h int nilfs_sufile_read(struct super_block *sb, size_t susize,
sb                 62 fs/nilfs2/super.c static int nilfs_setup_super(struct super_block *sb, int is_mount);
sb                 63 fs/nilfs2/super.c static int nilfs_remount(struct super_block *sb, int *flags, char *data);
sb                 65 fs/nilfs2/super.c void __nilfs_msg(struct super_block *sb, const char *level, const char *fmt,
sb                 74 fs/nilfs2/super.c 	if (sb)
sb                 75 fs/nilfs2/super.c 		printk("%sNILFS (%s): %pV\n", level, sb->s_id, &vaf);
sb                 81 fs/nilfs2/super.c static void nilfs_set_error(struct super_block *sb)
sb                 83 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                 89 fs/nilfs2/super.c 		sbp = nilfs_prepare_super(sb, 0);
sb                 94 fs/nilfs2/super.c 			nilfs_commit_super(sb, NILFS_SB_COMMIT_ALL);
sb                113 fs/nilfs2/super.c void __nilfs_error(struct super_block *sb, const char *function,
sb                116 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                126 fs/nilfs2/super.c 	       sb->s_id, function, &vaf);
sb                130 fs/nilfs2/super.c 	if (!sb_rdonly(sb)) {
sb                131 fs/nilfs2/super.c 		nilfs_set_error(sb);
sb                135 fs/nilfs2/super.c 			sb->s_flags |= SB_RDONLY;
sb                141 fs/nilfs2/super.c 		      sb->s_id);
sb                144 fs/nilfs2/super.c struct inode *nilfs_alloc_inode(struct super_block *sb)
sb                166 fs/nilfs2/super.c static int nilfs_sync_super(struct super_block *sb, int flag)
sb                168 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                181 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_ERR, "unable to write superblock: err=%d",
sb                240 fs/nilfs2/super.c struct nilfs_super_block **nilfs_prepare_super(struct super_block *sb,
sb                243 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                252 fs/nilfs2/super.c 			nilfs_msg(sb, KERN_CRIT, "superblock broke");
sb                266 fs/nilfs2/super.c int nilfs_commit_super(struct super_block *sb, int flag)
sb                268 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                291 fs/nilfs2/super.c 	return nilfs_sync_super(sb, flag);
sb                302 fs/nilfs2/super.c int nilfs_cleanup_super(struct super_block *sb)
sb                304 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                309 fs/nilfs2/super.c 	sbp = nilfs_prepare_super(sb, 0);
sb                322 fs/nilfs2/super.c 		ret = nilfs_commit_super(sb, flag);
sb                332 fs/nilfs2/super.c static int nilfs_move_2nd_super(struct super_block *sb, loff_t sb2off)
sb                334 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                360 fs/nilfs2/super.c 	nsbh = sb_getblk(sb, newblocknr);
sb                362 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_WARNING,
sb                392 fs/nilfs2/super.c int nilfs_resize_fs(struct super_block *sb, __u64 newsize)
sb                394 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                401 fs/nilfs2/super.c 	devsize = i_size_read(sb->s_bdev->bd_inode);
sb                421 fs/nilfs2/super.c 	ret = nilfs_construct_segment(sb);
sb                426 fs/nilfs2/super.c 	nilfs_move_2nd_super(sb, sb2off);
sb                428 fs/nilfs2/super.c 	sbp = nilfs_prepare_super(sb, 0);
sb                442 fs/nilfs2/super.c 		ret = nilfs_commit_super(sb, NILFS_SB_COMMIT_ALL);
sb                458 fs/nilfs2/super.c static void nilfs_put_super(struct super_block *sb)
sb                460 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                462 fs/nilfs2/super.c 	nilfs_detach_log_writer(sb);
sb                464 fs/nilfs2/super.c 	if (!sb_rdonly(sb)) {
sb                466 fs/nilfs2/super.c 		nilfs_cleanup_super(sb);
sb                475 fs/nilfs2/super.c 	sb->s_fs_info = NULL;
sb                478 fs/nilfs2/super.c static int nilfs_sync_fs(struct super_block *sb, int wait)
sb                480 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                486 fs/nilfs2/super.c 		err = nilfs_construct_segment(sb);
sb                490 fs/nilfs2/super.c 		sbp = nilfs_prepare_super(sb, nilfs_sb_will_flip(nilfs));
sb                493 fs/nilfs2/super.c 			nilfs_commit_super(sb, NILFS_SB_COMMIT);
sb                504 fs/nilfs2/super.c int nilfs_attach_checkpoint(struct super_block *sb, __u64 cno, int curr_mnt,
sb                507 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                527 fs/nilfs2/super.c 			nilfs_msg(sb, KERN_ERR,
sb                535 fs/nilfs2/super.c 	err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size,
sb                559 fs/nilfs2/super.c static int nilfs_freeze(struct super_block *sb)
sb                561 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                564 fs/nilfs2/super.c 	if (sb_rdonly(sb))
sb                569 fs/nilfs2/super.c 	err = nilfs_cleanup_super(sb);
sb                574 fs/nilfs2/super.c static int nilfs_unfreeze(struct super_block *sb)
sb                576 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                578 fs/nilfs2/super.c 	if (sb_rdonly(sb))
sb                582 fs/nilfs2/super.c 	nilfs_setup_super(sb, false);
sb                589 fs/nilfs2/super.c 	struct super_block *sb = dentry->d_sb;
sb                592 fs/nilfs2/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                625 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_WARNING,
sb                642 fs/nilfs2/super.c 	buf->f_bsize = sb->s_blocksize;
sb                658 fs/nilfs2/super.c 	struct super_block *sb = dentry->d_sb;
sb                659 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                714 fs/nilfs2/super.c static int parse_options(char *options, struct super_block *sb, int is_remount)
sb                716 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                758 fs/nilfs2/super.c 				nilfs_msg(sb, KERN_ERR,
sb                774 fs/nilfs2/super.c 			nilfs_msg(sb, KERN_ERR,
sb                783 fs/nilfs2/super.c nilfs_set_default_options(struct super_block *sb,
sb                786 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                792 fs/nilfs2/super.c static int nilfs_setup_super(struct super_block *sb, int is_mount)
sb                794 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                800 fs/nilfs2/super.c 	sbp = nilfs_prepare_super(sb, 0);
sb                811 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_WARNING, "mounting fs with errors");
sb                814 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_WARNING, "maximal mount count reached");
sb                829 fs/nilfs2/super.c 	return nilfs_commit_super(sb, NILFS_SB_COMMIT_ALL);
sb                832 fs/nilfs2/super.c struct nilfs_super_block *nilfs_read_super_block(struct super_block *sb,
sb                840 fs/nilfs2/super.c 	*pbh = sb_bread(sb, sb_index);
sb                846 fs/nilfs2/super.c int nilfs_store_magic_and_option(struct super_block *sb,
sb                850 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                852 fs/nilfs2/super.c 	sb->s_magic = le16_to_cpu(sbp->s_magic);
sb                856 fs/nilfs2/super.c 	sb->s_flags |= SB_NOATIME;
sb                859 fs/nilfs2/super.c 	nilfs_set_default_options(sb, sbp);
sb                866 fs/nilfs2/super.c 	return !parse_options(data, sb, 0) ? -EINVAL : 0;
sb                869 fs/nilfs2/super.c int nilfs_check_feature_compatibility(struct super_block *sb,
sb                877 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_ERR,
sb                884 fs/nilfs2/super.c 	if (!sb_rdonly(sb) && features) {
sb                885 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_ERR,
sb                893 fs/nilfs2/super.c static int nilfs_get_root_dentry(struct super_block *sb,
sb                901 fs/nilfs2/super.c 	inode = nilfs_iget(sb, root, NILFS_ROOT_INO);
sb                904 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_ERR, "error %d getting root inode", ret);
sb                909 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_ERR, "corrupt root inode");
sb                937 fs/nilfs2/super.c 	nilfs_msg(sb, KERN_ERR, "error %d getting root dentry", ret);
sb                990 fs/nilfs2/super.c int nilfs_checkpoint_is_mounted(struct super_block *sb, __u64 cno)
sb                992 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               1007 fs/nilfs2/super.c 		inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO);
sb               1031 fs/nilfs2/super.c nilfs_fill_super(struct super_block *sb, void *data, int silent)
sb               1038 fs/nilfs2/super.c 	nilfs = alloc_nilfs(sb);
sb               1042 fs/nilfs2/super.c 	sb->s_fs_info = nilfs;
sb               1044 fs/nilfs2/super.c 	err = init_nilfs(nilfs, sb, (char *)data);
sb               1048 fs/nilfs2/super.c 	sb->s_op = &nilfs_sops;
sb               1049 fs/nilfs2/super.c 	sb->s_export_op = &nilfs_export_ops;
sb               1050 fs/nilfs2/super.c 	sb->s_root = NULL;
sb               1051 fs/nilfs2/super.c 	sb->s_time_gran = 1;
sb               1052 fs/nilfs2/super.c 	sb->s_max_links = NILFS_LINK_MAX;
sb               1054 fs/nilfs2/super.c 	sb->s_bdi = bdi_get(sb->s_bdev->bd_bdi);
sb               1056 fs/nilfs2/super.c 	err = load_nilfs(nilfs, sb);
sb               1061 fs/nilfs2/super.c 	err = nilfs_attach_checkpoint(sb, cno, true, &fsroot);
sb               1063 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_ERR,
sb               1069 fs/nilfs2/super.c 	if (!sb_rdonly(sb)) {
sb               1070 fs/nilfs2/super.c 		err = nilfs_attach_log_writer(sb, fsroot);
sb               1075 fs/nilfs2/super.c 	err = nilfs_get_root_dentry(sb, fsroot, &sb->s_root);
sb               1081 fs/nilfs2/super.c 	if (!sb_rdonly(sb)) {
sb               1083 fs/nilfs2/super.c 		nilfs_setup_super(sb, true);
sb               1090 fs/nilfs2/super.c 	nilfs_detach_log_writer(sb);
sb               1105 fs/nilfs2/super.c static int nilfs_remount(struct super_block *sb, int *flags, char *data)
sb               1107 fs/nilfs2/super.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb               1112 fs/nilfs2/super.c 	sync_filesystem(sb);
sb               1113 fs/nilfs2/super.c 	old_sb_flags = sb->s_flags;
sb               1116 fs/nilfs2/super.c 	if (!parse_options(data, sb, 1)) {
sb               1120 fs/nilfs2/super.c 	sb->s_flags = (sb->s_flags & ~SB_POSIXACL);
sb               1125 fs/nilfs2/super.c 		nilfs_msg(sb, KERN_WARNING,
sb               1130 fs/nilfs2/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb               1134 fs/nilfs2/super.c 		nilfs_detach_log_writer(sb);
sb               1135 fs/nilfs2/super.c 		sb->s_flags |= SB_RDONLY;
sb               1142 fs/nilfs2/super.c 		nilfs_cleanup_super(sb);
sb               1158 fs/nilfs2/super.c 			nilfs_msg(sb, KERN_WARNING,
sb               1165 fs/nilfs2/super.c 		sb->s_flags &= ~SB_RDONLY;
sb               1167 fs/nilfs2/super.c 		root = NILFS_I(d_inode(sb->s_root))->i_root;
sb               1168 fs/nilfs2/super.c 		err = nilfs_attach_log_writer(sb, root);
sb               1173 fs/nilfs2/super.c 		nilfs_setup_super(sb, true);
sb               1180 fs/nilfs2/super.c 	sb->s_flags = old_sb_flags;
sb                984 fs/nilfs2/sysfs.c int nilfs_sysfs_create_device_group(struct super_block *sb)
sb                986 fs/nilfs2/sysfs.c 	struct the_nilfs *nilfs = sb->s_fs_info;
sb                993 fs/nilfs2/sysfs.c 		nilfs_msg(sb, KERN_ERR,
sb               1001 fs/nilfs2/sysfs.c 				    "%s", sb->s_id);
sb                 55 fs/nilfs2/the_nilfs.c struct the_nilfs *alloc_nilfs(struct super_block *sb)
sb                 63 fs/nilfs2/the_nilfs.c 	nilfs->ns_sb = sb;
sb                 64 fs/nilfs2/the_nilfs.c 	nilfs->ns_bdev = sb->s_bdev;
sb                 97 fs/nilfs2/the_nilfs.c 				 struct super_block *sb, sector_t sr_block)
sb                120 fs/nilfs2/the_nilfs.c 	err = nilfs_dat_read(sb, dat_entry_size, rawi, &nilfs->ns_dat);
sb                125 fs/nilfs2/the_nilfs.c 	err = nilfs_cpfile_read(sb, checkpoint_size, rawi, &nilfs->ns_cpfile);
sb                130 fs/nilfs2/the_nilfs.c 	err = nilfs_sufile_read(sb, segment_usage_size, rawi,
sb                204 fs/nilfs2/the_nilfs.c int load_nilfs(struct the_nilfs *nilfs, struct super_block *sb)
sb                207 fs/nilfs2/the_nilfs.c 	unsigned int s_flags = sb->s_flags;
sb                213 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_WARNING, "mounting unchecked fs");
sb                215 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_INFO,
sb                217 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_INFO,
sb                233 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_WARNING,
sb                237 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_INFO,
sb                251 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_WARNING,
sb                270 fs/nilfs2/the_nilfs.c 	err = nilfs_load_super_root(nilfs, sb, ri.ri_super_root);
sb                272 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_ERR, "error %d while loading super root",
sb                284 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_INFO,
sb                291 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_ERR,
sb                298 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_ERR,
sb                303 fs/nilfs2/the_nilfs.c 		sb->s_flags &= ~SB_RDONLY;
sb                305 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_ERR,
sb                311 fs/nilfs2/the_nilfs.c 	err = nilfs_salvage_orphan_logs(nilfs, sb, &ri);
sb                317 fs/nilfs2/the_nilfs.c 	err = nilfs_cleanup_super(sb);
sb                321 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_ERR,
sb                326 fs/nilfs2/the_nilfs.c 	nilfs_msg(sb, KERN_INFO, "recovery complete");
sb                330 fs/nilfs2/the_nilfs.c 	sb->s_flags = s_flags;
sb                334 fs/nilfs2/the_nilfs.c 	nilfs_msg(sb, KERN_ERR, "error %d while searching super root", err);
sb                344 fs/nilfs2/the_nilfs.c 	sb->s_flags = s_flags;
sb                492 fs/nilfs2/the_nilfs.c 				  struct super_block *sb, int blocksize,
sb                500 fs/nilfs2/the_nilfs.c 	sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize,
sb                502 fs/nilfs2/the_nilfs.c 	sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]);
sb                506 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_ERR, "unable to read superblock");
sb                509 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_WARNING,
sb                513 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_WARNING,
sb                537 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_ERR, "couldn't find nilfs on the device");
sb                542 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_WARNING,
sb                568 fs/nilfs2/the_nilfs.c int init_nilfs(struct the_nilfs *nilfs, struct super_block *sb, char *data)
sb                576 fs/nilfs2/the_nilfs.c 	blocksize = sb_min_blocksize(sb, NILFS_MIN_BLOCK_SIZE);
sb                578 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_ERR, "unable to set blocksize");
sb                582 fs/nilfs2/the_nilfs.c 	err = nilfs_load_super_block(nilfs, sb, blocksize, &sbp);
sb                586 fs/nilfs2/the_nilfs.c 	err = nilfs_store_magic_and_option(sb, sbp, data);
sb                590 fs/nilfs2/the_nilfs.c 	err = nilfs_check_feature_compatibility(sb, sbp);
sb                597 fs/nilfs2/the_nilfs.c 		nilfs_msg(sb, KERN_ERR,
sb                603 fs/nilfs2/the_nilfs.c 	if (sb->s_blocksize != blocksize) {
sb                604 fs/nilfs2/the_nilfs.c 		int hw_blocksize = bdev_logical_block_size(sb->s_bdev);
sb                607 fs/nilfs2/the_nilfs.c 			nilfs_msg(sb, KERN_ERR,
sb                614 fs/nilfs2/the_nilfs.c 		sb_set_blocksize(sb, blocksize);
sb                616 fs/nilfs2/the_nilfs.c 		err = nilfs_load_super_block(nilfs, sb, blocksize, &sbp);
sb                624 fs/nilfs2/the_nilfs.c 	nilfs->ns_blocksize_bits = sb->s_blocksize_bits;
sb                634 fs/nilfs2/the_nilfs.c 	sb->s_maxbytes = nilfs_max_size(sb->s_blocksize_bits);
sb                642 fs/nilfs2/the_nilfs.c 	err = nilfs_sysfs_create_device_group(sb);
sb                275 fs/nilfs2/the_nilfs.h struct the_nilfs *alloc_nilfs(struct super_block *sb);
sb                277 fs/nilfs2/the_nilfs.h int init_nilfs(struct the_nilfs *nilfs, struct super_block *sb, char *data);
sb                278 fs/nilfs2/the_nilfs.h int load_nilfs(struct the_nilfs *nilfs, struct super_block *sb);
sb                643 fs/notify/fanotify/fanotify_user.c 				      struct super_block *sb, __u32 mask,
sb                646 fs/notify/fanotify/fanotify_user.c 	return fanotify_remove_mark(group, &sb->s_fsnotify_marks, mask, flags);
sb                738 fs/notify/fanotify/fanotify_user.c 				struct super_block *sb, __u32 mask,
sb                741 fs/notify/fanotify/fanotify_user.c 	return fanotify_add_mark(group, &sb->s_fsnotify_marks,
sb                136 fs/notify/fdinfo.c 		struct super_block *sb = fsnotify_conn_sb(mark->connector);
sb                139 fs/notify/fdinfo.c 			   sb->s_dev, mflags, mark->mask, mark->ignored_mask);
sb                 38 fs/notify/fsnotify.c static void fsnotify_unmount_inodes(struct super_block *sb)
sb                 42 fs/notify/fsnotify.c 	spin_lock(&sb->s_inode_list_lock);
sb                 43 fs/notify/fsnotify.c 	list_for_each_entry(inode, &sb->s_inodes, i_sb_list) {
sb                 71 fs/notify/fsnotify.c 		spin_unlock(&sb->s_inode_list_lock);
sb                 84 fs/notify/fsnotify.c 		spin_lock(&sb->s_inode_list_lock);
sb                 86 fs/notify/fsnotify.c 	spin_unlock(&sb->s_inode_list_lock);
sb                 91 fs/notify/fsnotify.c 	wait_var_event(&sb->s_fsnotify_inode_refs,
sb                 92 fs/notify/fsnotify.c 		       !atomic_long_read(&sb->s_fsnotify_inode_refs));
sb                 95 fs/notify/fsnotify.c void fsnotify_sb_delete(struct super_block *sb)
sb                 97 fs/notify/fsnotify.c 	fsnotify_unmount_inodes(sb);
sb                 98 fs/notify/fsnotify.c 	fsnotify_clear_marks_by_sb(sb);
sb                322 fs/notify/fsnotify.c 	struct super_block *sb = to_tell->i_sb;
sb                324 fs/notify/fsnotify.c 	__u32 mnt_or_sb_mask = sb->s_fsnotify_mask;
sb                343 fs/notify/fsnotify.c 	if (!to_tell->i_fsnotify_marks && !sb->s_fsnotify_marks &&
sb                360 fs/notify/fsnotify.c 		fsnotify_first_mark(&sb->s_fsnotify_marks);
sb                 53 fs/notify/fsnotify.h static inline void fsnotify_clear_marks_by_sb(struct super_block *sb)
sb                 55 fs/notify/fsnotify.h 	fsnotify_destroy_marks(&sb->s_fsnotify_marks);
sb                213 fs/notify/mark.c 	struct super_block *sb;
sb                221 fs/notify/mark.c 	sb = inode->i_sb;
sb                223 fs/notify/mark.c 	if (atomic_long_dec_and_test(&sb->s_fsnotify_inode_refs))
sb                224 fs/notify/mark.c 		wake_up_var(&sb->s_fsnotify_inode_refs);
sb                 91 fs/ntfs/aops.c 		ntfs_error(ni->vol->sb, "Buffer I/O error, logical block "
sb                191 fs/ntfs/aops.c 	blocksize = vol->sb->s_blocksize;
sb                192 fs/ntfs/aops.c 	blocksize_bits = vol->sb->s_blocksize_bits;
sb                239 fs/ntfs/aops.c 		bh->b_bdev = vol->sb->s_bdev;
sb                306 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Failed to read from inode 0x%lx, "
sb                560 fs/ntfs/aops.c 	blocksize = vol->sb->s_blocksize;
sb                561 fs/ntfs/aops.c 	blocksize_bits = vol->sb->s_blocksize_bits;
sb                567 fs/ntfs/aops.c 			ntfs_warning(vol->sb, "Error allocating page "
sb                684 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Writing beyond initialized size "
sb                699 fs/ntfs/aops.c 		bh->b_bdev = vol->sb->s_bdev;
sb                751 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Writing into sparse regions is "
sb                787 fs/ntfs/aops.c 		ntfs_error(vol->sb, "Failed to write to inode 0x%lx, "
sb                842 fs/ntfs/aops.c 			ntfs_warning(vol->sb, "Error allocating memory. "
sb                936 fs/ntfs/aops.c 	bh_size = vol->sb->s_blocksize;
sb                937 fs/ntfs/aops.c 	bh_size_bits = vol->sb->s_blocksize_bits;
sb               1009 fs/ntfs/aops.c 			bh->b_bdev = vol->sb->s_bdev;
sb               1062 fs/ntfs/aops.c 				ntfs_error(vol->sb, "Cannot write ntfs record "
sb               1157 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Failed to apply mst fixups "
sb               1204 fs/ntfs/aops.c 			ntfs_error(vol->sb, "I/O error while writing ntfs "
sb               1563 fs/ntfs/aops.c 		ntfs_error(vol->sb, "BMAP does not make sense for %s "
sb               1573 fs/ntfs/aops.c 	blocksize = vol->sb->s_blocksize;
sb               1574 fs/ntfs/aops.c 	blocksize_bits = vol->sb->s_blocksize_bits;
sb               1609 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Not enough memory to complete "
sb               1614 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Failed to complete mapping for "
sb               1637 fs/ntfs/aops.c 			ntfs_error(vol->sb, "Physical block 0x%llx is too "
sb                388 fs/ntfs/attrib.c 		ntfs_error(ni->vol->sb, "Failed with error code %lli.",
sb                514 fs/ntfs/attrib.c 		ntfs_error(ni->vol->sb, "Failed with error code %i.", err);
sb                675 fs/ntfs/attrib.c 	ntfs_error(vol->sb, "Inode is corrupt.  Run chkdsk.");
sb                704 fs/ntfs/attrib.c 	struct super_block *sb;
sb                718 fs/ntfs/attrib.c 	sb = vol->sb;
sb                719 fs/ntfs/attrib.c 	block_size = sb->s_blocksize;
sb                720 fs/ntfs/attrib.c 	block_size_bits = sb->s_blocksize_bits;
sb                724 fs/ntfs/attrib.c 		ntfs_error(sb, "Cannot read attribute list since runlist is "
sb                736 fs/ntfs/attrib.c 			ntfs_error(sb, "ntfs_rl_vcn_to_lcn() failed.  Cannot "
sb                747 fs/ntfs/attrib.c 			bh = sb_bread(sb, block);
sb                749 fs/ntfs/attrib.c 				ntfs_error(sb, "sb_bread() failed. Cannot "
sb                786 fs/ntfs/attrib.c 	ntfs_error(sb, "Attribute list buffer overflow. Read attribute list "
sb                969 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Found stale mft "
sb                991 fs/ntfs/attrib.c 					ntfs_error(vol->sb, "Failed to map "
sb               1071 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Base inode 0x%lx contains corrupt "
sb               1768 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to undo partial resident "
sb               1815 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to release allocated "
sb               1942 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Cannot extend allocation "
sb               1951 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Cannot extend allocation "
sb               2081 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
sb               2097 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Not enough space in the mft "
sb               2102 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "This attribute type may not be "
sb               2174 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Cannot extend allocation "
sb               2212 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
sb               2225 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
sb               2233 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to release allocated "
sb               2257 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
sb               2279 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Not enough space in the mft "
sb               2293 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Cannot extend allocation of "
sb               2363 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Cannot complete extension of allocation "
sb               2374 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Failed to find last attribute extent of "
sb               2406 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Failed to release allocated cluster(s) "
sb               2420 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Failed to %s in error code path.  Run "
sb               2427 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to restore attribute "
sb               2438 fs/ntfs/attrib.c 				ntfs_error(vol->sb, "Failed to restore "
sb               2509 fs/ntfs/attrib.c 		ntfs_error(vol->sb, "Request exceeds end of attribute.");
sb               2517 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to read first partial "
sb               2545 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Insufficient memory to grab "
sb               2582 fs/ntfs/attrib.c 			ntfs_error(vol->sb, "Failed to read last partial page "
sb                469 fs/ntfs/compress.c 	struct super_block *sb = vol->sb;
sb                471 fs/ntfs/compress.c 	unsigned long flags, block_size = sb->s_blocksize;
sb                472 fs/ntfs/compress.c 	unsigned char block_size_bits = sb->s_blocksize_bits;
sb                527 fs/ntfs/compress.c 		ntfs_error(vol->sb, "Failed to allocate internal buffers.");
sb                639 fs/ntfs/compress.c 			if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block))))
sb                681 fs/ntfs/compress.c 			ntfs_warning(vol->sb, "Buffer is unlocked but not "
sb                689 fs/ntfs/compress.c 			ntfs_warning(vol->sb, "Buffer is now uptodate. Good.");
sb                854 fs/ntfs/compress.c 			ntfs_error(vol->sb, "ntfs_decompress() failed in inode "
sb                888 fs/ntfs/compress.c 			ntfs_error(vol->sb, "Still have pages left! "
sb                914 fs/ntfs/compress.c 	ntfs_error(vol->sb, "IO error while reading compressed data.");
sb                921 fs/ntfs/compress.c 	ntfs_error(vol->sb, "ntfs_map_runlist() failed. Cannot read "
sb                927 fs/ntfs/compress.c 	ntfs_error(vol->sb, "ntfs_rl_vcn_to_lcn() failed. Cannot read "
sb                933 fs/ntfs/compress.c 	ntfs_error(vol->sb, "getblk() failed. Cannot read compression block.");
sb                 29 fs/ntfs/debug.c void __ntfs_warning(const char *function, const struct super_block *sb,
sb                 45 fs/ntfs/debug.c 	if (sb)
sb                 47 fs/ntfs/debug.c 			sb->s_id, flen ? function : "", &vaf);
sb                 72 fs/ntfs/debug.c void __ntfs_error(const char *function, const struct super_block *sb,
sb                 88 fs/ntfs/debug.c 	if (sb)
sb                 90 fs/ntfs/debug.c 		       sb->s_id, flen ? function : "", &vaf);
sb                 48 fs/ntfs/debug.h void __ntfs_warning(const char *function, const struct super_block *sb,
sb                 50 fs/ntfs/debug.h #define ntfs_warning(sb, f, a...)	__ntfs_warning(__func__, sb, f, ##a)
sb                 53 fs/ntfs/debug.h void __ntfs_error(const char *function, const struct super_block *sb,
sb                 55 fs/ntfs/debug.h #define ntfs_error(sb, f, a...)		__ntfs_error(__func__, sb, f, ##a)
sb                 70 fs/ntfs/dir.c  	struct super_block *sb = vol->sb;
sb                 90 fs/ntfs/dir.c  		ntfs_error(sb, "map_mft_record() failed with error code %ld.",
sb                104 fs/ntfs/dir.c  			ntfs_error(sb, "Index root attribute missing in "
sb                202 fs/ntfs/dir.c  				ntfs_error(sb, "Found already allocated name "
sb                285 fs/ntfs/dir.c  		ntfs_error(sb, "No index allocation attribute but index entry "
sb                310 fs/ntfs/dir.c  		ntfs_error(sb, "Failed to map directory index page, error %ld.",
sb                323 fs/ntfs/dir.c  		ntfs_error(sb, "Out of bounds check failed. Corrupt directory "
sb                329 fs/ntfs/dir.c  		ntfs_error(sb, "Directory index record with vcn 0x%llx is "
sb                335 fs/ntfs/dir.c  		ntfs_error(sb, "Actual VCN (0x%llx) of index buffer is "
sb                345 fs/ntfs/dir.c  		ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode "
sb                356 fs/ntfs/dir.c  		ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode "
sb                365 fs/ntfs/dir.c  		ntfs_error(sb, "Size of index buffer (VCN 0x%llx) of directory "
sb                384 fs/ntfs/dir.c  			ntfs_error(sb, "Index entry out of bounds in "
sb                462 fs/ntfs/dir.c  				ntfs_error(sb, "Found already allocated name "
sb                535 fs/ntfs/dir.c  			ntfs_error(sb, "Index entry with child node found in "
sb                556 fs/ntfs/dir.c  		ntfs_error(sb, "Negative child node vcn in directory inode "
sb                588 fs/ntfs/dir.c  	ntfs_error(sb, "Corrupt directory.  Aborting lookup.");
sb                623 fs/ntfs/dir.c  	struct super_block *sb = vol->sb;
sb                641 fs/ntfs/dir.c  		ntfs_error(sb, "map_mft_record() failed with error code %ld.",
sb                655 fs/ntfs/dir.c  			ntfs_error(sb, "Index root attribute missing in "
sb                763 fs/ntfs/dir.c  		ntfs_error(sb, "No index allocation attribute but index entry "
sb                788 fs/ntfs/dir.c  		ntfs_error(sb, "Failed to map directory index page, error %ld.",
sb                801 fs/ntfs/dir.c  		ntfs_error(sb, "Out of bounds check failed. Corrupt directory "
sb                807 fs/ntfs/dir.c  		ntfs_error(sb, "Directory index record with vcn 0x%llx is "
sb                813 fs/ntfs/dir.c  		ntfs_error(sb, "Actual VCN (0x%llx) of index buffer is "
sb                823 fs/ntfs/dir.c  		ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode "
sb                834 fs/ntfs/dir.c  		ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode "
sb                843 fs/ntfs/dir.c  		ntfs_error(sb, "Size of index buffer (VCN 0x%llx) of directory "
sb                862 fs/ntfs/dir.c  			ntfs_error(sb, "Index entry out of bounds in "
sb                945 fs/ntfs/dir.c  			ntfs_error(sb, "Index entry with child node found in "
sb                965 fs/ntfs/dir.c  		ntfs_error(sb, "Negative child node vcn in directory inode "
sb                984 fs/ntfs/dir.c  	ntfs_error(sb, "Corrupt directory. Aborting lookup.");
sb               1038 fs/ntfs/dir.c  		ntfs_warning(vol->sb, "Skipping unrepresentable inode 0x%llx.",
sb               1090 fs/ntfs/dir.c  	struct super_block *sb = vdir->i_sb;
sb               1092 fs/ntfs/dir.c  	ntfs_volume *vol = NTFS_SB(sb);
sb               1146 fs/ntfs/dir.c  		ntfs_error(sb, "Index root attribute missing in directory "
sb               1222 fs/ntfs/dir.c  		ntfs_error(sb, "Failed to get bitmap attribute.");
sb               1230 fs/ntfs/dir.c  		ntfs_error(sb, "Current index allocation position exceeds "
sb               1245 fs/ntfs/dir.c  		ntfs_error(sb, "Reading index bitmap failed.");
sb               1287 fs/ntfs/dir.c  			ntfs_error(sb, "Reading index allocation data failed.");
sb               1300 fs/ntfs/dir.c  		ntfs_error(sb, "Out of bounds check failed. Corrupt directory "
sb               1306 fs/ntfs/dir.c  		ntfs_error(sb, "Directory index record with vcn 0x%llx is "
sb               1315 fs/ntfs/dir.c  		ntfs_error(sb, "Actual VCN (0x%llx) of index buffer is "
sb               1326 fs/ntfs/dir.c  		ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode "
sb               1338 fs/ntfs/dir.c  		ntfs_error(sb, "Index buffer (VCN 0x%llx) of directory inode "
sb               1348 fs/ntfs/dir.c  		ntfs_error(sb, "Size of index buffer (VCN 0x%llx) of directory "
sb                609 fs/ntfs/file.c 	blocksize = vol->sb->s_blocksize;
sb                610 fs/ntfs/file.c 	blocksize_bits = vol->sb->s_blocksize_bits;
sb                697 fs/ntfs/file.c 		bh->b_bdev = vol->sb->s_bdev;
sb                909 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to write to inode 0x%lx, "
sb                996 fs/ntfs/file.c 				ntfs_error(vol->sb, "Failed to release "
sb               1090 fs/ntfs/file.c 			ntfs_error(vol->sb, "Not enough space in the mft "
sb               1106 fs/ntfs/file.c 			ntfs_error(vol->sb, "Cannot fill hole in inode 0x%lx, "
sb               1231 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to find required "
sb               1263 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to punch hole into "
sb               1277 fs/ntfs/file.c 				ntfs_error(vol->sb, "Failed to release "
sb               1294 fs/ntfs/file.c 			ntfs_error(vol->sb, "Failed to restore attribute "
sb               1305 fs/ntfs/file.c 				ntfs_error(vol->sb, "Failed to restore "
sb               1356 fs/ntfs/file.c 	ntfs_error(vol->sb, "Failed.  Returning error code %i.", err);
sb               1762 fs/ntfs/file.c 			ntfs_error(vol->sb, "Cannot perform write to inode "
sb               1806 fs/ntfs/file.c 						ntfs_error(vol->sb, "Cannot "
sb                111 fs/ntfs/index.c 	struct super_block *sb = vol->sb;
sb                132 fs/ntfs/index.c 		ntfs_error(sb, "Index uses unsupported collation rule 0x%x.  "
sb                140 fs/ntfs/index.c 		ntfs_error(sb, "map_mft_record() failed with error code %ld.",
sb                154 fs/ntfs/index.c 			ntfs_error(sb, "Index root attribute missing in inode "
sb                242 fs/ntfs/index.c 		ntfs_error(sb, "No index allocation attribute but index entry "
sb                267 fs/ntfs/index.c 		ntfs_error(sb, "Failed to map index page, error %ld.",
sb                280 fs/ntfs/index.c 		ntfs_error(sb, "Out of bounds check failed.  Corrupt inode "
sb                286 fs/ntfs/index.c 		ntfs_error(sb, "Index record with vcn 0x%llx is corrupt.  "
sb                292 fs/ntfs/index.c 		ntfs_error(sb, "Actual VCN (0x%llx) of index buffer is "
sb                302 fs/ntfs/index.c 		ntfs_error(sb, "Index buffer (VCN 0x%llx) of inode 0x%lx has "
sb                313 fs/ntfs/index.c 		ntfs_error(sb, "Index buffer (VCN 0x%llx) of inode 0x%lx "
sb                322 fs/ntfs/index.c 		ntfs_error(sb, "Size of index buffer (VCN 0x%llx) of inode "
sb                340 fs/ntfs/index.c 			ntfs_error(sb, "Index entry out of bounds in inode "
sb                357 fs/ntfs/index.c 			ntfs_error(sb, "Index entry out of bounds in inode "
sb                403 fs/ntfs/index.c 		ntfs_error(sb, "Index entry with child node found in a leaf "
sb                424 fs/ntfs/index.c 	ntfs_error(sb, "Negative child node vcn in inode 0x%lx.",
sb                438 fs/ntfs/index.c 	ntfs_error(sb, "Corrupt index.  Aborting lookup.");
sb                156 fs/ntfs/inode.c struct inode *ntfs_iget(struct super_block *sb, unsigned long mft_no)
sb                167 fs/ntfs/inode.c 	vi = iget5_locked(sb, mft_no, (test_t)ntfs_test_inode,
sb                307 fs/ntfs/inode.c struct inode *ntfs_alloc_big_inode(struct super_block *sb)
sb                317 fs/ntfs/inode.c 	ntfs_error(sb, "Allocation of NTFS big inode structure failed.");
sb                367 fs/ntfs/inode.c void __ntfs_init_inode(struct super_block *sb, ntfs_inode *ni)
sb                374 fs/ntfs/inode.c 	ni->vol = NTFS_SB(sb);
sb                401 fs/ntfs/inode.c inline ntfs_inode *ntfs_new_extent_inode(struct super_block *sb,
sb                408 fs/ntfs/inode.c 		__ntfs_init_inode(sb, ni);
sb                457 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "Corrupt file name "
sb                462 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "Non-resident file "
sb                467 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "File name with "
sb                473 fs/ntfs/inode.c 			ntfs_error(ctx->ntfs_ino->vol->sb, "Unindexed file "
sb                489 fs/ntfs/inode.c 		ntfs_error(ctx->ntfs_ino->vol->sb, "Inode hard link count "
sb                776 fs/ntfs/inode.c 			ntfs_error(vol->sb, "$INDEX_ROOT attribute is not "
sb                783 fs/ntfs/inode.c 			ntfs_error(vol->sb, "$INDEX_ROOT attribute name is "
sb                913 fs/ntfs/inode.c 			ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name "
sb               1163 fs/ntfs/inode.c 	ntfs_error(vol->sb, "Failed with error code %i.  Marking corrupt "
sb               1310 fs/ntfs/inode.c 			ntfs_error(vol->sb, "Attribute name is placed after "
sb               1339 fs/ntfs/inode.c 			ntfs_error(vol->sb, "Attribute name is placed after "
sb               1414 fs/ntfs/inode.c 	ntfs_error(vol->sb, "Failed with error code %i while reading attribute "
sb               1508 fs/ntfs/inode.c 		ntfs_error(vol->sb, "$INDEX_ROOT attribute is not resident.");
sb               1514 fs/ntfs/inode.c 		ntfs_error(vol->sb, "$INDEX_ROOT attribute name is placed "
sb               1614 fs/ntfs/inode.c 		ntfs_error(vol->sb, "$INDEX_ALLOCATION attribute name is "
sb               1744 fs/ntfs/inode.c 	struct super_block *sb = vi->i_sb;
sb               1745 fs/ntfs/inode.c 	ntfs_volume *vol = NTFS_SB(sb);
sb               1780 fs/ntfs/inode.c 		ntfs_error(sb, "Unsupported mft record size %i (max 64kiB).",
sb               1785 fs/ntfs/inode.c 	if (i < sb->s_blocksize)
sb               1786 fs/ntfs/inode.c 		i = sb->s_blocksize;
sb               1789 fs/ntfs/inode.c 		ntfs_error(sb, "Failed to allocate buffer for $MFT record 0.");
sb               1795 fs/ntfs/inode.c 			sb->s_blocksize_bits;
sb               1796 fs/ntfs/inode.c 	nr_blocks = vol->mft_record_size >> sb->s_blocksize_bits;
sb               1802 fs/ntfs/inode.c 		bh = sb_bread(sb, block++);
sb               1804 fs/ntfs/inode.c 			ntfs_error(sb, "Device read failed.");
sb               1807 fs/ntfs/inode.c 		memcpy((char*)m + (i << sb->s_blocksize_bits), bh->b_data,
sb               1808 fs/ntfs/inode.c 				sb->s_blocksize);
sb               1815 fs/ntfs/inode.c 		ntfs_error(sb, "MST fixup failed. $MFT is corrupt.");
sb               1835 fs/ntfs/inode.c 			ntfs_error(sb, "Failed to lookup attribute list "
sb               1849 fs/ntfs/inode.c 			ntfs_error(sb, "Attribute list attribute is "
sb               1856 fs/ntfs/inode.c 				ntfs_error(sb, "Non-resident attribute list "
sb               1861 fs/ntfs/inode.c 			ntfs_warning(sb, "Resident attribute list attribute "
sb               1873 fs/ntfs/inode.c 			ntfs_error(sb, "Not enough memory to allocate buffer "
sb               1880 fs/ntfs/inode.c 				ntfs_error(sb, "Attribute list has non zero "
sb               1891 fs/ntfs/inode.c 				ntfs_error(sb, "Mapping pairs decompression "
sb               1901 fs/ntfs/inode.c 				ntfs_error(sb, "Failed to load attribute list "
sb               1912 fs/ntfs/inode.c 				ntfs_error(sb, "Corrupt attribute list "
sb               1964 fs/ntfs/inode.c 				ntfs_error(sb, "BUG: The first $DATA extent "
sb               1995 fs/ntfs/inode.c 			ntfs_error(sb, "$MFT must be non-resident but a "
sb               2004 fs/ntfs/inode.c 			ntfs_error(sb, "$MFT must be uncompressed, "
sb               2019 fs/ntfs/inode.c 			ntfs_error(sb, "ntfs_mapping_pairs_decompress() "
sb               2029 fs/ntfs/inode.c 				ntfs_error(sb, "First extent of $DATA "
sb               2052 fs/ntfs/inode.c 				ntfs_error(sb, "$MFT is too big! Aborting.");
sb               2076 fs/ntfs/inode.c 				ntfs_error(sb, "ntfs_read_inode() of $MFT "
sb               2113 fs/ntfs/inode.c 			ntfs_error(sb, "$MFT has corrupt attribute list "
sb               2119 fs/ntfs/inode.c 		ntfs_error(sb, "Failed to lookup $MFT/$DATA attribute extent. "
sb               2124 fs/ntfs/inode.c 		ntfs_error(sb, "$MFT/$DATA attribute not found. $MFT is "
sb               2129 fs/ntfs/inode.c 		ntfs_error(sb, "Failed to load the complete runlist for "
sb               2151 fs/ntfs/inode.c 	ntfs_error(sb, "Couldn't find first extent of $DATA attribute in "
sb               2156 fs/ntfs/inode.c 	ntfs_error(sb, "Failed. Marking inode as bad.");
sb               2201 fs/ntfs/inode.c 			ntfs_error(ni->vol->sb, "Clearing dirty extent inode!  "
sb               2437 fs/ntfs/inode.c 				ntfs_error(vol->sb, "Truncate would cause the "
sb               2447 fs/ntfs/inode.c 				ntfs_error(vol->sb, "Inode 0x%lx has unknown "
sb               2539 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Cannot truncate inode 0x%lx, attribute "
sb               2550 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Not enough space in the mft record/on "
sb               2554 fs/ntfs/inode.c 		ntfs_error(vol->sb, "This attribute type may not be "
sb               2598 fs/ntfs/inode.c 			ntfs_error(vol->sb, "Cannot truncate inode 0x%lx, "
sb               2677 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Failed to release cluster(s) (error code "
sb               2693 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Failed to %s (error code %li).%s",
sb               2704 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Cannot shrink allocation of inode 0x%lx, "
sb               2728 fs/ntfs/inode.c 		ntfs_error(vol->sb, "Cannot shrink allocation of inode 0x%lx, "
sb                260 fs/ntfs/inode.h extern struct inode *ntfs_iget(struct super_block *sb, unsigned long mft_no);
sb                266 fs/ntfs/inode.h extern struct inode *ntfs_alloc_big_inode(struct super_block *sb);
sb                270 fs/ntfs/inode.h extern void __ntfs_init_inode(struct super_block *sb, ntfs_inode *ni);
sb                281 fs/ntfs/inode.h extern ntfs_inode *ntfs_new_extent_inode(struct super_block *sb,
sb                275 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "Failed to map page.");
sb                332 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Failed to "
sb                744 fs/ntfs/lcnalloc.c 	ntfs_error(vol->sb, "Failed to allocate clusters, aborting "
sb                760 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "Failed to rollback (error %i).  "
sb                869 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "Failed to find first runlist "
sb                877 fs/ntfs/lcnalloc.c 			ntfs_error(vol->sb, "First runlist element has "
sb                896 fs/ntfs/lcnalloc.c 				ntfs_error(vol->sb, "Failed to clear first run "
sb                924 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Failed to map "
sb                933 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Runlist element "
sb                953 fs/ntfs/lcnalloc.c 					ntfs_error(vol->sb, "Failed to clear "
sb                990 fs/ntfs/lcnalloc.c 		ntfs_error(vol->sb, "Failed to rollback (error %i).  Leaving "
sb                996 fs/ntfs/lcnalloc.c 	ntfs_error(vol->sb, "Aborting (error %i).", err);
sb                517 fs/ntfs/logfile.c 		ntfs_error(vol->sb, "$LogFile is too small.");
sb                535 fs/ntfs/logfile.c 				ntfs_error(vol->sb, "Error mapping $LogFile "
sb                610 fs/ntfs/logfile.c 		ntfs_error(vol->sb, "Did not find any restart pages in "
sb                680 fs/ntfs/logfile.c 		ntfs_error(vol->sb, "Restart page buffer is invalid.  This is "
sb                718 fs/ntfs/logfile.c 	struct super_block *sb = vol->sb;
sb                737 fs/ntfs/logfile.c 	block_size = sb->s_blocksize;
sb                738 fs/ntfs/logfile.c 	block_size_bits = sb->s_blocksize_bits;
sb                751 fs/ntfs/logfile.c 			ntfs_error(sb, "Failed to map runlist fragment (error "
sb                792 fs/ntfs/logfile.c 			bh = sb_getblk(sb, block);
sb                836 fs/ntfs/logfile.c 	ntfs_error(sb, "Failed to write buffer.  Unmount and run chkdsk.");
sb                839 fs/ntfs/logfile.c 	ntfs_error(sb, "Runlist is corrupt.  Unmount and run chkdsk.");
sb                845 fs/ntfs/logfile.c 	ntfs_error(sb, "Failed to fill $LogFile with 0xff bytes (error %d).",
sb                 65 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, "
sb                 82 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Mft record 0x%lx is corrupt.  "
sb                162 fs/ntfs/mft.c  	ntfs_error(ni->vol->sb, "Failed with error code %lu.", -PTR_ERR(m));
sb                282 fs/ntfs/mft.c  			ntfs_error(base_ni->vol->sb, "Found stale extent mft "
sb                288 fs/ntfs/mft.c  		ntfs_error(base_ni->vol->sb, "Failed to map extent "
sb                293 fs/ntfs/mft.c  	ni = ntfs_new_extent_inode(base_ni->vol->sb, mft_no);
sb                313 fs/ntfs/mft.c  		ntfs_error(base_ni->vol->sb, "Found stale extent mft "
sb                326 fs/ntfs/mft.c  			ntfs_error(base_ni->vol->sb, "Failed to allocate "
sb                431 fs/ntfs/mft.c  	ntfs_error(vol->sb, "Umount time mft mirror syncing is not "
sb                458 fs/ntfs/mft.c  	unsigned int blocksize = vol->sb->s_blocksize;
sb                466 fs/ntfs/mft.c  	unsigned char blocksize_bits = vol->sb->s_blocksize_bits;
sb                483 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft mirror page.");
sb                529 fs/ntfs/mft.c  			bh->b_bdev = vol->sb->s_bdev;
sb                558 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Cannot write mft mirror "
sb                617 fs/ntfs/mft.c  		ntfs_error(vol->sb, "I/O error while writing mft mirror "
sb                620 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to synchronize $MFTMirr (error "
sb                664 fs/ntfs/mft.c  	unsigned int blocksize = vol->sb->s_blocksize;
sb                665 fs/ntfs/mft.c  	unsigned char blocksize_bits = vol->sb->s_blocksize_bits;
sb                722 fs/ntfs/mft.c  			bh->b_bdev = vol->sb->s_bdev;
sb                746 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Cannot write mft record "
sb                769 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to apply mst fixups!");
sb                811 fs/ntfs/mft.c  		ntfs_error(vol->sb, "I/O error while writing mft record "
sb                832 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Not enough memory to write mft record.  "
sb                923 fs/ntfs/mft.c  	struct super_block *sb = vol->sb;
sb                961 fs/ntfs/mft.c  		vi = ilookup5_nowait(sb, mft_no, (test_t)ntfs_test_inode, &na);
sb               1022 fs/ntfs/mft.c  		vi = ilookup5_nowait(sb, na.mft_no, (test_t)ntfs_test_inode,
sb               1190 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Failed to read mft "
sb               1308 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to determine last allocated "
sb               1329 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to read from lcn bitmap.");
sb               1355 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to allocate a cluster for "
sb               1362 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to merge runlists for mft "
sb               1365 fs/ntfs/mft.c  				ntfs_error(vol->sb, "Failed to deallocate "
sb               1385 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
sb               1391 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
sb               1399 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
sb               1417 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Get size for mapping pairs failed for "
sb               1430 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to resize attribute "
sb               1439 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Not enough space in this mft record to "
sb               1451 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to build mapping pairs array for "
sb               1473 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to find first attribute "
sb               1497 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
sb               1528 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to free allocated cluster.%s", es);
sb               1538 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore mapping pairs "
sb               1543 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore attribute "
sb               1590 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
sb               1595 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
sb               1602 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find first attribute extent of "
sb               1638 fs/ntfs/mft.c  	ntfs_error(vol->sb, "Failed to write to mft bitmap.");
sb               1642 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.%s", es);
sb               1648 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.%s", es);
sb               1654 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find first attribute extent of "
sb               1739 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to determine last allocated "
sb               1766 fs/ntfs/mft.c  			ntfs_warning(vol->sb, "Cannot allocate mft record "
sb               1782 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to allocate the minimal "
sb               1800 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to merge runlists for mft data "
sb               1803 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to deallocate clusters "
sb               1818 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
sb               1824 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
sb               1831 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
sb               1849 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Get size for mapping pairs failed for "
sb               1862 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to resize attribute "
sb               1876 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Not enough space in this mft record to "
sb               1888 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to build mapping pairs array of "
sb               1912 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to find first attribute "
sb               1935 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find last attribute extent of "
sb               1954 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to free clusters from mft data "
sb               1960 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to truncate mft data attribute "
sb               1970 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore mapping pairs "
sb               1975 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to restore attribute "
sb               1982 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to restore attribute search "
sb               2014 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Mft record number 0x%llx exceeds "
sb               2038 fs/ntfs/mft.c  		ntfs_warning(vol->sb, "Sector size is bigger than mft record "
sb               2109 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Tried to format non-existing mft "
sb               2117 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map page containing mft record "
sb               2127 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to layout mft record 0x%llx.",
sb               2369 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to allocate bit in mft bitmap.");
sb               2409 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to extend mft data "
sb               2445 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to format mft record.");
sb               2456 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map mft record.");
sb               2462 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to get search context.");
sb               2470 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to find first attribute extent of "
sb               2518 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to map page containing allocated "
sb               2532 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Mft record 0x%llx was marked "
sb               2555 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to layout allocated mft "
sb               2590 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to map allocated extent "
sb               2624 fs/ntfs/mft.c  		vi = new_inode(vol->sb);
sb               2739 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to clear bit in mft bitmap.%s", es);
sb               2746 fs/ntfs/mft.c  	ntfs_warning(vol->sb, "Cannot allocate mft record because the maximum "
sb               2799 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Tried to free busy extent inode 0x%lx, "
sb               2822 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Extent inode 0x%lx is not attached to "
sb               2853 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to write mft record 0x%lx, not "
sb               2872 fs/ntfs/mft.c  		ntfs_error(vol->sb, "Failed to clear bit in mft bitmap.%s", es);
sb               2885 fs/ntfs/mft.c  			ntfs_error(vol->sb, "Failed to allocate internal "
sb                107 fs/ntfs/namei.c 			ntfs_error(vol->sb, "Failed to convert name to "
sb                117 fs/ntfs/namei.c 		dent_inode = ntfs_iget(vol->sb, dent_ino);
sb                134 fs/ntfs/namei.c 			ntfs_error(vol->sb, "Found stale reference to inode "
sb                143 fs/ntfs/namei.c 			ntfs_error(vol->sb, "ntfs_iget(0x%lx) failed with "
sb                158 fs/ntfs/namei.c 	ntfs_error(vol->sb, "ntfs_lookup_ino_by_name() failed with error "
sb                204 fs/ntfs/namei.c 				ntfs_error(vol->sb, "Inode corrupt: No WIN32 "
sb                249 fs/ntfs/namei.c 	ntfs_error(vol->sb, "Illegal file name attribute. Run chkdsk.");
sb                257 fs/ntfs/namei.c 	ntfs_error(vol->sb, "Failed, returning error code %i.", err);
sb                337 fs/ntfs/namei.c static struct inode *ntfs_nfs_get_inode(struct super_block *sb,
sb                342 fs/ntfs/namei.c 	inode = ntfs_iget(sb, ino);
sb                353 fs/ntfs/namei.c static struct dentry *ntfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                356 fs/ntfs/namei.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type,
sb                360 fs/ntfs/namei.c static struct dentry *ntfs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                363 fs/ntfs/namei.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type,
sb                 66 fs/ntfs/ntfs.h static inline ntfs_volume *NTFS_SB(struct super_block *sb)
sb                 68 fs/ntfs/ntfs.h 	return sb->s_fs_info;
sb                 34 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Quota inodes are not open.");
sb                 40 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Failed to get index context.");
sb                 46 fs/ntfs/quota.c 			ntfs_error(vol->sb, "Quota defaults entry is not "
sb                 49 fs/ntfs/quota.c 			ntfs_error(vol->sb, "Lookup of quota defaults entry "
sb                 54 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Quota defaults entry size is invalid.  "
sb                 60 fs/ntfs/quota.c 		ntfs_error(vol->sb, "Quota defaults entry version 0x%x is not "
sb                753 fs/ntfs/runlist.c 		ntfs_error(vol->sb, "Invalid arguments.");
sb                765 fs/ntfs/runlist.c 		ntfs_error(vol->sb, "Corrupt attribute.");
sb                819 fs/ntfs/runlist.c 			ntfs_error(vol->sb, "Missing length entry in mapping "
sb                828 fs/ntfs/runlist.c 			ntfs_error(vol->sb, "Invalid length in mapping pairs "
sb                866 fs/ntfs/runlist.c 					ntfs_error(vol->sb, "lcn delta == -1");
sb                868 fs/ntfs/runlist.c 					ntfs_error(vol->sb, "lcn == -1");
sb                873 fs/ntfs/runlist.c 				ntfs_error(vol->sb, "Invalid LCN < -1 in "
sb                894 fs/ntfs/runlist.c 		ntfs_error(vol->sb, "Corrupt mapping pairs array in "
sb                930 fs/ntfs/runlist.c 				ntfs_error(vol->sb, "Corrupt attribute.  "
sb                957 fs/ntfs/runlist.c 	ntfs_error(vol->sb, "Failed to merge runlists.");
sb                960 fs/ntfs/runlist.c 	ntfs_error(vol->sb, "Corrupt attribute.");
sb               1509 fs/ntfs/runlist.c 			ntfs_error(vol->sb, "Not enough memory to allocate "
sb               1558 fs/ntfs/runlist.c 				ntfs_warning(vol->sb, "Failed to shrink "
sb               1582 fs/ntfs/runlist.c 				ntfs_error(vol->sb, "Failed to expand runlist "
sb               1716 fs/ntfs/runlist.c 				ntfs_warning(vol->sb, "Failed to shrink "
sb               1889 fs/ntfs/runlist.c 	ntfs_error(vol->sb, "Not enough memory to extend runlist buffer.");
sb                192 fs/ntfs/super.c 			ntfs_warning(vol->sb, "Ignoring obsolete option %s.",
sb                196 fs/ntfs/super.c 				ntfs_warning(vol->sb, "Option iocharset is "
sb                207 fs/ntfs/super.c 					ntfs_error(vol->sb, "NLS character set "
sb                211 fs/ntfs/super.c 				ntfs_error(vol->sb, "NLS character set %s not "
sb                220 fs/ntfs/super.c 			ntfs_warning(vol->sb, "Option utf8 is no longer "
sb                234 fs/ntfs/super.c 			ntfs_error(vol->sb, "Unrecognized mount option %s.", p);
sb                247 fs/ntfs/super.c 		ntfs_warning(vol->sb, "Sloppy option given. Ignoring "
sb                252 fs/ntfs/super.c 			ntfs_error(vol->sb, "Invalid errors option argument "
sb                259 fs/ntfs/super.c 			ntfs_error(vol->sb, "Cannot change NLS character set "
sb                269 fs/ntfs/super.c 				ntfs_error(vol->sb, "Failed to load default "
sb                280 fs/ntfs/super.c 			ntfs_error(vol->sb, "Cannot change mft_zone_multiplier "
sb                285 fs/ntfs/super.c 			ntfs_error(vol->sb, "Invalid mft_zone_multiplier. "
sb                323 fs/ntfs/super.c 				ntfs_warning(vol->sb, "Not enabling sparse "
sb                334 fs/ntfs/super.c 	ntfs_error(vol->sb, "The %s option requires an argument.", p);
sb                337 fs/ntfs/super.c 	ntfs_error(vol->sb, "The %s option requires a boolean argument.", p);
sb                340 fs/ntfs/super.c 	ntfs_error(vol->sb, "Invalid %s option argument: %s", p, ov);
sb                403 fs/ntfs/super.c 	ntfs_error(vol->sb, "Failed with error code %i.", -err);
sb                452 fs/ntfs/super.c static int ntfs_remount(struct super_block *sb, int *flags, char *opt)
sb                454 fs/ntfs/super.c 	ntfs_volume *vol = NTFS_SB(sb);
sb                458 fs/ntfs/super.c 	sync_filesystem(sb);
sb                476 fs/ntfs/super.c 	if (sb_rdonly(sb) && !(*flags & SB_RDONLY)) {
sb                481 fs/ntfs/super.c 			ntfs_error(sb, "Volume has errors and is read-only%s",
sb                486 fs/ntfs/super.c 			ntfs_error(sb, "Volume is dirty and read-only%s", es);
sb                490 fs/ntfs/super.c 			ntfs_error(sb, "Volume has been modified by chkdsk "
sb                495 fs/ntfs/super.c 			ntfs_error(sb, "Volume has unsupported flags set "
sb                502 fs/ntfs/super.c 			ntfs_error(sb, "Failed to set dirty bit in volume "
sb                512 fs/ntfs/super.c 				ntfs_error(sb, "Failed to set NT4 "
sb                520 fs/ntfs/super.c 			ntfs_error(sb, "Failed to empty journal $LogFile%s",
sb                526 fs/ntfs/super.c 			ntfs_error(sb, "Failed to mark quotas out of date%s",
sb                532 fs/ntfs/super.c 			ntfs_error(sb, "Failed to stamp transaction log "
sb                537 fs/ntfs/super.c 	} else if (!sb_rdonly(sb) && (*flags & SB_RDONLY)) {
sb                541 fs/ntfs/super.c 				ntfs_warning(sb, "Failed to clear dirty bit "
sb                569 fs/ntfs/super.c static bool is_boot_sector_ntfs(const struct super_block *sb,
sb                586 fs/ntfs/super.c 			ntfs_warning(sb, "Invalid boot sector checksum.");
sb                637 fs/ntfs/super.c 		ntfs_warning(sb, "Invalid end of sector marker.");
sb                662 fs/ntfs/super.c static struct buffer_head *read_ntfs_boot_sector(struct super_block *sb,
sb                667 fs/ntfs/super.c 	sector_t nr_blocks = NTFS_SB(sb)->nr_blocks;
sb                670 fs/ntfs/super.c 	if ((bh_primary = sb_bread(sb, 0))) {
sb                671 fs/ntfs/super.c 		if (is_boot_sector_ntfs(sb, (NTFS_BOOT_SECTOR*)
sb                675 fs/ntfs/super.c 			ntfs_error(sb, "Primary boot sector is invalid.");
sb                677 fs/ntfs/super.c 		ntfs_error(sb, read_err_str, "primary");
sb                678 fs/ntfs/super.c 	if (!(NTFS_SB(sb)->on_errors & ON_ERRORS_RECOVER)) {
sb                682 fs/ntfs/super.c 			ntfs_error(sb, "Mount option errors=recover not used. "
sb                687 fs/ntfs/super.c 	if ((bh_backup = sb_bread(sb, nr_blocks - 1))) {
sb                688 fs/ntfs/super.c 		if (is_boot_sector_ntfs(sb, (NTFS_BOOT_SECTOR*)
sb                693 fs/ntfs/super.c 		ntfs_error(sb, read_err_str, "backup");
sb                695 fs/ntfs/super.c 	if ((bh_backup = sb_bread(sb, nr_blocks >> 1))) {
sb                696 fs/ntfs/super.c 		if (is_boot_sector_ntfs(sb, (NTFS_BOOT_SECTOR*)
sb                700 fs/ntfs/super.c 			ntfs_error(sb, "Could not find a valid backup boot "
sb                704 fs/ntfs/super.c 		ntfs_error(sb, read_err_str, "backup");
sb                721 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb                722 fs/ntfs/super.c 			ntfs_warning(sb, "Hot-fix: Recovering invalid primary "
sb                732 fs/ntfs/super.c 			ntfs_error(sb, "Hot-fix: Device write error while "
sb                735 fs/ntfs/super.c 			ntfs_warning(sb, "Hot-fix: Recovery of primary boot "
sb                740 fs/ntfs/super.c 	ntfs_warning(sb, "Using backup boot sector.");
sb                764 fs/ntfs/super.c 	if (vol->sector_size < vol->sb->s_blocksize) {
sb                765 fs/ntfs/super.c 		ntfs_error(vol->sb, "Sector size (%i) is smaller than the "
sb                768 fs/ntfs/super.c 				vol->sb->s_blocksize);
sb                785 fs/ntfs/super.c 		ntfs_error(vol->sb, "Cluster size (%i) is smaller than the "
sb                816 fs/ntfs/super.c 		ntfs_error(vol->sb, "Mft record size (%i) exceeds the "
sb                824 fs/ntfs/super.c 		ntfs_error(vol->sb, "Mft record size (%i) is smaller than the "
sb                855 fs/ntfs/super.c 		ntfs_error(vol->sb, "Index record size (%i) is smaller than "
sb                868 fs/ntfs/super.c 		ntfs_error(vol->sb, "Cannot handle 64-bit clusters.  Sorry.");
sb                880 fs/ntfs/super.c 			ntfs_error(vol->sb, "Volume size (%lluTiB) is too "
sb                890 fs/ntfs/super.c 		ntfs_error(vol->sb, "MFT LCN (%lli, 0x%llx) is beyond end of "
sb                899 fs/ntfs/super.c 		ntfs_error(vol->sb, "MFTMirr LCN (%lli, 0x%llx) is beyond end "
sb               1027 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, FILE_MFTMirr);
sb               1075 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
sb               1104 fs/ntfs/super.c 				ntfs_error(sb, "Failed to read $MFT.");
sb               1112 fs/ntfs/super.c 				ntfs_error(sb, "Failed to read $MFTMirr.");
sb               1122 fs/ntfs/super.c 				ntfs_error(sb, "Incomplete multi sector "
sb               1135 fs/ntfs/super.c 				ntfs_error(sb, "Incomplete multi sector "
sb               1154 fs/ntfs/super.c 			ntfs_error(sb, "$MFT and $MFTMirr (record %i) do not "
sb               1185 fs/ntfs/super.c 			ntfs_error(sb, "$MFTMirr location mismatch.  "
sb               1208 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, FILE_LogFile);
sb               1286 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to find inode number for "
sb               1293 fs/ntfs/super.c 	vi = ntfs_iget(vol->sb, MREF(mref));
sb               1297 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load hiberfil.sys.");
sb               1308 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to read from hiberfil.sys.");
sb               1386 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to find inode number for $Quota.");
sb               1392 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, MREF(mref));
sb               1396 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $Quota.");
sb               1403 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $Quota/$Q index.");
sb               1470 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to find inode number for "
sb               1477 fs/ntfs/super.c 	tmp_ino = ntfs_iget(vol->sb, MREF(mref));
sb               1481 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $UsnJrnl.");
sb               1498 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $UsnJrnl/$DATA/$Max "
sb               1504 fs/ntfs/super.c 		ntfs_error(vol->sb, "Found corrupt $UsnJrnl/$DATA/$Max "
sb               1513 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to load $UsnJrnl/$DATA/$J "
sb               1521 fs/ntfs/super.c 		ntfs_error(vol->sb, "$UsnJrnl/$DATA/$J attribute is resident "
sb               1528 fs/ntfs/super.c 		ntfs_error(vol->sb, "Failed to read from $UsnJrnl/$DATA/$Max "
sb               1536 fs/ntfs/super.c 		ntfs_error(vol->sb, "Allocation delta (0x%llx) exceeds "
sb               1559 fs/ntfs/super.c 		ntfs_error(vol->sb, "$UsnJrnl has lowest valid usn (0x%llx) "
sb               1581 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
sb               1589 fs/ntfs/super.c 	ino = ntfs_iget(sb, FILE_AttrDef);
sb               1631 fs/ntfs/super.c 	ntfs_error(sb, "Failed to initialize attribute definition table.");
sb               1646 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
sb               1655 fs/ntfs/super.c 	ino = ntfs_iget(sb, FILE_UpCase);
sb               1732 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load $UpCase from the volume. Using "
sb               1737 fs/ntfs/super.c 	ntfs_error(sb, "Failed to initialize upcase table.");
sb               1760 fs/ntfs/super.c 	struct super_block *sb = vol->sb;
sb               1778 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb               1781 fs/ntfs/super.c 				ntfs_error(sb, "%s and neither on_errors="
sb               1788 fs/ntfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1789 fs/ntfs/super.c 			ntfs_error(sb, "%s.  Mounting read-only%s",
sb               1792 fs/ntfs/super.c 			ntfs_warning(sb, "%s.  Will not be able to remount "
sb               1802 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load $MFT/$BITMAP attribute.");
sb               1825 fs/ntfs/super.c 	vol->lcnbmp_ino = ntfs_iget(sb, FILE_Bitmap);
sb               1840 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load $Bitmap.");
sb               1847 fs/ntfs/super.c 	vol->vol_ino = ntfs_iget(sb, FILE_Volume);
sb               1852 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load $Volume.");
sb               1862 fs/ntfs/super.c 		ntfs_error(sb, "Failed to get attribute search context.");
sb               1889 fs/ntfs/super.c 		ntfs_warning(vol->sb, "Disabling sparse support due to NTFS "
sb               1912 fs/ntfs/super.c 			ntfs_warning(sb, "Unsupported volume flags 0x%x "
sb               1917 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb               1920 fs/ntfs/super.c 				ntfs_error(sb, "%s and neither on_errors="
sb               1926 fs/ntfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1927 fs/ntfs/super.c 			ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               1929 fs/ntfs/super.c 			ntfs_warning(sb, "%s.  Will not be able to remount "
sb               1950 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb               1953 fs/ntfs/super.c 				ntfs_error(sb, "%s and neither on_errors="
sb               1963 fs/ntfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1964 fs/ntfs/super.c 			ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               1966 fs/ntfs/super.c 			ntfs_warning(sb, "%s.  Will not be able to remount "
sb               1974 fs/ntfs/super.c 	vol->root_ino = ntfs_iget(sb, FILE_root);
sb               1978 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load root directory.");
sb               1999 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb               2002 fs/ntfs/super.c 				ntfs_error(sb, "%s and neither on_errors="
sb               2008 fs/ntfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               2009 fs/ntfs/super.c 			ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2011 fs/ntfs/super.c 			ntfs_warning(sb, "%s.  Will not be able to remount "
sb               2017 fs/ntfs/super.c 	if (!sb_rdonly(sb) && ntfs_set_volume_flags(vol, VOLUME_IS_DIRTY)) {
sb               2025 fs/ntfs/super.c 			ntfs_error(sb, "%s and neither on_errors=continue nor "
sb               2030 fs/ntfs/super.c 		ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2031 fs/ntfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               2044 fs/ntfs/super.c 	if (!(sb->s_flags & SB_RDONLY) && (vol->major_ver > 1) &&
sb               2052 fs/ntfs/super.c 			ntfs_error(sb, "%s and neither on_errors=continue nor "
sb               2057 fs/ntfs/super.c 		ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2058 fs/ntfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               2063 fs/ntfs/super.c 	if (!sb_rdonly(sb) && !ntfs_empty_logfile(vol->logfile_ino)) {
sb               2070 fs/ntfs/super.c 			ntfs_error(sb, "%s and neither on_errors=continue nor "
sb               2075 fs/ntfs/super.c 		ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2076 fs/ntfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               2085 fs/ntfs/super.c 	vol->secure_ino = ntfs_iget(sb, FILE_Secure);
sb               2089 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load $Secure.");
sb               2094 fs/ntfs/super.c 	vol->extend_ino = ntfs_iget(sb, FILE_Extend);
sb               2098 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load $Extend.");
sb               2108 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb               2111 fs/ntfs/super.c 				ntfs_error(sb, "%s and neither on_errors="
sb               2117 fs/ntfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               2118 fs/ntfs/super.c 			ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2120 fs/ntfs/super.c 			ntfs_warning(sb, "%s.  Will not be able to remount "
sb               2126 fs/ntfs/super.c 	if (!sb_rdonly(sb) && !ntfs_mark_quotas_out_of_date(vol)) {
sb               2133 fs/ntfs/super.c 			ntfs_error(sb, "%s and neither on_errors=continue nor "
sb               2138 fs/ntfs/super.c 		ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2139 fs/ntfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               2151 fs/ntfs/super.c 		if (!sb_rdonly(sb)) {
sb               2154 fs/ntfs/super.c 				ntfs_error(sb, "%s and neither on_errors="
sb               2160 fs/ntfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               2161 fs/ntfs/super.c 			ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2163 fs/ntfs/super.c 			ntfs_warning(sb, "%s.  Will not be able to remount "
sb               2169 fs/ntfs/super.c 	if (!sb_rdonly(sb) && !ntfs_stamp_usnjrnl(vol)) {
sb               2177 fs/ntfs/super.c 			ntfs_error(sb, "%s and neither on_errors=continue nor "
sb               2182 fs/ntfs/super.c 		ntfs_error(sb, "%s.  Mounting read-only%s", es1, es2);
sb               2183 fs/ntfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               2248 fs/ntfs/super.c static void ntfs_put_super(struct super_block *sb)
sb               2250 fs/ntfs/super.c 	ntfs_volume *vol = NTFS_SB(sb);
sb               2300 fs/ntfs/super.c 	if (!sb_rdonly(sb)) {
sb               2303 fs/ntfs/super.c 				ntfs_warning(sb, "Failed to clear dirty bit "
sb               2312 fs/ntfs/super.c 			ntfs_warning(sb, "Volume has errors.  Leaving volume "
sb               2422 fs/ntfs/super.c 	sb->s_fs_info = NULL;
sb               2593 fs/ntfs/super.c 	struct super_block *sb = dentry->d_sb;
sb               2595 fs/ntfs/super.c 	ntfs_volume *vol = NTFS_SB(sb);
sb               2697 fs/ntfs/super.c static int ntfs_fill_super(struct super_block *sb, void *opt, const int silent)
sb               2717 fs/ntfs/super.c 	sb->s_flags |= SB_RDONLY;
sb               2720 fs/ntfs/super.c 	sb->s_fs_info = kmalloc(sizeof(ntfs_volume), GFP_NOFS);
sb               2721 fs/ntfs/super.c 	vol = NTFS_SB(sb);
sb               2724 fs/ntfs/super.c 			ntfs_error(sb, "Allocation of NTFS volume structure "
sb               2731 fs/ntfs/super.c 		.sb = sb,
sb               2752 fs/ntfs/super.c 	if (bdev_logical_block_size(sb->s_bdev) > PAGE_SIZE) {
sb               2754 fs/ntfs/super.c 			ntfs_error(sb, "Device has unsupported sector size "
sb               2758 fs/ntfs/super.c 					bdev_logical_block_size(sb->s_bdev),
sb               2766 fs/ntfs/super.c 	blocksize = sb_min_blocksize(sb, NTFS_BLOCK_SIZE);
sb               2769 fs/ntfs/super.c 			ntfs_error(sb, "Unable to set device block size.");
sb               2772 fs/ntfs/super.c 	BUG_ON(blocksize != sb->s_blocksize);
sb               2774 fs/ntfs/super.c 			blocksize, sb->s_blocksize_bits);
sb               2776 fs/ntfs/super.c 	if (!i_size_read(sb->s_bdev->bd_inode)) {
sb               2778 fs/ntfs/super.c 			ntfs_error(sb, "Unable to determine device size.");
sb               2781 fs/ntfs/super.c 	vol->nr_blocks = i_size_read(sb->s_bdev->bd_inode) >>
sb               2782 fs/ntfs/super.c 			sb->s_blocksize_bits;
sb               2784 fs/ntfs/super.c 	if (!(bh = read_ntfs_boot_sector(sb, silent))) {
sb               2786 fs/ntfs/super.c 			ntfs_error(sb, "Not an NTFS volume.");
sb               2797 fs/ntfs/super.c 			ntfs_error(sb, "Unsupported NTFS filesystem.");
sb               2811 fs/ntfs/super.c 		blocksize = sb_set_blocksize(sb, vol->sector_size);
sb               2814 fs/ntfs/super.c 				ntfs_error(sb, "Unable to set device block "
sb               2819 fs/ntfs/super.c 		BUG_ON(blocksize != sb->s_blocksize);
sb               2820 fs/ntfs/super.c 		vol->nr_blocks = i_size_read(sb->s_bdev->bd_inode) >>
sb               2821 fs/ntfs/super.c 				sb->s_blocksize_bits;
sb               2824 fs/ntfs/super.c 				blocksize, sb->s_blocksize_bits);
sb               2829 fs/ntfs/super.c 	sb->s_magic = NTFS_SB_MAGIC;
sb               2838 fs/ntfs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               2840 fs/ntfs/super.c 	sb->s_time_gran = 100;
sb               2848 fs/ntfs/super.c 	sb->s_op = &ntfs_sops;
sb               2849 fs/ntfs/super.c 	tmp_ino = new_inode(sb);
sb               2852 fs/ntfs/super.c 			ntfs_error(sb, "Failed to load essential metadata.");
sb               2859 fs/ntfs/super.c 			ntfs_error(sb, "Failed to load essential metadata.");
sb               2895 fs/ntfs/super.c 		ntfs_error(sb, "Failed to load system files.");
sb               2901 fs/ntfs/super.c 	if ((sb->s_root = d_make_root(vol->root_ino))) {
sb               2910 fs/ntfs/super.c 		sb->s_export_op = &ntfs_export_ops;
sb               2914 fs/ntfs/super.c 	ntfs_error(sb, "Failed to allocate root directory.");
sb               3012 fs/ntfs/super.c 	sb->s_fs_info = NULL;
sb                275 fs/ntfs/unistr.c 		ntfs_error(vol->sb, "Failed to allocate buffer for converted "
sb                279 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Received NULL pointer.");
sb                284 fs/ntfs/unistr.c 		ntfs_error(vol->sb, "Name using character set %s contains "
sb                289 fs/ntfs/unistr.c 		ntfs_error(vol->sb, "Name is too long (maximum length for a "
sb                370 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Received NULL pointer.");
sb                373 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Unicode name contains characters that cannot be "
sb                382 fs/ntfs/unistr.c 	ntfs_error(vol->sb, "Failed to allocate name!");
sb                 43 fs/ntfs/usnjrnl.c 			ntfs_error(vol->sb, "Failed to read from "
sb                 31 fs/ntfs/volume.h 	struct super_block *sb;		/* Pointer back to the super_block. */
sb                 52 fs/ocfs2/alloc.c 	ocfs2_extent_rec_contig(struct super_block *sb,
sb                299 fs/ocfs2/alloc.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb                301 fs/ocfs2/alloc.c 		ocfs2_clusters_for_bytes(sb, OCFS2_MAX_XATTR_TREE_LEAF_SIZE);
sb                796 fs/ocfs2/alloc.c static int ocfs2_block_extent_contig(struct super_block *sb,
sb                802 fs/ocfs2/alloc.c 	blk_end += ocfs2_clusters_to_blocks(sb,
sb                820 fs/ocfs2/alloc.c 	ocfs2_extent_rec_contig(struct super_block *sb,
sb                835 fs/ocfs2/alloc.c 	    ocfs2_block_extent_contig(sb, ext, blkno))
sb                840 fs/ocfs2/alloc.c 	    ocfs2_block_extent_contig(sb, insert_rec, blkno))
sb                878 fs/ocfs2/alloc.c static int ocfs2_validate_extent_block(struct super_block *sb,
sb                894 fs/ocfs2/alloc.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &eb->h_check);
sb                906 fs/ocfs2/alloc.c 		rc = ocfs2_error(sb,
sb                914 fs/ocfs2/alloc.c 		rc = ocfs2_error(sb,
sb                921 fs/ocfs2/alloc.c 	if (le32_to_cpu(eb->h_fs_generation) != OCFS2_SB(sb)->fs_generation)
sb                922 fs/ocfs2/alloc.c 		rc = ocfs2_error(sb,
sb               1016 fs/ocfs2/alloc.c 			bhs[i] = sb_getblk(osb->sb, first_blkno);
sb               1032 fs/ocfs2/alloc.c 			memset(bhs[i]->b_data, 0, osb->sb->s_blocksize);
sb               1043 fs/ocfs2/alloc.c 				cpu_to_le16(ocfs2_extent_recs_per_eb(osb->sb));
sb               2211 fs/ocfs2/alloc.c int ocfs2_find_cpos_for_left_leaf(struct super_block *sb,
sb               2265 fs/ocfs2/alloc.c 		ocfs2_error(sb, "Invalid extent tree at extent block %llu\n",
sb               2373 fs/ocfs2/alloc.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb               2384 fs/ocfs2/alloc.c 	ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
sb               2510 fs/ocfs2/alloc.c 		ret = ocfs2_find_cpos_for_left_leaf(sb, right_path, &cpos);
sb               2806 fs/ocfs2/alloc.c int ocfs2_find_cpos_for_right_leaf(struct super_block *sb,
sb               2861 fs/ocfs2/alloc.c 		ocfs2_error(sb, "Invalid extent tree at extent block %llu\n",
sb               2911 fs/ocfs2/alloc.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb               2918 fs/ocfs2/alloc.c 	ret = ocfs2_find_cpos_for_right_leaf(sb, path, &right_cpos);
sb               3002 fs/ocfs2/alloc.c 		ret = ocfs2_find_cpos_for_right_leaf(sb, left_path,
sb               3826 fs/ocfs2/alloc.c static void ocfs2_subtract_from_rec(struct super_block *sb,
sb               3833 fs/ocfs2/alloc.c 	len_blocks = ocfs2_clusters_to_blocks(sb,
sb               4365 fs/ocfs2/alloc.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb               4370 fs/ocfs2/alloc.c 		status = ocfs2_find_cpos_for_left_leaf(sb, path, &left_cpos);
sb               4393 fs/ocfs2/alloc.c 				status = ocfs2_error(sb,
sb               4423 fs/ocfs2/alloc.c 		status = ocfs2_find_cpos_for_right_leaf(sb, path, &right_cpos);
sb               4447 fs/ocfs2/alloc.c 				status = ocfs2_error(sb,
sb               4841 fs/ocfs2/alloc.c 	block = ocfs2_clusters_to_blocks(osb->sb, bit_off);
sb               4873 fs/ocfs2/alloc.c 					ocfs2_clusters_to_blocks(osb->sb, bit_off),
sb               4884 fs/ocfs2/alloc.c static void ocfs2_make_right_split_rec(struct super_block *sb,
sb               4899 fs/ocfs2/alloc.c 		     ocfs2_clusters_to_blocks(sb, cpos - rec_cpos));
sb               5159 fs/ocfs2/alloc.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb               5160 fs/ocfs2/alloc.c 	u64 start_blkno = ocfs2_clusters_to_blocks(sb, phys);
sb               5182 fs/ocfs2/alloc.c 		ocfs2_error(sb,
sb               5352 fs/ocfs2/alloc.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb               5406 fs/ocfs2/alloc.c 		ret = ocfs2_find_cpos_for_left_leaf(sb, path, &left_cpos);
sb               5471 fs/ocfs2/alloc.c 		le64_add_cpu(&rec->e_blkno, ocfs2_clusters_to_blocks(sb, len));
sb               5749 fs/ocfs2/alloc.c 			ocfs2_remove_extent_credits(osb->sb) + credits);
sb               5780 fs/ocfs2/alloc.c 					ocfs2_blocks_to_clusters(osb->sb,
sb               5853 fs/ocfs2/alloc.c 	start_cluster = ocfs2_blocks_to_clusters(osb->sb, start_blk);
sb               5864 fs/ocfs2/alloc.c 	mlog_bug_on_msg(tl_count > ocfs2_truncate_recs_per_inode(osb->sb) ||
sb               5869 fs/ocfs2/alloc.c 			ocfs2_truncate_recs_per_inode(osb->sb),
sb               6224 fs/ocfs2/alloc.c 		ocfs2_compute_meta_ecc(osb->sb, tl_bh->b_data, &di->i_check);
sb               6286 fs/ocfs2/alloc.c 		start_blk = ocfs2_clusters_to_blocks(osb->sb, start_cluster);
sb               6691 fs/ocfs2/alloc.c 		new_eb_bh[i] = sb_getblk(osb->sb, bf->free_blk);
sb               6712 fs/ocfs2/alloc.c 		memset(new_eb_bh[i]->b_data, 0, osb->sb->s_blocksize);
sb               6725 fs/ocfs2/alloc.c 			cpu_to_le16(ocfs2_extent_recs_per_eb(osb->sb));
sb               6850 fs/ocfs2/alloc.c 	struct super_block *sb = inode->i_sb;
sb               6852 fs/ocfs2/alloc.c 	BUG_ON(!ocfs2_sparse_alloc(OCFS2_SB(sb)));
sb               6918 fs/ocfs2/alloc.c 	struct super_block *sb = inode->i_sb;
sb               6920 fs/ocfs2/alloc.c 	BUG_ON(start >> OCFS2_SB(sb)->s_clustersize_bits !=
sb               6921 fs/ocfs2/alloc.c 	       (end - 1) >> OCFS2_SB(sb)->s_clustersize_bits);
sb               6942 fs/ocfs2/alloc.c 	struct super_block *sb = inode->i_sb;
sb               6948 fs/ocfs2/alloc.c 	if (!ocfs2_sparse_alloc(OCFS2_SB(sb)))
sb               6951 fs/ocfs2/alloc.c 	pages = kcalloc(ocfs2_pages_per_cluster(sb),
sb               6963 fs/ocfs2/alloc.c 					  range_start >> sb->s_blocksize_bits,
sb               7068 fs/ocfs2/alloc.c 		pages = kcalloc(ocfs2_pages_per_cluster(osb->sb),
sb               7084 fs/ocfs2/alloc.c 				   ocfs2_inline_to_extents_credits(osb->sb));
sb               7103 fs/ocfs2/alloc.c 				       ocfs2_clusters_to_bytes(osb->sb, 1));
sb               7192 fs/ocfs2/alloc.c 					  ocfs2_clusters_to_bytes(osb->sb, 1));
sb               7202 fs/ocfs2/alloc.c 					ocfs2_clusters_to_blocks(osb->sb, bit_off),
sb               7242 fs/ocfs2/alloc.c 	new_highest_cpos = ocfs2_clusters_for_bytes(osb->sb,
sb               7472 fs/ocfs2/alloc.c static int ocfs2_trim_extent(struct super_block *sb,
sb               7477 fs/ocfs2/alloc.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               7479 fs/ocfs2/alloc.c 	bcount = ocfs2_clusters_to_blocks(sb, count);
sb               7480 fs/ocfs2/alloc.c 	discard = ocfs2_clusters_to_blocks(sb, start);
sb               7493 fs/ocfs2/alloc.c 	trace_ocfs2_trim_extent(sb, (unsigned long long)discard, bcount);
sb               7495 fs/ocfs2/alloc.c 	return sb_issue_discard(sb, discard, bcount, GFP_NOFS, 0);
sb               7498 fs/ocfs2/alloc.c static int ocfs2_trim_group(struct super_block *sb,
sb               7518 fs/ocfs2/alloc.c 			ret = ocfs2_trim_extent(sb, gd, group,
sb               7544 fs/ocfs2/alloc.c int ocfs2_trim_mainbm(struct super_block *sb, struct fstrim_range *range)
sb               7546 fs/ocfs2/alloc.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               7560 fs/ocfs2/alloc.c 	if (minlen >= osb->bitmap_cpg || range->len < sb->s_blocksize)
sb               7604 fs/ocfs2/alloc.c 			first_bit = start - ocfs2_blocks_to_clusters(sb,
sb               7626 fs/ocfs2/alloc.c 		cnt = ocfs2_trim_group(sb, gd, group,
sb               7640 fs/ocfs2/alloc.c 			group = ocfs2_clusters_to_blocks(sb, osb->bitmap_cpg);
sb               7642 fs/ocfs2/alloc.c 			group += ocfs2_clusters_to_blocks(sb, osb->bitmap_cpg);
sb               7661 fs/ocfs2/alloc.c 	range->len = trimmed * sb->s_blocksize;
sb               7665 fs/ocfs2/alloc.c int ocfs2_trim_fs(struct super_block *sb, struct fstrim_range *range)
sb               7668 fs/ocfs2/alloc.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               7711 fs/ocfs2/alloc.c 	ret = ocfs2_trim_mainbm(sb, range);
sb                230 fs/ocfs2/alloc.h int ocfs2_trim_fs(struct super_block *sb, struct fstrim_range *range);
sb                305 fs/ocfs2/alloc.h int ocfs2_find_cpos_for_right_leaf(struct super_block *sb,
sb                307 fs/ocfs2/alloc.h int ocfs2_find_cpos_for_left_leaf(struct super_block *sb,
sb                 86 fs/ocfs2/aops.c 		buffer_cache_bh = sb_getblk(osb->sb, blkno);
sb               1795 fs/ocfs2/aops.c 			ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
sb               1851 fs/ocfs2/aops.c 			  ocfs2_clusters_to_bytes(osb->sb, clusters_to_alloc));
sb                566 fs/ocfs2/blockcheck.c void ocfs2_compute_meta_ecc(struct super_block *sb, void *data,
sb                569 fs/ocfs2/blockcheck.c 	if (ocfs2_meta_ecc(OCFS2_SB(sb)))
sb                570 fs/ocfs2/blockcheck.c 		ocfs2_block_check_compute(data, sb->s_blocksize, bc);
sb                573 fs/ocfs2/blockcheck.c int ocfs2_validate_meta_ecc(struct super_block *sb, void *data,
sb                577 fs/ocfs2/blockcheck.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                580 fs/ocfs2/blockcheck.c 		rc = ocfs2_block_check_validate(data, sb->s_blocksize, bc,
sb                586 fs/ocfs2/blockcheck.c void ocfs2_compute_meta_ecc_bhs(struct super_block *sb,
sb                590 fs/ocfs2/blockcheck.c 	if (ocfs2_meta_ecc(OCFS2_SB(sb)))
sb                594 fs/ocfs2/blockcheck.c int ocfs2_validate_meta_ecc_bhs(struct super_block *sb,
sb                599 fs/ocfs2/blockcheck.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                 32 fs/ocfs2/blockcheck.h void ocfs2_compute_meta_ecc(struct super_block *sb, void *data,
sb                 34 fs/ocfs2/blockcheck.h int ocfs2_validate_meta_ecc(struct super_block *sb, void *data,
sb                 36 fs/ocfs2/blockcheck.h void ocfs2_compute_meta_ecc_bhs(struct super_block *sb,
sb                 39 fs/ocfs2/blockcheck.h int ocfs2_validate_meta_ecc_bhs(struct super_block *sb,
sb                111 fs/ocfs2/buffer_head_io.c 			bhs[i] = sb_getblk(osb->sb, block++);
sb                197 fs/ocfs2/buffer_head_io.c 		      int (*validate)(struct super_block *sb,
sb                203 fs/ocfs2/buffer_head_io.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb                238 fs/ocfs2/buffer_head_io.c 			bhs[i] = sb_getblk(sb, block++);
sb                385 fs/ocfs2/buffer_head_io.c 				status = validate(sb, bh);
sb                407 fs/ocfs2/buffer_head_io.c static void ocfs2_check_super_or_backup(struct super_block *sb,
sb                417 fs/ocfs2/buffer_head_io.c 		backup_blkno = ocfs2_backup_super_blkno(sb, i);
sb                437 fs/ocfs2/buffer_head_io.c 	ocfs2_check_super_or_backup(osb->sb, bh->b_blocknr);
sb                453 fs/ocfs2/buffer_head_io.c 	ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &di->i_check);
sb                 32 fs/ocfs2/buffer_head_io.h 		      int (*validate)(struct super_block *sb,
sb                 43 fs/ocfs2/buffer_head_io.h 				   int (*validate)(struct super_block *sb,
sb                 58 fs/ocfs2/dir.c static int ocfs2_do_extend_dir(struct super_block *sb,
sb                 97 fs/ocfs2/dir.c static inline unsigned int ocfs2_dir_trailer_blk_off(struct super_block *sb)
sb                 99 fs/ocfs2/dir.c 	return sb->s_blocksize - sizeof(struct ocfs2_dir_block_trailer);
sb                420 fs/ocfs2/dir.c static int ocfs2_validate_dir_block(struct super_block *sb,
sb                425 fs/ocfs2/dir.c 		ocfs2_trailer_from_bh(bh, sb);
sb                445 fs/ocfs2/dir.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &trailer->db_check);
sb                564 fs/ocfs2/dir.c static int ocfs2_validate_dx_root(struct super_block *sb,
sb                574 fs/ocfs2/dir.c 	ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_root->dr_check);
sb                583 fs/ocfs2/dir.c 		ret = ocfs2_error(sb,
sb                609 fs/ocfs2/dir.c static int ocfs2_validate_dx_leaf(struct super_block *sb,
sb                617 fs/ocfs2/dir.c 	ret = ocfs2_validate_meta_ecc(sb, bh->b_data, &dx_leaf->dl_check);
sb                626 fs/ocfs2/dir.c 		ret = ocfs2_error(sb, "Dir Index Leaf has bad signature %.*s\n",
sb                670 fs/ocfs2/dir.c 	struct super_block *sb;
sb                681 fs/ocfs2/dir.c 	sb = dir->i_sb;
sb                683 fs/ocfs2/dir.c 	nblocks = i_size_read(dir) >> sb->s_blocksize_bits;
sb                728 fs/ocfs2/dir.c 					  block << sb->s_blocksize_bits,
sb                729 fs/ocfs2/dir.c 					  bh->b_data, sb->s_blocksize,
sb                750 fs/ocfs2/dir.c 	nblocks = i_size_read(dir) >> sb->s_blocksize_bits;
sb               1185 fs/ocfs2/dir.c static int ocfs2_find_max_rec_len(struct super_block *sb,
sb               1192 fs/ocfs2/dir.c 	trailer = (char *)ocfs2_trailer_from_bh(dirblock_bh, sb);
sb               1193 fs/ocfs2/dir.c 	size = ocfs2_dir_trailer_blk_off(sb);
sb               1592 fs/ocfs2/dir.c 	struct super_block *sb = dir->i_sb;
sb               1594 fs/ocfs2/dir.c 	unsigned int size = sb->s_blocksize;
sb               1813 fs/ocfs2/dir.c 	struct super_block * sb = inode->i_sb;
sb               1819 fs/ocfs2/dir.c 	offset = ctx->pos & (sb->s_blocksize - 1);
sb               1822 fs/ocfs2/dir.c 		blk = ctx->pos >> sb->s_blocksize_bits;
sb               1825 fs/ocfs2/dir.c 			ctx->pos += sb->s_blocksize - offset;
sb               1836 fs/ocfs2/dir.c 			for (i = ra_sectors >> (sb->s_blocksize_bits - 9);
sb               1852 fs/ocfs2/dir.c 			for (i = 0; i < sb->s_blocksize && i < offset; ) {
sb               1866 fs/ocfs2/dir.c 			ctx->pos = (ctx->pos & ~(sb->s_blocksize - 1))
sb               1872 fs/ocfs2/dir.c 		       && offset < sb->s_blocksize) {
sb               1877 fs/ocfs2/dir.c 				ctx->pos = (ctx->pos | (sb->s_blocksize - 1)) + 1;
sb               2223 fs/ocfs2/dir.c 	unsigned int size = osb->sb->s_blocksize;
sb               2230 fs/ocfs2/dir.c 	status = ocfs2_do_extend_dir(osb->sb, handle, inode, fe_bh,
sb               2245 fs/ocfs2/dir.c 	memset(new_bh->b_data, 0, osb->sb->s_blocksize);
sb               2313 fs/ocfs2/dir.c 	dx_root_bh = sb_getblk(osb->sb, dr_blkno);
sb               2328 fs/ocfs2/dir.c 	memset(dx_root, 0, osb->sb->s_blocksize);
sb               2345 fs/ocfs2/dir.c 			cpu_to_le16(ocfs2_dx_entries_per_root(osb->sb));
sb               2348 fs/ocfs2/dir.c 			cpu_to_le16(ocfs2_extent_recs_per_dx_root(osb->sb));
sb               2386 fs/ocfs2/dir.c 		bh = sb_getblk(osb->sb, start_blk + i);
sb               2404 fs/ocfs2/dir.c 		memset(dx_leaf, 0, osb->sb->s_blocksize);
sb               2409 fs/ocfs2/dir.c 			cpu_to_le16(ocfs2_dx_entries_per_leaf(osb->sb));
sb               2456 fs/ocfs2/dir.c 	phys_blkno = ocfs2_clusters_to_blocks(osb->sb, phys);
sb               2495 fs/ocfs2/dir.c static struct buffer_head **ocfs2_dx_dir_kmalloc_leaves(struct super_block *sb,
sb               2498 fs/ocfs2/dir.c 	int num_dx_leaves = ocfs2_clusters_to_blocks(sb, 1);
sb               2719 fs/ocfs2/dir.c 	struct super_block *sb = dir->i_sb;
sb               2723 fs/ocfs2/dir.c 	unsigned int new_size = sb->s_blocksize;
sb               2728 fs/ocfs2/dir.c 		new_size = ocfs2_dir_trailer_blk_off(sb);
sb               2772 fs/ocfs2/dir.c 	struct super_block *sb = dir->i_sb;
sb               2774 fs/ocfs2/dir.c 		credits = ocfs2_inline_to_extents_credits(sb);
sb               2776 fs/ocfs2/dir.c 		bytes = blocks_wanted << sb->s_blocksize_bits;
sb               2792 fs/ocfs2/dir.c 	alloc = ocfs2_clusters_for_bytes(sb, bytes);
sb               2798 fs/ocfs2/dir.c 		credits += ocfs2_add_dir_index_credits(sb);
sb               2804 fs/ocfs2/dir.c 			dx_leaves = ocfs2_dx_dir_kmalloc_leaves(sb,
sb               2852 fs/ocfs2/dir.c 		ocfs2_clusters_to_bytes(osb->sb, alloc + dx_alloc));
sb               2893 fs/ocfs2/dir.c 	dirdata_bh = sb_getblk(sb, blkno);
sb               2911 fs/ocfs2/dir.c 	       sb->s_blocksize - i_size_read(dir));
sb               2966 fs/ocfs2/dir.c 	i_size_write(dir, sb->s_blocksize);
sb               2969 fs/ocfs2/dir.c 	di->i_size = cpu_to_le64(sb->s_blocksize);
sb               3083 fs/ocfs2/dir.c static int ocfs2_do_extend_dir(struct super_block *sb,
sb               3096 fs/ocfs2/dir.c 	extend = (i_size_read(dir) == ocfs2_clusters_to_bytes(sb, OCFS2_I(dir)->ip_clusters));
sb               3103 fs/ocfs2/dir.c 					ocfs2_clusters_to_bytes(sb, 1));
sb               3108 fs/ocfs2/dir.c 		status = ocfs2_add_inode_data(OCFS2_SB(sb), dir, &offset,
sb               3118 fs/ocfs2/dir.c 	v_blkno = ocfs2_blocks_for_bytes(sb, i_size_read(dir));
sb               3125 fs/ocfs2/dir.c 	*new_bh = sb_getblk(sb, p_blkno);
sb               3134 fs/ocfs2/dir.c 		dquot_free_space_nodirty(dir, ocfs2_clusters_to_bytes(sb, 1));
sb               3165 fs/ocfs2/dir.c 	struct super_block *sb = osb->sb;
sb               3222 fs/ocfs2/dir.c 	if (dir_i_size == ocfs2_clusters_to_bytes(sb, OCFS2_I(dir)->ip_clusters)) {
sb               3252 fs/ocfs2/dir.c 		credits = ocfs2_calc_extend_credits(sb, el);
sb               3271 fs/ocfs2/dir.c 	status = ocfs2_do_extend_dir(osb->sb, handle, dir, parent_fe_bh,
sb               3286 fs/ocfs2/dir.c 	memset(new_bh->b_data, 0, sb->s_blocksize);
sb               3291 fs/ocfs2/dir.c 		de->rec_len = cpu_to_le16(ocfs2_dir_trailer_blk_off(sb));
sb               3304 fs/ocfs2/dir.c 		de->rec_len = cpu_to_le16(sb->s_blocksize);
sb               3343 fs/ocfs2/dir.c 	struct super_block *sb = dir->i_sb;
sb               3355 fs/ocfs2/dir.c 		free_space = ocfs2_dir_trailer_blk_off(sb) - i_size_read(dir);
sb               3415 fs/ocfs2/dir.c 	struct super_block *sb = dir->i_sb;
sb               3427 fs/ocfs2/dir.c 		if ((char *)de >= sb->s_blocksize + bh->b_data) {
sb               3440 fs/ocfs2/dir.c 					     offset >> sb->s_blocksize_bits,
sb               3675 fs/ocfs2/dir.c 	int credits = ocfs2_clusters_to_blocks(osb->sb, 3);
sb               3677 fs/ocfs2/dir.c 	credits += ocfs2_calc_extend_credits(osb->sb, &dx_root->dr_list);
sb               3678 fs/ocfs2/dir.c 	credits += ocfs2_quota_trans_credits(osb->sb);
sb               3728 fs/ocfs2/dir.c 	orig_dx_leaves = ocfs2_dx_dir_kmalloc_leaves(osb->sb, &num_dx_leaves);
sb               3735 fs/ocfs2/dir.c 	new_dx_leaves = ocfs2_dx_dir_kmalloc_leaves(osb->sb, NULL);
sb               3807 fs/ocfs2/dir.c 	tmp_dx_leaf = kmalloc(osb->sb->s_blocksize, GFP_NOFS);
sb               4023 fs/ocfs2/dir.c 	dx_leaves = ocfs2_dx_dir_kmalloc_leaves(osb->sb, &num_dx_leaves);
sb               4030 fs/ocfs2/dir.c 	handle = ocfs2_start_trans(osb, ocfs2_calc_dxi_expand_credits(osb->sb));
sb               4038 fs/ocfs2/dir.c 				       ocfs2_clusters_to_bytes(osb->sb, 1));
sb               4083 fs/ocfs2/dir.c 	memset(&dx_root->dr_list, 0, osb->sb->s_blocksize -
sb               4086 fs/ocfs2/dir.c 		cpu_to_le16(ocfs2_extent_recs_per_dx_root(osb->sb));
sb                324 fs/ocfs2/dlmfs/dlmfs.c static struct inode *dlmfs_alloc_inode(struct super_block *sb)
sb                369 fs/ocfs2/dlmfs/dlmfs.c static struct inode *dlmfs_get_root_inode(struct super_block *sb)
sb                371 fs/ocfs2/dlmfs/dlmfs.c 	struct inode *inode = new_inode(sb);
sb                391 fs/ocfs2/dlmfs/dlmfs.c 	struct super_block *sb = parent->i_sb;
sb                392 fs/ocfs2/dlmfs/dlmfs.c 	struct inode * inode = new_inode(sb);
sb                545 fs/ocfs2/dlmfs/dlmfs.c static int dlmfs_fill_super(struct super_block * sb,
sb                549 fs/ocfs2/dlmfs/dlmfs.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                550 fs/ocfs2/dlmfs/dlmfs.c 	sb->s_blocksize = PAGE_SIZE;
sb                551 fs/ocfs2/dlmfs/dlmfs.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                552 fs/ocfs2/dlmfs/dlmfs.c 	sb->s_magic = DLMFS_MAGIC;
sb                553 fs/ocfs2/dlmfs/dlmfs.c 	sb->s_op = &dlmfs_ops;
sb                554 fs/ocfs2/dlmfs/dlmfs.c 	sb->s_root = d_make_root(dlmfs_get_root_inode(sb));
sb                555 fs/ocfs2/dlmfs/dlmfs.c 	if (!sb->s_root)
sb                 36 fs/ocfs2/export.c static struct dentry *ocfs2_get_dentry(struct super_block *sb,
sb                 40 fs/ocfs2/export.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                 45 fs/ocfs2/export.c 	trace_ocfs2_get_dentry_begin(sb, handle, (unsigned long long)blkno);
sb                 52 fs/ocfs2/export.c 	inode = ocfs2_ilookup(sb, blkno);
sb                252 fs/ocfs2/export.c static struct dentry *ocfs2_fh_to_dentry(struct super_block *sb,
sb                263 fs/ocfs2/export.c 	return ocfs2_get_dentry(sb, &handle);
sb                266 fs/ocfs2/export.c static struct dentry *ocfs2_fh_to_parent(struct super_block *sb,
sb                277 fs/ocfs2/export.c 	return ocfs2_get_dentry(sb, &parent);
sb                517 fs/ocfs2/extent_map.c static void ocfs2_relative_extent_offsets(struct super_block *sb,
sb                525 fs/ocfs2/extent_map.c 	*p_cluster = ocfs2_blocks_to_clusters(sb, le64_to_cpu(rec->e_blkno));
sb                797 fs/ocfs2/extent_map.c 		phys_bytes = le64_to_cpu(rec.e_blkno) << osb->sb->s_blocksize_bits;
sb                962 fs/ocfs2/extent_map.c 			   int (*validate)(struct super_block *sb,
sb                 55 fs/ocfs2/extent_map.h 			   int (*validate)(struct super_block *sb,
sb                 64 fs/ocfs2/extent_map.h 					int (*validate)(struct super_block *sb,
sb                593 fs/ocfs2/file.c 	credits = ocfs2_calc_extend_credits(osb->sb, &fe->id2.i_list);
sb                610 fs/ocfs2/file.c 			ocfs2_clusters_to_bytes(osb->sb, clusters_to_add));
sb                650 fs/ocfs2/file.c 			ocfs2_clusters_to_bytes(osb->sb, clusters_to_add));
sb                681 fs/ocfs2/file.c 			ocfs2_clusters_to_bytes(osb->sb, clusters_to_add));
sb                972 fs/ocfs2/file.c 	struct super_block *sb = inode->i_sb;
sb                974 fs/ocfs2/file.c 	zero_start = ocfs2_align_bytes_to_blocks(sb, i_size_read(inode));
sb               1120 fs/ocfs2/file.c 	struct super_block *sb = inode->i_sb;
sb               1121 fs/ocfs2/file.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               1228 fs/ocfs2/file.c 		    && OCFS2_HAS_RO_COMPAT_FEATURE(sb,
sb               1230 fs/ocfs2/file.c 			transfer_to[USRQUOTA] = dqget(sb, make_kqid_uid(attr->ia_uid));
sb               1238 fs/ocfs2/file.c 		    && OCFS2_HAS_RO_COMPAT_FEATURE(sb,
sb               1240 fs/ocfs2/file.c 			transfer_to[GRPQUOTA] = dqget(sb, make_kqid_gid(attr->ia_gid));
sb               1248 fs/ocfs2/file.c 					   2 * ocfs2_quota_trans_credits(sb));
sb               1305 fs/ocfs2/file.c 	struct super_block *sb = path->dentry->d_sb;
sb               1306 fs/ocfs2/file.c 	struct ocfs2_super *osb = sb->s_fs_info;
sb               1759 fs/ocfs2/file.c 	trunc_start = ocfs2_clusters_for_bytes(osb->sb, byte_start);
sb               2058 fs/ocfs2/file.c 	struct super_block *sb = inode->i_sb;
sb               2065 fs/ocfs2/file.c 	cpos = pos >> OCFS2_SB(sb)->s_clustersize_bits;
sb               2066 fs/ocfs2/file.c 	clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos;
sb                 68 fs/ocfs2/inode.c static int ocfs2_filecheck_validate_inode_block(struct super_block *sb,
sb                 70 fs/ocfs2/inode.c static int ocfs2_filecheck_repair_inode_block(struct super_block *sb,
sb                112 fs/ocfs2/inode.c struct inode *ocfs2_ilookup(struct super_block *sb, u64 blkno)
sb                118 fs/ocfs2/inode.c 	args.fi_ino = ino_from_blkno(sb, blkno);
sb                121 fs/ocfs2/inode.c 	return ilookup5(sb, blkno, ocfs2_find_actor, &args);
sb                128 fs/ocfs2/inode.c 	struct super_block *sb = osb->sb;
sb                130 fs/ocfs2/inode.c 	journal_t *journal = OCFS2_SB(sb)->journal->j_journal;
sb                146 fs/ocfs2/inode.c 	args.fi_ino = ino_from_blkno(sb, blkno);
sb                149 fs/ocfs2/inode.c 	inode = iget5_locked(sb, args.fi_ino, ocfs2_find_actor,
sb                265 fs/ocfs2/inode.c 	struct super_block *sb;
sb                269 fs/ocfs2/inode.c 	sb = inode->i_sb;
sb                270 fs/ocfs2/inode.c 	osb = OCFS2_SB(sb);
sb                406 fs/ocfs2/inode.c 	struct super_block *sb;
sb                414 fs/ocfs2/inode.c 	sb = inode->i_sb;
sb                415 fs/ocfs2/inode.c 	osb = OCFS2_SB(sb);
sb                513 fs/ocfs2/inode.c 								osb->sb, bh);
sb                516 fs/ocfs2/inode.c 								osb->sb, bh);
sb                519 fs/ocfs2/inode.c 								osb->sb, bh);
sb                575 fs/ocfs2/inode.c void ocfs2_sync_blockdev(struct super_block *sb)
sb                577 fs/ocfs2/inode.c 	sync_blockdev(sb->s_bdev);
sb               1363 fs/ocfs2/inode.c int ocfs2_validate_inode_block(struct super_block *sb,
sb               1378 fs/ocfs2/inode.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &di->i_check);
sb               1392 fs/ocfs2/inode.c 		rc = ocfs2_error(sb, "Invalid dinode #%llu: signature = %.*s\n",
sb               1399 fs/ocfs2/inode.c 		rc = ocfs2_error(sb, "Invalid dinode #%llu: i_blkno is %llu\n",
sb               1406 fs/ocfs2/inode.c 		rc = ocfs2_error(sb,
sb               1413 fs/ocfs2/inode.c 	    OCFS2_SB(sb)->fs_generation) {
sb               1414 fs/ocfs2/inode.c 		rc = ocfs2_error(sb,
sb               1427 fs/ocfs2/inode.c static int ocfs2_filecheck_validate_inode_block(struct super_block *sb,
sb               1444 fs/ocfs2/inode.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &di->i_check);
sb               1480 fs/ocfs2/inode.c 	    OCFS2_SB(sb)->fs_generation) {
sb               1492 fs/ocfs2/inode.c static int ocfs2_filecheck_repair_inode_block(struct super_block *sb,
sb               1498 fs/ocfs2/inode.c 	if (!ocfs2_filecheck_validate_inode_block(sb, bh))
sb               1504 fs/ocfs2/inode.c 	if (ocfs2_is_hard_readonly(OCFS2_SB(sb)) ||
sb               1505 fs/ocfs2/inode.c 	    ocfs2_is_soft_readonly(OCFS2_SB(sb))) {
sb               1543 fs/ocfs2/inode.c 	    OCFS2_SB(sb)->fs_generation) {
sb               1544 fs/ocfs2/inode.c 		di->i_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation);
sb               1552 fs/ocfs2/inode.c 	if (changed || ocfs2_validate_meta_ecc(sb, bh->b_data, &di->i_check)) {
sb               1553 fs/ocfs2/inode.c 		ocfs2_compute_meta_ecc(sb, bh->b_data, &di->i_check);
sb                129 fs/ocfs2/inode.h struct inode *ocfs2_ilookup(struct super_block *sb, u64 feoff);
sb                135 fs/ocfs2/inode.h void ocfs2_sync_blockdev(struct super_block *sb);
sb                153 fs/ocfs2/inode.h int ocfs2_validate_inode_block(struct super_block *sb,
sb                920 fs/ocfs2/ioctl.c 		struct super_block *sb = inode->i_sb;
sb                921 fs/ocfs2/ioctl.c 		struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb                936 fs/ocfs2/ioctl.c 		ret = ocfs2_trim_fs(sb, &range);
sb                352 fs/ocfs2/journal.c 	sb_start_intwrite(osb->sb);
sb                359 fs/ocfs2/journal.c 		sb_end_intwrite(osb->sb);
sb                364 fs/ocfs2/journal.c 			ocfs2_abort(osb->sb, "Detected aborted journal\n");
sb                390 fs/ocfs2/journal.c 		sb_end_intwrite(osb->sb);
sb                672 fs/ocfs2/journal.c 			return ocfs2_error(osb->sb, "A previous attempt to "
sb                784 fs/ocfs2/journal.c 			struct super_block *sb = bh->b_bdev->bd_super;
sb                791 fs/ocfs2/journal.c 			ocfs2_abort(sb, "Journal already aborted.\n");
sb                944 fs/ocfs2/journal.c 	ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &fe->i_check);
sb               1034 fs/ocfs2/journal.c static void ocfs2_clear_journal_error(struct super_block *sb,
sb               1045 fs/ocfs2/journal.c 		     sb->s_id);
sb               1067 fs/ocfs2/journal.c 	ocfs2_clear_journal_error(osb->sb, journal->j_journal, osb->slot_num);
sb               1170 fs/ocfs2/journal.c 			bh = __find_get_block(osb->sb->s_bdev, p_blkno,
sb               1171 fs/ocfs2/journal.c 					osb->sb->s_blocksize);
sb               1375 fs/ocfs2/journal.c 	int quota_enabled = OCFS2_HAS_RO_COMPAT_FEATURE(osb->sb,
sb               1377 fs/ocfs2/journal.c 		|| OCFS2_HAS_RO_COMPAT_FEATURE(osb->sb,
sb               1443 fs/ocfs2/journal.c 			     MAJOR(osb->sb->s_dev), MINOR(osb->sb->s_dev));
sb               1636 fs/ocfs2/journal.c 	       "device (%u,%u)\n", node_num, slot_num, MAJOR(osb->sb->s_dev),
sb               1637 fs/ocfs2/journal.c 	       MINOR(osb->sb->s_dev));
sb               1663 fs/ocfs2/journal.c 	ocfs2_clear_journal_error(osb->sb, journal, slot_num);
sb               1682 fs/ocfs2/journal.c 	ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &fe->i_check);
sb               1693 fs/ocfs2/journal.c 	       "device (%u,%u)\n", node_num, slot_num, MAJOR(osb->sb->s_dev),
sb               1694 fs/ocfs2/journal.c 	       MINOR(osb->sb->s_dev));
sb                363 fs/ocfs2/journal.h static inline int ocfs2_quota_trans_credits(struct super_block *sb)
sb                367 fs/ocfs2/journal.h 	if (OCFS2_HAS_RO_COMPAT_FEATURE(sb, OCFS2_FEATURE_RO_COMPAT_USRQUOTA))
sb                369 fs/ocfs2/journal.h 	if (OCFS2_HAS_RO_COMPAT_FEATURE(sb, OCFS2_FEATURE_RO_COMPAT_GRPQUOTA))
sb                384 fs/ocfs2/journal.h static inline int ocfs2_inline_to_extents_credits(struct super_block *sb)
sb                387 fs/ocfs2/journal.h 	       ocfs2_quota_trans_credits(sb);
sb                397 fs/ocfs2/journal.h static inline int ocfs2_remove_extent_credits(struct super_block *sb)
sb                400 fs/ocfs2/journal.h 	       ocfs2_quota_trans_credits(sb);
sb                407 fs/ocfs2/journal.h static inline int ocfs2_add_dir_index_credits(struct super_block *sb)
sb                412 fs/ocfs2/journal.h 		ocfs2_clusters_to_blocks(sb, 1);
sb                418 fs/ocfs2/journal.h static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir,
sb                424 fs/ocfs2/journal.h 		dir_credits += ocfs2_add_dir_index_credits(sb);
sb                427 fs/ocfs2/journal.h 	       ocfs2_quota_trans_credits(sb);
sb                441 fs/ocfs2/journal.h static inline int ocfs2_link_credits(struct super_block *sb)
sb                444 fs/ocfs2/journal.h 	       ocfs2_quota_trans_credits(sb);
sb                449 fs/ocfs2/journal.h static inline int ocfs2_unlink_credits(struct super_block *sb)
sb                452 fs/ocfs2/journal.h 	return 2 * OCFS2_INODE_UPDATE_CREDITS + 3 + ocfs2_link_credits(sb);
sb                468 fs/ocfs2/journal.h static inline int ocfs2_rename_credits(struct super_block *sb)
sb                470 fs/ocfs2/journal.h 	return 3 * OCFS2_INODE_UPDATE_CREDITS + 6 + ocfs2_unlink_credits(sb);
sb                484 fs/ocfs2/journal.h static inline int ocfs2_calc_dxi_expand_credits(struct super_block *sb)
sb                488 fs/ocfs2/journal.h 	credits += ocfs2_clusters_to_blocks(sb, 1);
sb                489 fs/ocfs2/journal.h 	credits += ocfs2_quota_trans_credits(sb);
sb                516 fs/ocfs2/journal.h static inline int ocfs2_calc_extend_credits(struct super_block *sb,
sb                540 fs/ocfs2/journal.h 	       ocfs2_quota_trans_credits(sb);
sb                543 fs/ocfs2/journal.h static inline int ocfs2_calc_symlink_credits(struct super_block *sb)
sb                545 fs/ocfs2/journal.h 	int blocks = ocfs2_mknod_credits(sb, 0, 0);
sb                549 fs/ocfs2/journal.h 	blocks += ocfs2_clusters_to_blocks(sb, 1);
sb                551 fs/ocfs2/journal.h 	return blocks + ocfs2_quota_trans_credits(sb);
sb                554 fs/ocfs2/journal.h static inline int ocfs2_calc_group_alloc_credits(struct super_block *sb,
sb                572 fs/ocfs2/journal.h static inline int ocfs2_calc_bg_discontig_credits(struct super_block *sb)
sb                574 fs/ocfs2/journal.h 	return ocfs2_extent_recs_per_gd(sb);
sb                109 fs/ocfs2/localalloc.c 	struct super_block *sb = osb->sb;
sb                111 fs/ocfs2/localalloc.c 	gd_mb = ocfs2_clusters_to_megabytes(osb->sb,
sb                112 fs/ocfs2/localalloc.c 		8 * ocfs2_group_bitmap_size(sb, 0, osb->s_feature_incompat));
sb                119 fs/ocfs2/localalloc.c 	if ((sb->s_blocksize == 512 && osb->s_clustersize <= 8192)
sb                120 fs/ocfs2/localalloc.c 	    || (sb->s_blocksize == 1024 && osb->s_clustersize == 4096))
sb                167 fs/ocfs2/localalloc.c 	megs_per_slot = ocfs2_clusters_to_megabytes(osb->sb, megs_per_slot);
sb                173 fs/ocfs2/localalloc.c 	la_max_mb = ocfs2_clusters_to_megabytes(osb->sb,
sb                174 fs/ocfs2/localalloc.c 						ocfs2_local_alloc_size(sb) * 8);
sb                183 fs/ocfs2/localalloc.c 	struct super_block *sb = osb->sb;
sb                187 fs/ocfs2/localalloc.c 	la_max_mb = ocfs2_clusters_to_megabytes(sb,
sb                188 fs/ocfs2/localalloc.c 						ocfs2_local_alloc_size(sb) * 8);
sb                195 fs/ocfs2/localalloc.c 			ocfs2_megabytes_to_clusters(sb, la_default_mb);
sb                199 fs/ocfs2/localalloc.c 			ocfs2_megabytes_to_clusters(sb, la_max_mb);
sb                202 fs/ocfs2/localalloc.c 			ocfs2_megabytes_to_clusters(sb, requested_mb);
sb                287 fs/ocfs2/localalloc.c 			ocfs2_megabytes_to_clusters(osb->sb,
sb                519 fs/ocfs2/localalloc.c 	ocfs2_compute_meta_ecc(osb->sb, alloc_bh->b_data, &alloc->i_check);
sb                657 fs/ocfs2/localalloc.c 		status = ocfs2_error(osb->sb, "local alloc inode %llu says it has %u used bits, but a count shows %u\n",
sb                975 fs/ocfs2/localalloc.c 	la_start_blk = ocfs2_clusters_to_blocks(osb->sb,
sb                990 fs/ocfs2/localalloc.c 				ocfs2_clusters_to_blocks(osb->sb,
sb               1064 fs/ocfs2/localalloc.c 		if (bits > ocfs2_megabytes_to_clusters(osb->sb, 1)) {
sb                136 fs/ocfs2/move_extents.c 					ocfs2_blocks_to_clusters(osb->sb,
sb                185 fs/ocfs2/move_extents.c 	*credits += ocfs2_calc_extend_credits(osb->sb, et->et_root_el);
sb                344 fs/ocfs2/move_extents.c 					ocfs2_clusters_to_blocks(osb->sb, new_phys_cpos),
sb                805 fs/ocfs2/move_extents.c 	move_start = ocfs2_clusters_for_bytes(osb->sb, range->me_start);
sb                893 fs/ocfs2/move_extents.c 	range->me_moved_len = ocfs2_clusters_to_bytes(osb->sb,
sb                895 fs/ocfs2/move_extents.c 	range->me_new_offset = ocfs2_clusters_to_bytes(osb->sb,
sb                356 fs/ocfs2/namei.c 	handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb,
sb                513 fs/ocfs2/namei.c 	inode->i_ino = ino_from_blkno(osb->sb, fe_blkno);
sb                519 fs/ocfs2/namei.c 	*new_fe_bh = sb_getblk(osb->sb, fe_blkno);
sb                536 fs/ocfs2/namei.c 	memset(fe, 0, osb->sb->s_blocksize);
sb                571 fs/ocfs2/namei.c 				ocfs2_max_inline_data_with_xattr(osb->sb, fe));
sb                576 fs/ocfs2/namei.c 		fel->l_count = cpu_to_le16(ocfs2_extent_recs_per_inode(osb->sb));
sb                771 fs/ocfs2/namei.c 	handle = ocfs2_start_trans(osb, ocfs2_link_credits(osb->sb));
sb                962 fs/ocfs2/namei.c 	handle = ocfs2_start_trans(osb, ocfs2_unlink_credits(osb->sb));
sb               1479 fs/ocfs2/namei.c 	handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb));
sb               1560 fs/ocfs2/namei.c 			ocfs2_error(osb->sb, "new entry %.*s is added, but old entry %.*s "
sb               1572 fs/ocfs2/namei.c 			ocfs2_error(osb->sb, "new entry %.*s is added, but old entry %.*s "
sb               1690 fs/ocfs2/namei.c 	struct super_block *sb = osb->sb;
sb               1697 fs/ocfs2/namei.c 	blocks = (bytes_left + sb->s_blocksize - 1) >> sb->s_blocksize_bits;
sb               1704 fs/ocfs2/namei.c 	    ocfs2_clusters_to_bytes(sb, OCFS2_I(inode)->ip_clusters)) {
sb               1727 fs/ocfs2/namei.c 	if ((p_blocks << sb->s_blocksize_bits) < bytes_left) {
sb               1735 fs/ocfs2/namei.c 		c = &symname[virtual * sb->s_blocksize];
sb               1737 fs/ocfs2/namei.c 		bhs[virtual] = sb_getblk(sb, p_blkno);
sb               1754 fs/ocfs2/namei.c 		memset(bhs[virtual]->b_data, 0, sb->s_blocksize);
sb               1757 fs/ocfs2/namei.c 		       (bytes_left > sb->s_blocksize) ? sb->s_blocksize :
sb               1764 fs/ocfs2/namei.c 		bytes_left -= sb->s_blocksize;
sb               1789 fs/ocfs2/namei.c 	struct super_block *sb;
sb               1818 fs/ocfs2/namei.c 	sb = dir->i_sb;
sb               1819 fs/ocfs2/namei.c 	osb = OCFS2_SB(sb);
sb               1823 fs/ocfs2/namei.c 	credits = ocfs2_calc_symlink_credits(sb);
sb               1890 fs/ocfs2/namei.c 	if (l > ocfs2_fast_symlink_chars(sb))
sb               1935 fs/ocfs2/namei.c 	if (l > ocfs2_fast_symlink_chars(sb)) {
sb               1939 fs/ocfs2/namei.c 		    ocfs2_clusters_to_bytes(osb->sb, 1));
sb               2017 fs/ocfs2/namei.c 					ocfs2_clusters_to_bytes(osb->sb, 1));
sb               2522 fs/ocfs2/namei.c 	handle = ocfs2_start_trans(osb, ocfs2_mknod_credits(osb->sb, 0, 0));
sb               2824 fs/ocfs2/namei.c 	handle = ocfs2_start_trans(osb, ocfs2_rename_credits(osb->sb));
sb                297 fs/ocfs2/ocfs2.h 	struct super_block *sb;
sb                473 fs/ocfs2/ocfs2.h #define OCFS2_SB(sb)	    ((struct ocfs2_super *)(sb)->s_fs_info)
sb                711 fs/ocfs2/ocfs2.h static inline unsigned long ino_from_blkno(struct super_block *sb,
sb                717 fs/ocfs2/ocfs2.h static inline u64 ocfs2_clusters_to_blocks(struct super_block *sb,
sb                720 fs/ocfs2/ocfs2.h 	int c_to_b_bits = OCFS2_SB(sb)->s_clustersize_bits -
sb                721 fs/ocfs2/ocfs2.h 		sb->s_blocksize_bits;
sb                726 fs/ocfs2/ocfs2.h static inline u32 ocfs2_clusters_for_blocks(struct super_block *sb,
sb                729 fs/ocfs2/ocfs2.h 	int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits -
sb                730 fs/ocfs2/ocfs2.h 			sb->s_blocksize_bits;
sb                736 fs/ocfs2/ocfs2.h static inline u32 ocfs2_blocks_to_clusters(struct super_block *sb,
sb                739 fs/ocfs2/ocfs2.h 	int b_to_c_bits = OCFS2_SB(sb)->s_clustersize_bits -
sb                740 fs/ocfs2/ocfs2.h 		sb->s_blocksize_bits;
sb                745 fs/ocfs2/ocfs2.h static inline unsigned int ocfs2_clusters_for_bytes(struct super_block *sb,
sb                748 fs/ocfs2/ocfs2.h 	int cl_bits = OCFS2_SB(sb)->s_clustersize_bits;
sb                751 fs/ocfs2/ocfs2.h 	bytes += OCFS2_SB(sb)->s_clustersize - 1;
sb                758 fs/ocfs2/ocfs2.h static inline unsigned int ocfs2_bytes_to_clusters(struct super_block *sb,
sb                761 fs/ocfs2/ocfs2.h 	int cl_bits = OCFS2_SB(sb)->s_clustersize_bits;
sb                768 fs/ocfs2/ocfs2.h static inline u64 ocfs2_blocks_for_bytes(struct super_block *sb,
sb                771 fs/ocfs2/ocfs2.h 	bytes += sb->s_blocksize - 1;
sb                772 fs/ocfs2/ocfs2.h 	return bytes >> sb->s_blocksize_bits;
sb                775 fs/ocfs2/ocfs2.h static inline u64 ocfs2_clusters_to_bytes(struct super_block *sb,
sb                778 fs/ocfs2/ocfs2.h 	return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits;
sb                781 fs/ocfs2/ocfs2.h static inline u64 ocfs2_block_to_cluster_start(struct super_block *sb,
sb                784 fs/ocfs2/ocfs2.h 	int bits = OCFS2_SB(sb)->s_clustersize_bits - sb->s_blocksize_bits;
sb                787 fs/ocfs2/ocfs2.h 	clusters = ocfs2_blocks_to_clusters(sb, blocks);
sb                791 fs/ocfs2/ocfs2.h static inline u64 ocfs2_align_bytes_to_clusters(struct super_block *sb,
sb                794 fs/ocfs2/ocfs2.h 	int cl_bits = OCFS2_SB(sb)->s_clustersize_bits;
sb                797 fs/ocfs2/ocfs2.h 	clusters = ocfs2_clusters_for_bytes(sb, bytes);
sb                801 fs/ocfs2/ocfs2.h static inline u64 ocfs2_align_bytes_to_blocks(struct super_block *sb,
sb                806 fs/ocfs2/ocfs2.h         blocks = ocfs2_blocks_for_bytes(sb, bytes);
sb                807 fs/ocfs2/ocfs2.h 	return blocks << sb->s_blocksize_bits;
sb                815 fs/ocfs2/ocfs2.h static inline unsigned int ocfs2_page_index_to_clusters(struct super_block *sb,
sb                819 fs/ocfs2/ocfs2.h 	unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits;
sb                832 fs/ocfs2/ocfs2.h static inline pgoff_t ocfs2_align_clusters_to_page_index(struct super_block *sb,
sb                835 fs/ocfs2/ocfs2.h 	unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits;
sb                847 fs/ocfs2/ocfs2.h static inline unsigned int ocfs2_pages_per_cluster(struct super_block *sb)
sb                849 fs/ocfs2/ocfs2.h 	unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits;
sb                858 fs/ocfs2/ocfs2.h static inline unsigned int ocfs2_megabytes_to_clusters(struct super_block *sb,
sb                863 fs/ocfs2/ocfs2.h 	return megs << (20 - OCFS2_SB(sb)->s_clustersize_bits);
sb                866 fs/ocfs2/ocfs2.h static inline unsigned int ocfs2_clusters_to_megabytes(struct super_block *sb,
sb                869 fs/ocfs2/ocfs2.h 	return clusters >> (20 - OCFS2_SB(sb)->s_clustersize_bits);
sb                 60 fs/ocfs2/ocfs2_fs.h #define OCFS2_HAS_COMPAT_FEATURE(sb,mask)			\
sb                 61 fs/ocfs2/ocfs2_fs.h 	( OCFS2_SB(sb)->s_feature_compat & (mask) )
sb                 62 fs/ocfs2/ocfs2_fs.h #define OCFS2_HAS_RO_COMPAT_FEATURE(sb,mask)			\
sb                 63 fs/ocfs2/ocfs2_fs.h 	( OCFS2_SB(sb)->s_feature_ro_compat & (mask) )
sb                 64 fs/ocfs2/ocfs2_fs.h #define OCFS2_HAS_INCOMPAT_FEATURE(sb,mask)			\
sb                 65 fs/ocfs2/ocfs2_fs.h 	( OCFS2_SB(sb)->s_feature_incompat & (mask) )
sb                 66 fs/ocfs2/ocfs2_fs.h #define OCFS2_SET_COMPAT_FEATURE(sb,mask)			\
sb                 67 fs/ocfs2/ocfs2_fs.h 	OCFS2_SB(sb)->s_feature_compat |= (mask)
sb                 68 fs/ocfs2/ocfs2_fs.h #define OCFS2_SET_RO_COMPAT_FEATURE(sb,mask)			\
sb                 69 fs/ocfs2/ocfs2_fs.h 	OCFS2_SB(sb)->s_feature_ro_compat |= (mask)
sb                 70 fs/ocfs2/ocfs2_fs.h #define OCFS2_SET_INCOMPAT_FEATURE(sb,mask)			\
sb                 71 fs/ocfs2/ocfs2_fs.h 	OCFS2_SB(sb)->s_feature_incompat |= (mask)
sb                 72 fs/ocfs2/ocfs2_fs.h #define OCFS2_CLEAR_COMPAT_FEATURE(sb,mask)			\
sb                 73 fs/ocfs2/ocfs2_fs.h 	OCFS2_SB(sb)->s_feature_compat &= ~(mask)
sb                 74 fs/ocfs2/ocfs2_fs.h #define OCFS2_CLEAR_RO_COMPAT_FEATURE(sb,mask)			\
sb                 75 fs/ocfs2/ocfs2_fs.h 	OCFS2_SB(sb)->s_feature_ro_compat &= ~(mask)
sb                 76 fs/ocfs2/ocfs2_fs.h #define OCFS2_CLEAR_INCOMPAT_FEATURE(sb,mask)			\
sb                 77 fs/ocfs2/ocfs2_fs.h 	OCFS2_SB(sb)->s_feature_incompat &= ~(mask)
sb               1241 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_fast_symlink_chars(struct super_block *sb)
sb               1243 fs/ocfs2/ocfs2_fs.h 	return  sb->s_blocksize -
sb               1247 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_max_inline_data_with_xattr(struct super_block *sb,
sb               1253 fs/ocfs2/ocfs2_fs.h 		return sb->s_blocksize -
sb               1257 fs/ocfs2/ocfs2_fs.h 		return sb->s_blocksize -
sb               1261 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_extent_recs_per_inode(struct super_block *sb)
sb               1265 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1272 fs/ocfs2/ocfs2_fs.h 						struct super_block *sb,
sb               1279 fs/ocfs2/ocfs2_fs.h 		size = sb->s_blocksize -
sb               1283 fs/ocfs2/ocfs2_fs.h 		size = sb->s_blocksize -
sb               1289 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_extent_recs_per_dx_root(struct super_block *sb)
sb               1293 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1299 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_chain_recs_per_inode(struct super_block *sb)
sb               1303 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1309 fs/ocfs2/ocfs2_fs.h static inline u16 ocfs2_extent_recs_per_eb(struct super_block *sb)
sb               1313 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1319 fs/ocfs2/ocfs2_fs.h static inline u16 ocfs2_extent_recs_per_gd(struct super_block *sb)
sb               1323 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1329 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_dx_entries_per_leaf(struct super_block *sb)
sb               1333 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1339 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_dx_entries_per_root(struct super_block *sb)
sb               1343 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1349 fs/ocfs2/ocfs2_fs.h static inline u16 ocfs2_local_alloc_size(struct super_block *sb)
sb               1353 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1359 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_group_bitmap_size(struct super_block *sb,
sb               1363 fs/ocfs2/ocfs2_fs.h 	int size = sb->s_blocksize -
sb               1379 fs/ocfs2/ocfs2_fs.h static inline int ocfs2_truncate_recs_per_inode(struct super_block *sb)
sb               1383 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1389 fs/ocfs2/ocfs2_fs.h static inline u64 ocfs2_backup_super_blkno(struct super_block *sb, int index)
sb               1395 fs/ocfs2/ocfs2_fs.h 		offset >>= sb->s_blocksize_bits;
sb               1403 fs/ocfs2/ocfs2_fs.h static inline u16 ocfs2_xattr_recs_per_xb(struct super_block *sb)
sb               1407 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1414 fs/ocfs2/ocfs2_fs.h static inline u16 ocfs2_extent_recs_per_rb(struct super_block *sb)
sb               1418 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1424 fs/ocfs2/ocfs2_fs.h static inline u16 ocfs2_refcount_recs_per_rb(struct super_block *sb)
sb               1428 fs/ocfs2/ocfs2_fs.h 	size = sb->s_blocksize -
sb               1511 fs/ocfs2/ocfs2_fs.h 	int size = sb->s_blocksize -
sb                693 fs/ocfs2/ocfs2_trace.h 	TP_PROTO(struct super_block *sb, unsigned long long blk,
sb                695 fs/ocfs2/ocfs2_trace.h 	TP_ARGS(sb, blk, count),
sb                703 fs/ocfs2/ocfs2_trace.h 		__entry->dev_major = MAJOR(sb->s_dev);
sb                704 fs/ocfs2/ocfs2_trace.h 		__entry->dev_minor = MINOR(sb->s_dev);
sb               1662 fs/ocfs2/ocfs2_trace.h 	TP_PROTO(void *sb, void *data, int silent),
sb               1663 fs/ocfs2/ocfs2_trace.h 	TP_ARGS(sb, data, silent),
sb               1665 fs/ocfs2/ocfs2_trace.h 		__field(void *, sb)
sb               1670 fs/ocfs2/ocfs2_trace.h 		__entry->sb = sb;
sb               1674 fs/ocfs2/ocfs2_trace.h 	TP_printk("%p %p %d", __entry->sb,
sb               1695 fs/ocfs2/ocfs2_trace.h 	TP_PROTO(void *sb, void *buf),
sb               1696 fs/ocfs2/ocfs2_trace.h 	TP_ARGS(sb, buf),
sb               1698 fs/ocfs2/ocfs2_trace.h 		__field(void *, sb)
sb               1702 fs/ocfs2/ocfs2_trace.h 		__entry->sb = sb;
sb               1705 fs/ocfs2/ocfs2_trace.h 	TP_printk("%p %p", __entry->sb, __entry->buf)
sb               2495 fs/ocfs2/ocfs2_trace.h 	TP_PROTO(void *sb, void *handle, unsigned long long blkno),
sb               2496 fs/ocfs2/ocfs2_trace.h 	TP_ARGS(sb, handle, blkno),
sb               2498 fs/ocfs2/ocfs2_trace.h 		__field(void *, sb)
sb               2503 fs/ocfs2/ocfs2_trace.h 		__entry->sb = sb;
sb               2507 fs/ocfs2/ocfs2_trace.h 	TP_printk("%p %p %llu", __entry->sb, __entry->handle, __entry->blkno)
sb                 94 fs/ocfs2/quota.h ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data,
sb                 96 fs/ocfs2/quota.h ssize_t ocfs2_quota_write(struct super_block *sb, int type,
sb                 98 fs/ocfs2/quota.h int ocfs2_global_read_info(struct super_block *sb, int type);
sb                 99 fs/ocfs2/quota.h int ocfs2_global_write_info(struct super_block *sb, int type);
sb                113 fs/ocfs2/quota.h int ocfs2_validate_quota_block(struct super_block *sb, struct buffer_head *bh);
sb                134 fs/ocfs2/quota_global.c int ocfs2_validate_quota_block(struct super_block *sb, struct buffer_head *bh)
sb                137 fs/ocfs2/quota_global.c 		ocfs2_block_dqtrailer(sb->s_blocksize, bh->b_data);
sb                148 fs/ocfs2/quota_global.c 	return ocfs2_validate_meta_ecc(sb, bh->b_data, &dqt->dq_check);
sb                167 fs/ocfs2/quota_global.c ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data,
sb                170 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                173 fs/ocfs2/quota_global.c 	int offset = off & (sb->s_blocksize - 1);
sb                174 fs/ocfs2/quota_global.c 	sector_t blk = off >> sb->s_blocksize_bits;
sb                186 fs/ocfs2/quota_global.c 		tocopy = min_t(size_t, (sb->s_blocksize - offset), toread);
sb                216 fs/ocfs2/quota_global.c ssize_t ocfs2_quota_write(struct super_block *sb, int type,
sb                219 fs/ocfs2/quota_global.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                222 fs/ocfs2/quota_global.c 	int offset = off & (sb->s_blocksize - 1);
sb                223 fs/ocfs2/quota_global.c 	sector_t blk = off >> sb->s_blocksize_bits;
sb                235 fs/ocfs2/quota_global.c 	if (len > sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE - offset) {
sb                237 fs/ocfs2/quota_global.c 		len = sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE - offset;
sb                242 fs/ocfs2/quota_global.c 				ocfs2_align_bytes_to_blocks(sb, off + len);
sb                258 fs/ocfs2/quota_global.c 	if ((offset || len < sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE) &&
sb                263 fs/ocfs2/quota_global.c 		bh = sb_getblk(sb, pblock);
sb                274 fs/ocfs2/quota_global.c 		memset(bh->b_data, 0, sb->s_blocksize);
sb                338 fs/ocfs2/quota_global.c int ocfs2_global_read_info(struct super_block *sb, int type)
sb                344 fs/ocfs2/quota_global.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                350 fs/ocfs2/quota_global.c 	gqinode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type],
sb                358 fs/ocfs2/quota_global.c 	oinfo->dqi_gi.dqi_sb = sb;
sb                380 fs/ocfs2/quota_global.c 	status = sb->s_op->quota_read(sb, type, (char *)&dinfo,
sb                399 fs/ocfs2/quota_global.c 	oinfo->dqi_gi.dqi_blocksize_bits = sb->s_blocksize_bits;
sb                400 fs/ocfs2/quota_global.c 	oinfo->dqi_gi.dqi_usable_bs = sb->s_blocksize -
sb                417 fs/ocfs2/quota_global.c static int __ocfs2_global_write_info(struct super_block *sb, int type)
sb                419 fs/ocfs2/quota_global.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                433 fs/ocfs2/quota_global.c 	size = sb->s_op->quota_write(sb, type, (char *)&dinfo,
sb                445 fs/ocfs2/quota_global.c int ocfs2_global_write_info(struct super_block *sb, int type)
sb                448 fs/ocfs2/quota_global.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                455 fs/ocfs2/quota_global.c 	err = __ocfs2_global_write_info(sb, type);
sb                462 fs/ocfs2/quota_global.c static int ocfs2_global_qinit_alloc(struct super_block *sb, int type)
sb                464 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                473 fs/ocfs2/quota_global.c static int ocfs2_calc_global_qinit_credits(struct super_block *sb, int type)
sb                477 fs/ocfs2/quota_global.c 	return (ocfs2_global_qinit_alloc(sb, type) + 2) *
sb                487 fs/ocfs2/quota_global.c 	struct super_block *sb = dquot->dq_sb;
sb                489 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *info = sb_dqinfo(sb, type)->dqi_priv;
sb                494 fs/ocfs2/quota_global.c 	err = sb->s_op->quota_read(sb, type, (char *)&dqblk,
sb                580 fs/ocfs2/quota_global.c 		if (info_dirty(sb_dqinfo(sb, type))) {
sb                581 fs/ocfs2/quota_global.c 			err2 = __ocfs2_global_write_info(sb, type);
sb                600 fs/ocfs2/quota_global.c 	struct super_block *sb = dquot->dq_sb;
sb                601 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                602 fs/ocfs2/quota_global.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                607 fs/ocfs2/quota_global.c 				      type, sb->s_id);
sb                620 fs/ocfs2/quota_global.c 	down_write(&sb_dqopt(sb)->dqio_sem);
sb                628 fs/ocfs2/quota_global.c 	up_write(&sb_dqopt(sb)->dqio_sem);
sb                641 fs/ocfs2/quota_global.c 	struct super_block *sb = oinfo->dqi_gqinode->i_sb;
sb                648 fs/ocfs2/quota_global.c 	if (down_read_trylock(&sb->s_umount)) {
sb                649 fs/ocfs2/quota_global.c 		dquot_scan_active(sb, ocfs2_sync_dquot_helper, oinfo->dqi_type);
sb                650 fs/ocfs2/quota_global.c 		up_read(&sb->s_umount);
sb                683 fs/ocfs2/quota_global.c static int ocfs2_calc_qdel_credits(struct super_block *sb, int type)
sb                685 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                796 fs/ocfs2/quota_global.c 	struct super_block *sb = dquot->dq_sb;
sb                797 fs/ocfs2/quota_global.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                799 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *info = sb_dqinfo(sb, type)->dqi_priv;
sb                801 fs/ocfs2/quota_global.c 	int need_alloc = ocfs2_global_qinit_alloc(sb, type);
sb                837 fs/ocfs2/quota_global.c 			i_size_read(gqinode) + (need_alloc << sb->s_blocksize_bits),
sb                844 fs/ocfs2/quota_global.c 				   ocfs2_calc_global_qinit_credits(sb, type));
sb                853 fs/ocfs2/quota_global.c 	if (ex && info_dirty(sb_dqinfo(sb, type))) {
sb                854 fs/ocfs2/quota_global.c 		err = __ocfs2_global_write_info(sb, type);
sb                877 fs/ocfs2/quota_global.c static int ocfs2_get_next_id(struct super_block *sb, struct kqid *qid)
sb                880 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *info = sb_dqinfo(sb, type)->dqi_priv;
sb                884 fs/ocfs2/quota_global.c 	if (!sb_has_quota_loaded(sb, type)) {
sb                918 fs/ocfs2/quota_global.c 	struct super_block *sb = dquot->dq_sb;
sb                920 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                922 fs/ocfs2/quota_global.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                948 fs/ocfs2/quota_global.c 	down_write(&sb_dqopt(sb)->dqio_sem);
sb                957 fs/ocfs2/quota_global.c 	up_write(&sb_dqopt(sb)->dqio_sem);
sb                968 fs/ocfs2/quota_global.c static int ocfs2_write_info(struct super_block *sb, int type)
sb                972 fs/ocfs2/quota_global.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                977 fs/ocfs2/quota_global.c 	handle = ocfs2_start_trans(OCFS2_SB(sb), OCFS2_QINFO_WRITE_CREDITS);
sb                983 fs/ocfs2/quota_global.c 	status = dquot_commit_info(sb, type);
sb                984 fs/ocfs2/quota_global.c 	ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb                993 fs/ocfs2/quota_global.c static struct dquot *ocfs2_alloc_dquot(struct super_block *sb, int type)
sb                 29 fs/ocfs2/quota_local.c static inline unsigned int ol_quota_entries_per_block(struct super_block *sb)
sb                 31 fs/ocfs2/quota_local.c 	return ((sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE) /
sb                 36 fs/ocfs2/quota_local.c static inline unsigned int ol_chunk_blocks(struct super_block *sb)
sb                 38 fs/ocfs2/quota_local.c 	return ((sb->s_blocksize - sizeof(struct ocfs2_local_disk_chunk) -
sb                 40 fs/ocfs2/quota_local.c 	       ol_quota_entries_per_block(sb);
sb                 44 fs/ocfs2/quota_local.c static unsigned int ol_chunk_entries(struct super_block *sb)
sb                 46 fs/ocfs2/quota_local.c 	return ol_chunk_blocks(sb) * ol_quota_entries_per_block(sb);
sb                 50 fs/ocfs2/quota_local.c static unsigned int ol_quota_chunk_block(struct super_block *sb, int c)
sb                 53 fs/ocfs2/quota_local.c 	return 1 + (ol_chunk_blocks(sb) + 1) * c;
sb                 56 fs/ocfs2/quota_local.c static unsigned int ol_dqblk_block(struct super_block *sb, int c, int off)
sb                 58 fs/ocfs2/quota_local.c 	int epb = ol_quota_entries_per_block(sb);
sb                 60 fs/ocfs2/quota_local.c 	return ol_quota_chunk_block(sb, c) + 1 + off / epb;
sb                 63 fs/ocfs2/quota_local.c static unsigned int ol_dqblk_block_off(struct super_block *sb, int c, int off)
sb                 65 fs/ocfs2/quota_local.c 	int epb = ol_quota_entries_per_block(sb);
sb                 71 fs/ocfs2/quota_local.c static loff_t ol_dqblk_off(struct super_block *sb, int c, int off)
sb                 73 fs/ocfs2/quota_local.c 	return (ol_dqblk_block(sb, c, off) << sb->s_blocksize_bits) +
sb                 74 fs/ocfs2/quota_local.c 	       ol_dqblk_block_off(sb, c, off);
sb                 77 fs/ocfs2/quota_local.c static inline unsigned int ol_dqblk_block_offset(struct super_block *sb, loff_t off)
sb                 79 fs/ocfs2/quota_local.c 	return off & ((1 << sb->s_blocksize_bits) - 1);
sb                 83 fs/ocfs2/quota_local.c static int ol_dqblk_chunk_off(struct super_block *sb, int c, loff_t off)
sb                 85 fs/ocfs2/quota_local.c 	int epb = ol_quota_entries_per_block(sb);
sb                 87 fs/ocfs2/quota_local.c 	return ((off >> sb->s_blocksize_bits) -
sb                 88 fs/ocfs2/quota_local.c 			ol_quota_chunk_block(sb, c) - 1) * epb
sb                 89 fs/ocfs2/quota_local.c 	       + ((unsigned int)(off & ((1 << sb->s_blocksize_bits) - 1))) /
sb                 97 fs/ocfs2/quota_local.c 	struct super_block *sb = inode->i_sb;
sb                101 fs/ocfs2/quota_local.c 	handle = ocfs2_start_trans(OCFS2_SB(sb),
sb                112 fs/ocfs2/quota_local.c 		ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb                120 fs/ocfs2/quota_local.c 	status = ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb                160 fs/ocfs2/quota_local.c static int ocfs2_local_check_quota_file(struct super_block *sb, int type)
sb                169 fs/ocfs2/quota_local.c 	struct inode *linode = sb_dqopt(sb)->files[type];
sb                199 fs/ocfs2/quota_local.c 	ginode = ocfs2_get_system_file_inode(OCFS2_SB(sb), ino[type],
sb                294 fs/ocfs2/quota_local.c static int ocfs2_add_recovery_chunk(struct super_block *sb,
sb                305 fs/ocfs2/quota_local.c 	rc->rc_bitmap = kmalloc(sb->s_blocksize, GFP_NOFS);
sb                311 fs/ocfs2/quota_local.c 	       (ol_chunk_entries(sb) + 7) >> 3);
sb                343 fs/ocfs2/quota_local.c 	struct super_block *sb = lqinode->i_sb;
sb                352 fs/ocfs2/quota_local.c 						ol_quota_chunk_block(sb, i),
sb                359 fs/ocfs2/quota_local.c 		if (le32_to_cpu(dchunk->dqc_free) < ol_chunk_entries(sb))
sb                360 fs/ocfs2/quota_local.c 			status = ocfs2_add_recovery_chunk(sb, dchunk, i, head);
sb                393 fs/ocfs2/quota_local.c 	struct super_block *sb = osb->sb;
sb                410 fs/ocfs2/quota_local.c 		if (!OCFS2_HAS_RO_COMPAT_FEATURE(sb, feature[type]))
sb                462 fs/ocfs2/quota_local.c 	struct super_block *sb = lqinode->i_sb;
sb                463 fs/ocfs2/quota_local.c 	struct ocfs2_mem_dqinfo *oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                480 fs/ocfs2/quota_local.c 						ol_quota_chunk_block(sb, chunk),
sb                487 fs/ocfs2/quota_local.c 		for_each_set_bit(bit, rchunk->rc_bitmap, ol_chunk_entries(sb)) {
sb                490 fs/ocfs2/quota_local.c 						ol_dqblk_block(sb, chunk, bit),
sb                497 fs/ocfs2/quota_local.c 				ol_dqblk_block_off(sb, chunk, bit));
sb                498 fs/ocfs2/quota_local.c 			dquot = dqget(sb,
sb                516 fs/ocfs2/quota_local.c 			handle = ocfs2_start_trans(OCFS2_SB(sb),
sb                523 fs/ocfs2/quota_local.c 			down_write(&sb_dqopt(sb)->dqio_sem);
sb                556 fs/ocfs2/quota_local.c 			up_write(&sb_dqopt(sb)->dqio_sem);
sb                557 fs/ocfs2/quota_local.c 			ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb                588 fs/ocfs2/quota_local.c 	struct super_block *sb = osb->sb;
sb                600 fs/ocfs2/quota_local.c 	down_read(&sb->s_umount);
sb                677 fs/ocfs2/quota_local.c 	up_read(&sb->s_umount);
sb                683 fs/ocfs2/quota_local.c static int ocfs2_local_read_info(struct super_block *sb, int type)
sb                686 fs/ocfs2/quota_local.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                688 fs/ocfs2/quota_local.c 	struct inode *lqinode = sb_dqopt(sb)->files[type];
sb                709 fs/ocfs2/quota_local.c 	status = ocfs2_global_read_info(sb, type);
sb                737 fs/ocfs2/quota_local.c 		rec = OCFS2_SB(sb)->quota_rec;
sb                745 fs/ocfs2/quota_local.c 			OCFS2_SB(sb)->quota_rec = rec;
sb                776 fs/ocfs2/quota_local.c 		ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock);
sb                789 fs/ocfs2/quota_local.c static int ocfs2_local_write_info(struct super_block *sb, int type)
sb                791 fs/ocfs2/quota_local.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                796 fs/ocfs2/quota_local.c 	status = ocfs2_modify_bh(sb_dqopt(sb)->files[type], bh, olq_update_info,
sb                807 fs/ocfs2/quota_local.c static int ocfs2_local_free_info(struct super_block *sb, int type)
sb                809 fs/ocfs2/quota_local.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                817 fs/ocfs2/quota_local.c 	ocfs2_simple_drop_lockres(OCFS2_SB(sb), &oinfo->dqi_gqlock);
sb                823 fs/ocfs2/quota_local.c 			len = ol_chunk_entries(sb);
sb                826 fs/ocfs2/quota_local.c 			       ol_quota_chunk_block(sb, chunk->qc_num) - 1)
sb                827 fs/ocfs2/quota_local.c 			      * ol_quota_entries_per_block(sb);
sb                852 fs/ocfs2/quota_local.c 	status = ocfs2_modify_bh(sb_dqopt(sb)->files[type],
sb                862 fs/ocfs2/quota_local.c 	ocfs2_inode_unlock(sb_dqopt(sb)->files[type], 1);
sb                873 fs/ocfs2/quota_local.c 	struct super_block *sb = od->dq_dquot.dq_sb;
sb                876 fs/ocfs2/quota_local.c 		+ ol_dqblk_block_offset(sb, od->dq_local_off));
sb                895 fs/ocfs2/quota_local.c 	struct super_block *sb = dquot->dq_sb;
sb                898 fs/ocfs2/quota_local.c 	struct inode *lqinode = sb_dqopt(sb)->files[dquot->dq_id.type];
sb                918 fs/ocfs2/quota_local.c static struct ocfs2_quota_chunk *ocfs2_find_free_entry(struct super_block *sb,
sb                922 fs/ocfs2/quota_local.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                940 fs/ocfs2/quota_local.c 		len = ol_chunk_entries(sb);
sb                943 fs/ocfs2/quota_local.c 		       ol_quota_chunk_block(sb, chunk->qc_num) - 1)
sb                944 fs/ocfs2/quota_local.c 		      * ol_quota_entries_per_block(sb);
sb                961 fs/ocfs2/quota_local.c 							struct super_block *sb,
sb                965 fs/ocfs2/quota_local.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb                967 fs/ocfs2/quota_local.c 	struct inode *lqinode = sb_dqopt(sb)->files[type];
sb                977 fs/ocfs2/quota_local.c 				       i_size_read(lqinode) + 2 * sb->s_blocksize,
sb                984 fs/ocfs2/quota_local.c 					  i_size_read(lqinode) + 2 * sb->s_blocksize);
sb                997 fs/ocfs2/quota_local.c 	handle = ocfs2_start_trans(OCFS2_SB(sb),
sb               1013 fs/ocfs2/quota_local.c 	bh = sb_getblk(sb, p_blkno);
sb               1028 fs/ocfs2/quota_local.c 	dchunk->dqc_free = cpu_to_le32(ol_quota_entries_per_block(sb));
sb               1030 fs/ocfs2/quota_local.c 	       sb->s_blocksize - sizeof(struct ocfs2_local_disk_chunk) -
sb               1042 fs/ocfs2/quota_local.c 	dbh = sb_getblk(sb, p_blkno);
sb               1056 fs/ocfs2/quota_local.c 	memset(dbh->b_data, 0, sb->s_blocksize - OCFS2_QBLK_RESERVED_SPACE);
sb               1063 fs/ocfs2/quota_local.c 	status = ocfs2_local_write_info(sb, type);
sb               1068 fs/ocfs2/quota_local.c 	status = ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb               1082 fs/ocfs2/quota_local.c 	ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb               1092 fs/ocfs2/quota_local.c 						       struct super_block *sb,
sb               1096 fs/ocfs2/quota_local.c 	struct mem_dqinfo *info = sb_dqinfo(sb, type);
sb               1099 fs/ocfs2/quota_local.c 	struct inode *lqinode = sb_dqopt(sb)->files[type];
sb               1101 fs/ocfs2/quota_local.c 	int epb = ol_quota_entries_per_block(sb);
sb               1109 fs/ocfs2/quota_local.c 		return ocfs2_local_quota_add_chunk(sb, type, offset);
sb               1114 fs/ocfs2/quota_local.c 			ol_quota_chunk_block(sb, chunk->qc_num) - 1;
sb               1115 fs/ocfs2/quota_local.c 	if (ol_chunk_blocks(sb) == chunk_blocks)
sb               1116 fs/ocfs2/quota_local.c 		return ocfs2_local_quota_add_chunk(sb, type, offset);
sb               1120 fs/ocfs2/quota_local.c 				       i_size_read(lqinode) + sb->s_blocksize,
sb               1127 fs/ocfs2/quota_local.c 					  i_size_read(lqinode) + sb->s_blocksize);
sb               1140 fs/ocfs2/quota_local.c 	bh = sb_getblk(sb, p_blkno);
sb               1149 fs/ocfs2/quota_local.c 	handle = ocfs2_start_trans(OCFS2_SB(sb),
sb               1165 fs/ocfs2/quota_local.c 	memset(bh->b_data, 0, sb->s_blocksize);
sb               1180 fs/ocfs2/quota_local.c 	le32_add_cpu(&dchunk->dqc_free, ol_quota_entries_per_block(sb));
sb               1186 fs/ocfs2/quota_local.c 	status = ocfs2_local_write_info(sb, type);
sb               1192 fs/ocfs2/quota_local.c 	status = ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb               1200 fs/ocfs2/quota_local.c 	ocfs2_commit_trans(OCFS2_SB(sb), handle);
sb               1218 fs/ocfs2/quota_local.c 	struct super_block *sb = dquot->dq_sb;
sb               1220 fs/ocfs2/quota_local.c 	struct inode *lqinode = sb_dqopt(sb)->files[type];
sb               1228 fs/ocfs2/quota_local.c 	chunk = ocfs2_find_free_entry(sb, type, &offset);
sb               1230 fs/ocfs2/quota_local.c 		chunk = ocfs2_extend_local_quota_file(sb, type, &offset);
sb               1239 fs/ocfs2/quota_local.c 	od->dq_local_off = ol_dqblk_off(sb, chunk->qc_num, offset);
sb               1242 fs/ocfs2/quota_local.c 				     ol_dqblk_block(sb, chunk->qc_num, offset),
sb               1275 fs/ocfs2/quota_local.c 	struct super_block *sb = dquot->dq_sb;
sb               1280 fs/ocfs2/quota_local.c 			INODE_CACHE(sb_dqopt(sb)->files[type]),
sb               1286 fs/ocfs2/quota_local.c 	offset = ol_dqblk_chunk_off(sb, od->dq_chunk->qc_num,
sb                 73 fs/ocfs2/refcounttree.c static int ocfs2_validate_refcount_block(struct super_block *sb,
sb                 89 fs/ocfs2/refcounttree.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &rb->rf_check);
sb                 98 fs/ocfs2/refcounttree.c 		rc = ocfs2_error(sb,
sb                106 fs/ocfs2/refcounttree.c 		rc = ocfs2_error(sb,
sb                113 fs/ocfs2/refcounttree.c 	if (le32_to_cpu(rb->rf_fs_generation) != OCFS2_SB(sb)->fs_generation) {
sb                114 fs/ocfs2/refcounttree.c 		rc = ocfs2_error(sb,
sb                290 fs/ocfs2/refcounttree.c 					       struct super_block *sb)
sb                294 fs/ocfs2/refcounttree.c 	new->rf_sb = sb;
sb                318 fs/ocfs2/refcounttree.c 	ocfs2_init_refcount_tree_ci(new, osb->sb);
sb                631 fs/ocfs2/refcounttree.c 			cpu_to_le16(ocfs2_refcount_recs_per_rb(osb->sb));
sb                965 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb               1017 fs/ocfs2/refcounttree.c 	ret = ocfs2_find_cpos_for_right_leaf(sb, left_path, &cpos);
sb               1069 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb               1095 fs/ocfs2/refcounttree.c 			ret = ocfs2_error(sb,
sb               1284 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb               1305 fs/ocfs2/refcounttree.c 	new_bh = sb_getblk(sb, blkno);
sb               1325 fs/ocfs2/refcounttree.c 	memcpy(new_bh->b_data, ref_root_bh->b_data, sb->s_blocksize);
sb               1338 fs/ocfs2/refcounttree.c 	memset(&root_rb->rf_list, 0, sb->s_blocksize -
sb               1340 fs/ocfs2/refcounttree.c 	root_rb->rf_list.l_count = cpu_to_le16(ocfs2_extent_recs_per_rb(sb));
sb               1522 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb               1553 fs/ocfs2/refcounttree.c 	new_bh = sb_getblk(sb, blkno);
sb               1570 fs/ocfs2/refcounttree.c 	memset(new_rb, 0, sb->s_blocksize);
sb               1575 fs/ocfs2/refcounttree.c 	new_rb->rf_fs_generation = cpu_to_le32(OCFS2_SB(sb)->fs_generation);
sb               1580 fs/ocfs2/refcounttree.c 				cpu_to_le16(ocfs2_refcount_recs_per_rb(sb));
sb               2080 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb               2140 fs/ocfs2/refcounttree.c 		memset(&rb->rf_records, 0, sb->s_blocksize -
sb               2143 fs/ocfs2/refcounttree.c 				cpu_to_le16(ocfs2_refcount_recs_per_rb(sb));
sb               2231 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb               2266 fs/ocfs2/refcounttree.c 					  ocfs2_clusters_to_blocks(sb, cpos),
sb               2368 fs/ocfs2/refcounttree.c static int ocfs2_calc_refcount_meta_credits(struct super_block *sb,
sb               2490 fs/ocfs2/refcounttree.c 		*credits += ocfs2_calc_extend_credits(sb,
sb               2572 fs/ocfs2/refcounttree.c static inline unsigned int ocfs2_cow_contig_clusters(struct super_block *sb)
sb               2574 fs/ocfs2/refcounttree.c 	return ocfs2_clusters_for_bytes(sb, MAX_CONTIG_BYTES);
sb               2577 fs/ocfs2/refcounttree.c static inline unsigned int ocfs2_cow_contig_mask(struct super_block *sb)
sb               2579 fs/ocfs2/refcounttree.c 	return ~(ocfs2_cow_contig_clusters(sb) - 1);
sb               2589 fs/ocfs2/refcounttree.c static inline unsigned int ocfs2_cow_align_start(struct super_block *sb,
sb               2595 fs/ocfs2/refcounttree.c 	return start + ((cpos - start) & ocfs2_cow_contig_mask(sb));
sb               2602 fs/ocfs2/refcounttree.c static inline unsigned int ocfs2_cow_align_length(struct super_block *sb,
sb               2606 fs/ocfs2/refcounttree.c 		(len + (ocfs2_cow_contig_clusters(sb) - 1)) &
sb               2607 fs/ocfs2/refcounttree.c 		ocfs2_cow_contig_mask(sb);
sb               2836 fs/ocfs2/refcounttree.c static int ocfs2_lock_refcount_allocators(struct super_block *sb,
sb               2858 fs/ocfs2/refcounttree.c 	*credits += ocfs2_calc_extend_credits(sb, et->et_root_el);
sb               2860 fs/ocfs2/refcounttree.c 	ret = ocfs2_calc_refcount_meta_credits(sb, ref_ci, ref_root_bh,
sb               2869 fs/ocfs2/refcounttree.c 	ret = ocfs2_reserve_new_metadata_blocks(OCFS2_SB(sb), meta_add,
sb               2877 fs/ocfs2/refcounttree.c 		ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters,
sb               2909 fs/ocfs2/refcounttree.c 	struct super_block *sb = inode->i_sb;
sb               2910 fs/ocfs2/refcounttree.c 	u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster);
sb               2920 fs/ocfs2/refcounttree.c 	offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits;
sb               2921 fs/ocfs2/refcounttree.c 	end = offset + (new_len << OCFS2_SB(sb)->s_clustersize_bits);
sb               2953 fs/ocfs2/refcounttree.c 		if (PAGE_SIZE <= OCFS2_SB(sb)->s_clustersize) {
sb               3004 fs/ocfs2/refcounttree.c 	struct super_block *sb = inode->i_sb;
sb               3006 fs/ocfs2/refcounttree.c 	int i, blocks = ocfs2_clusters_to_blocks(sb, new_len);
sb               3007 fs/ocfs2/refcounttree.c 	u64 old_block = ocfs2_clusters_to_blocks(sb, old_cluster);
sb               3008 fs/ocfs2/refcounttree.c 	u64 new_block = ocfs2_clusters_to_blocks(sb, new_cluster);
sb               3009 fs/ocfs2/refcounttree.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               3017 fs/ocfs2/refcounttree.c 		new_bh = sb_getblk(osb->sb, new_block);
sb               3039 fs/ocfs2/refcounttree.c 		memcpy(new_bh->b_data, old_bh->b_data, sb->s_blocksize);
sb               3064 fs/ocfs2/refcounttree.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(et->et_ci);
sb               3073 fs/ocfs2/refcounttree.c 	replace_rec.e_blkno = cpu_to_le64(ocfs2_clusters_to_blocks(sb,
sb               3095 fs/ocfs2/refcounttree.c 		ret = ocfs2_error(sb,
sb               3143 fs/ocfs2/refcounttree.c int ocfs2_cow_sync_writeback(struct super_block *sb,
sb               3155 fs/ocfs2/refcounttree.c 	offset = ((loff_t)cpos) << OCFS2_SB(sb)->s_clustersize_bits;
sb               3156 fs/ocfs2/refcounttree.c 	end = offset + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits);
sb               3202 fs/ocfs2/refcounttree.c static int ocfs2_make_clusters_writable(struct super_block *sb,
sb               3210 fs/ocfs2/refcounttree.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               3219 fs/ocfs2/refcounttree.c 	ret = ocfs2_lock_refcount_allocators(sb, p_cluster, num_clusters,
sb               3330 fs/ocfs2/refcounttree.c 		ret = ocfs2_cow_sync_writeback(sb, context->inode, cpos,
sb               3942 fs/ocfs2/refcounttree.c 		ocfs2_clusters_to_bytes(osb->sb, num_clusters));
sb                 87 fs/ocfs2/refcounttree.h int ocfs2_cow_sync_writeback(struct super_block *sb,
sb                119 fs/ocfs2/resize.c 	if (OCFS2_HAS_COMPAT_FEATURE(osb->sb,
sb                241 fs/ocfs2/resize.c 	if (OCFS2_HAS_COMPAT_FEATURE(osb->sb, OCFS2_FEATURE_COMPAT_BACKUP_SB))
sb                305 fs/ocfs2/resize.c 		ocfs2_group_bitmap_size(osb->sb, 0,
sb                486 fs/ocfs2/resize.c 		ocfs2_group_bitmap_size(osb->sb, 0,
sb                358 fs/ocfs2/slot_map.c 			(osb->sb->s_blocksize /
sb                361 fs/ocfs2/slot_map.c 		si->si_slots_per_block = osb->sb->s_blocksize / sizeof(__le16);
sb                156 fs/ocfs2/suballoc.c 		return ocfs2_error(sb, fmt, ##__VA_ARGS__);		\
sb                159 fs/ocfs2/suballoc.c static int ocfs2_validate_gd_self(struct super_block *sb,
sb                177 fs/ocfs2/suballoc.c 	if (le32_to_cpu(gd->bg_generation) != OCFS2_SB(sb)->fs_generation) {
sb                200 fs/ocfs2/suballoc.c static int ocfs2_validate_gd_parent(struct super_block *sb,
sb                241 fs/ocfs2/suballoc.c int ocfs2_check_group_descriptor(struct super_block *sb,
sb                255 fs/ocfs2/suballoc.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &gd->bg_check);
sb                261 fs/ocfs2/suballoc.c 		rc = ocfs2_validate_gd_self(sb, bh, 1);
sb                263 fs/ocfs2/suballoc.c 		rc = ocfs2_validate_gd_parent(sb, di, bh, 1);
sb                268 fs/ocfs2/suballoc.c static int ocfs2_validate_group_descriptor(struct super_block *sb,
sb                284 fs/ocfs2/suballoc.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &gd->bg_check);
sb                292 fs/ocfs2/suballoc.c 	return ocfs2_validate_gd_self(sb, bh, 0);
sb                330 fs/ocfs2/suballoc.c 		el->l_count = cpu_to_le16(ocfs2_extent_recs_per_gd(osb->sb));
sb                353 fs/ocfs2/suballoc.c 	struct super_block * sb = alloc_inode->i_sb;
sb                372 fs/ocfs2/suballoc.c 	memset(bg, 0, sb->s_blocksize);
sb                375 fs/ocfs2/suballoc.c 	bg->bg_size = cpu_to_le16(ocfs2_group_bitmap_size(sb, 1,
sb                440 fs/ocfs2/suballoc.c 	bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off);
sb                444 fs/ocfs2/suballoc.c 	bg_bh = sb_getblk(osb->sb, bg_blkno);
sb                521 fs/ocfs2/suballoc.c 		p_blkno = ocfs2_clusters_to_blocks(osb->sb, p_cpos);
sb                595 fs/ocfs2/suballoc.c 				    ocfs2_calc_bg_discontig_credits(osb->sb));
sb                620 fs/ocfs2/suballoc.c 	bg_blkno = ocfs2_clusters_to_blocks(osb->sb, bit_off);
sb                624 fs/ocfs2/suballoc.c 	bg_bh = sb_getblk(osb->sb, bg_blkno);
sb                681 fs/ocfs2/suballoc.c 	credits = ocfs2_calc_group_alloc_credits(osb->sb,
sb               2275 fs/ocfs2/suballoc.c 	u32 data_cluster = ocfs2_blocks_to_clusters(osb->sb, data_blkno);
sb               2285 fs/ocfs2/suballoc.c 		*bg_bit_off = (u16) ocfs2_blocks_to_clusters(osb->sb,
sb                162 fs/ocfs2/suballoc.h 	return ocfs2_blocks_to_clusters(osb->sb, bg_blkno);
sb                188 fs/ocfs2/suballoc.h int ocfs2_check_group_descriptor(struct super_block *sb,
sb                 88 fs/ocfs2/super.c static int ocfs2_parse_options(struct super_block *sb, char *options,
sb                 91 fs/ocfs2/super.c static int ocfs2_check_set_options(struct super_block *sb,
sb                 94 fs/ocfs2/super.c static void ocfs2_put_super(struct super_block *sb);
sb                 95 fs/ocfs2/super.c static int ocfs2_mount_volume(struct super_block *sb);
sb                 96 fs/ocfs2/super.c static int ocfs2_remount(struct super_block *sb, int *flags, char *data);
sb                 97 fs/ocfs2/super.c static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err);
sb                104 fs/ocfs2/super.c static int ocfs2_sync_fs(struct super_block *sb, int wait);
sb                114 fs/ocfs2/super.c static int ocfs2_initialize_super(struct super_block *sb,
sb                118 fs/ocfs2/super.c static int ocfs2_get_sector(struct super_block *sb,
sb                122 fs/ocfs2/super.c static struct inode *ocfs2_alloc_inode(struct super_block *sb);
sb                234 fs/ocfs2/super.c 			osb->sb->s_blocksize, osb->s_clustersize);
sb                395 fs/ocfs2/super.c static int ocfs2_sync_fs(struct super_block *sb, int wait)
sb                399 fs/ocfs2/super.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                423 fs/ocfs2/super.c 	if (!OCFS2_HAS_RO_COMPAT_FEATURE(osb->sb, OCFS2_FEATURE_RO_COMPAT_USRQUOTA)
sb                427 fs/ocfs2/super.c 	if (!OCFS2_HAS_RO_COMPAT_FEATURE(osb->sb, OCFS2_FEATURE_RO_COMPAT_GRPQUOTA)
sb                548 fs/ocfs2/super.c static struct inode *ocfs2_alloc_inode(struct super_block *sb)
sb                606 fs/ocfs2/super.c static int ocfs2_remount(struct super_block *sb, int *flags, char *data)
sb                611 fs/ocfs2/super.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb                614 fs/ocfs2/super.c 	sync_filesystem(sb);
sb                616 fs/ocfs2/super.c 	if (!ocfs2_parse_options(sb, data, &parsed_options, 1) ||
sb                617 fs/ocfs2/super.c 	    !ocfs2_check_set_options(sb, &parsed_options)) {
sb                647 fs/ocfs2/super.c 	if ((bool)(*flags & SB_RDONLY) != sb_rdonly(sb)) {
sb                664 fs/ocfs2/super.c 			sb->s_flags |= SB_RDONLY;
sb                673 fs/ocfs2/super.c 			incompat_features = OCFS2_HAS_RO_COMPAT_FEATURE(sb, ~OCFS2_FEATURE_RO_COMPAT_SUPP);
sb                681 fs/ocfs2/super.c 			sb->s_flags &= ~SB_RDONLY;
sb                684 fs/ocfs2/super.c 		trace_ocfs2_remount(sb->s_flags, osb->osb_flags, *flags);
sb                689 fs/ocfs2/super.c 			if (sb_any_quota_suspended(sb))
sb                696 fs/ocfs2/super.c 				sb->s_flags |= SB_RDONLY;
sb                716 fs/ocfs2/super.c 		sb->s_flags = (sb->s_flags & ~SB_POSIXACL) |
sb                724 fs/ocfs2/super.c static int ocfs2_sb_probe(struct super_block *sb,
sb                737 fs/ocfs2/super.c 	*sector_size = bdev_logical_block_size(sb->s_bdev);
sb                750 fs/ocfs2/super.c 	status = ocfs2_get_sector(sb, bh, 0, *sector_size);
sb                784 fs/ocfs2/super.c 		tmpstat = ocfs2_get_sector(sb, bh,
sb                878 fs/ocfs2/super.c 	struct super_block *sb = osb->sb;
sb                885 fs/ocfs2/super.c 		if (!OCFS2_HAS_RO_COMPAT_FEATURE(sb, feature[type]))
sb                888 fs/ocfs2/super.c 			status = dquot_resume(sb, type);
sb                893 fs/ocfs2/super.c 			oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                895 fs/ocfs2/super.c 			status = dquot_suspend(sb, type);
sb                909 fs/ocfs2/super.c 	struct super_block *sb = osb->sb;
sb                919 fs/ocfs2/super.c 	sb_dqopt(sb)->flags |= DQUOT_QUOTA_SYS_FILE | DQUOT_NEGATIVE_USAGE;
sb                921 fs/ocfs2/super.c 		if (!OCFS2_HAS_RO_COMPAT_FEATURE(sb, feature[type]))
sb                950 fs/ocfs2/super.c 	struct super_block *sb = osb->sb;
sb                956 fs/ocfs2/super.c 		if (!sb_has_quota_loaded(sb, type))
sb                958 fs/ocfs2/super.c 		oinfo = sb_dqinfo(sb, type)->dqi_priv;
sb                960 fs/ocfs2/super.c 		inode = igrab(sb->s_dquot.files[type]);
sb                964 fs/ocfs2/super.c 		dquot_disable(sb, type, DQUOT_USAGE_ENABLED |
sb                972 fs/ocfs2/super.c static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)
sb                983 fs/ocfs2/super.c 	trace_ocfs2_fill_super(sb, data, silent);
sb                985 fs/ocfs2/super.c 	if (!ocfs2_parse_options(sb, data, &parsed_options, 0)) {
sb                991 fs/ocfs2/super.c 	status = ocfs2_sb_probe(sb, &bh, &sector_size, &stats);
sb                997 fs/ocfs2/super.c 	status = ocfs2_initialize_super(sb, bh, sector_size, &stats);
sb                998 fs/ocfs2/super.c 	osb = OCFS2_SB(sb);
sb               1006 fs/ocfs2/super.c 	if (!ocfs2_check_set_options(sb, &parsed_options)) {
sb               1027 fs/ocfs2/super.c 	sb->s_magic = OCFS2_SUPER_MAGIC;
sb               1029 fs/ocfs2/super.c 	sb->s_flags = (sb->s_flags & ~(SB_POSIXACL | SB_NOSEC)) |
sb               1034 fs/ocfs2/super.c 	if (bdev_read_only(sb->s_bdev)) {
sb               1035 fs/ocfs2/super.c 		if (!sb_rdonly(sb)) {
sb               1070 fs/ocfs2/super.c 		if (sb_rdonly(sb))
sb               1090 fs/ocfs2/super.c 	status = ocfs2_mount_volume(sb);
sb               1110 fs/ocfs2/super.c 	sb->s_root = root;
sb               1114 fs/ocfs2/super.c 	osb->osb_dev_kset = kset_create_and_add(sb->s_id, NULL,
sb               1118 fs/ocfs2/super.c 		mlog(ML_ERROR, "Unable to create device kset %s.\n", sb->s_id);
sb               1127 fs/ocfs2/super.c 			"/sys/fs/ocfs2/%s/filecheck.\n", sb->s_id);
sb               1148 fs/ocfs2/super.c 	if (!sb_rdonly(sb)) {
sb               1180 fs/ocfs2/super.c 		ocfs2_dismount_volume(sb, 1);
sb               1204 fs/ocfs2/super.c static int ocfs2_check_set_options(struct super_block *sb,
sb               1208 fs/ocfs2/super.c 	    !OCFS2_HAS_RO_COMPAT_FEATURE(sb,
sb               1215 fs/ocfs2/super.c 	    !OCFS2_HAS_RO_COMPAT_FEATURE(sb,
sb               1222 fs/ocfs2/super.c 	    !OCFS2_HAS_INCOMPAT_FEATURE(sb, OCFS2_FEATURE_INCOMPAT_XATTR)) {
sb               1230 fs/ocfs2/super.c 		if (OCFS2_HAS_INCOMPAT_FEATURE(sb, OCFS2_FEATURE_INCOMPAT_XATTR))
sb               1238 fs/ocfs2/super.c static int ocfs2_parse_options(struct super_block *sb,
sb               1609 fs/ocfs2/super.c static void ocfs2_put_super(struct super_block *sb)
sb               1611 fs/ocfs2/super.c 	trace_ocfs2_put_super(sb);
sb               1613 fs/ocfs2/super.c 	ocfs2_sync_blockdev(sb);
sb               1614 fs/ocfs2/super.c 	ocfs2_dismount_volume(sb, 0);
sb               1654 fs/ocfs2/super.c 			(osb->s_clustersize >> osb->sb->s_blocksize_bits);
sb               1656 fs/ocfs2/super.c 		       (osb->s_clustersize >> osb->sb->s_blocksize_bits);
sb               1755 fs/ocfs2/super.c static int ocfs2_get_sector(struct super_block *sb,
sb               1760 fs/ocfs2/super.c 	if (!sb_set_blocksize(sb, sect_size)) {
sb               1765 fs/ocfs2/super.c 	*bh = sb_getblk(sb, block);
sb               1786 fs/ocfs2/super.c static int ocfs2_mount_volume(struct super_block *sb)
sb               1790 fs/ocfs2/super.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               1844 fs/ocfs2/super.c static void ocfs2_dismount_volume(struct super_block *sb, int mnt_err)
sb               1850 fs/ocfs2/super.c 	trace_ocfs2_dismount_volume(sb);
sb               1852 fs/ocfs2/super.c 	BUG_ON(!sb);
sb               1853 fs/ocfs2/super.c 	osb = OCFS2_SB(sb);
sb               1881 fs/ocfs2/super.c 	ocfs2_sync_blockdev(sb);
sb               1934 fs/ocfs2/super.c 	sb->s_dev = 0;
sb               1935 fs/ocfs2/super.c 	sb->s_fs_info = NULL;
sb               1969 fs/ocfs2/super.c 		ocfs2_clusters_to_blocks(osb->sb,
sb               1978 fs/ocfs2/super.c 	if (!(OCFS2_HAS_COMPAT_FEATURE(osb->sb,
sb               1992 fs/ocfs2/super.c static int ocfs2_initialize_super(struct super_block *sb,
sb               2012 fs/ocfs2/super.c 	sb->s_fs_info = osb;
sb               2013 fs/ocfs2/super.c 	sb->s_op = &ocfs2_sops;
sb               2014 fs/ocfs2/super.c 	sb->s_d_op = &ocfs2_dentry_ops;
sb               2015 fs/ocfs2/super.c 	sb->s_export_op = &ocfs2_export_ops;
sb               2016 fs/ocfs2/super.c 	sb->s_qcop = &dquot_quotactl_sysfile_ops;
sb               2017 fs/ocfs2/super.c 	sb->dq_op = &ocfs2_quota_operations;
sb               2018 fs/ocfs2/super.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP;
sb               2019 fs/ocfs2/super.c 	sb->s_xattr = ocfs2_xattr_handlers;
sb               2020 fs/ocfs2/super.c 	sb->s_time_gran = 1;
sb               2021 fs/ocfs2/super.c 	sb->s_flags |= SB_NOATIME;
sb               2025 fs/ocfs2/super.c 	sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits);
sb               2026 fs/ocfs2/super.c 	memcpy(&sb->s_uuid, di->id2.i_super.s_uuid,
sb               2035 fs/ocfs2/super.c 	osb->sb = sb;
sb               2063 fs/ocfs2/super.c 		 MAJOR(osb->sb->s_dev), MINOR(osb->sb->s_dev));
sb               2138 fs/ocfs2/super.c 	if ((i = OCFS2_HAS_INCOMPAT_FEATURE(osb->sb, ~OCFS2_FEATURE_INCOMPAT_SUPP))) {
sb               2144 fs/ocfs2/super.c 	if (!sb_rdonly(osb->sb) && (i = OCFS2_HAS_RO_COMPAT_FEATURE(osb->sb, ~OCFS2_FEATURE_RO_COMPAT_SUPP))) {
sb               2219 fs/ocfs2/super.c 	total_blocks = ocfs2_clusters_to_blocks(osb->sb,
sb               2222 fs/ocfs2/super.c 	status = generic_check_addressable(osb->sb->s_blocksize_bits,
sb               2282 fs/ocfs2/super.c 	osb->bitmap_cpg = ocfs2_group_bitmap_size(sb, 0,
sb               2290 fs/ocfs2/super.c 	cleancache_init_shared_fs(sb);
sb               2511 fs/ocfs2/super.c static int ocfs2_handle_error(struct super_block *sb)
sb               2513 fs/ocfs2/super.c 	struct ocfs2_super *osb = OCFS2_SB(sb);
sb               2522 fs/ocfs2/super.c 		      sb->s_id);
sb               2528 fs/ocfs2/super.c 		if (sb_rdonly(sb) && (ocfs2_is_soft_readonly(osb) || ocfs2_is_hard_readonly(osb)))
sb               2532 fs/ocfs2/super.c 		sb->s_flags |= SB_RDONLY;
sb               2539 fs/ocfs2/super.c int __ocfs2_error(struct super_block *sb, const char *function,
sb               2552 fs/ocfs2/super.c 	       sb->s_id, function, &vaf);
sb               2556 fs/ocfs2/super.c 	return ocfs2_handle_error(sb);
sb               2562 fs/ocfs2/super.c void __ocfs2_abort(struct super_block *sb, const char *function,
sb               2574 fs/ocfs2/super.c 	       sb->s_id, function, &vaf);
sb               2589 fs/ocfs2/super.c 	if (!ocfs2_mount_local(OCFS2_SB(sb)))
sb               2590 fs/ocfs2/super.c 		OCFS2_SB(sb)->s_mount_opt |= OCFS2_MOUNT_ERRORS_PANIC;
sb               2591 fs/ocfs2/super.c 	ocfs2_handle_error(sb);
sb                 16 fs/ocfs2/super.h int __ocfs2_error(struct super_block *sb, const char *function,
sb                 19 fs/ocfs2/super.h #define ocfs2_error(sb, fmt, ...)					\
sb                 20 fs/ocfs2/super.h 	__ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
sb                 23 fs/ocfs2/super.h void __ocfs2_abort(struct super_block *sb, const char *function,
sb                 26 fs/ocfs2/super.h #define ocfs2_abort(sb, fmt, ...)					\
sb                 27 fs/ocfs2/super.h 	__ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##__VA_ARGS__)
sb                602 fs/ocfs2/uptodate.c 	struct super_block *sb = ocfs2_metadata_cache_get_super(ci);
sb                603 fs/ocfs2/uptodate.c 	unsigned int i, b_len = ocfs2_clusters_to_blocks(sb, 1) * c_len;
sb                243 fs/ocfs2/xattr.c static int ocfs2_xattr_bucket_get_name_value(struct super_block *sb,
sb                302 fs/ocfs2/xattr.c static int ocfs2_get_xattr_tree_value_root(struct super_block *sb,
sb                313 fs/ocfs2/xattr.c static inline u16 ocfs2_blocks_per_xattr_bucket(struct super_block *sb)
sb                315 fs/ocfs2/xattr.c 	return OCFS2_XATTR_BUCKET_SIZE / (1 << sb->s_blocksize_bits);
sb                469 fs/ocfs2/xattr.c static int ocfs2_validate_xattr_block(struct super_block *sb,
sb                485 fs/ocfs2/xattr.c 	rc = ocfs2_validate_meta_ecc(sb, bh->b_data, &xb->xb_check);
sb                494 fs/ocfs2/xattr.c 		return ocfs2_error(sb,
sb                501 fs/ocfs2/xattr.c 		return ocfs2_error(sb,
sb                507 fs/ocfs2/xattr.c 	if (le32_to_cpu(xb->xb_fs_generation) != OCFS2_SB(sb)->fs_generation) {
sb                508 fs/ocfs2/xattr.c 		return ocfs2_error(sb,
sb                881 fs/ocfs2/xattr.c static int ocfs2_xattr_list_entry(struct super_block *sb,
sb                893 fs/ocfs2/xattr.c 		if (OCFS2_SB(sb)->s_mount_opt & OCFS2_MOUNT_NOUSERXATTR)
sb                899 fs/ocfs2/xattr.c 		if (!(sb->s_flags & SB_POSIXACL))
sb               1746 fs/ocfs2/xattr.c static int ocfs2_bucket_align_free_start(struct super_block *sb,
sb               1753 fs/ocfs2/xattr.c 	if (((free_start - size) >> sb->s_blocksize_bits) !=
sb               1754 fs/ocfs2/xattr.c 	    ((free_start - 1) >> sb->s_blocksize_bits))
sb               1755 fs/ocfs2/xattr.c 		free_start -= free_start % sb->s_blocksize;
sb               1768 fs/ocfs2/xattr.c 	struct super_block *sb = loc->xl_inode->i_sb;
sb               1799 fs/ocfs2/xattr.c 		free_start = ocfs2_bucket_align_free_start(sb, free_start,
sb               1850 fs/ocfs2/xattr.c 	struct super_block *sb = loc->xl_inode->i_sb;
sb               1853 fs/ocfs2/xattr.c 	free_start = ocfs2_bucket_align_free_start(sb, free_start, size);
sb               1865 fs/ocfs2/xattr.c 	struct super_block *sb = loc->xl_inode->i_sb;
sb               1868 fs/ocfs2/xattr.c 	int block_offset = nameval_offset >> sb->s_blocksize_bits;
sb               1872 fs/ocfs2/xattr.c 	       ((nameval_offset + size - 1) >> sb->s_blocksize_bits));
sb               2392 fs/ocfs2/xattr.c 					ocfs2_remove_extent_credits(osb->sb));
sb               4026 fs/ocfs2/xattr.c static int ocfs2_xattr_bucket_get_name_value(struct super_block *sb,
sb               4039 fs/ocfs2/xattr.c 	*block_off = name_offset >> sb->s_blocksize_bits;
sb               4040 fs/ocfs2/xattr.c 	*new_offset = name_offset % sb->s_blocksize;
sb               4516 fs/ocfs2/xattr.c 	struct super_block *sb = inode->i_sb;
sb               4517 fs/ocfs2/xattr.c 	int blks_per_bucket = ocfs2_blocks_per_xattr_bucket(sb);
sb               4518 fs/ocfs2/xattr.c 	int num_buckets = ocfs2_xattr_buckets_per_cluster(OCFS2_SB(sb));
sb               4522 fs/ocfs2/xattr.c 		((num_clusters - 1) * ocfs2_clusters_to_blocks(sb, 1));
sb               4525 fs/ocfs2/xattr.c 	BUG_ON(OCFS2_XATTR_BUCKET_SIZE == OCFS2_SB(sb)->s_clustersize);
sb               5137 fs/ocfs2/xattr.c 	block = ocfs2_clusters_to_blocks(osb->sb, bit_off);
sb               5468 fs/ocfs2/xattr.c 	handle = ocfs2_start_trans(osb, ocfs2_remove_extent_credits(osb->sb));
sb               5663 fs/ocfs2/xattr.c 	int credits = ocfs2_remove_extent_credits(osb->sb) +
sb               6000 fs/ocfs2/xattr.c static int ocfs2_get_xattr_tree_value_root(struct super_block *sb,
sb               6011 fs/ocfs2/xattr.c 	ret = ocfs2_xattr_bucket_get_name_value(sb,
sb               6201 fs/ocfs2/xattr.c typedef int (get_xattr_value_root)(struct super_block *sb,
sb               6214 fs/ocfs2/xattr.c static int ocfs2_value_metas_in_xattr_header(struct super_block *sb,
sb               6231 fs/ocfs2/xattr.c 		ret = func(sb, bh, xh, i, &xv, NULL, para);
sb               6240 fs/ocfs2/xattr.c 		*credits += ocfs2_calc_extend_credits(sb,
sb               6250 fs/ocfs2/xattr.c 			*num_recs += ocfs2_clusters_for_bytes(sb,
sb               6258 fs/ocfs2/xattr.c static int ocfs2_get_xattr_value_root(struct super_block *sb,
sb               6294 fs/ocfs2/xattr.c 	ret = ocfs2_value_metas_in_xattr_header(osb->sb, NULL, xh,
sb               6310 fs/ocfs2/xattr.c 	num_recs = num_recs / ocfs2_refcount_recs_per_rb(osb->sb) * 2;
sb               6350 fs/ocfs2/xattr.c 	struct super_block *sb = args->old_inode->i_sb;
sb               6387 fs/ocfs2/xattr.c 		ret = func(sb, old_bh, xh, i, &xv, NULL, para);
sb               6393 fs/ocfs2/xattr.c 		ret = func(sb, new_bh, new_xh, j, &new_xv, &value_bh, para);
sb               6471 fs/ocfs2/xattr.c 	int header_off = osb->sb->s_blocksize - inline_size;
sb               6638 fs/ocfs2/xattr.c 	       osb->sb->s_blocksize - header_off);
sb               6682 fs/ocfs2/xattr.c static int ocfs2_get_reflink_xattr_value_root(struct super_block *sb,
sb               6699 fs/ocfs2/xattr.c 	return ocfs2_get_xattr_tree_value_root(sb, bucket, offset,
sb               6709 fs/ocfs2/xattr.c static int ocfs2_value_tree_metas_in_bucket(struct super_block *sb,
sb               6720 fs/ocfs2/xattr.c 	return ocfs2_get_xattr_tree_value_root(sb, bucket, offset,
sb               6783 fs/ocfs2/xattr.c 		(metas.num_recs + ocfs2_refcount_recs_per_rb(osb->sb) - 1) /
sb               6784 fs/ocfs2/xattr.c 		 ocfs2_refcount_recs_per_rb(osb->sb) * 2;
sb               6805 fs/ocfs2/xattr.c 	*credits += ocfs2_calc_extend_credits(osb->sb,
sb               6841 fs/ocfs2/xattr.c 	struct super_block *sb = args->reflink->old_inode->i_sb;
sb               6871 fs/ocfs2/xattr.c 			       sb->s_blocksize);
sb                  8 fs/omfs/bitmap.c unsigned long omfs_count_free(struct super_block *sb)
sb                 12 fs/omfs/bitmap.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                 13 fs/omfs/bitmap.c 	int nbits = sb->s_blocksize * 8;
sb                 48 fs/omfs/bitmap.c static int set_run(struct super_block *sb, int map,
sb                 54 fs/omfs/bitmap.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                 57 fs/omfs/bitmap.c 	bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map);
sb                 68 fs/omfs/bitmap.c 			bh = sb_bread(sb,
sb                 91 fs/omfs/bitmap.c int omfs_allocate_block(struct super_block *sb, u64 block)
sb                 94 fs/omfs/bitmap.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                 95 fs/omfs/bitmap.c 	int bits_per_entry = 8 * sb->s_blocksize;
sb                109 fs/omfs/bitmap.c 		bh = sb_bread(sb, clus_to_blk(sbi, sbi->s_bitmap_ino) + map);
sb                130 fs/omfs/bitmap.c int omfs_allocate_range(struct super_block *sb,
sb                136 fs/omfs/bitmap.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                137 fs/omfs/bitmap.c 	int bits_per_entry = 8 * sb->s_blocksize;
sb                165 fs/omfs/bitmap.c 	ret = set_run(sb, i, bits_per_entry, bit, run, 1);
sb                175 fs/omfs/bitmap.c int omfs_clear_range(struct super_block *sb, u64 block, int count)
sb                177 fs/omfs/bitmap.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                178 fs/omfs/bitmap.c 	int bits_per_entry = 8 * sb->s_blocksize;
sb                191 fs/omfs/bitmap.c 	ret = set_run(sb, map, bits_per_entry, bit, count, 0);
sb                 84 fs/omfs/dir.c  int omfs_make_empty(struct inode *inode, struct super_block *sb)
sb                 86 fs/omfs/dir.c  	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                 90 fs/omfs/dir.c  	bh = omfs_bread(sb, inode->i_ino);
sb                 24 fs/omfs/inode.c struct buffer_head *omfs_bread(struct super_block *sb, sector_t block)
sb                 26 fs/omfs/inode.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                 30 fs/omfs/inode.c 	return sb_bread(sb, clus_to_blk(sbi, block));
sb                202 fs/omfs/inode.c struct inode *omfs_iget(struct super_block *sb, ino_t ino)
sb                204 fs/omfs/inode.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                211 fs/omfs/inode.c 	inode = iget_locked(sb, ino);
sb                266 fs/omfs/inode.c static void omfs_put_super(struct super_block *sb)
sb                268 fs/omfs/inode.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                271 fs/omfs/inode.c 	sb->s_fs_info = NULL;
sb                337 fs/omfs/inode.c static int omfs_get_imap(struct super_block *sb)
sb                341 fs/omfs/inode.c 	struct omfs_sb_info *sbi = OMFS_SB(sb);
sb                347 fs/omfs/inode.c 	array_size = DIV_ROUND_UP(bitmap_size, sb->s_blocksize);
sb                362 fs/omfs/inode.c 	for (count = bitmap_size; count > 0; count -= sb->s_blocksize) {
sb                363 fs/omfs/inode.c 		bh = sb_bread(sb, block++);
sb                366 fs/omfs/inode.c 		*ptr = kmalloc(sb->s_blocksize, GFP_KERNEL);
sb                371 fs/omfs/inode.c 		memcpy(*ptr, bh->b_data, sb->s_blocksize);
sb                372 fs/omfs/inode.c 		if (count < sb->s_blocksize)
sb                374 fs/omfs/inode.c 				sb->s_blocksize - count);
sb                457 fs/omfs/inode.c static int omfs_fill_super(struct super_block *sb, void *data, int silent)
sb                470 fs/omfs/inode.c 	sb->s_fs_info = sbi;
sb                479 fs/omfs/inode.c 	sb->s_maxbytes = 0xffffffff;
sb                481 fs/omfs/inode.c 	sb->s_time_gran = NSEC_PER_MSEC;
sb                482 fs/omfs/inode.c 	sb->s_time_min = 0;
sb                483 fs/omfs/inode.c 	sb->s_time_max = U64_MAX / MSEC_PER_SEC;
sb                485 fs/omfs/inode.c 	sb_set_blocksize(sb, 0x200);
sb                487 fs/omfs/inode.c 	bh = sb_bread(sb, 0);
sb                499 fs/omfs/inode.c 	sb->s_magic = OMFS_MAGIC;
sb                531 fs/omfs/inode.c 	sb_set_blocksize(sb, sbi->s_sys_blocksize);
sb                540 fs/omfs/inode.c 	bh2 = omfs_bread(sb, be64_to_cpu(omfs_sb->s_root_block));
sb                572 fs/omfs/inode.c 	ret = omfs_get_imap(sb);
sb                576 fs/omfs/inode.c 	sb->s_op = &omfs_sops;
sb                578 fs/omfs/inode.c 	root = omfs_iget(sb, be64_to_cpu(omfs_rb->r_root_dir));
sb                584 fs/omfs/inode.c 	sb->s_root = d_make_root(root);
sb                585 fs/omfs/inode.c 	if (!sb->s_root) {
sb                 35 fs/omfs/omfs.h static inline struct omfs_sb_info *OMFS_SB(struct super_block *sb)
sb                 37 fs/omfs/omfs.h 	return sb->s_fs_info;
sb                 41 fs/omfs/omfs.h extern unsigned long omfs_count_free(struct super_block *sb);
sb                 42 fs/omfs/omfs.h extern int omfs_allocate_block(struct super_block *sb, u64 block);
sb                 43 fs/omfs/omfs.h extern int omfs_allocate_range(struct super_block *sb, int min_request,
sb                 45 fs/omfs/omfs.h extern int omfs_clear_range(struct super_block *sb, u64 block, int count);
sb                 50 fs/omfs/omfs.h extern int omfs_make_empty(struct inode *inode, struct super_block *sb);
sb                 62 fs/omfs/omfs.h extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block);
sb                 63 fs/omfs/omfs.h extern struct inode *omfs_iget(struct super_block *sb, ino_t inode);
sb                 65 fs/omfs/omfs.h extern int omfs_reserve_block(struct super_block *sb, sector_t block);
sb                 66 fs/omfs/omfs.h extern int omfs_find_empty_block(struct super_block *sb, int mode, ino_t *ino);
sb                 43 fs/openpromfs/inode.c static struct inode *openprom_iget(struct super_block *sb, ino_t ino);
sb                330 fs/openpromfs/inode.c static struct inode *openprom_alloc_inode(struct super_block *sb)
sb                346 fs/openpromfs/inode.c static struct inode *openprom_iget(struct super_block *sb, ino_t ino)
sb                350 fs/openpromfs/inode.c 	inode = iget_locked(sb, ino);
sb                365 fs/openpromfs/inode.c static int openprom_remount(struct super_block *sb, int *flags, char *data)
sb                367 fs/openpromfs/inode.c 	sync_filesystem(sb);
sb               1088 fs/orangefs/inode.c struct inode *orangefs_iget(struct super_block *sb,
sb               1096 fs/orangefs/inode.c 	inode = iget5_locked(sb,
sb               1131 fs/orangefs/inode.c struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir,
sb               1141 fs/orangefs/inode.c 		     sb,
sb               1146 fs/orangefs/inode.c 	inode = new_inode(sb);
sb                214 fs/orangefs/orangefs-kernel.h 	struct super_block *sb;
sb                257 fs/orangefs/orangefs-kernel.h static inline struct orangefs_sb_info_s *ORANGEFS_SB(struct super_block *sb)
sb                259 fs/orangefs/orangefs-kernel.h 	return (struct orangefs_sb_info_s *) sb->s_fs_info;
sb                349 fs/orangefs/orangefs-kernel.h void orangefs_kill_sb(struct super_block *sb);
sb                359 fs/orangefs/orangefs-kernel.h struct inode *orangefs_new_inode(struct super_block *sb,
sb                383 fs/orangefs/orangefs-kernel.h struct inode *orangefs_iget(struct super_block *sb,
sb                 53 fs/orangefs/super.c static int parse_mount_options(struct super_block *sb, char *options,
sb                 56 fs/orangefs/super.c 	struct orangefs_sb_info_s *orangefs_sb = ORANGEFS_SB(sb);
sb                 64 fs/orangefs/super.c 	sb->s_flags &= ~SB_POSIXACL;
sb                 77 fs/orangefs/super.c 			sb->s_flags |= SB_POSIXACL;
sb                105 fs/orangefs/super.c static struct inode *orangefs_alloc_inode(struct super_block *sb)
sb                168 fs/orangefs/super.c 	struct super_block *sb = NULL;
sb                170 fs/orangefs/super.c 	sb = dentry->d_sb;
sb                175 fs/orangefs/super.c 			sb,
sb                176 fs/orangefs/super.c 			(int)(ORANGEFS_SB(sb)->fs_id));
sb                181 fs/orangefs/super.c 	new_op->upcall.req.statfs.fs_id = ORANGEFS_SB(sb)->fs_id;
sb                183 fs/orangefs/super.c 	if (ORANGEFS_SB(sb)->flags & ORANGEFS_OPT_INTR)
sb                202 fs/orangefs/super.c 	buf->f_type = sb->s_magic;
sb                203 fs/orangefs/super.c 	memcpy(&buf->f_fsid, &ORANGEFS_SB(sb)->fs_id, sizeof(buf->f_fsid));
sb                212 fs/orangefs/super.c 	buf->f_frsize = sb->s_blocksize;
sb                224 fs/orangefs/super.c static int orangefs_remount_fs(struct super_block *sb, int *flags, char *data)
sb                227 fs/orangefs/super.c 	return parse_mount_options(sb, data, 1);
sb                325 fs/orangefs/super.c static struct dentry *orangefs_fh_to_dentry(struct super_block *sb,
sb                342 fs/orangefs/super.c 	return d_obtain_alias(orangefs_iget(sb, &refn));
sb                412 fs/orangefs/super.c static int orangefs_fill_sb(struct super_block *sb,
sb                421 fs/orangefs/super.c 	ORANGEFS_SB(sb)->sb = sb;
sb                423 fs/orangefs/super.c 	ORANGEFS_SB(sb)->root_khandle = fs_mount->root_khandle;
sb                424 fs/orangefs/super.c 	ORANGEFS_SB(sb)->fs_id = fs_mount->fs_id;
sb                425 fs/orangefs/super.c 	ORANGEFS_SB(sb)->id = fs_mount->id;
sb                428 fs/orangefs/super.c 		ret = parse_mount_options(sb, data, silent);
sb                434 fs/orangefs/super.c 	sb->s_xattr = orangefs_xattr_handlers;
sb                435 fs/orangefs/super.c 	sb->s_magic = ORANGEFS_SUPER_MAGIC;
sb                436 fs/orangefs/super.c 	sb->s_op = &orangefs_s_ops;
sb                437 fs/orangefs/super.c 	sb->s_d_op = &orangefs_dentry_operations;
sb                439 fs/orangefs/super.c 	sb->s_blocksize = PAGE_SIZE;
sb                440 fs/orangefs/super.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb                441 fs/orangefs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                443 fs/orangefs/super.c 	ret = super_setup_bdi(sb);
sb                447 fs/orangefs/super.c 	root_object.khandle = ORANGEFS_SB(sb)->root_khandle;
sb                448 fs/orangefs/super.c 	root_object.fs_id = ORANGEFS_SB(sb)->fs_id;
sb                454 fs/orangefs/super.c 	root = orangefs_iget(sb, &root_object);
sb                468 fs/orangefs/super.c 	sb->s_export_op = &orangefs_export_ops;
sb                469 fs/orangefs/super.c 	sb->s_root = root_dentry;
sb                479 fs/orangefs/super.c 	struct super_block *sb = ERR_PTR(-EINVAL);
sb                516 fs/orangefs/super.c 	sb = sget(fst, NULL, set_anon_super, flags, NULL);
sb                518 fs/orangefs/super.c 	if (IS_ERR(sb)) {
sb                519 fs/orangefs/super.c 		d = ERR_CAST(sb);
sb                526 fs/orangefs/super.c 	sb->s_fs_info = kzalloc(sizeof(struct orangefs_sb_info_s), GFP_KERNEL);
sb                527 fs/orangefs/super.c 	if (!ORANGEFS_SB(sb)) {
sb                532 fs/orangefs/super.c 	ret = orangefs_fill_sb(sb,
sb                545 fs/orangefs/super.c 	strncpy(ORANGEFS_SB(sb)->devname,
sb                550 fs/orangefs/super.c 	ORANGEFS_SB(sb)->mount_pending = 0;
sb                558 fs/orangefs/super.c 		     ORANGEFS_SB(sb));
sb                560 fs/orangefs/super.c 	list_add_tail(&ORANGEFS_SB(sb)->list, &orangefs_superblocks);
sb                565 fs/orangefs/super.c 	ORANGEFS_SB(sb)->no_list = 0;
sb                579 fs/orangefs/super.c 	return dget(sb->s_root);
sb                583 fs/orangefs/super.c 	ORANGEFS_SB(sb)->no_list = 1;
sb                585 fs/orangefs/super.c 	deactivate_locked_super(sb);
sb                598 fs/orangefs/super.c void orangefs_kill_sb(struct super_block *sb)
sb                604 fs/orangefs/super.c 	kill_anon_super(sb);
sb                606 fs/orangefs/super.c 	if (!ORANGEFS_SB(sb)) {
sb                615 fs/orangefs/super.c 	r = orangefs_unmount(ORANGEFS_SB(sb)->id, ORANGEFS_SB(sb)->fs_id,
sb                616 fs/orangefs/super.c 	    ORANGEFS_SB(sb)->devname);
sb                618 fs/orangefs/super.c 		ORANGEFS_SB(sb)->mount_pending = 1;
sb                620 fs/orangefs/super.c 	if (!ORANGEFS_SB(sb)->no_list) {
sb                624 fs/orangefs/super.c 		__list_del_entry(&ORANGEFS_SB(sb)->list);
sb                625 fs/orangefs/super.c 		ORANGEFS_SB(sb)->list.prev = NULL;
sb                637 fs/orangefs/super.c 	kfree(ORANGEFS_SB(sb));
sb                289 fs/overlayfs/export.c static struct dentry *ovl_obtain_alias(struct super_block *sb,
sb                310 fs/overlayfs/export.c 	inode = ovl_get_inode(sb, &oip);
sb                424 fs/overlayfs/export.c static struct dentry *ovl_lookup_real(struct super_block *sb,
sb                431 fs/overlayfs/export.c static struct dentry *ovl_lookup_real_inode(struct super_block *sb,
sb                435 fs/overlayfs/export.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                445 fs/overlayfs/export.c 	inode = ovl_lookup_inode(sb, real, !layer->idx);
sb                478 fs/overlayfs/export.c 		this = ovl_lookup_real(sb, upper, &upper_layer);
sb                497 fs/overlayfs/export.c static struct dentry *ovl_lookup_real_ancestor(struct super_block *sb,
sb                505 fs/overlayfs/export.c 		return dget(sb->s_root);
sb                516 fs/overlayfs/export.c 		ancestor = ovl_lookup_real_inode(sb, next, layer);
sb                521 fs/overlayfs/export.c 			ancestor = dget(sb->s_root);
sb                550 fs/overlayfs/export.c static struct dentry *ovl_lookup_real(struct super_block *sb,
sb                557 fs/overlayfs/export.c 	connected = ovl_lookup_real_ancestor(sb, real, layer);
sb                588 fs/overlayfs/export.c 				connected = dget(sb->s_root);
sb                623 fs/overlayfs/export.c 				this = ovl_lookup_real_ancestor(sb, real,
sb                652 fs/overlayfs/export.c static struct dentry *ovl_get_dentry(struct super_block *sb,
sb                657 fs/overlayfs/export.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                667 fs/overlayfs/export.c 		return ovl_obtain_alias(sb, upper, lowerpath, index);
sb                677 fs/overlayfs/export.c 	return ovl_lookup_real(sb, real, layer);
sb                680 fs/overlayfs/export.c static struct dentry *ovl_upper_fh_to_d(struct super_block *sb,
sb                683 fs/overlayfs/export.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                694 fs/overlayfs/export.c 	dentry = ovl_get_dentry(sb, upper, NULL, NULL);
sb                700 fs/overlayfs/export.c static struct dentry *ovl_lower_fh_to_d(struct super_block *sb,
sb                703 fs/overlayfs/export.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                718 fs/overlayfs/export.c 		inode = ovl_lookup_inode(sb, origin.dentry, false);
sb                748 fs/overlayfs/export.c 		dentry = ovl_get_dentry(sb, upper, NULL, NULL);
sb                768 fs/overlayfs/export.c 	dentry = ovl_get_dentry(sb, NULL, &origin, index);
sb                780 fs/overlayfs/export.c static struct dentry *ovl_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                799 fs/overlayfs/export.c 		 ovl_upper_fh_to_d(sb, fh) :
sb                800 fs/overlayfs/export.c 		 ovl_lower_fh_to_d(sb, fh);
sb                813 fs/overlayfs/export.c static struct dentry *ovl_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                706 fs/overlayfs/inode.c struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev)
sb                710 fs/overlayfs/inode.c 	inode = new_inode(sb);
sb                766 fs/overlayfs/inode.c struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
sb                771 fs/overlayfs/inode.c 	inode = ilookup5(sb, (unsigned long) key, ovl_inode_test, key);
sb                784 fs/overlayfs/inode.c bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir)
sb                790 fs/overlayfs/inode.c 	trap = ilookup5(sb, (unsigned long) key, ovl_inode_test, key);
sb                806 fs/overlayfs/inode.c struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir)
sb                814 fs/overlayfs/inode.c 	trap = iget5_locked(sb, (unsigned long) key, ovl_inode_test,
sb                835 fs/overlayfs/inode.c static bool ovl_hash_bylower(struct super_block *sb, struct dentry *upper,
sb                838 fs/overlayfs/inode.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                853 fs/overlayfs/inode.c 	if ((upper || !ovl_indexdir(sb)) &&
sb                858 fs/overlayfs/inode.c 	if (sb->s_export_op && upper)
sb                865 fs/overlayfs/inode.c static struct inode *ovl_iget5(struct super_block *sb, struct inode *newinode,
sb                870 fs/overlayfs/inode.c 			  iget5_locked(sb, (unsigned long) key,
sb                874 fs/overlayfs/inode.c struct inode *ovl_get_inode(struct super_block *sb,
sb                882 fs/overlayfs/inode.c 	bool bylower = ovl_hash_bylower(sb, upperdentry, lowerdentry,
sb                902 fs/overlayfs/inode.c 		inode = ovl_iget5(sb, oip->newinode, key);
sb                929 fs/overlayfs/inode.c 		inode = new_inode(sb);
sb                 18 fs/overlayfs/namei.c 	struct super_block *sb;
sb                245 fs/overlayfs/namei.c 		if (ovl_lookup_trap_inode(d->sb, this)) {
sb                834 fs/overlayfs/namei.c 		.sb = dentry->d_sb,
sb                207 fs/overlayfs/overlayfs.h const struct cred *ovl_override_creds(struct super_block *sb);
sb                208 fs/overlayfs/overlayfs.h struct super_block *ovl_same_sb(struct super_block *sb);
sb                209 fs/overlayfs/overlayfs.h int ovl_can_decode_fh(struct super_block *sb);
sb                210 fs/overlayfs/overlayfs.h struct dentry *ovl_indexdir(struct super_block *sb);
sb                211 fs/overlayfs/overlayfs.h bool ovl_index_all(struct super_block *sb);
sb                212 fs/overlayfs/overlayfs.h bool ovl_verify_lower(struct super_block *sb);
sb                246 fs/overlayfs/overlayfs.h bool ovl_redirect_dir(struct super_block *sb);
sb                286 fs/overlayfs/overlayfs.h static inline unsigned int ovl_xino_bits(struct super_block *sb)
sb                288 fs/overlayfs/overlayfs.h 	struct ovl_fs *ofs = sb->s_fs_info;
sb                374 fs/overlayfs/overlayfs.h struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev);
sb                375 fs/overlayfs/overlayfs.h struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real,
sb                377 fs/overlayfs/overlayfs.h bool ovl_lookup_trap_inode(struct super_block *sb, struct dentry *dir);
sb                378 fs/overlayfs/overlayfs.h struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir);
sb                379 fs/overlayfs/overlayfs.h struct inode *ovl_get_inode(struct super_block *sb,
sb                 23 fs/overlayfs/ovl_entry.h 	struct super_block *sb;
sb                171 fs/overlayfs/super.c static struct inode *ovl_alloc_inode(struct super_block *sb)
sb                245 fs/overlayfs/super.c static void ovl_put_super(struct super_block *sb)
sb                247 fs/overlayfs/super.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                253 fs/overlayfs/super.c static int ovl_sync_fs(struct super_block *sb, int wait)
sb                255 fs/overlayfs/super.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                344 fs/overlayfs/super.c 	struct super_block *sb = dentry->d_sb;
sb                345 fs/overlayfs/super.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                369 fs/overlayfs/super.c static int ovl_remount(struct super_block *sb, int *flags, char *data)
sb                371 fs/overlayfs/super.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                989 fs/overlayfs/super.c static int ovl_setup_trap(struct super_block *sb, struct dentry *dir,
sb                995 fs/overlayfs/super.c 	trap = ovl_get_trap_inode(sb, dir);
sb               1026 fs/overlayfs/super.c static int ovl_get_upper(struct super_block *sb, struct ovl_fs *ofs,
sb               1047 fs/overlayfs/super.c 	err = ovl_setup_trap(sb, upperpath->dentry, &ofs->upperdir_trap,
sb               1076 fs/overlayfs/super.c static int ovl_make_workdir(struct super_block *sb, struct ovl_fs *ofs,
sb               1092 fs/overlayfs/super.c 	err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir");
sb               1156 fs/overlayfs/super.c static int ovl_get_workdir(struct super_block *sb, struct ovl_fs *ofs,
sb               1186 fs/overlayfs/super.c 	err = ovl_setup_trap(sb, ofs->workbasedir, &ofs->workbasedir_trap,
sb               1191 fs/overlayfs/super.c 	err = ovl_make_workdir(sb, ofs, &workpath);
sb               1199 fs/overlayfs/super.c static int ovl_get_indexdir(struct super_block *sb, struct ovl_fs *ofs,
sb               1219 fs/overlayfs/super.c 		err = ovl_setup_trap(sb, ofs->indexdir, &ofs->indexdir_trap,
sb               1269 fs/overlayfs/super.c 		if (uuid_equal(&ofs->lower_fs[i].sb->s_uuid, uuid)) {
sb               1280 fs/overlayfs/super.c 	struct super_block *sb = path->mnt->mnt_sb;
sb               1287 fs/overlayfs/super.c 	if (ofs->upper_mnt && ofs->upper_mnt->mnt_sb == sb)
sb               1291 fs/overlayfs/super.c 		if (ofs->lower_fs[i].sb == sb)
sb               1295 fs/overlayfs/super.c 	if (!ovl_lower_uuid_ok(ofs, &sb->s_uuid)) {
sb               1301 fs/overlayfs/super.c 				uuid_is_null(&sb->s_uuid) ? "null" :
sb               1313 fs/overlayfs/super.c 	ofs->lower_fs[ofs->numlowerfs].sb = sb;
sb               1321 fs/overlayfs/super.c static int ovl_get_lower_layers(struct super_block *sb, struct ovl_fs *ofs,
sb               1347 fs/overlayfs/super.c 		err = ovl_setup_trap(sb, stack[i].dentry, &trap, "lowerdir");
sb               1413 fs/overlayfs/super.c static struct ovl_entry *ovl_get_lowerstack(struct super_block *sb,
sb               1452 fs/overlayfs/super.c 				    &sb->s_stack_depth, &remote);
sb               1460 fs/overlayfs/super.c 	sb->s_stack_depth++;
sb               1461 fs/overlayfs/super.c 	if (sb->s_stack_depth > FILESYSTEM_MAX_STACK_DEPTH) {
sb               1466 fs/overlayfs/super.c 	err = ovl_get_lower_layers(sb, ofs, stack, numlower);
sb               1481 fs/overlayfs/super.c 		sb->s_d_op = &ovl_reval_dentry_operations;
sb               1483 fs/overlayfs/super.c 		sb->s_d_op = &ovl_dentry_operations;
sb               1503 fs/overlayfs/super.c static int ovl_check_layer(struct super_block *sb, struct ovl_fs *ofs,
sb               1516 fs/overlayfs/super.c 		if (ovl_lookup_trap_inode(sb, parent)) {
sb               1535 fs/overlayfs/super.c static int ovl_check_overlapping_layers(struct super_block *sb,
sb               1541 fs/overlayfs/super.c 		err = ovl_check_layer(sb, ofs, ofs->upper_mnt->mnt_root,
sb               1553 fs/overlayfs/super.c 		err = ovl_check_layer(sb, ofs, ofs->workbasedir, "workdir");
sb               1559 fs/overlayfs/super.c 		err = ovl_check_layer(sb, ofs,
sb               1569 fs/overlayfs/super.c static int ovl_fill_super(struct super_block *sb, void *data, int silent)
sb               1602 fs/overlayfs/super.c 	sb->s_stack_depth = 0;
sb               1603 fs/overlayfs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               1609 fs/overlayfs/super.c 	sb->s_op = &ovl_super_operations;
sb               1617 fs/overlayfs/super.c 		err = ovl_get_upper(sb, ofs, &upperpath);
sb               1621 fs/overlayfs/super.c 		err = ovl_get_workdir(sb, ofs, &upperpath);
sb               1626 fs/overlayfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1628 fs/overlayfs/super.c 		sb->s_stack_depth = ofs->upper_mnt->mnt_sb->s_stack_depth;
sb               1629 fs/overlayfs/super.c 		sb->s_time_gran = ofs->upper_mnt->mnt_sb->s_time_gran;
sb               1632 fs/overlayfs/super.c 	oe = ovl_get_lowerstack(sb, ofs);
sb               1639 fs/overlayfs/super.c 		sb->s_flags |= SB_RDONLY;
sb               1642 fs/overlayfs/super.c 		err = ovl_get_indexdir(sb, ofs, oe, &upperpath);
sb               1650 fs/overlayfs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1655 fs/overlayfs/super.c 	err = ovl_check_overlapping_layers(sb, ofs);
sb               1674 fs/overlayfs/super.c 		sb->s_export_op = &ovl_export_operations;
sb               1679 fs/overlayfs/super.c 	sb->s_magic = OVERLAYFS_SUPER_MAGIC;
sb               1680 fs/overlayfs/super.c 	sb->s_xattr = ovl_xattr_handlers;
sb               1681 fs/overlayfs/super.c 	sb->s_fs_info = ofs;
sb               1682 fs/overlayfs/super.c 	sb->s_flags |= SB_POSIXACL;
sb               1685 fs/overlayfs/super.c 	root_dentry = d_make_root(ovl_new_inode(sb, S_IFDIR, 0));
sb               1705 fs/overlayfs/super.c 	sb->s_root = root_dentry;
sb                 36 fs/overlayfs/util.c const struct cred *ovl_override_creds(struct super_block *sb)
sb                 38 fs/overlayfs/util.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                 43 fs/overlayfs/util.c struct super_block *ovl_same_sb(struct super_block *sb)
sb                 45 fs/overlayfs/util.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                 50 fs/overlayfs/util.c 		return ofs->lower_fs[0].sb;
sb                 63 fs/overlayfs/util.c int ovl_can_decode_fh(struct super_block *sb)
sb                 65 fs/overlayfs/util.c 	if (!sb->s_export_op || !sb->s_export_op->fh_to_dentry)
sb                 68 fs/overlayfs/util.c 	return sb->s_export_op->encode_fh ? -1 : FILEID_INO32_GEN;
sb                 71 fs/overlayfs/util.c struct dentry *ovl_indexdir(struct super_block *sb)
sb                 73 fs/overlayfs/util.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                 79 fs/overlayfs/util.c bool ovl_index_all(struct super_block *sb)
sb                 81 fs/overlayfs/util.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                 87 fs/overlayfs/util.c bool ovl_verify_lower(struct super_block *sb)
sb                 89 fs/overlayfs/util.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb                381 fs/overlayfs/util.c bool ovl_redirect_dir(struct super_block *sb)
sb                383 fs/overlayfs/util.c 	struct ovl_fs *ofs = sb->s_fs_info;
sb               1746 fs/proc/base.c struct inode *proc_pid_make_inode(struct super_block * sb,
sb               1754 fs/proc/base.c 	inode = new_inode(sb);
sb                 58 fs/proc/inode.c static struct inode *proc_alloc_inode(struct super_block *sb)
sb                107 fs/proc/inode.c 	struct super_block *sb = root->d_sb;
sb                108 fs/proc/inode.c 	struct pid_namespace *pid = sb->s_fs_info;
sb                449 fs/proc/inode.c struct inode *proc_get_inode(struct super_block *sb, struct proc_dir_entry *de)
sb                451 fs/proc/inode.c 	struct inode *inode = new_inode(sb);
sb                275 fs/proc/proc_sysctl.c 	struct super_block *sb;
sb                288 fs/proc/proc_sysctl.c 		sb = inode->i_sb;
sb                289 fs/proc/proc_sysctl.c 		if (!atomic_inc_not_zero(&sb->s_active))
sb                294 fs/proc/proc_sysctl.c 			deactivate_super(sb);
sb                301 fs/proc/proc_sysctl.c 		deactivate_super(sb);
sb                463 fs/proc/proc_sysctl.c static struct inode *proc_sys_make_inode(struct super_block *sb,
sb                470 fs/proc/proc_sysctl.c 	inode = new_inode(sb);
sb                147 fs/proc/root.c 	struct super_block *sb = fc->root->d_sb;
sb                148 fs/proc/root.c 	struct pid_namespace *pid = sb->s_fs_info;
sb                150 fs/proc/root.c 	sync_filesystem(sb);
sb                152 fs/proc/root.c 	proc_apply_options(sb, fc, pid, current_user_ns());
sb                194 fs/proc/root.c static void proc_kill_sb(struct super_block *sb)
sb                198 fs/proc/root.c 	ns = (struct pid_namespace *)sb->s_fs_info;
sb                203 fs/proc/root.c 	kill_anon_super(sb);
sb                 45 fs/proc_namespace.c static int show_sb_opts(struct seq_file *m, struct super_block *sb)
sb                 57 fs/proc_namespace.c 		if (sb->s_flags & fs_infop->flag)
sb                 61 fs/proc_namespace.c 	return security_sb_show_options(m, sb);
sb                 88 fs/proc_namespace.c static void show_type(struct seq_file *m, struct super_block *sb)
sb                 90 fs/proc_namespace.c 	mangle(m, sb->s_type->name);
sb                 91 fs/proc_namespace.c 	if (sb->s_subtype) {
sb                 93 fs/proc_namespace.c 		mangle(m, sb->s_subtype);
sb                102 fs/proc_namespace.c 	struct super_block *sb = mnt_path.dentry->d_sb;
sb                105 fs/proc_namespace.c 	if (sb->s_op->show_devname) {
sb                106 fs/proc_namespace.c 		err = sb->s_op->show_devname(m, mnt_path.dentry);
sb                118 fs/proc_namespace.c 	show_type(m, sb);
sb                120 fs/proc_namespace.c 	err = show_sb_opts(m, sb);
sb                124 fs/proc_namespace.c 	if (sb->s_op->show_options)
sb                125 fs/proc_namespace.c 		err = sb->s_op->show_options(m, mnt_path.dentry);
sb                135 fs/proc_namespace.c 	struct super_block *sb = mnt->mnt_sb;
sb                140 fs/proc_namespace.c 		   MAJOR(sb->s_dev), MINOR(sb->s_dev));
sb                141 fs/proc_namespace.c 	if (sb->s_op->show_path) {
sb                142 fs/proc_namespace.c 		err = sb->s_op->show_path(m, mnt->mnt_root);
sb                173 fs/proc_namespace.c 	show_type(m, sb);
sb                175 fs/proc_namespace.c 	if (sb->s_op->show_devname) {
sb                176 fs/proc_namespace.c 		err = sb->s_op->show_devname(m, mnt->mnt_root);
sb                182 fs/proc_namespace.c 	seq_puts(m, sb_rdonly(sb) ? " ro" : " rw");
sb                183 fs/proc_namespace.c 	err = show_sb_opts(m, sb);
sb                186 fs/proc_namespace.c 	if (sb->s_op->show_options)
sb                187 fs/proc_namespace.c 		err = sb->s_op->show_options(m, mnt->mnt_root);
sb                198 fs/proc_namespace.c 	struct super_block *sb = mnt_path.dentry->d_sb;
sb                202 fs/proc_namespace.c 	if (sb->s_op->show_devname) {
sb                204 fs/proc_namespace.c 		err = sb->s_op->show_devname(m, mnt_path.dentry);
sb                225 fs/proc_namespace.c 	show_type(m, sb);
sb                228 fs/proc_namespace.c 	if (sb->s_op->show_stats) {
sb                230 fs/proc_namespace.c 		err = sb->s_op->show_stats(m, mnt_path.dentry);
sb                211 fs/pstore/inode.c static struct inode *pstore_get_inode(struct super_block *sb)
sb                213 fs/pstore/inode.c 	struct inode *inode = new_inode(sb);
sb                265 fs/pstore/inode.c static int pstore_remount(struct super_block *sb, int *flags, char *data)
sb                267 fs/pstore/inode.c 	sync_filesystem(sb);
sb                382 fs/pstore/inode.c static int pstore_fill_super(struct super_block *sb, void *data, int silent)
sb                386 fs/pstore/inode.c 	pstore_sb = sb;
sb                388 fs/pstore/inode.c 	sb->s_maxbytes		= MAX_LFS_FILESIZE;
sb                389 fs/pstore/inode.c 	sb->s_blocksize		= PAGE_SIZE;
sb                390 fs/pstore/inode.c 	sb->s_blocksize_bits	= PAGE_SHIFT;
sb                391 fs/pstore/inode.c 	sb->s_magic		= PSTOREFS_MAGIC;
sb                392 fs/pstore/inode.c 	sb->s_op		= &pstore_ops;
sb                393 fs/pstore/inode.c 	sb->s_time_gran		= 1;
sb                397 fs/pstore/inode.c 	inode = pstore_get_inode(sb);
sb                404 fs/pstore/inode.c 	sb->s_root = d_make_root(inode);
sb                405 fs/pstore/inode.c 	if (!sb->s_root)
sb                419 fs/pstore/inode.c static void pstore_kill_sb(struct super_block *sb)
sb                421 fs/pstore/inode.c 	kill_litter_super(sb);
sb                 21 fs/qnx4/bitmap.c unsigned long qnx4_count_free_blocks(struct super_block *sb)
sb                 23 fs/qnx4/bitmap.c 	int start = le32_to_cpu(qnx4_sb(sb)->BitMap->di_first_xtnt.xtnt_blk) - 1;
sb                 27 fs/qnx4/bitmap.c 	int size = le32_to_cpu(qnx4_sb(sb)->BitMap->di_size);
sb                 33 fs/qnx4/bitmap.c 		if ((bh = sb_bread(sb, start + offset)) == NULL) {
sb                 31 fs/qnx4/inode.c static struct inode *qnx4_alloc_inode(struct super_block *sb);
sb                 33 fs/qnx4/inode.c static int qnx4_remount(struct super_block *sb, int *flags, char *data);
sb                 44 fs/qnx4/inode.c static int qnx4_remount(struct super_block *sb, int *flags, char *data)
sb                 48 fs/qnx4/inode.c 	sync_filesystem(sb);
sb                 49 fs/qnx4/inode.c 	qs = qnx4_sb(sb);
sb                131 fs/qnx4/inode.c 	struct super_block *sb = dentry->d_sb;
sb                132 fs/qnx4/inode.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                134 fs/qnx4/inode.c 	buf->f_type    = sb->s_magic;
sb                135 fs/qnx4/inode.c 	buf->f_bsize   = sb->s_blocksize;
sb                136 fs/qnx4/inode.c 	buf->f_blocks  = le32_to_cpu(qnx4_sb(sb)->BitMap->di_size) * 8;
sb                137 fs/qnx4/inode.c 	buf->f_bfree   = qnx4_count_free_blocks(sb);
sb                151 fs/qnx4/inode.c static const char *qnx4_checkroot(struct super_block *sb,
sb                161 fs/qnx4/inode.c 	QNX4DEBUG((KERN_NOTICE "QNX4 filesystem found on dev %s.\n", sb->s_id));
sb                165 fs/qnx4/inode.c 		bh = sb_bread(sb, rd + j);	/* root dir, first block */
sb                173 fs/qnx4/inode.c 			qnx4_sb(sb)->BitMap = kmemdup(rootdir,
sb                177 fs/qnx4/inode.c 			if (!qnx4_sb(sb)->BitMap)
sb                239 fs/qnx4/inode.c static void qnx4_kill_sb(struct super_block *sb)
sb                241 fs/qnx4/inode.c 	struct qnx4_sb_info *qs = qnx4_sb(sb);
sb                242 fs/qnx4/inode.c 	kill_block_super(sb);
sb                263 fs/qnx4/inode.c struct inode *qnx4_iget(struct super_block *sb, unsigned long ino)
sb                271 fs/qnx4/inode.c 	inode = iget_locked(sb, ino);
sb                284 fs/qnx4/inode.c 		       sb->s_id, ino);
sb                290 fs/qnx4/inode.c 	if (!(bh = sb_bread(sb, block))) {
sb                292 fs/qnx4/inode.c 		       "%s\n", sb->s_id);
sb                327 fs/qnx4/inode.c 			ino, sb->s_id);
sb                339 fs/qnx4/inode.c static struct inode *qnx4_alloc_inode(struct super_block *sb)
sb                 26 fs/qnx4/qnx4.h extern unsigned long qnx4_count_free_blocks(struct super_block *sb);
sb                 31 fs/qnx4/qnx4.h extern int qnx4_is_free(struct super_block *sb, long block);
sb                 33 fs/qnx4/qnx4.h static inline struct qnx4_sb_info *qnx4_sb(struct super_block *sb)
sb                 35 fs/qnx4/qnx4.h 	return sb->s_fs_info;
sb                 45 fs/qnx6/dir.c  static struct qnx6_long_filename *qnx6_longname(struct super_block *sb,
sb                 49 fs/qnx6/dir.c  	struct qnx6_sb_info *sbi = QNX6_SB(sb);
sb                 51 fs/qnx6/dir.c  	u32 n = s >> (PAGE_SHIFT - sb->s_blocksize_bits); /* in pages */
sb                 53 fs/qnx6/dir.c  	u32 offs = (s << sb->s_blocksize_bits) & ~PAGE_MASK;
sb                 31 fs/qnx6/inode.c static void qnx6_put_super(struct super_block *sb);
sb                 32 fs/qnx6/inode.c static struct inode *qnx6_alloc_inode(struct super_block *sb);
sb                 34 fs/qnx6/inode.c static int qnx6_remount(struct super_block *sb, int *flags, char *data);
sb                 49 fs/qnx6/inode.c 	struct super_block *sb = root->d_sb;
sb                 50 fs/qnx6/inode.c 	struct qnx6_sb_info *sbi = QNX6_SB(sb);
sb                 57 fs/qnx6/inode.c static int qnx6_remount(struct super_block *sb, int *flags, char *data)
sb                 59 fs/qnx6/inode.c 	sync_filesystem(sb);
sb                 64 fs/qnx6/inode.c static unsigned qnx6_get_devblock(struct super_block *sb, __fs32 block)
sb                 66 fs/qnx6/inode.c 	struct qnx6_sb_info *sbi = QNX6_SB(sb);
sb                158 fs/qnx6/inode.c 	struct super_block *sb = dentry->d_sb;
sb                159 fs/qnx6/inode.c 	struct qnx6_sb_info *sbi = QNX6_SB(sb);
sb                160 fs/qnx6/inode.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                162 fs/qnx6/inode.c 	buf->f_type    = sb->s_magic;
sb                163 fs/qnx6/inode.c 	buf->f_bsize   = sb->s_blocksize;
sb                164 fs/qnx6/inode.c 	buf->f_blocks  = fs32_to_cpu(sbi, sbi->sb->sb_num_blocks);
sb                165 fs/qnx6/inode.c 	buf->f_bfree   = fs32_to_cpu(sbi, sbi->sb->sb_free_blocks);
sb                166 fs/qnx6/inode.c 	buf->f_files   = fs32_to_cpu(sbi, sbi->sb->sb_num_inodes);
sb                167 fs/qnx6/inode.c 	buf->f_ffree   = fs32_to_cpu(sbi, sbi->sb->sb_free_inodes);
sb                205 fs/qnx6/inode.c void qnx6_superblock_debug(struct qnx6_super_block *sb, struct super_block *s)
sb                209 fs/qnx6/inode.c 	pr_debug("magic: %08x\n", fs32_to_cpu(sbi, sb->sb_magic));
sb                210 fs/qnx6/inode.c 	pr_debug("checksum: %08x\n", fs32_to_cpu(sbi, sb->sb_checksum));
sb                211 fs/qnx6/inode.c 	pr_debug("serial: %llx\n", fs64_to_cpu(sbi, sb->sb_serial));
sb                212 fs/qnx6/inode.c 	pr_debug("flags: %08x\n", fs32_to_cpu(sbi, sb->sb_flags));
sb                213 fs/qnx6/inode.c 	pr_debug("blocksize: %08x\n", fs32_to_cpu(sbi, sb->sb_blocksize));
sb                214 fs/qnx6/inode.c 	pr_debug("num_inodes: %08x\n", fs32_to_cpu(sbi, sb->sb_num_inodes));
sb                215 fs/qnx6/inode.c 	pr_debug("free_inodes: %08x\n", fs32_to_cpu(sbi, sb->sb_free_inodes));
sb                216 fs/qnx6/inode.c 	pr_debug("num_blocks: %08x\n", fs32_to_cpu(sbi, sb->sb_num_blocks));
sb                217 fs/qnx6/inode.c 	pr_debug("free_blocks: %08x\n", fs32_to_cpu(sbi, sb->sb_free_blocks));
sb                218 fs/qnx6/inode.c 	pr_debug("inode_levels: %02x\n", sb->Inode.levels);
sb                232 fs/qnx6/inode.c static int qnx6_parse_options(char *options, struct super_block *sb)
sb                235 fs/qnx6/inode.c 	struct qnx6_sb_info *sbi = QNX6_SB(sb);
sb                263 fs/qnx6/inode.c 	struct qnx6_super_block *sb;
sb                272 fs/qnx6/inode.c 	sb = (struct qnx6_super_block *)bh->b_data;
sb                273 fs/qnx6/inode.c 	if (fs32_to_cpu(sbi, sb->sb_magic) != QNX6_SUPER_MAGIC) {
sb                275 fs/qnx6/inode.c 		if (fs32_to_cpu(sbi, sb->sb_magic) == QNX6_SUPER_MAGIC) {
sb                407 fs/qnx6/inode.c 		sbi->sb = (struct qnx6_super_block *)bh1->b_data;
sb                413 fs/qnx6/inode.c 		sbi->sb = (struct qnx6_super_block *)bh2->b_data;
sb                485 fs/qnx6/inode.c static void qnx6_put_super(struct super_block *sb)
sb                487 fs/qnx6/inode.c 	struct qnx6_sb_info *qs = QNX6_SB(sb);
sb                492 fs/qnx6/inode.c 	sb->s_fs_info = NULL;
sb                522 fs/qnx6/inode.c struct inode *qnx6_iget(struct super_block *sb, unsigned ino)
sb                524 fs/qnx6/inode.c 	struct qnx6_sb_info *sbi = QNX6_SB(sb);
sb                532 fs/qnx6/inode.c 	inode = iget_locked(sb, ino);
sb                544 fs/qnx6/inode.c 		       sb->s_id, ino);
sb                554 fs/qnx6/inode.c 		       sb->s_id);
sb                599 fs/qnx6/inode.c static struct inode *qnx6_alloc_inode(struct super_block *sb)
sb                 31 fs/qnx6/qnx6.h 	struct qnx6_super_block	*sb;		/* our superblock */
sb                 47 fs/qnx6/qnx6.h extern struct inode *qnx6_iget(struct super_block *sb, unsigned ino);
sb                 59 fs/qnx6/qnx6.h static inline struct qnx6_sb_info *QNX6_SB(struct super_block *sb)
sb                 61 fs/qnx6/qnx6.h 	return sb->s_fs_info;
sb                 71 fs/qnx6/qnx6.h #define test_opt(sb, opt)		(QNX6_SB(sb)->s_mount_opt & \
sb                 19 fs/qnx6/super_mmi.c 		struct qnx6_mmi_super_block *sb)
sb                 21 fs/qnx6/super_mmi.c 	qsb->sb_magic = sb->sb_magic;
sb                 22 fs/qnx6/super_mmi.c 	qsb->sb_checksum = sb->sb_checksum;
sb                 23 fs/qnx6/super_mmi.c 	qsb->sb_serial = sb->sb_serial;
sb                 24 fs/qnx6/super_mmi.c 	qsb->sb_blocksize = sb->sb_blocksize;
sb                 25 fs/qnx6/super_mmi.c 	qsb->sb_num_inodes = sb->sb_num_inodes;
sb                 26 fs/qnx6/super_mmi.c 	qsb->sb_free_inodes = sb->sb_free_inodes;
sb                 27 fs/qnx6/super_mmi.c 	qsb->sb_num_blocks = sb->sb_num_blocks;
sb                 28 fs/qnx6/super_mmi.c 	qsb->sb_free_blocks = sb->sb_free_blocks;
sb                 31 fs/qnx6/super_mmi.c 	memcpy(&qsb->Inode, &sb->Inode, sizeof(sb->Inode));
sb                 32 fs/qnx6/super_mmi.c 	memcpy(&qsb->Bitmap, &sb->Bitmap, sizeof(sb->Bitmap));
sb                 33 fs/qnx6/super_mmi.c 	memcpy(&qsb->Longfile, &sb->Longfile, sizeof(sb->Longfile));
sb                119 fs/qnx6/super_mmi.c 		sbi->sb = (struct qnx6_super_block *)bh1->b_data;
sb                131 fs/qnx6/super_mmi.c 		sbi->sb = (struct qnx6_super_block *)bh2->b_data;
sb                141 fs/qnx6/super_mmi.c 	return sbi->sb;
sb                135 fs/quota/dquot.c void __quota_error(struct super_block *sb, const char *func,
sb                148 fs/quota/dquot.c 		       sb->s_id, func, &vaf);
sb                262 fs/quota/dquot.c hashfn(const struct super_block *sb, struct kqid qid)
sb                268 fs/quota/dquot.c 	tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type);
sb                287 fs/quota/dquot.c static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb,
sb                295 fs/quota/dquot.c 		if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid))
sb                414 fs/quota/dquot.c void mark_info_dirty(struct super_block *sb, int type)
sb                417 fs/quota/dquot.c 	sb_dqopt(sb)->info[type].dqi_flags |= DQF_INFO_DIRTY;
sb                536 fs/quota/dquot.c static void invalidate_dquots(struct super_block *sb, int type)
sb                543 fs/quota/dquot.c 		if (dquot->dq_sb != sb)
sb                580 fs/quota/dquot.c int dquot_scan_active(struct super_block *sb,
sb                587 fs/quota/dquot.c 	WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount));
sb                593 fs/quota/dquot.c 		if (dquot->dq_sb != sb)
sb                624 fs/quota/dquot.c int dquot_writeback_dquots(struct super_block *sb, int type)
sb                628 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                632 fs/quota/dquot.c 	WARN_ON_ONCE(!rwsem_is_locked(&sb->s_umount));
sb                637 fs/quota/dquot.c 		if (!sb_has_quota_active(sb, cnt))
sb                654 fs/quota/dquot.c 			err = sb->dq_op->write_dquot(dquot);
sb                671 fs/quota/dquot.c 		if ((cnt == type || type == -1) && sb_has_quota_active(sb, cnt)
sb                673 fs/quota/dquot.c 			sb->dq_op->write_info(sb, cnt);
sb                681 fs/quota/dquot.c int dquot_quota_sync(struct super_block *sb, int type)
sb                683 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                687 fs/quota/dquot.c 	ret = dquot_writeback_dquots(sb, type);
sb                696 fs/quota/dquot.c 	if (sb->s_op->sync_fs)
sb                697 fs/quota/dquot.c 		sb->s_op->sync_fs(sb, 1);
sb                698 fs/quota/dquot.c 	sync_blockdev(sb->s_bdev);
sb                707 fs/quota/dquot.c 		if (!sb_has_quota_active(sb, cnt))
sb                813 fs/quota/dquot.c struct dquot *dquot_alloc(struct super_block *sb, int type)
sb                819 fs/quota/dquot.c static struct dquot *get_empty_dquot(struct super_block *sb, int type)
sb                823 fs/quota/dquot.c 	dquot = sb->dq_op->alloc_dquot(sb, type);
sb                832 fs/quota/dquot.c 	dquot->dq_sb = sb;
sb                848 fs/quota/dquot.c struct dquot *dqget(struct super_block *sb, struct kqid qid)
sb                850 fs/quota/dquot.c 	unsigned int hashent = hashfn(sb, qid);
sb                853 fs/quota/dquot.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                856 fs/quota/dquot.c         if (!sb_has_quota_active(sb, qid.type))
sb                861 fs/quota/dquot.c 	if (!sb_has_quota_active(sb, qid.type)) {
sb                869 fs/quota/dquot.c 	dquot = find_dquot(hashent, sb, qid);
sb                873 fs/quota/dquot.c 			empty = get_empty_dquot(sb, qid.type);
sb                902 fs/quota/dquot.c 		err = sb->dq_op->acquire_dquot(dquot);
sb                948 fs/quota/dquot.c static int add_dquot_ref(struct super_block *sb, int type)
sb                956 fs/quota/dquot.c 	spin_lock(&sb->s_inode_list_lock);
sb                957 fs/quota/dquot.c 	list_for_each_entry(inode, &sb->s_inodes, i_sb_list) {
sb                967 fs/quota/dquot.c 		spin_unlock(&sb->s_inode_list_lock);
sb                990 fs/quota/dquot.c 		spin_lock(&sb->s_inode_list_lock);
sb                992 fs/quota/dquot.c 	spin_unlock(&sb->s_inode_list_lock);
sb                997 fs/quota/dquot.c 		quota_error(sb, "Writes happened before quota was turned on "
sb               1056 fs/quota/dquot.c static void remove_dquot_ref(struct super_block *sb, int type,
sb               1064 fs/quota/dquot.c 	spin_lock(&sb->s_inode_list_lock);
sb               1065 fs/quota/dquot.c 	list_for_each_entry(inode, &sb->s_inodes, i_sb_list) {
sb               1082 fs/quota/dquot.c 	spin_unlock(&sb->s_inode_list_lock);
sb               1087 fs/quota/dquot.c 			"inconsistent. Please run quotacheck(8).\n", sb->s_id);
sb               1093 fs/quota/dquot.c static void drop_dquot_ref(struct super_block *sb, int type)
sb               1097 fs/quota/dquot.c 	if (sb->dq_op) {
sb               1098 fs/quota/dquot.c 		remove_dquot_ref(sb, type, &tofree_head);
sb               1317 fs/quota/dquot.c 	struct super_block *sb = dquot->dq_sb;
sb               1321 fs/quota/dquot.c 	if (!sb_has_quota_limits_enabled(sb, dquot->dq_id.type) ||
sb               1354 fs/quota/dquot.c 			    sb_dqopt(sb)->info[dquot->dq_id.type].dqi_bgrace;
sb               1418 fs/quota/dquot.c 	struct super_block *sb = inode->i_sb;
sb               1422 fs/quota/dquot.c 	return sb_any_quota_loaded(sb) & ~sb_any_quota_suspended(sb);
sb               1435 fs/quota/dquot.c 	struct super_block *sb = inode->i_sb;
sb               1461 fs/quota/dquot.c 		if (!sb_has_quota_active(sb, cnt))
sb               1480 fs/quota/dquot.c 		dquot = dqget(sb, qid);
sb               1503 fs/quota/dquot.c 		if (!sb_has_quota_active(sb, cnt))
sb               2080 fs/quota/dquot.c 	struct super_block *sb = inode->i_sb;
sb               2087 fs/quota/dquot.c 		dquot = dqget(sb, make_kqid_uid(iattr->ia_uid));
sb               2098 fs/quota/dquot.c 		dquot = dqget(sb, make_kqid_gid(iattr->ia_gid));
sb               2118 fs/quota/dquot.c int dquot_commit_info(struct super_block *sb, int type)
sb               2120 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2122 fs/quota/dquot.c 	return dqopt->ops[type]->write_file_info(sb, type);
sb               2126 fs/quota/dquot.c int dquot_get_next_id(struct super_block *sb, struct kqid *qid)
sb               2128 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2130 fs/quota/dquot.c 	if (!sb_has_quota_active(sb, qid->type))
sb               2134 fs/quota/dquot.c 	return dqopt->ops[qid->type]->get_next_id(sb, qid);
sb               2170 fs/quota/dquot.c int dquot_disable(struct super_block *sb, int type, unsigned int flags)
sb               2173 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2177 fs/quota/dquot.c 	if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount)))
sb               2178 fs/quota/dquot.c 		up_read(&sb->s_umount);
sb               2192 fs/quota/dquot.c 	if (!sb_any_quota_loaded(sb))
sb               2199 fs/quota/dquot.c 		if (!sb_has_quota_loaded(sb, cnt))
sb               2211 fs/quota/dquot.c 			if (!sb_has_quota_loaded(sb, cnt) &&
sb               2212 fs/quota/dquot.c 			    sb_has_quota_suspended(sb, cnt)) {
sb               2224 fs/quota/dquot.c 		if (sb_has_quota_loaded(sb, cnt) && !(flags & DQUOT_SUSPENDED))
sb               2228 fs/quota/dquot.c 		drop_dquot_ref(sb, cnt);
sb               2229 fs/quota/dquot.c 		invalidate_dquots(sb, cnt);
sb               2235 fs/quota/dquot.c 			sb->dq_op->write_info(sb, cnt);
sb               2237 fs/quota/dquot.c 			dqopt->ops[cnt]->free_file_info(sb, cnt);
sb               2241 fs/quota/dquot.c 		if (!sb_has_quota_loaded(sb, cnt))
sb               2255 fs/quota/dquot.c 	if (sb->s_op->sync_fs)
sb               2256 fs/quota/dquot.c 		sb->s_op->sync_fs(sb, 1);
sb               2257 fs/quota/dquot.c 	sync_blockdev(sb->s_bdev);
sb               2265 fs/quota/dquot.c 		if (toputinode[cnt] && !sb_has_quota_loaded(sb, cnt)) {
sb               2272 fs/quota/dquot.c 	if (sb->s_bdev)
sb               2273 fs/quota/dquot.c 		invalidate_bdev(sb->s_bdev);
sb               2293 fs/quota/dquot.c int dquot_quota_off(struct super_block *sb, int type)
sb               2295 fs/quota/dquot.c 	return dquot_disable(sb, type,
sb               2312 fs/quota/dquot.c 	struct super_block *sb = inode->i_sb;
sb               2313 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2326 fs/quota/dquot.c 	if (!sb->s_op->quota_write || !sb->s_op->quota_read ||
sb               2327 fs/quota/dquot.c 	    (type == PRJQUOTA && sb->dq_op->get_projid == NULL)) {
sb               2332 fs/quota/dquot.c 	if (sb->s_user_ns != &init_user_ns) {
sb               2341 fs/quota/dquot.c 	if (sb_has_quota_loaded(sb, type)) {
sb               2353 fs/quota/dquot.c 		sync_filesystem(sb);
sb               2354 fs/quota/dquot.c 		invalidate_bdev(sb->s_bdev);
sb               2376 fs/quota/dquot.c 	if (!fmt->qf_ops->check_quota_file(sb, type))
sb               2383 fs/quota/dquot.c 	error = dqopt->ops[type]->read_file_info(sb, type);
sb               2395 fs/quota/dquot.c 	error = add_dquot_ref(sb, type);
sb               2397 fs/quota/dquot.c 		dquot_disable(sb, type, flags);
sb               2414 fs/quota/dquot.c int dquot_resume(struct super_block *sb, int type)
sb               2416 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2422 fs/quota/dquot.c 	if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount)))
sb               2423 fs/quota/dquot.c 		up_read(&sb->s_umount);
sb               2428 fs/quota/dquot.c 		if (!sb_has_quota_suspended(sb, cnt))
sb               2450 fs/quota/dquot.c int dquot_quota_on(struct super_block *sb, int type, int format_id,
sb               2457 fs/quota/dquot.c 	if (path->dentry->d_sb != sb)
sb               2474 fs/quota/dquot.c 	struct super_block *sb = inode->i_sb;
sb               2479 fs/quota/dquot.c 	if (WARN_ON_ONCE(down_read_trylock(&sb->s_umount)))
sb               2480 fs/quota/dquot.c 		up_read(&sb->s_umount);
sb               2485 fs/quota/dquot.c 	if (sb_has_quota_loaded(sb, type)) {
sb               2487 fs/quota/dquot.c 		    sb_has_quota_usage_enabled(sb, type))
sb               2490 fs/quota/dquot.c 		    sb_has_quota_limits_enabled(sb, type))
sb               2493 fs/quota/dquot.c 		sb_dqopt(sb)->flags |= dquot_state_flag(flags, type);
sb               2506 fs/quota/dquot.c int dquot_quota_on_mount(struct super_block *sb, char *qf_name,
sb               2512 fs/quota/dquot.c 	dentry = lookup_one_len_unlocked(qf_name, sb->s_root, strlen(qf_name));
sb               2532 fs/quota/dquot.c static int dquot_quota_enable(struct super_block *sb, unsigned int flags)
sb               2536 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2548 fs/quota/dquot.c 		if (!sb_has_quota_usage_enabled(sb, type))
sb               2561 fs/quota/dquot.c 			dquot_disable(sb, type, DQUOT_LIMITS_ENABLED);
sb               2569 fs/quota/dquot.c static int dquot_quota_disable(struct super_block *sb, unsigned int flags)
sb               2573 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2588 fs/quota/dquot.c 		if (!sb_has_quota_limits_enabled(sb, type))
sb               2595 fs/quota/dquot.c 			ret = dquot_disable(sb, type, DQUOT_LIMITS_ENABLED);
sb               2630 fs/quota/dquot.c int dquot_get_dqblk(struct super_block *sb, struct kqid qid,
sb               2635 fs/quota/dquot.c 	dquot = dqget(sb, qid);
sb               2645 fs/quota/dquot.c int dquot_get_next_dqblk(struct super_block *sb, struct kqid *qid,
sb               2651 fs/quota/dquot.c 	if (!sb->dq_op->get_next_id)
sb               2653 fs/quota/dquot.c 	err = sb->dq_op->get_next_id(sb, qid);
sb               2656 fs/quota/dquot.c 	dquot = dqget(sb, *qid);
sb               2763 fs/quota/dquot.c int dquot_set_dqblk(struct super_block *sb, struct kqid qid,
sb               2769 fs/quota/dquot.c 	dquot = dqget(sb, qid);
sb               2782 fs/quota/dquot.c int dquot_get_state(struct super_block *sb, struct qc_state *state)
sb               2786 fs/quota/dquot.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb               2791 fs/quota/dquot.c 		if (!sb_has_quota_active(sb, type))
sb               2794 fs/quota/dquot.c 		mi = sb_dqopt(sb)->info + type;
sb               2801 fs/quota/dquot.c 		if (sb_has_quota_limits_enabled(sb, type))
sb               2815 fs/quota/dquot.c int dquot_set_dqinfo(struct super_block *sb, int type, struct qc_info *ii)
sb               2823 fs/quota/dquot.c 	if (!sb_has_quota_active(sb, type))
sb               2825 fs/quota/dquot.c 	mi = sb_dqopt(sb)->info + type;
sb               2843 fs/quota/dquot.c 	mark_info_dirty(sb, type);
sb               2845 fs/quota/dquot.c 	sb->dq_op->write_info(sb, type);
sb                 23 fs/quota/quota.c static int check_quotactl_permission(struct super_block *sb, int type, int cmd,
sb                 47 fs/quota/quota.c 	return security_quotactl(cmd, type, id, sb);
sb                 50 fs/quota/quota.c static void quota_sync_one(struct super_block *sb, void *arg)
sb                 54 fs/quota/quota.c 	if (sb->s_qcop && sb->s_qcop->quota_sync &&
sb                 55 fs/quota/quota.c 	    (sb->s_quota_types & (1 << type)))
sb                 56 fs/quota/quota.c 		sb->s_qcop->quota_sync(sb, type);
sb                 84 fs/quota/quota.c static int quota_quotaon(struct super_block *sb, int type, qid_t id,
sb                 87 fs/quota/quota.c 	if (!sb->s_qcop->quota_on && !sb->s_qcop->quota_enable)
sb                 89 fs/quota/quota.c 	if (sb->s_qcop->quota_enable)
sb                 90 fs/quota/quota.c 		return sb->s_qcop->quota_enable(sb, qtype_enforce_flag(type));
sb                 93 fs/quota/quota.c 	return sb->s_qcop->quota_on(sb, type, id, path);
sb                 96 fs/quota/quota.c static int quota_quotaoff(struct super_block *sb, int type)
sb                 98 fs/quota/quota.c 	if (!sb->s_qcop->quota_off && !sb->s_qcop->quota_disable)
sb                100 fs/quota/quota.c 	if (sb->s_qcop->quota_disable)
sb                101 fs/quota/quota.c 		return sb->s_qcop->quota_disable(sb, qtype_enforce_flag(type));
sb                102 fs/quota/quota.c 	return sb->s_qcop->quota_off(sb, type);
sb                105 fs/quota/quota.c static int quota_getfmt(struct super_block *sb, int type, void __user *addr)
sb                109 fs/quota/quota.c 	if (!sb_has_quota_active(sb, type))
sb                111 fs/quota/quota.c 	fmt = sb_dqopt(sb)->info[type].dqi_format->qf_fmt_id;
sb                117 fs/quota/quota.c static int quota_getinfo(struct super_block *sb, int type, void __user *addr)
sb                124 fs/quota/quota.c 	if (!sb->s_qcop->get_state)
sb                126 fs/quota/quota.c 	ret = sb->s_qcop->get_state(sb, &state);
sb                145 fs/quota/quota.c static int quota_setinfo(struct super_block *sb, int type, void __user *addr)
sb                152 fs/quota/quota.c 	if (!sb->s_qcop->set_info)
sb                172 fs/quota/quota.c 	return sb->s_qcop->set_info(sb, type, &qinfo);
sb                199 fs/quota/quota.c static int quota_getquota(struct super_block *sb, int type, qid_t id,
sb                207 fs/quota/quota.c 	if (!sb->s_qcop->get_dqblk)
sb                210 fs/quota/quota.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                212 fs/quota/quota.c 	ret = sb->s_qcop->get_dqblk(sb, qid, &fdq);
sb                225 fs/quota/quota.c static int quota_getnextquota(struct super_block *sb, int type, qid_t id,
sb                233 fs/quota/quota.c 	if (!sb->s_qcop->get_nextdqblk)
sb                236 fs/quota/quota.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                238 fs/quota/quota.c 	ret = sb->s_qcop->get_nextdqblk(sb, &qid, &fdq);
sb                275 fs/quota/quota.c static int quota_setquota(struct super_block *sb, int type, qid_t id,
sb                284 fs/quota/quota.c 	if (!sb->s_qcop->set_dqblk)
sb                287 fs/quota/quota.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                290 fs/quota/quota.c 	return sb->s_qcop->set_dqblk(sb, qid, &fdq);
sb                293 fs/quota/quota.c static int quota_enable(struct super_block *sb, void __user *addr)
sb                299 fs/quota/quota.c 	if (!sb->s_qcop->quota_enable)
sb                301 fs/quota/quota.c 	return sb->s_qcop->quota_enable(sb, flags);
sb                304 fs/quota/quota.c static int quota_disable(struct super_block *sb, void __user *addr)
sb                310 fs/quota/quota.c 	if (!sb->s_qcop->quota_disable)
sb                312 fs/quota/quota.c 	return sb->s_qcop->quota_disable(sb, flags);
sb                334 fs/quota/quota.c static int quota_getstate(struct super_block *sb, int type,
sb                341 fs/quota/quota.c 	ret = sb->s_qcop->get_state(sb, &state);
sb                387 fs/quota/quota.c static int quota_getxstate(struct super_block *sb, int type, void __user *addr)
sb                392 fs/quota/quota.c 	if (!sb->s_qcop->get_state)
sb                394 fs/quota/quota.c 	ret = quota_getstate(sb, type, &fqs);
sb                400 fs/quota/quota.c static int quota_getstatev(struct super_block *sb, int type,
sb                407 fs/quota/quota.c 	ret = sb->s_qcop->get_state(sb, &state);
sb                444 fs/quota/quota.c static int quota_getxstatev(struct super_block *sb, int type, void __user *addr)
sb                449 fs/quota/quota.c 	if (!sb->s_qcop->get_state)
sb                463 fs/quota/quota.c 	ret = quota_getstatev(sb, type, &fqs);
sb                560 fs/quota/quota.c static int quota_setxquota(struct super_block *sb, int type, qid_t id,
sb                569 fs/quota/quota.c 	if (!sb->s_qcop->set_dqblk)
sb                572 fs/quota/quota.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                575 fs/quota/quota.c 	if (from_kqid(sb->s_user_ns, qid) == 0 &&
sb                580 fs/quota/quota.c 		if (!sb->s_qcop->set_info)
sb                583 fs/quota/quota.c 		ret = sb->s_qcop->set_info(sb, type, &qinfo);
sb                590 fs/quota/quota.c 	return sb->s_qcop->set_dqblk(sb, qid, &qdq);
sb                622 fs/quota/quota.c static int quota_getxquota(struct super_block *sb, int type, qid_t id,
sb                630 fs/quota/quota.c 	if (!sb->s_qcop->get_dqblk)
sb                633 fs/quota/quota.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                635 fs/quota/quota.c 	ret = sb->s_qcop->get_dqblk(sb, qid, &qdq);
sb                648 fs/quota/quota.c static int quota_getnextxquota(struct super_block *sb, int type, qid_t id,
sb                657 fs/quota/quota.c 	if (!sb->s_qcop->get_nextdqblk)
sb                660 fs/quota/quota.c 	if (!qid_has_mapping(sb->s_user_ns, qid))
sb                662 fs/quota/quota.c 	ret = sb->s_qcop->get_nextdqblk(sb, &qid, &qdq);
sb                672 fs/quota/quota.c static int quota_rmxquota(struct super_block *sb, void __user *addr)
sb                678 fs/quota/quota.c 	if (!sb->s_qcop->rm_xquota)
sb                680 fs/quota/quota.c 	return sb->s_qcop->rm_xquota(sb, flags);
sb                684 fs/quota/quota.c static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id,
sb                696 fs/quota/quota.c 	if (!sb->s_qcop)
sb                698 fs/quota/quota.c 	if (!(sb->s_quota_types & (1 << type)))
sb                701 fs/quota/quota.c 	ret = check_quotactl_permission(sb, type, cmd, id);
sb                707 fs/quota/quota.c 		return quota_quotaon(sb, type, id, path);
sb                709 fs/quota/quota.c 		return quota_quotaoff(sb, type);
sb                711 fs/quota/quota.c 		return quota_getfmt(sb, type, addr);
sb                713 fs/quota/quota.c 		return quota_getinfo(sb, type, addr);
sb                715 fs/quota/quota.c 		return quota_setinfo(sb, type, addr);
sb                717 fs/quota/quota.c 		return quota_getquota(sb, type, id, addr);
sb                719 fs/quota/quota.c 		return quota_getnextquota(sb, type, id, addr);
sb                721 fs/quota/quota.c 		return quota_setquota(sb, type, id, addr);
sb                723 fs/quota/quota.c 		if (!sb->s_qcop->quota_sync)
sb                725 fs/quota/quota.c 		return sb->s_qcop->quota_sync(sb, type);
sb                727 fs/quota/quota.c 		return quota_enable(sb, addr);
sb                729 fs/quota/quota.c 		return quota_disable(sb, addr);
sb                731 fs/quota/quota.c 		return quota_rmxquota(sb, addr);
sb                733 fs/quota/quota.c 		return quota_getxstate(sb, type, addr);
sb                735 fs/quota/quota.c 		return quota_getxstatev(sb, type, addr);
sb                737 fs/quota/quota.c 		return quota_setxquota(sb, type, id, addr);
sb                739 fs/quota/quota.c 		return quota_getxquota(sb, type, id, addr);
sb                741 fs/quota/quota.c 		return quota_getnextxquota(sb, type, id, addr);
sb                743 fs/quota/quota.c 		if (sb_rdonly(sb))
sb                792 fs/quota/quota.c 	struct super_block *sb;
sb                802 fs/quota/quota.c 		sb = get_super_exclusive_thawed(bdev);
sb                804 fs/quota/quota.c 		sb = get_super_thawed(bdev);
sb                806 fs/quota/quota.c 		sb = get_super(bdev);
sb                808 fs/quota/quota.c 	if (!sb)
sb                811 fs/quota/quota.c 	return sb;
sb                827 fs/quota/quota.c 	struct super_block *sb = NULL;
sb                858 fs/quota/quota.c 	sb = quotactl_block(special, cmds);
sb                859 fs/quota/quota.c 	if (IS_ERR(sb)) {
sb                860 fs/quota/quota.c 		ret = PTR_ERR(sb);
sb                864 fs/quota/quota.c 	ret = do_quotactl(sb, type, cmds, id, addr, pathp);
sb                867 fs/quota/quota.c 		drop_super(sb);
sb                869 fs/quota/quota.c 		drop_super_exclusive(sb);
sb                 61 fs/quota/quota_tree.c 	struct super_block *sb = info->dqi_sb;
sb                 64 fs/quota/quota_tree.c 	return sb->s_op->quota_read(sb, info->dqi_type, buf,
sb                 70 fs/quota/quota_tree.c 	struct super_block *sb = info->dqi_sb;
sb                 73 fs/quota/quota_tree.c 	ret = sb->s_op->quota_write(sb, info->dqi_type, buf,
sb                 76 fs/quota/quota_tree.c 		quota_error(sb, "dquota write failed");
sb                376 fs/quota/quota_tree.c 	struct super_block *sb = dquot->dq_sb;
sb                387 fs/quota/quota_tree.c 			quota_error(sb, "Error %zd occurred while creating "
sb                396 fs/quota/quota_tree.c 	ret = sb->s_op->quota_write(sb, type, ddquot, info->dqi_entry_size,
sb                399 fs/quota/quota_tree.c 		quota_error(sb, "dquota write failed");
sb                609 fs/quota/quota_tree.c 	struct super_block *sb = dquot->dq_sb;
sb                617 fs/quota/quota_tree.c 		quota_error(sb, "Quota invalidated while reading!");
sb                626 fs/quota/quota_tree.c 				quota_error(sb,"Can't read quota structure "
sb                641 fs/quota/quota_tree.c 	ret = sb->s_op->quota_read(sb, type, ddquot, info->dqi_entry_size,
sb                646 fs/quota/quota_tree.c 		quota_error(sb, "Error while reading quota structure for id %u",
sb                127 fs/quota/quota_v1.c static int v1_check_quota_file(struct super_block *sb, int type)
sb                129 fs/quota/quota_v1.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb                147 fs/quota/quota_v1.c 	size = sb->s_op->quota_read(sb, type, (char *)&dqhead,
sb                155 fs/quota/quota_v1.c 	       " It probably contains newer quota format.\n", sb->s_id);
sb                159 fs/quota/quota_v1.c static int v1_read_file_info(struct super_block *sb, int type)
sb                161 fs/quota/quota_v1.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                166 fs/quota/quota_v1.c 	ret = sb->s_op->quota_read(sb, type, (char *)&dqblk,
sb                186 fs/quota/quota_v1.c static int v1_write_file_info(struct super_block *sb, int type)
sb                188 fs/quota/quota_v1.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                193 fs/quota/quota_v1.c 	ret = sb->s_op->quota_read(sb, type, (char *)&dqblk,
sb                205 fs/quota/quota_v1.c 	ret = sb->s_op->quota_write(sb, type, (char *)&dqblk,
sb                 59 fs/quota/quota_v2.c static int v2_read_header(struct super_block *sb, int type,
sb                 64 fs/quota/quota_v2.c 	size = sb->s_op->quota_read(sb, type, (char *)dqhead,
sb                 67 fs/quota/quota_v2.c 		quota_error(sb, "Failed header read: expected=%zd got=%zd",
sb                 77 fs/quota/quota_v2.c static int v2_check_quota_file(struct super_block *sb, int type)
sb                 83 fs/quota/quota_v2.c 	if (v2_read_header(sb, type, &dqhead))
sb                 92 fs/quota/quota_v2.c static int v2_read_file_info(struct super_block *sb, int type)
sb                 96 fs/quota/quota_v2.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                104 fs/quota/quota_v2.c 	ret = v2_read_header(sb, type, &dqhead);
sb                114 fs/quota/quota_v2.c 	size = sb->s_op->quota_read(sb, type, (char *)&dinfo,
sb                117 fs/quota/quota_v2.c 		quota_error(sb, "Can't read info structure");
sb                147 fs/quota/quota_v2.c 	qinfo->dqi_sb = sb;
sb                169 fs/quota/quota_v2.c static int v2_write_file_info(struct super_block *sb, int type)
sb                172 fs/quota/quota_v2.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                188 fs/quota/quota_v2.c 	size = sb->s_op->quota_write(sb, type, (char *)&dinfo,
sb                192 fs/quota/quota_v2.c 		quota_error(sb, "Can't write info structure");
sb                357 fs/quota/quota_v2.c static int v2_free_file_info(struct super_block *sb, int type)
sb                359 fs/quota/quota_v2.c 	kfree(sb_dqinfo(sb, type)->dqi_priv);
sb                363 fs/quota/quota_v2.c static int v2_get_next_id(struct super_block *sb, struct kqid *qid)
sb                365 fs/quota/quota_v2.c 	struct quota_info *dqopt = sb_dqopt(sb);
sb                369 fs/quota/quota_v2.c 	ret = qtree_get_next_id(sb_dqinfo(sb, qid->type)->dqi_priv, qid);
sb                 63 fs/ramfs/inode.c struct inode *ramfs_get_inode(struct super_block *sb,
sb                 66 fs/ramfs/inode.c 	struct inode * inode = new_inode(sb);
sb                222 fs/ramfs/inode.c static int ramfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                224 fs/ramfs/inode.c 	struct ramfs_fs_info *fsi = sb->s_fs_info;
sb                227 fs/ramfs/inode.c 	sb->s_maxbytes		= MAX_LFS_FILESIZE;
sb                228 fs/ramfs/inode.c 	sb->s_blocksize		= PAGE_SIZE;
sb                229 fs/ramfs/inode.c 	sb->s_blocksize_bits	= PAGE_SHIFT;
sb                230 fs/ramfs/inode.c 	sb->s_magic		= RAMFS_MAGIC;
sb                231 fs/ramfs/inode.c 	sb->s_op		= &ramfs_ops;
sb                232 fs/ramfs/inode.c 	sb->s_time_gran		= 1;
sb                234 fs/ramfs/inode.c 	inode = ramfs_get_inode(sb, NULL, S_IFDIR | fsi->mount_opts.mode, 0);
sb                235 fs/ramfs/inode.c 	sb->s_root = d_make_root(inode);
sb                236 fs/ramfs/inode.c 	if (!sb->s_root)
sb                272 fs/ramfs/inode.c static void ramfs_kill_sb(struct super_block *sb)
sb                274 fs/ramfs/inode.c 	kfree(sb->s_fs_info);
sb                275 fs/ramfs/inode.c 	kill_litter_super(sb);
sb                804 fs/reiserfs/bitmap.c 	struct super_block *sb = hint->th->t_super;
sb                812 fs/reiserfs/bitmap.c 		bm = bmap_hash_id(sb, dirid);
sb                813 fs/reiserfs/bitmap.c 		hash = bm * (sb->s_blocksize << 3);
sb                816 fs/reiserfs/bitmap.c 			hash += sb->s_blocksize / 2;
sb               1393 fs/reiserfs/bitmap.c void reiserfs_cache_bitmap_metadata(struct super_block *sb,
sb               1401 fs/reiserfs/bitmap.c 		reiserfs_error(sb, "reiserfs-2025", "bitmap block %lu is "
sb               1415 fs/reiserfs/bitmap.c struct buffer_head *reiserfs_read_bitmap_block(struct super_block *sb,
sb               1418 fs/reiserfs/bitmap.c 	b_blocknr_t block = (sb->s_blocksize << 3) * bitmap;
sb               1419 fs/reiserfs/bitmap.c 	struct reiserfs_bitmap_info *info = SB_AP_BITMAP(sb) + bitmap;
sb               1427 fs/reiserfs/bitmap.c 			      &REISERFS_SB(sb)->s_properties)))
sb               1428 fs/reiserfs/bitmap.c 		block = REISERFS_SB(sb)->s_sbh->b_blocknr + 1 + bitmap;
sb               1430 fs/reiserfs/bitmap.c 		block = (REISERFS_DISK_OFFSET_IN_BYTES >> sb->s_blocksize_bits) + 1;
sb               1432 fs/reiserfs/bitmap.c 	bh = sb_bread(sb, block);
sb               1434 fs/reiserfs/bitmap.c 		reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) "
sb               1439 fs/reiserfs/bitmap.c 			PROC_INFO_INC(sb, scan_bitmap.wait);
sb               1440 fs/reiserfs/bitmap.c 			depth = reiserfs_write_unlock_nested(sb);
sb               1442 fs/reiserfs/bitmap.c 			reiserfs_write_lock_nested(sb, depth);
sb               1448 fs/reiserfs/bitmap.c 			reiserfs_cache_bitmap_metadata(sb, bh, info);
sb               1454 fs/reiserfs/bitmap.c int reiserfs_init_bitmap_cache(struct super_block *sb)
sb               1457 fs/reiserfs/bitmap.c 	unsigned int bmap_nr = reiserfs_bmap_count(sb);
sb               1465 fs/reiserfs/bitmap.c 	SB_AP_BITMAP(sb) = bitmap;
sb               1470 fs/reiserfs/bitmap.c void reiserfs_free_bitmap_cache(struct super_block *sb)
sb               1472 fs/reiserfs/bitmap.c 	if (SB_AP_BITMAP(sb)) {
sb               1473 fs/reiserfs/bitmap.c 		vfree(SB_AP_BITMAP(sb));
sb               1474 fs/reiserfs/bitmap.c 		SB_AP_BITMAP(sb) = NULL;
sb                834 fs/reiserfs/fix_node.c 	struct super_block *sb = tb->tb_sb;
sb                890 fs/reiserfs/fix_node.c 		new_bh = sb_getblk(sb, *blocknr);
sb                962 fs/reiserfs/fix_node.c 	struct super_block *sb = tb->tb_sb;
sb                991 fs/reiserfs/fix_node.c 	if ((left = sb_find_get_block(sb, left_neighbor_blocknr))) {
sb               2156 fs/reiserfs/fix_node.c 	struct super_block *sb = tb->tb_sb;
sb               2160 fs/reiserfs/fix_node.c 	PROC_INFO_INC(sb, get_neighbors[h]);
sb               2164 fs/reiserfs/fix_node.c 		PROC_INFO_INC(sb, need_l_neighbor[h]);
sb               2177 fs/reiserfs/fix_node.c 		bh = sb_bread(sb, son_number);
sb               2183 fs/reiserfs/fix_node.c 			PROC_INFO_INC(sb, get_neighbors_restart[h]);
sb               2204 fs/reiserfs/fix_node.c 		PROC_INFO_INC(sb, need_r_neighbor[h]);
sb               2217 fs/reiserfs/fix_node.c 		bh = sb_bread(sb, son_number);
sb               2223 fs/reiserfs/fix_node.c 			PROC_INFO_INC(sb, get_neighbors_restart[h]);
sb               2241 fs/reiserfs/fix_node.c static int get_virtual_node_size(struct super_block *sb, struct buffer_head *bh)
sb               2245 fs/reiserfs/fix_node.c 	unsigned long blocksize = sb->s_blocksize;
sb               2313 fs/reiserfs/fix_node.c static void tb_buffer_sanity_check(struct super_block *sb,
sb               2320 fs/reiserfs/fix_node.c 			reiserfs_panic(sb, "jmacd-1", "negative or zero "
sb               2325 fs/reiserfs/fix_node.c 			reiserfs_panic(sb, "jmacd-2", "buffer is not up "
sb               2330 fs/reiserfs/fix_node.c 			reiserfs_panic(sb, "jmacd-3", "buffer is not "
sb               2334 fs/reiserfs/fix_node.c 		if (bh->b_bdev != sb->s_bdev)
sb               2335 fs/reiserfs/fix_node.c 			reiserfs_panic(sb, "jmacd-4", "buffer has wrong "
sb               2339 fs/reiserfs/fix_node.c 		if (bh->b_size != sb->s_blocksize)
sb               2340 fs/reiserfs/fix_node.c 			reiserfs_panic(sb, "jmacd-5", "buffer has wrong "
sb               2344 fs/reiserfs/fix_node.c 		if (bh->b_blocknr > SB_BLOCK_COUNT(sb))
sb               2345 fs/reiserfs/fix_node.c 			reiserfs_panic(sb, "jmacd-6", "buffer block "
sb               2351 fs/reiserfs/fix_node.c static void tb_buffer_sanity_check(struct super_block *sb,
sb               1671 fs/reiserfs/inode.c static struct dentry *reiserfs_get_dentry(struct super_block *sb,
sb               1680 fs/reiserfs/inode.c 	reiserfs_write_lock(sb);
sb               1681 fs/reiserfs/inode.c 	inode = reiserfs_iget(sb, &key);
sb               1687 fs/reiserfs/inode.c 	reiserfs_write_unlock(sb);
sb               1692 fs/reiserfs/inode.c struct dentry *reiserfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb               1710 fs/reiserfs/inode.c 			reiserfs_warning(sb, "reiserfs-13077",
sb               1718 fs/reiserfs/inode.c 	return reiserfs_get_dentry(sb, fid->raw[0], fid->raw[1],
sb               1722 fs/reiserfs/inode.c struct dentry *reiserfs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb               1730 fs/reiserfs/inode.c 	return reiserfs_get_dentry(sb,
sb               1809 fs/reiserfs/inode.c 	struct super_block *sb = th->t_super;
sb               1826 fs/reiserfs/inode.c 	if (old_format_only(sb)) {
sb               1845 fs/reiserfs/inode.c 	retval = search_item(sb, &key, path);
sb               1847 fs/reiserfs/inode.c 		reiserfs_error(sb, "vs-13080",
sb               1853 fs/reiserfs/inode.c 		reiserfs_warning(sb, "vs-13070",
sb               1873 fs/reiserfs/inode.c 	struct super_block *sb = th->t_super;
sb               1888 fs/reiserfs/inode.c 	retval = search_item(sb, &key, path);
sb               1890 fs/reiserfs/inode.c 		reiserfs_error(sb, "vs-13080",
sb               1896 fs/reiserfs/inode.c 		reiserfs_warning(sb, "vs-13080",
sb               1934 fs/reiserfs/inode.c 	struct super_block *sb = dir->i_sb;
sb               1946 fs/reiserfs/inode.c 	depth = reiserfs_write_unlock_nested(sb);
sb               1948 fs/reiserfs/inode.c 	reiserfs_write_lock_nested(sb, depth);
sb               1964 fs/reiserfs/inode.c 	if (old_format_only(sb))
sb               1982 fs/reiserfs/inode.c 	if (old_format_only(sb))
sb               1993 fs/reiserfs/inode.c 		    le32_to_cpu(REISERFS_SB(sb)->s_rs->s_inode_generation);
sb               2027 fs/reiserfs/inode.c 	retval = search_item(sb, &key, &path_to_key);
sb               2037 fs/reiserfs/inode.c 	if (old_format_only(sb)) {
sb               2053 fs/reiserfs/inode.c 	if (old_format_only(sb) || S_ISDIR(mode) || S_ISLNK(mode))
sb               2057 fs/reiserfs/inode.c 	if (old_format_only(sb))
sb               2087 fs/reiserfs/inode.c 		if (!old_format_only(sb))
sb               2104 fs/reiserfs/inode.c 	if (IS_PRIVATE(dir) || dentry == REISERFS_SB(sb)->priv_root) {
sb                 94 fs/reiserfs/journal.c 			struct super_block *sb);
sb                112 fs/reiserfs/journal.c 			      struct super_block *sb,
sb                115 fs/reiserfs/journal.c static void init_journal_hash(struct super_block *sb)
sb                117 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                138 fs/reiserfs/journal.c 							 *sb)
sb                147 fs/reiserfs/journal.c 	bn->data = kzalloc(sb->s_blocksize, GFP_NOFS);
sb                157 fs/reiserfs/journal.c static struct reiserfs_bitmap_node *get_bitmap_node(struct super_block *sb)
sb                159 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                169 fs/reiserfs/journal.c 		memset(bn->data, 0, sb->s_blocksize);
sb                173 fs/reiserfs/journal.c 	bn = allocate_bitmap_node(sb);
sb                180 fs/reiserfs/journal.c static inline void free_bitmap_node(struct super_block *sb,
sb                183 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                194 fs/reiserfs/journal.c static void allocate_bitmap_nodes(struct super_block *sb)
sb                197 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                200 fs/reiserfs/journal.c 		bn = allocate_bitmap_node(sb);
sb                211 fs/reiserfs/journal.c static int set_bit_in_list_bitmap(struct super_block *sb,
sb                215 fs/reiserfs/journal.c 	unsigned int bmap_nr = block / (sb->s_blocksize << 3);
sb                216 fs/reiserfs/journal.c 	unsigned int bit_nr = block % (sb->s_blocksize << 3);
sb                219 fs/reiserfs/journal.c 		jb->bitmaps[bmap_nr] = get_bitmap_node(sb);
sb                225 fs/reiserfs/journal.c static void cleanup_bitmap_list(struct super_block *sb,
sb                232 fs/reiserfs/journal.c 	for (i = 0; i < reiserfs_bmap_count(sb); i++) {
sb                234 fs/reiserfs/journal.c 			free_bitmap_node(sb, jb->bitmaps[i]);
sb                243 fs/reiserfs/journal.c static int free_list_bitmaps(struct super_block *sb,
sb                251 fs/reiserfs/journal.c 		cleanup_bitmap_list(sb, jb);
sb                258 fs/reiserfs/journal.c static int free_bitmap_nodes(struct super_block *sb)
sb                260 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                280 fs/reiserfs/journal.c int reiserfs_allocate_list_bitmaps(struct super_block *sb,
sb                294 fs/reiserfs/journal.c 			reiserfs_warning(sb, "clm-2000", "unable to "
sb                301 fs/reiserfs/journal.c 		free_list_bitmaps(sb, jb_array);
sb                311 fs/reiserfs/journal.c static struct reiserfs_list_bitmap *get_list_bitmap(struct super_block *sb,
sb                316 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                324 fs/reiserfs/journal.c 			flush_commit_list(sb,
sb                369 fs/reiserfs/journal.c static struct reiserfs_journal_cnode *get_cnode(struct super_block *sb)
sb                372 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                374 fs/reiserfs/journal.c 	reiserfs_check_lock_depth(sb, "get_cnode");
sb                396 fs/reiserfs/journal.c static void free_cnode(struct super_block *sb,
sb                399 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                401 fs/reiserfs/journal.c 	reiserfs_check_lock_depth(sb, "free_cnode");
sb                426 fs/reiserfs/journal.c 								  *sb,
sb                433 fs/reiserfs/journal.c 	cn = journal_hash(table, sb, bl);
sb                435 fs/reiserfs/journal.c 		if (cn->blocknr == bl && cn->sb == sb)
sb                461 fs/reiserfs/journal.c int reiserfs_in_journal(struct super_block *sb,
sb                465 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb                473 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.in_journal);
sb                482 fs/reiserfs/journal.c 			PROC_INFO_INC(sb, journal.in_journal_bitmap);
sb                492 fs/reiserfs/journal.c 						       sb->s_blocksize << 3,
sb                499 fs/reiserfs/journal.c 	bl = bmap_nr * (sb->s_blocksize << 3) + bit_nr;
sb                503 fs/reiserfs/journal.c 		get_journal_hash_dev(sb, journal->j_list_hash_table, bl))) {
sb                508 fs/reiserfs/journal.c 	if ((cn = get_journal_hash_dev(sb, journal->j_hash_table, bl))) {
sb                513 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.in_journal_reusable);
sb                524 fs/reiserfs/journal.c 	cn_orig = journal_hash(table, cn->sb, cn->blocknr);
sb                530 fs/reiserfs/journal.c 	journal_hash(table, cn->sb, cn->blocknr) = cn;
sb                534 fs/reiserfs/journal.c static inline void lock_journal(struct super_block *sb)
sb                536 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.lock_journal);
sb                538 fs/reiserfs/journal.c 	reiserfs_mutex_lock_safe(&SB_JOURNAL(sb)->j_mutex, sb);
sb                542 fs/reiserfs/journal.c static inline void unlock_journal(struct super_block *sb)
sb                544 fs/reiserfs/journal.c 	mutex_unlock(&SB_JOURNAL(sb)->j_mutex);
sb                568 fs/reiserfs/journal.c static void cleanup_freed_for_journal_list(struct super_block *sb,
sb                574 fs/reiserfs/journal.c 		cleanup_bitmap_list(sb, jb);
sb               1173 fs/reiserfs/journal.c 	struct super_block *sb = cn->sb;
sb               1178 fs/reiserfs/journal.c 		if (cn->sb == sb && cn->blocknr == blocknr && cn->jlist) {
sb               1197 fs/reiserfs/journal.c static void remove_all_from_journal_list(struct super_block *sb,
sb               1201 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               1212 fs/reiserfs/journal.c 				reiserfs_warning(sb, "reiserfs-2201",
sb               1218 fs/reiserfs/journal.c 			remove_journal_hash(sb, journal->j_list_hash_table,
sb               1223 fs/reiserfs/journal.c 		free_cnode(sb, last);
sb               1236 fs/reiserfs/journal.c static int _update_journal_header_block(struct super_block *sb,
sb               1241 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               1249 fs/reiserfs/journal.c 			depth = reiserfs_write_unlock_nested(sb);
sb               1251 fs/reiserfs/journal.c 			reiserfs_write_lock_nested(sb, depth);
sb               1254 fs/reiserfs/journal.c 				reiserfs_warning(sb, "journal-699",
sb               1269 fs/reiserfs/journal.c 		depth = reiserfs_write_unlock_nested(sb);
sb               1271 fs/reiserfs/journal.c 		if (reiserfs_barrier_flush(sb))
sb               1277 fs/reiserfs/journal.c 		reiserfs_write_lock_nested(sb, depth);
sb               1279 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-837",
sb               1287 fs/reiserfs/journal.c static int update_journal_header_block(struct super_block *sb,
sb               1291 fs/reiserfs/journal.c 	return _update_journal_header_block(sb, offset, trans_id);
sb               1298 fs/reiserfs/journal.c static int flush_older_journal_lists(struct super_block *sb,
sb               1303 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               1319 fs/reiserfs/journal.c 		flush_journal_list(sb, other_jl, 0);
sb               1840 fs/reiserfs/journal.c static void remove_journal_hash(struct super_block *sb,
sb               1848 fs/reiserfs/journal.c 	head = &(journal_hash(table, sb, block));
sb               1854 fs/reiserfs/journal.c 		if (cur->blocknr == block && cur->sb == sb
sb               1866 fs/reiserfs/journal.c 			cur->sb = NULL;
sb               1881 fs/reiserfs/journal.c static void free_journal_ram(struct super_block *sb)
sb               1883 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               1888 fs/reiserfs/journal.c 	free_list_bitmaps(sb, journal->j_list_bitmap);
sb               1889 fs/reiserfs/journal.c 	free_bitmap_nodes(sb);	/* must be after free_list_bitmaps */
sb               1897 fs/reiserfs/journal.c 	release_journal_dev(sb, journal);
sb               1906 fs/reiserfs/journal.c 			      struct super_block *sb, int error)
sb               1909 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               1915 fs/reiserfs/journal.c 	if (!error && !sb_rdonly(sb)) {
sb               1924 fs/reiserfs/journal.c 		if (!journal_join(&myth, sb)) {
sb               1925 fs/reiserfs/journal.c 			reiserfs_prepare_for_journal(sb,
sb               1926 fs/reiserfs/journal.c 						     SB_BUFFER_WITH_SB(sb),
sb               1928 fs/reiserfs/journal.c 			journal_mark_dirty(&myth, SB_BUFFER_WITH_SB(sb));
sb               1936 fs/reiserfs/journal.c 		if (!journal_join_abort(&myth, sb)) {
sb               1937 fs/reiserfs/journal.c 			reiserfs_prepare_for_journal(sb,
sb               1938 fs/reiserfs/journal.c 						     SB_BUFFER_WITH_SB(sb),
sb               1940 fs/reiserfs/journal.c 			journal_mark_dirty(&myth, SB_BUFFER_WITH_SB(sb));
sb               1950 fs/reiserfs/journal.c 	reiserfs_write_unlock(sb);
sb               1957 fs/reiserfs/journal.c 	reiserfs_cancel_old_flush(sb);
sb               1959 fs/reiserfs/journal.c 	cancel_delayed_work_sync(&SB_JOURNAL(sb)->j_work);
sb               1961 fs/reiserfs/journal.c 	free_journal_ram(sb);
sb               1963 fs/reiserfs/journal.c 	reiserfs_write_lock(sb);
sb               1970 fs/reiserfs/journal.c 		    struct super_block *sb)
sb               1972 fs/reiserfs/journal.c 	return do_journal_release(th, sb, 0);
sb               1977 fs/reiserfs/journal.c 			  struct super_block *sb)
sb               1979 fs/reiserfs/journal.c 	return do_journal_release(th, sb, 1);
sb               1986 fs/reiserfs/journal.c static int journal_compare_desc_commit(struct super_block *sb,
sb               1992 fs/reiserfs/journal.c 	    get_commit_trans_len(commit) > SB_JOURNAL(sb)->j_trans_max ||
sb               2005 fs/reiserfs/journal.c static int journal_transaction_is_valid(struct super_block *sb,
sb               2023 fs/reiserfs/journal.c 			reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2033 fs/reiserfs/journal.c 			reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2041 fs/reiserfs/journal.c 		if (get_desc_trans_len(desc) > SB_JOURNAL(sb)->j_trans_max) {
sb               2042 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-2018",
sb               2048 fs/reiserfs/journal.c 		offset = d_bh->b_blocknr - SB_ONDISK_JOURNAL_1st_BLOCK(sb);
sb               2055 fs/reiserfs/journal.c 		    journal_bread(sb,
sb               2056 fs/reiserfs/journal.c 				  SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2058 fs/reiserfs/journal.c 				    1) % SB_ONDISK_JOURNAL_SIZE(sb)));
sb               2062 fs/reiserfs/journal.c 		if (journal_compare_desc_commit(sb, desc, commit)) {
sb               2063 fs/reiserfs/journal.c 			reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2067 fs/reiserfs/journal.c 				       SB_ONDISK_JOURNAL_1st_BLOCK(sb),
sb               2074 fs/reiserfs/journal.c 				reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2083 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2087 fs/reiserfs/journal.c 			       SB_ONDISK_JOURNAL_1st_BLOCK(sb),
sb               2110 fs/reiserfs/journal.c static int journal_read_transaction(struct super_block *sb,
sb               2116 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               2128 fs/reiserfs/journal.c 	d_bh = journal_bread(sb, cur_dblock);
sb               2132 fs/reiserfs/journal.c 	trans_offset = d_bh->b_blocknr - SB_ONDISK_JOURNAL_1st_BLOCK(sb);
sb               2133 fs/reiserfs/journal.c 	reiserfs_debug(sb, REISERFS_DEBUG_CODE, "journal-1037: "
sb               2135 fs/reiserfs/journal.c 		       d_bh->b_blocknr - SB_ONDISK_JOURNAL_1st_BLOCK(sb),
sb               2138 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE, "journal-1039: "
sb               2141 fs/reiserfs/journal.c 			       SB_ONDISK_JOURNAL_1st_BLOCK(sb));
sb               2146 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE, "journal-1146: "
sb               2153 fs/reiserfs/journal.c 	c_bh = journal_bread(sb, SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2155 fs/reiserfs/journal.c 			      SB_ONDISK_JOURNAL_SIZE(sb)));
sb               2161 fs/reiserfs/journal.c 	if (journal_compare_desc_commit(sb, desc, commit)) {
sb               2162 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2166 fs/reiserfs/journal.c 			       SB_ONDISK_JOURNAL_1st_BLOCK(sb),
sb               2174 fs/reiserfs/journal.c 	if (bdev_read_only(sb->s_bdev)) {
sb               2175 fs/reiserfs/journal.c 		reiserfs_warning(sb, "clm-2076",
sb               2198 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-1169",
sb               2203 fs/reiserfs/journal.c 	trans_half = journal_trans_half(sb->s_blocksize);
sb               2206 fs/reiserfs/journal.c 		    journal_getblk(sb,
sb               2207 fs/reiserfs/journal.c 				   SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2209 fs/reiserfs/journal.c 				    i) % SB_ONDISK_JOURNAL_SIZE(sb));
sb               2212 fs/reiserfs/journal.c 			    sb_getblk(sb,
sb               2216 fs/reiserfs/journal.c 			    sb_getblk(sb,
sb               2220 fs/reiserfs/journal.c 		if (real_blocks[i]->b_blocknr > SB_BLOCK_COUNT(sb)) {
sb               2221 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-1207",
sb               2229 fs/reiserfs/journal.c 		    (sb, real_blocks[i]->b_blocknr)) {
sb               2230 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-1204",
sb               2249 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-1212",
sb               2274 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-1226",
sb               2288 fs/reiserfs/journal.c 	    SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2290 fs/reiserfs/journal.c 	      2) % SB_ONDISK_JOURNAL_SIZE(sb));
sb               2291 fs/reiserfs/journal.c 	reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2293 fs/reiserfs/journal.c 		       cur_dblock - SB_ONDISK_JOURNAL_1st_BLOCK(sb));
sb               2299 fs/reiserfs/journal.c 	journal->j_start = cur_dblock - SB_ONDISK_JOURNAL_1st_BLOCK(sb);
sb               2369 fs/reiserfs/journal.c static int journal_read(struct super_block *sb)
sb               2371 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               2386 fs/reiserfs/journal.c 	cur_dblock = SB_ONDISK_JOURNAL_1st_BLOCK(sb);
sb               2387 fs/reiserfs/journal.c 	reiserfs_info(sb, "checking transaction log (%pg)\n",
sb               2396 fs/reiserfs/journal.c 	journal->j_header_bh = journal_bread(sb,
sb               2397 fs/reiserfs/journal.c 					     SB_ONDISK_JOURNAL_1st_BLOCK(sb)
sb               2398 fs/reiserfs/journal.c 					     + SB_ONDISK_JOURNAL_SIZE(sb));
sb               2404 fs/reiserfs/journal.c 	    SB_ONDISK_JOURNAL_SIZE(sb)
sb               2407 fs/reiserfs/journal.c 		    SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2411 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2424 fs/reiserfs/journal.c 		    journal_bread(sb,
sb               2425 fs/reiserfs/journal.c 				  SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2427 fs/reiserfs/journal.c 		ret = journal_transaction_is_valid(sb, d_bh, NULL, NULL);
sb               2442 fs/reiserfs/journal.c 	       (SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2443 fs/reiserfs/journal.c 		SB_ONDISK_JOURNAL_SIZE(sb))) {
sb               2450 fs/reiserfs/journal.c 				    sb->s_blocksize,
sb               2451 fs/reiserfs/journal.c 				    SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2452 fs/reiserfs/journal.c 				    SB_ONDISK_JOURNAL_SIZE(sb));
sb               2454 fs/reiserfs/journal.c 		    journal_transaction_is_valid(sb, d_bh,
sb               2463 fs/reiserfs/journal.c 				reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2468 fs/reiserfs/journal.c 					       (sb), oldest_trans_id);
sb               2473 fs/reiserfs/journal.c 				reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2478 fs/reiserfs/journal.c 					       (sb), oldest_trans_id);
sb               2482 fs/reiserfs/journal.c 				reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2497 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2500 fs/reiserfs/journal.c 			       cur_dblock - SB_ONDISK_JOURNAL_1st_BLOCK(sb),
sb               2507 fs/reiserfs/journal.c 		    journal_read_transaction(sb, cur_dblock, oldest_start,
sb               2515 fs/reiserfs/journal.c 		    SB_ONDISK_JOURNAL_1st_BLOCK(sb) + journal->j_start;
sb               2522 fs/reiserfs/journal.c 		reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               2544 fs/reiserfs/journal.c 	reiserfs_debug(sb, REISERFS_DEBUG_CODE, "journal-1299: Setting "
sb               2548 fs/reiserfs/journal.c 		reiserfs_info(sb,
sb               2553 fs/reiserfs/journal.c 	reiserfs_write_lock(sb);
sb               2554 fs/reiserfs/journal.c 	if (!bdev_read_only(sb->s_bdev) &&
sb               2555 fs/reiserfs/journal.c 	    _update_journal_header_block(sb, journal->j_start,
sb               2557 fs/reiserfs/journal.c 		reiserfs_write_unlock(sb);
sb               2564 fs/reiserfs/journal.c 	reiserfs_write_unlock(sb);
sb               2583 fs/reiserfs/journal.c static void journal_list_init(struct super_block *sb)
sb               2585 fs/reiserfs/journal.c 	SB_JOURNAL(sb)->j_current_jl = alloc_journal_list(sb);
sb               2667 fs/reiserfs/journal.c static int check_advise_trans_params(struct super_block *sb,
sb               2673 fs/reiserfs/journal.c 		if (sb->s_blocksize < REISERFS_STANDARD_BLKSIZE)
sb               2674 fs/reiserfs/journal.c 		        ratio = REISERFS_STANDARD_BLKSIZE / sb->s_blocksize;
sb               2678 fs/reiserfs/journal.c 		    SB_ONDISK_JOURNAL_SIZE(sb) / journal->j_trans_max <
sb               2680 fs/reiserfs/journal.c 			reiserfs_warning(sb, "sh-462",
sb               2687 fs/reiserfs/journal.c 			reiserfs_warning(sb, "sh-463",
sb               2699 fs/reiserfs/journal.c 		if (sb->s_blocksize != REISERFS_STANDARD_BLKSIZE) {
sb               2700 fs/reiserfs/journal.c 			reiserfs_warning(sb, "sh-464", "bad blocksize (%u)",
sb               2701 fs/reiserfs/journal.c 					 sb->s_blocksize);
sb               2712 fs/reiserfs/journal.c int journal_init(struct super_block *sb, const char *j_dev_name,
sb               2715 fs/reiserfs/journal.c 	int num_cnodes = SB_ONDISK_JOURNAL_SIZE(sb) * 2;
sb               2723 fs/reiserfs/journal.c 	journal = SB_JOURNAL(sb) = vzalloc(sizeof(struct reiserfs_journal));
sb               2725 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-1256",
sb               2734 fs/reiserfs/journal.c 	if (reiserfs_allocate_list_bitmaps(sb, journal->j_list_bitmap,
sb               2735 fs/reiserfs/journal.c 					   reiserfs_bmap_count(sb)))
sb               2738 fs/reiserfs/journal.c 	allocate_bitmap_nodes(sb);
sb               2741 fs/reiserfs/journal.c 	SB_JOURNAL_1st_RESERVED_BLOCK(sb) = (old_format ?
sb               2743 fs/reiserfs/journal.c 						 / sb->s_blocksize +
sb               2744 fs/reiserfs/journal.c 						 reiserfs_bmap_count(sb) +
sb               2747 fs/reiserfs/journal.c 						 sb->s_blocksize + 2);
sb               2753 fs/reiserfs/journal.c 	if (!SB_ONDISK_JOURNAL_DEVICE(sb) &&
sb               2754 fs/reiserfs/journal.c 	    (SB_JOURNAL_1st_RESERVED_BLOCK(sb) +
sb               2755 fs/reiserfs/journal.c 	     SB_ONDISK_JOURNAL_SIZE(sb) > sb->s_blocksize * 8)) {
sb               2756 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-1393",
sb               2760 fs/reiserfs/journal.c 				 SB_JOURNAL_1st_RESERVED_BLOCK(sb),
sb               2761 fs/reiserfs/journal.c 				 SB_ONDISK_JOURNAL_SIZE(sb),
sb               2762 fs/reiserfs/journal.c 				 sb->s_blocksize);
sb               2766 fs/reiserfs/journal.c 	if (journal_init_dev(sb, journal, j_dev_name) != 0) {
sb               2767 fs/reiserfs/journal.c 		reiserfs_warning(sb, "sh-462",
sb               2772 fs/reiserfs/journal.c 	rs = SB_DISK_SUPER_BLOCK(sb);
sb               2775 fs/reiserfs/journal.c 	bhjh = journal_bread(sb,
sb               2776 fs/reiserfs/journal.c 			     SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               2777 fs/reiserfs/journal.c 			     SB_ONDISK_JOURNAL_SIZE(sb));
sb               2779 fs/reiserfs/journal.c 		reiserfs_warning(sb, "sh-459",
sb               2789 fs/reiserfs/journal.c 		reiserfs_warning(sb, "sh-460",
sb               2805 fs/reiserfs/journal.c 	if (check_advise_trans_params(sb, journal) != 0)
sb               2814 fs/reiserfs/journal.c 	reiserfs_info(sb, "journal params: device %pg, size %u, "
sb               2818 fs/reiserfs/journal.c 		      SB_ONDISK_JOURNAL_SIZE(sb),
sb               2819 fs/reiserfs/journal.c 		      SB_ONDISK_JOURNAL_1st_BLOCK(sb),
sb               2827 fs/reiserfs/journal.c 	journal_list_init(sb);
sb               2859 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-2004", "Journal cnode memory "
sb               2867 fs/reiserfs/journal.c 	init_journal_hash(sb);
sb               2875 fs/reiserfs/journal.c 	reiserfs_write_lock(sb);
sb               2876 fs/reiserfs/journal.c 	jl->j_list_bitmap = get_list_bitmap(sb, jl);
sb               2877 fs/reiserfs/journal.c 	reiserfs_write_unlock(sb);
sb               2879 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-2005",
sb               2884 fs/reiserfs/journal.c 	ret = journal_read(sb);
sb               2886 fs/reiserfs/journal.c 		reiserfs_warning(sb, "reiserfs-2006",
sb               2892 fs/reiserfs/journal.c 	journal->j_work_sb = sb;
sb               2895 fs/reiserfs/journal.c 	free_journal_ram(sb);
sb               2981 fs/reiserfs/journal.c static void let_transaction_grow(struct super_block *sb, unsigned int trans_id)
sb               2983 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               2988 fs/reiserfs/journal.c 		depth = reiserfs_write_unlock_nested(sb);
sb               2990 fs/reiserfs/journal.c 		reiserfs_write_lock_nested(sb, depth);
sb               2996 fs/reiserfs/journal.c 			queue_log_writer(sb);
sb               3014 fs/reiserfs/journal.c 			      struct super_block *sb, unsigned long nblocks,
sb               3019 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3025 fs/reiserfs/journal.c 	reiserfs_check_lock_depth(sb, "journal_begin");
sb               3028 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.journal_being);
sb               3031 fs/reiserfs/journal.c 	th->t_super = sb;
sb               3034 fs/reiserfs/journal.c 	lock_journal(sb);
sb               3036 fs/reiserfs/journal.c 		unlock_journal(sb);
sb               3043 fs/reiserfs/journal.c 		unlock_journal(sb);
sb               3044 fs/reiserfs/journal.c 		depth = reiserfs_write_unlock_nested(sb);
sb               3045 fs/reiserfs/journal.c 		reiserfs_wait_on_write_block(sb);
sb               3046 fs/reiserfs/journal.c 		reiserfs_write_lock_nested(sb, depth);
sb               3047 fs/reiserfs/journal.c 		PROC_INFO_INC(sb, journal.journal_relock_writers);
sb               3071 fs/reiserfs/journal.c 		unlock_journal(sb);
sb               3079 fs/reiserfs/journal.c 				queue_log_writer(sb);
sb               3090 fs/reiserfs/journal.c 				queue_log_writer(sb);
sb               3094 fs/reiserfs/journal.c 		retval = journal_join(&myth, sb);
sb               3108 fs/reiserfs/journal.c 		PROC_INFO_INC(sb, journal.journal_relock_wcount);
sb               3120 fs/reiserfs/journal.c 	unlock_journal(sb);
sb               3131 fs/reiserfs/journal.c 	th->t_super = sb;
sb               3183 fs/reiserfs/journal.c 			struct super_block *sb)
sb               3193 fs/reiserfs/journal.c 	return do_journal_begin_r(th, sb, 1, JBEGIN_JOIN);
sb               3197 fs/reiserfs/journal.c 		       struct super_block *sb)
sb               3207 fs/reiserfs/journal.c 	return do_journal_begin_r(th, sb, 1, JBEGIN_ABORT);
sb               3211 fs/reiserfs/journal.c 		  struct super_block *sb, unsigned long nblocks)
sb               3219 fs/reiserfs/journal.c 		if (cur_th->t_super == sb) {
sb               3224 fs/reiserfs/journal.c 				reiserfs_warning(sb, "reiserfs-2005",
sb               3234 fs/reiserfs/journal.c 			reiserfs_warning(sb, "clm-2100",
sb               3242 fs/reiserfs/journal.c 	ret = do_journal_begin_r(th, sb, nblocks, JBEGIN_REG);
sb               3270 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
sb               3271 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3277 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.mark_dirty);
sb               3288 fs/reiserfs/journal.c 		PROC_INFO_INC(sb, journal.mark_dirty_already);
sb               3298 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-1777",
sb               3309 fs/reiserfs/journal.c 		reiserfs_warning(sb, "journal-1409",
sb               3327 fs/reiserfs/journal.c 		PROC_INFO_INC(sb, journal.mark_dirty_notjournal);
sb               3339 fs/reiserfs/journal.c 		cn = get_cnode(sb);
sb               3341 fs/reiserfs/journal.c 			reiserfs_panic(sb, "journal-4", "get_cnode failed!");
sb               3353 fs/reiserfs/journal.c 		cn->sb = sb;
sb               3370 fs/reiserfs/journal.c 	reiserfs_schedule_old_flush(sb);
sb               3376 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
sb               3378 fs/reiserfs/journal.c 		reiserfs_warning(sb, "REISER-NESTING",
sb               3415 fs/reiserfs/journal.c static int remove_from_transaction(struct super_block *sb,
sb               3420 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3423 fs/reiserfs/journal.c 	cn = get_journal_hash_dev(sb, journal->j_hash_table, blocknr);
sb               3440 fs/reiserfs/journal.c 	remove_journal_hash(sb, journal->j_hash_table, NULL,
sb               3450 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-1752",
sb               3457 fs/reiserfs/journal.c 	free_cnode(sb, cn);
sb               3474 fs/reiserfs/journal.c 	struct super_block *sb = cn->sb;
sb               3485 fs/reiserfs/journal.c 		if (cur->jlist && cur->bh && cur->blocknr && cur->sb == sb &&
sb               3499 fs/reiserfs/journal.c 		    cur->blocknr && cur->sb == sb && cur->blocknr == blocknr) {
sb               3513 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
sb               3514 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3520 fs/reiserfs/journal.c 		reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb),
sb               3522 fs/reiserfs/journal.c 		journal_mark_dirty(th, SB_BUFFER_WITH_SB(sb));
sb               3532 fs/reiserfs/journal.c 	struct super_block *sb = journal->j_work_sb;
sb               3536 fs/reiserfs/journal.c 	reiserfs_write_lock(sb);
sb               3541 fs/reiserfs/journal.c 		flush_commit_list(sb, jl, 1);
sb               3543 fs/reiserfs/journal.c 	reiserfs_write_unlock(sb);
sb               3550 fs/reiserfs/journal.c void reiserfs_flush_old_commits(struct super_block *sb)
sb               3554 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3572 fs/reiserfs/journal.c 		if (!journal_join(&th, sb)) {
sb               3573 fs/reiserfs/journal.c 			reiserfs_prepare_for_journal(sb,
sb               3574 fs/reiserfs/journal.c 						     SB_BUFFER_WITH_SB(sb),
sb               3576 fs/reiserfs/journal.c 			journal_mark_dirty(&th, SB_BUFFER_WITH_SB(sb));
sb               3611 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
sb               3612 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3655 fs/reiserfs/journal.c 			unlock_journal(sb);
sb               3663 fs/reiserfs/journal.c 					queue_log_writer(sb);
sb               3665 fs/reiserfs/journal.c 					lock_journal(sb);
sb               3670 fs/reiserfs/journal.c 					unlock_journal(sb);
sb               3676 fs/reiserfs/journal.c 			    && journal_list_still_alive(sb, trans_id)
sb               3678 fs/reiserfs/journal.c 				flush_commit_list(sb, jl, 1);
sb               3682 fs/reiserfs/journal.c 		unlock_journal(sb);
sb               3699 fs/reiserfs/journal.c 		unlock_journal(sb);
sb               3703 fs/reiserfs/journal.c 	if (journal->j_start > SB_ONDISK_JOURNAL_SIZE(sb)) {
sb               3704 fs/reiserfs/journal.c 		reiserfs_panic(sb, "journal-003",
sb               3729 fs/reiserfs/journal.c 		       struct super_block *sb, b_blocknr_t blocknr)
sb               3731 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3738 fs/reiserfs/journal.c 	cn = get_journal_hash_dev(sb, journal->j_hash_table, blocknr);
sb               3748 fs/reiserfs/journal.c 		cleaned = remove_from_transaction(sb, blocknr, cleaned);
sb               3756 fs/reiserfs/journal.c 			reiserfs_panic(sb, "journal-1702",
sb               3759 fs/reiserfs/journal.c 		set_bit_in_list_bitmap(sb, blocknr, jb);
sb               3767 fs/reiserfs/journal.c 		cleaned = remove_from_transaction(sb, blocknr, cleaned);
sb               3773 fs/reiserfs/journal.c 		cn = get_journal_hash_dev(sb, journal->j_list_hash_table,
sb               3776 fs/reiserfs/journal.c 			if (sb == cn->sb && blocknr == cn->blocknr) {
sb               3794 fs/reiserfs/journal.c 							reiserfs_warning(sb,
sb               3834 fs/reiserfs/journal.c 	struct super_block *sb = inode->i_sb;
sb               3835 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3848 fs/reiserfs/journal.c 		let_transaction_grow(sb, id);
sb               3853 fs/reiserfs/journal.c 		ret = journal_begin(&th, sb, 1);
sb               3859 fs/reiserfs/journal.c 			reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb),
sb               3861 fs/reiserfs/journal.c 			journal_mark_dirty(&th, SB_BUFFER_WITH_SB(sb));
sb               3885 fs/reiserfs/journal.c 			flush_commit_list(sb, jl, 1);
sb               3912 fs/reiserfs/journal.c void reiserfs_restore_prepared_buffer(struct super_block *sb,
sb               3915 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               3916 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.restore_prepared);
sb               3923 fs/reiserfs/journal.c 		reiserfs_write_lock(sb);
sb               3924 fs/reiserfs/journal.c 		cn = get_journal_hash_dev(sb,
sb               3931 fs/reiserfs/journal.c 		reiserfs_write_unlock(sb);
sb               3943 fs/reiserfs/journal.c int reiserfs_prepare_for_journal(struct super_block *sb,
sb               3946 fs/reiserfs/journal.c 	PROC_INFO_INC(sb, journal.prepare);
sb               3974 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
sb               3975 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               4007 fs/reiserfs/journal.c 	reiserfs_check_lock_depth(sb, "journal end");
sb               4009 fs/reiserfs/journal.c 		reiserfs_prepare_for_journal(sb, SB_BUFFER_WITH_SB(sb),
sb               4011 fs/reiserfs/journal.c 		journal_mark_dirty(th, SB_BUFFER_WITH_SB(sb));
sb               4014 fs/reiserfs/journal.c 	lock_journal(sb);
sb               4030 fs/reiserfs/journal.c 		reiserfs_schedule_old_flush(sb);
sb               4031 fs/reiserfs/journal.c 		wake_queued_writers(sb);
sb               4032 fs/reiserfs/journal.c 		reiserfs_async_progress_wait(sb);
sb               4065 fs/reiserfs/journal.c 	    journal_getblk(sb,
sb               4066 fs/reiserfs/journal.c 			   SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               4078 fs/reiserfs/journal.c 	c_bh = journal_getblk(sb, SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               4080 fs/reiserfs/journal.c 				1) % SB_ONDISK_JOURNAL_SIZE(sb)));
sb               4095 fs/reiserfs/journal.c 	reiserfs_mutex_lock_safe(&jl->j_commit_mutex, sb);
sb               4115 fs/reiserfs/journal.c 	trans_half = journal_trans_half(sb->s_blocksize);
sb               4118 fs/reiserfs/journal.c 			jl_cn = get_cnode(sb);
sb               4120 fs/reiserfs/journal.c 				reiserfs_panic(sb, "journal-1676",
sb               4137 fs/reiserfs/journal.c 			    (sb, cn->bh->b_blocknr)) {
sb               4138 fs/reiserfs/journal.c 				reiserfs_panic(sb, "journal-2332",
sb               4145 fs/reiserfs/journal.c 			jl_cn->sb = sb;
sb               4193 fs/reiserfs/journal.c 			    journal_getblk(sb,
sb               4194 fs/reiserfs/journal.c 					   SB_ONDISK_JOURNAL_1st_BLOCK(sb) +
sb               4197 fs/reiserfs/journal.c 					    SB_ONDISK_JOURNAL_SIZE(sb)));
sb               4214 fs/reiserfs/journal.c 			reiserfs_warning(sb, "journal-2048",
sb               4220 fs/reiserfs/journal.c 		free_cnode(sb, cn);
sb               4222 fs/reiserfs/journal.c 		reiserfs_cond_resched(sb);
sb               4231 fs/reiserfs/journal.c 	journal->j_current_jl = alloc_journal_list(sb);
sb               4241 fs/reiserfs/journal.c 	     2) % SB_ONDISK_JOURNAL_SIZE(sb);
sb               4256 fs/reiserfs/journal.c 	init_journal_hash(sb);
sb               4272 fs/reiserfs/journal.c 		depth = reiserfs_write_unlock_nested(sb);
sb               4275 fs/reiserfs/journal.c 		reiserfs_write_lock_nested(sb, depth);
sb               4289 fs/reiserfs/journal.c 		flush_commit_list(sb, jl, 1);
sb               4290 fs/reiserfs/journal.c 		flush_journal_list(sb, jl, 1);
sb               4296 fs/reiserfs/journal.c 		if (sb->s_flags & SB_ACTIVE)
sb               4297 fs/reiserfs/journal.c 			queue_delayed_work(REISERFS_SB(sb)->commit_wq,
sb               4312 fs/reiserfs/journal.c 				flush_used_journal_lists(sb, temp_jl);
sb               4316 fs/reiserfs/journal.c 				   SB_ONDISK_JOURNAL_SIZE(sb)) {
sb               4327 fs/reiserfs/journal.c 			   SB_ONDISK_JOURNAL_SIZE(sb)) {
sb               4329 fs/reiserfs/journal.c 			     SB_ONDISK_JOURNAL_SIZE(sb)) >=
sb               4331 fs/reiserfs/journal.c 				flush_used_journal_lists(sb, temp_jl);
sb               4346 fs/reiserfs/journal.c 	    get_list_bitmap(sb, journal->j_current_jl);
sb               4349 fs/reiserfs/journal.c 		reiserfs_panic(sb, "journal-1996",
sb               4354 fs/reiserfs/journal.c 	unlock_journal(sb);
sb               4360 fs/reiserfs/journal.c 	    journal_list_still_alive(sb, commit_trans_id)) {
sb               4361 fs/reiserfs/journal.c 		flush_commit_list(sb, jl, 1);
sb               4364 fs/reiserfs/journal.c 	reiserfs_check_lock_depth(sb, "journal end2");
sb               4372 fs/reiserfs/journal.c 	th->t_super = sb;
sb               4378 fs/reiserfs/journal.c void reiserfs_abort_journal(struct super_block *sb, int errno)
sb               4380 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(sb);
sb               4387 fs/reiserfs/journal.c 	sb->s_flags |= SB_RDONLY;
sb               1000 fs/reiserfs/lbalance.c 		struct super_block *sb = NULL;
sb               1002 fs/reiserfs/lbalance.c 			sb = bi->tb->tb_sb;
sb               1004 fs/reiserfs/lbalance.c 		reiserfs_panic(sb, "vs-10177",
sb                 87 fs/reiserfs/lock.c void reiserfs_check_lock_depth(struct super_block *sb, char *caller)
sb                 89 fs/reiserfs/lock.c 	struct reiserfs_sb_info *sb_i = REISERFS_SB(sb);
sb                 95 fs/reiserfs/lock.c void reiserfs_lock_check_recursive(struct super_block *sb)
sb                 97 fs/reiserfs/lock.c 	struct reiserfs_sb_info *sb_i = REISERFS_SB(sb);
sb                120 fs/reiserfs/namei.c int search_by_entry_key(struct super_block *sb, const struct cpu_key *key,
sb                125 fs/reiserfs/namei.c 	retval = search_item(sb, key, path);
sb                129 fs/reiserfs/namei.c 			reiserfs_error(sb, "vs-7000", "search_by_key "
sb                144 fs/reiserfs/namei.c 		reiserfs_error(sb, "vs-7002", "no path to here");
sb                154 fs/reiserfs/namei.c 		reiserfs_panic(sb, "vs-7005", "found item %h is not directory "
sb                285 fs/reiserfs/prints.c void __reiserfs_warning(struct super_block *sb, const char *id,
sb                289 fs/reiserfs/prints.c 	if (sb)
sb                291 fs/reiserfs/prints.c 		       "%s\n", sb->s_id, id ? id : "", id ? " " : "",
sb                299 fs/reiserfs/prints.c void reiserfs_info(struct super_block *sb, const char *fmt, ...)
sb                302 fs/reiserfs/prints.c 	if (sb)
sb                304 fs/reiserfs/prints.c 		       sb->s_id, error_buf);
sb                375 fs/reiserfs/prints.c void __reiserfs_panic(struct super_block *sb, const char *id,
sb                383 fs/reiserfs/prints.c 	if (sb)
sb                385 fs/reiserfs/prints.c 		      sb->s_id, id ? id : "", id ? " " : "",
sb                393 fs/reiserfs/prints.c void __reiserfs_error(struct super_block *sb, const char *id,
sb                398 fs/reiserfs/prints.c 	BUG_ON(sb == NULL);
sb                400 fs/reiserfs/prints.c 	if (reiserfs_error_panic(sb))
sb                401 fs/reiserfs/prints.c 		__reiserfs_panic(sb, id, function, error_buf);
sb                405 fs/reiserfs/prints.c 		       sb->s_id, id, function, error_buf);
sb                408 fs/reiserfs/prints.c 		       sb->s_id, function, error_buf);
sb                410 fs/reiserfs/prints.c 	if (sb_rdonly(sb))
sb                413 fs/reiserfs/prints.c 	reiserfs_info(sb, "Remounting filesystem read-only\n");
sb                414 fs/reiserfs/prints.c 	sb->s_flags |= SB_RDONLY;
sb                415 fs/reiserfs/prints.c 	reiserfs_abort_journal(sb, -EIO);
sb                418 fs/reiserfs/prints.c void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...)
sb                422 fs/reiserfs/prints.c 	if (reiserfs_error_panic(sb)) {
sb                423 fs/reiserfs/prints.c 		panic(KERN_CRIT "REISERFS panic (device %s): %s\n", sb->s_id,
sb                427 fs/reiserfs/prints.c 	if (reiserfs_is_journal_aborted(SB_JOURNAL(sb)))
sb                430 fs/reiserfs/prints.c 	printk(KERN_CRIT "REISERFS abort (device %s): %s\n", sb->s_id,
sb                433 fs/reiserfs/prints.c 	sb->s_flags |= SB_RDONLY;
sb                434 fs/reiserfs/prints.c 	reiserfs_abort_journal(sb, errno);
sb                 28 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                 31 fs/reiserfs/procfs.c 	if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_6)) {
sb                 33 fs/reiserfs/procfs.c 	} else if (REISERFS_SB(sb)->s_properties & (1 << REISERFS_3_5)) {
sb                 63 fs/reiserfs/procfs.c #define MAP( i ) D4C( objectid_map( sb, rs )[ i ] )
sb                 72 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                 73 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
sb                104 fs/reiserfs/procfs.c 		   reiserfs_r5_hash(sb) ? "FORCE_R5 " : "",
sb                105 fs/reiserfs/procfs.c 		   reiserfs_rupasov_hash(sb) ? "FORCE_RUPASOV " : "",
sb                106 fs/reiserfs/procfs.c 		   reiserfs_tea_hash(sb) ? "FORCE_TEA " : "",
sb                107 fs/reiserfs/procfs.c 		   reiserfs_hash_detect(sb) ? "DETECT_HASH " : "",
sb                108 fs/reiserfs/procfs.c 		   reiserfs_no_border(sb) ? "NO_BORDER " : "BORDER ",
sb                109 fs/reiserfs/procfs.c 		   reiserfs_no_unhashed_relocation(sb) ?
sb                111 fs/reiserfs/procfs.c 		   reiserfs_hashed_relocation(sb) ? "UNHASHED_RELOCATION " : "",
sb                112 fs/reiserfs/procfs.c 		   reiserfs_test4(sb) ? "TEST4 " : "",
sb                113 fs/reiserfs/procfs.c 		   have_large_tails(sb) ? "TAILS " : have_small_tails(sb) ?
sb                115 fs/reiserfs/procfs.c 		   replay_only(sb) ? "REPLAY_ONLY " : "",
sb                116 fs/reiserfs/procfs.c 		   convert_reiserfs(sb) ? "CONV " : "",
sb                135 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                136 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
sb                194 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                195 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
sb                227 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                228 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *sb_info = REISERFS_SB(sb);
sb                271 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                272 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *sb_info = REISERFS_SB(sb);
sb                309 fs/reiserfs/procfs.c 	struct super_block *sb = m->private;
sb                310 fs/reiserfs/procfs.c 	struct reiserfs_sb_info *r = REISERFS_SB(sb);
sb                357 fs/reiserfs/procfs.c 		   SB_JOURNAL(sb)->j_dev_bd,
sb                363 fs/reiserfs/procfs.c 		   SB_JOURNAL(sb)->j_max_commit_age,
sb                402 fs/reiserfs/procfs.c static void add_file(struct super_block *sb, char *name,
sb                405 fs/reiserfs/procfs.c 	proc_create_single_data(name, 0, REISERFS_SB(sb)->procdir, func, sb);
sb                408 fs/reiserfs/procfs.c int reiserfs_proc_info_init(struct super_block *sb)
sb                414 fs/reiserfs/procfs.c 	strlcpy(b, sb->s_id, BDEVNAME_SIZE);
sb                419 fs/reiserfs/procfs.c 	spin_lock_init(&__PINFO(sb).lock);
sb                420 fs/reiserfs/procfs.c 	REISERFS_SB(sb)->procdir = proc_mkdir_data(b, 0, proc_info_root, sb);
sb                421 fs/reiserfs/procfs.c 	if (REISERFS_SB(sb)->procdir) {
sb                422 fs/reiserfs/procfs.c 		add_file(sb, "version", show_version);
sb                423 fs/reiserfs/procfs.c 		add_file(sb, "super", show_super);
sb                424 fs/reiserfs/procfs.c 		add_file(sb, "per-level", show_per_level);
sb                425 fs/reiserfs/procfs.c 		add_file(sb, "bitmap", show_bitmap);
sb                426 fs/reiserfs/procfs.c 		add_file(sb, "on-disk-super", show_on_disk_super);
sb                427 fs/reiserfs/procfs.c 		add_file(sb, "oidmap", show_oidmap);
sb                428 fs/reiserfs/procfs.c 		add_file(sb, "journal", show_journal);
sb                431 fs/reiserfs/procfs.c 	reiserfs_warning(sb, "cannot create /proc/%s/%s",
sb                436 fs/reiserfs/procfs.c int reiserfs_proc_info_done(struct super_block *sb)
sb                438 fs/reiserfs/procfs.c 	struct proc_dir_entry *de = REISERFS_SB(sb)->procdir;
sb                444 fs/reiserfs/procfs.c 		strlcpy(b, sb->s_id, BDEVNAME_SIZE);
sb                450 fs/reiserfs/procfs.c 		REISERFS_SB(sb)->procdir = NULL;
sb                228 fs/reiserfs/reiserfs.h 	struct super_block *sb;	/* dev of real buffer head */
sb               1152 fs/reiserfs/reiserfs.h static inline struct reiserfs_sb_info *REISERFS_SB(const struct super_block *sb)
sb               1154 fs/reiserfs/reiserfs.h 	return sb->s_fs_info;
sb               1161 fs/reiserfs/reiserfs.h static inline __u32 reiserfs_bmap_count(struct super_block *sb)
sb               1163 fs/reiserfs/reiserfs.h 	return (SB_BLOCK_COUNT(sb) - 1) / (sb->s_blocksize * 8) + 1;
sb               2775 fs/reiserfs/reiserfs.h #define JOURNAL_BLOCKS_PER_OBJECT(sb)  (JOURNAL_PER_BALANCE_CNT * 3 + \
sb               2776 fs/reiserfs/reiserfs.h 					 2 * (REISERFS_QUOTA_INIT_BLOCKS(sb) + \
sb               2777 fs/reiserfs/reiserfs.h 					      REISERFS_QUOTA_TRANS_BLOCKS(sb)))
sb               2809 fs/reiserfs/reiserfs.h #define _jhashfn(sb,block)	\
sb               2810 fs/reiserfs/reiserfs.h 	(((unsigned long)sb>>L1_CACHE_SHIFT) ^ \
sb               2812 fs/reiserfs/reiserfs.h #define journal_hash(t,sb,block) ((t)[_jhashfn((sb),(block)) & JBH_HASH_MASK])
sb               2942 fs/reiserfs/reiserfs.h int reiserfs_in_journal(struct super_block *sb, unsigned int bmap_nr,
sb               2945 fs/reiserfs/reiserfs.h 		  struct super_block *sb, unsigned long);
sb               2947 fs/reiserfs/reiserfs.h 		       struct super_block *sb);
sb               2948 fs/reiserfs/reiserfs.h void reiserfs_abort_journal(struct super_block *sb, int errno);
sb               2949 fs/reiserfs/reiserfs.h void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...);
sb               3003 fs/reiserfs/reiserfs.h 				    const struct super_block *sb);
sb               3007 fs/reiserfs/reiserfs.h int search_for_position_by_key(struct super_block *sb,
sb               3073 fs/reiserfs/reiserfs.h struct dentry *reiserfs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb               3075 fs/reiserfs/reiserfs.h struct dentry *reiserfs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb               3111 fs/reiserfs/reiserfs.h int search_by_entry_key(struct super_block *sb, const struct cpu_key *key,
sb               3116 fs/reiserfs/reiserfs.h int reiserfs_proc_info_init(struct super_block *sb);
sb               3117 fs/reiserfs/reiserfs.h int reiserfs_proc_info_done(struct super_block *sb);
sb               3123 fs/reiserfs/reiserfs.h #define __PINFO( sb ) REISERFS_SB(sb) -> s_proc_info_data
sb               3124 fs/reiserfs/reiserfs.h #define PROC_INFO_MAX( sb, field, value )								\
sb               3125 fs/reiserfs/reiserfs.h     __PINFO( sb ).field =												\
sb               3126 fs/reiserfs/reiserfs.h         max( REISERFS_SB( sb ) -> s_proc_info_data.field, value )
sb               3127 fs/reiserfs/reiserfs.h #define PROC_INFO_INC( sb, field ) ( ++ ( __PINFO( sb ).field ) )
sb               3128 fs/reiserfs/reiserfs.h #define PROC_INFO_ADD( sb, field, val ) ( __PINFO( sb ).field += ( val ) )
sb               3129 fs/reiserfs/reiserfs.h #define PROC_INFO_BH_STAT( sb, bh, level )							\
sb               3130 fs/reiserfs/reiserfs.h     PROC_INFO_INC( sb, sbk_read_at[ ( level ) ] );						\
sb               3131 fs/reiserfs/reiserfs.h     PROC_INFO_ADD( sb, free_at[ ( level ) ], B_FREE_SPACE( bh ) );	\
sb               3132 fs/reiserfs/reiserfs.h     PROC_INFO_ADD( sb, items_at[ ( level ) ], B_NR_ITEMS( bh ) )
sb               3134 fs/reiserfs/reiserfs.h static inline int reiserfs_proc_info_init(struct super_block *sb)
sb               3139 fs/reiserfs/reiserfs.h static inline int reiserfs_proc_info_done(struct super_block *sb)
sb               3156 fs/reiserfs/reiserfs.h #define PROC_INFO_MAX( sb, field, value ) VOID_V
sb               3157 fs/reiserfs/reiserfs.h #define PROC_INFO_INC( sb, field ) VOID_V
sb               3158 fs/reiserfs/reiserfs.h #define PROC_INFO_ADD( sb, field, val ) VOID_V
sb               3159 fs/reiserfs/reiserfs.h #define PROC_INFO_BH_STAT(sb, bh, n_node_level) VOID_V
sb               3321 fs/reiserfs/reiserfs.h int reiserfs_init_bitmap_cache(struct super_block *sb);
sb               3322 fs/reiserfs/reiserfs.h void reiserfs_free_bitmap_cache(struct super_block *sb);
sb               3323 fs/reiserfs/reiserfs.h void reiserfs_cache_bitmap_metadata(struct super_block *sb, struct buffer_head *bh, struct reiserfs_bitmap_info *info);
sb               3324 fs/reiserfs/reiserfs.h struct buffer_head *reiserfs_read_bitmap_block(struct super_block *sb, unsigned int bitmap);
sb                 22 fs/reiserfs/resize.c 	struct reiserfs_super_block *sb;
sb                 39 fs/reiserfs/resize.c 	sb = SB_DISK_SUPER_BLOCK(s);
sb                155 fs/reiserfs/resize.c 			memset(bh->b_data, 0, sb_blocksize(sb));
sb                165 fs/reiserfs/resize.c 			bitmap[i].free_count = sb_blocksize(sb) * 8 - 1;
sb                216 fs/reiserfs/stree.c 						  const struct super_block *sb)
sb                256 fs/reiserfs/stree.c 	    b_blocknr == SB_ROOT_BLOCK(sb))
sb                263 fs/reiserfs/stree.c 					   const struct super_block *sb)
sb                307 fs/reiserfs/stree.c 	    b_blocknr == SB_ROOT_BLOCK(sb))
sb                326 fs/reiserfs/stree.c 				struct super_block *sb
sb                337 fs/reiserfs/stree.c 	if (comp_keys(get_lkey(chk_path, sb), key) == 1)
sb                341 fs/reiserfs/stree.c 	if (comp_keys(get_rkey(chk_path, sb), key) != 1)
sb                359 fs/reiserfs/stree.c void pathrelse_and_restore(struct super_block *sb,
sb                370 fs/reiserfs/stree.c 		reiserfs_restore_prepared_buffer(sb, bh);
sb                588 fs/reiserfs/stree.c int search_by_key(struct super_block *sb, const struct cpu_key *key,
sb                605 fs/reiserfs/stree.c 	PROC_INFO_INC(sb, search_by_key);
sb                621 fs/reiserfs/stree.c 	block_number = SB_ROOT_BLOCK(sb);
sb                627 fs/reiserfs/stree.c 			reiserfs_warning(sb, "PAP-5100",
sb                638 fs/reiserfs/stree.c 		fs_gen = get_generation(sb);
sb                645 fs/reiserfs/stree.c 		     sb_getblk(sb, block_number))) {
sb                655 fs/reiserfs/stree.c 				depth = search_by_key_reada(sb, reada_bh,
sb                659 fs/reiserfs/stree.c 				depth = reiserfs_write_unlock_nested(sb);
sb                665 fs/reiserfs/stree.c 				reiserfs_write_lock_nested(sb, depth);
sb                676 fs/reiserfs/stree.c 			expected_level = SB_TREE_HEIGHT(sb);
sb                685 fs/reiserfs/stree.c 		if (fs_changed(fs_gen, sb) &&
sb                688 fs/reiserfs/stree.c 		     !key_in_buffer(search_path, key, sb))) {
sb                689 fs/reiserfs/stree.c 			PROC_INFO_INC(sb, search_by_key_fs_changed);
sb                690 fs/reiserfs/stree.c 			PROC_INFO_INC(sb, search_by_key_restarted);
sb                691 fs/reiserfs/stree.c 			PROC_INFO_INC(sb,
sb                699 fs/reiserfs/stree.c 			block_number = SB_ROOT_BLOCK(sb);
sb                712 fs/reiserfs/stree.c 		       !key_in_buffer(search_path, key, sb),
sb                715 fs/reiserfs/stree.c 		if (REISERFS_SB(sb)->cur_tb) {
sb                717 fs/reiserfs/stree.c 			reiserfs_panic(sb, "PAP-5140",
sb                727 fs/reiserfs/stree.c 			reiserfs_error(sb, "vs-5150",
sb                737 fs/reiserfs/stree.c 		PROC_INFO_BH_STAT(sb, bh, node_level - 1);
sb                827 fs/reiserfs/stree.c int search_for_position_by_key(struct super_block *sb,
sb                841 fs/reiserfs/stree.c 		return search_by_entry_key(sb, p_cpu_key, search_path,
sb                847 fs/reiserfs/stree.c 	retval = search_item(sb, p_cpu_key, search_path);
sb                869 fs/reiserfs/stree.c 	blk_size = sb->s_blocksize;
sb               1028 fs/reiserfs/stree.c 	struct super_block *sb = inode->i_sb;
sb               1057 fs/reiserfs/stree.c 	    int blk_size = sb->s_blocksize;
sb               1098 fs/reiserfs/stree.c 			reiserfs_prepare_for_journal(sb, bh, 1);
sb               1104 fs/reiserfs/stree.c 		    reiserfs_cond_resched(sb);
sb               1126 fs/reiserfs/stree.c 		reiserfs_restore_prepared_buffer(sb, bh);
sb               1128 fs/reiserfs/stree.c 		     search_for_position_by_key(sb, item_key, path) == POSITION_FOUND);
sb               1171 fs/reiserfs/stree.c 			   struct super_block *sb,
sb               1179 fs/reiserfs/stree.c 	tb->tb_sb = sb;
sb               1234 fs/reiserfs/stree.c 	struct super_block *sb = inode->i_sb;
sb               1249 fs/reiserfs/stree.c 	init_tb_struct(th, &s_del_balance, sb, path,
sb               1273 fs/reiserfs/stree.c 		PROC_INFO_INC(sb, delete_item_restarted);
sb               1277 fs/reiserfs/stree.c 		    search_for_position_by_key(sb, item_key, path);
sb               1281 fs/reiserfs/stree.c 			reiserfs_warning(sb, "vs-5340",
sb               1306 fs/reiserfs/stree.c 		if ((le_ih_k_offset(q_ih) & (sb->s_blocksize - 1)) == 1) {
sb               1307 fs/reiserfs/stree.c 			quota_cut_bytes = sb->s_blocksize + UNFM_P_SIZE;
sb               1353 fs/reiserfs/stree.c 	reiserfs_debug(sb, REISERFS_DEBUG_CODE,
sb               1386 fs/reiserfs/stree.c 	struct super_block *sb = th->t_super;
sb               1454 fs/reiserfs/stree.c 				depth = reiserfs_write_unlock_nested(sb);
sb               1457 fs/reiserfs/stree.c 				reiserfs_write_lock_nested(sb, depth);
sb               1543 fs/reiserfs/stree.c 	struct super_block *sb = inode->i_sb;
sb               1544 fs/reiserfs/stree.c 	int block_size = sb->s_blocksize;
sb               1624 fs/reiserfs/stree.c 	struct super_block *sb = inode->i_sb;
sb               1699 fs/reiserfs/stree.c 			    (new_file_size & (sb->s_blocksize - 1));
sb               1703 fs/reiserfs/stree.c 			    (sb, item_key,
sb               1708 fs/reiserfs/stree.c 				reiserfs_panic(sb, "PAP-5580", "item to "
sb               1725 fs/reiserfs/stree.c 		PROC_INFO_INC(sb, cut_from_item_restarted);
sb               1728 fs/reiserfs/stree.c 		    search_for_position_by_key(sb, item_key, path);
sb               1732 fs/reiserfs/stree.c 		reiserfs_warning(sb, "PAP-5610", "item %K not found",
sb               1748 fs/reiserfs/stree.c 			reiserfs_warning(sb, "reiserfs-5092",
sb               1775 fs/reiserfs/stree.c 		    (le_ih_k_offset(p_le_ih) & (sb->s_blocksize - 1)) ==
sb               1779 fs/reiserfs/stree.c 			quota_cut_bytes = sb->s_blocksize + UNFM_P_SIZE;
sb               1794 fs/reiserfs/stree.c 			reiserfs_panic(sb, "vs-5652",
sb               1798 fs/reiserfs/stree.c 			reiserfs_panic(sb, "vs-5653", "completing "
sb               1805 fs/reiserfs/stree.c 			reiserfs_panic(sb, "vs-5654", "can not complete "
sb               1833 fs/reiserfs/stree.c 	depth = reiserfs_write_unlock_nested(sb);
sb               1835 fs/reiserfs/stree.c 	reiserfs_write_lock_nested(sb, depth);
sb               2073 fs/reiserfs/stree.c 	struct super_block *sb = inode->i_sb;
sb               2090 fs/reiserfs/stree.c 	depth = reiserfs_write_unlock_nested(sb);
sb               2092 fs/reiserfs/stree.c 	reiserfs_write_lock_nested(sb, depth);
sb               2151 fs/reiserfs/stree.c 	depth = reiserfs_write_unlock_nested(sb);
sb               2153 fs/reiserfs/stree.c 	reiserfs_write_lock_nested(sb, depth);
sb                574 fs/reiserfs/super.c static int reiserfs_quota_off(struct super_block *sb, int type);
sb                639 fs/reiserfs/super.c static struct inode *reiserfs_alloc_inode(struct super_block *sb)
sb               2352 fs/reiserfs/super.c static int reiserfs_write_info(struct super_block *sb, int type)
sb               2359 fs/reiserfs/super.c 	reiserfs_write_lock(sb);
sb               2360 fs/reiserfs/super.c 	ret = journal_begin(&th, sb, 2);
sb               2363 fs/reiserfs/super.c 	depth = reiserfs_write_unlock_nested(sb);
sb               2364 fs/reiserfs/super.c 	ret = dquot_commit_info(sb, type);
sb               2365 fs/reiserfs/super.c 	reiserfs_write_lock_nested(sb, depth);
sb               2370 fs/reiserfs/super.c 	reiserfs_write_unlock(sb);
sb               2377 fs/reiserfs/super.c static int reiserfs_quota_on_mount(struct super_block *sb, int type)
sb               2379 fs/reiserfs/super.c 	return dquot_quota_on_mount(sb, REISERFS_SB(sb)->s_qf_names[type],
sb               2380 fs/reiserfs/super.c 					REISERFS_SB(sb)->s_jquota_fmt, type);
sb               2386 fs/reiserfs/super.c static int reiserfs_quota_on(struct super_block *sb, int type, int format_id,
sb               2394 fs/reiserfs/super.c 	reiserfs_write_lock(sb);
sb               2395 fs/reiserfs/super.c 	if (!(REISERFS_SB(sb)->s_mount_opt & (1 << opt))) {
sb               2401 fs/reiserfs/super.c 	if (path->dentry->d_sb != sb) {
sb               2413 fs/reiserfs/super.c 			reiserfs_warning(sb, "super-6520",
sb               2422 fs/reiserfs/super.c 	if (REISERFS_SB(sb)->s_qf_names[type]) {
sb               2424 fs/reiserfs/super.c 		if (path->dentry->d_parent != sb->s_root)
sb               2425 fs/reiserfs/super.c 			reiserfs_warning(sb, "super-6521",
sb               2436 fs/reiserfs/super.c 		err = journal_begin(&th, sb, 1);
sb               2443 fs/reiserfs/super.c 	reiserfs_write_unlock(sb);
sb               2444 fs/reiserfs/super.c 	err = dquot_quota_on(sb, type, format_id, path);
sb               2456 fs/reiserfs/super.c 	reiserfs_write_unlock(sb);
sb               2460 fs/reiserfs/super.c static int reiserfs_quota_off(struct super_block *sb, int type)
sb               2463 fs/reiserfs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               2468 fs/reiserfs/super.c 	err = dquot_quota_off(sb, type);
sb               2482 fs/reiserfs/super.c 	return dquot_quota_off(sb, type);
sb               2491 fs/reiserfs/super.c static ssize_t reiserfs_quota_read(struct super_block *sb, int type, char *data,
sb               2494 fs/reiserfs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               2495 fs/reiserfs/super.c 	unsigned long blk = off >> sb->s_blocksize_bits;
sb               2496 fs/reiserfs/super.c 	int err = 0, offset = off & (sb->s_blocksize - 1), tocopy;
sb               2508 fs/reiserfs/super.c 		    sb->s_blocksize - offset <
sb               2509 fs/reiserfs/super.c 		    toread ? sb->s_blocksize - offset : toread;
sb               2515 fs/reiserfs/super.c 		reiserfs_write_lock(sb);
sb               2517 fs/reiserfs/super.c 		reiserfs_write_unlock(sb);
sb               2523 fs/reiserfs/super.c 			bh = sb_bread(sb, tmp_bh.b_blocknr);
sb               2541 fs/reiserfs/super.c static ssize_t reiserfs_quota_write(struct super_block *sb, int type,
sb               2544 fs/reiserfs/super.c 	struct inode *inode = sb_dqopt(sb)->files[type];
sb               2545 fs/reiserfs/super.c 	unsigned long blk = off >> sb->s_blocksize_bits;
sb               2546 fs/reiserfs/super.c 	int err = 0, offset = off & (sb->s_blocksize - 1), tocopy;
sb               2547 fs/reiserfs/super.c 	int journal_quota = REISERFS_SB(sb)->s_qf_names[type] != NULL;
sb               2557 fs/reiserfs/super.c 		tocopy = sb->s_blocksize - offset < towrite ?
sb               2558 fs/reiserfs/super.c 		    sb->s_blocksize - offset : towrite;
sb               2560 fs/reiserfs/super.c 		reiserfs_write_lock(sb);
sb               2562 fs/reiserfs/super.c 		reiserfs_write_unlock(sb);
sb               2565 fs/reiserfs/super.c 		if (offset || tocopy != sb->s_blocksize)
sb               2566 fs/reiserfs/super.c 			bh = sb_bread(sb, tmp_bh.b_blocknr);
sb               2568 fs/reiserfs/super.c 			bh = sb_getblk(sb, tmp_bh.b_blocknr);
sb               2578 fs/reiserfs/super.c 		reiserfs_write_lock(sb);
sb               2579 fs/reiserfs/super.c 		reiserfs_prepare_for_journal(sb, bh, 1);
sb               2583 fs/reiserfs/super.c 		reiserfs_write_unlock(sb);
sb                 29 fs/reiserfs/tail_conversion.c 	struct super_block *sb = inode->i_sb;
sb                 50 fs/reiserfs/tail_conversion.c 	REISERFS_SB(sb)->s_direct2indirect++;
sb                 52 fs/reiserfs/tail_conversion.c 	blk_size = sb->s_blocksize;
sb                 66 fs/reiserfs/tail_conversion.c 	if (search_for_position_by_key(sb, &end_key, path) == POSITION_FOUND) {
sb                 67 fs/reiserfs/tail_conversion.c 		reiserfs_error(sb, "PAP-14030",
sb                115 fs/reiserfs/tail_conversion.c 		if (search_for_position_by_key(sb, &end_key, path) ==
sb                117 fs/reiserfs/tail_conversion.c 			reiserfs_panic(sb, "PAP-14050",
sb                211 fs/reiserfs/tail_conversion.c 	struct super_block *sb = inode->i_sb;
sb                213 fs/reiserfs/tail_conversion.c 	unsigned long block_size = sb->s_blocksize;
sb                221 fs/reiserfs/tail_conversion.c 	REISERFS_SB(sb)->s_indirect2direct++;
sb                236 fs/reiserfs/tail_conversion.c 					 1) * sb->s_blocksize;
sb                249 fs/reiserfs/tail_conversion.c 		if (search_for_position_by_key(sb, item_key, path)
sb                251 fs/reiserfs/tail_conversion.c 			reiserfs_panic(sb, "PAP-5520",
sb                258 fs/reiserfs/tail_conversion.c 		     1) * sb->s_blocksize;
sb                260 fs/reiserfs/tail_conversion.c 			reiserfs_panic(sb, "vs-5530", "tail position "
sb                119 fs/reiserfs/xattr.c static struct dentry *open_xa_root(struct super_block *sb, int flags)
sb                121 fs/reiserfs/xattr.c 	struct dentry *privroot = REISERFS_SB(sb)->priv_root;
sb                129 fs/reiserfs/xattr.c 	xaroot = dget(REISERFS_SB(sb)->xattr_root);
sb                 15 fs/reiserfs/xattr.h int reiserfs_xattr_init(struct super_block *sb, int mount_flags);
sb                 16 fs/reiserfs/xattr.h int reiserfs_lookup_privroot(struct super_block *sb);
sb                 44 fs/reiserfs/xattr.h static inline int reiserfs_xattrs_initialized(struct super_block *sb)
sb                 46 fs/reiserfs/xattr.h 	return REISERFS_SB(sb)->priv_root != NULL;
sb                 16 fs/romfs/internal.h static inline size_t romfs_maxsize(struct super_block *sb)
sb                 18 fs/romfs/internal.h 	return (size_t) (unsigned long) sb->s_fs_info;
sb                 38 fs/romfs/internal.h extern int romfs_dev_read(struct super_block *sb, unsigned long pos,
sb                 40 fs/romfs/internal.h extern ssize_t romfs_dev_strnlen(struct super_block *sb,
sb                 42 fs/romfs/internal.h extern int romfs_dev_strcmp(struct super_block *sb, unsigned long pos,
sb                 18 fs/romfs/storage.c #define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__)
sb                 23 fs/romfs/storage.c static int romfs_mtd_read(struct super_block *sb, unsigned long pos,
sb                 29 fs/romfs/storage.c 	ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf);
sb                 36 fs/romfs/storage.c static ssize_t romfs_mtd_strnlen(struct super_block *sb,
sb                 48 fs/romfs/storage.c 		ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf);
sb                 66 fs/romfs/storage.c static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos,
sb                 79 fs/romfs/storage.c 		ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf);
sb                103 fs/romfs/storage.c static int romfs_blk_read(struct super_block *sb, unsigned long pos,
sb                114 fs/romfs/storage.c 		bh = sb_bread(sb, pos >> ROMBSBITS);
sb                130 fs/romfs/storage.c static ssize_t romfs_blk_strnlen(struct super_block *sb,
sb                143 fs/romfs/storage.c 		bh = sb_bread(sb, pos >> ROMBSBITS);
sb                163 fs/romfs/storage.c static int romfs_blk_strcmp(struct super_block *sb, unsigned long pos,
sb                175 fs/romfs/storage.c 		bh = sb_bread(sb, pos >> ROMBSBITS);
sb                198 fs/romfs/storage.c 		bh = sb_bread(sb, pos >> ROMBSBITS);
sb                214 fs/romfs/storage.c int romfs_dev_read(struct super_block *sb, unsigned long pos,
sb                219 fs/romfs/storage.c 	limit = romfs_maxsize(sb);
sb                226 fs/romfs/storage.c 	if (sb->s_mtd)
sb                227 fs/romfs/storage.c 		return romfs_mtd_read(sb, pos, buf, buflen);
sb                230 fs/romfs/storage.c 	if (sb->s_bdev)
sb                231 fs/romfs/storage.c 		return romfs_blk_read(sb, pos, buf, buflen);
sb                239 fs/romfs/storage.c ssize_t romfs_dev_strnlen(struct super_block *sb,
sb                244 fs/romfs/storage.c 	limit = romfs_maxsize(sb);
sb                251 fs/romfs/storage.c 	if (sb->s_mtd)
sb                252 fs/romfs/storage.c 		return romfs_mtd_strnlen(sb, pos, maxlen);
sb                255 fs/romfs/storage.c 	if (sb->s_bdev)
sb                256 fs/romfs/storage.c 		return romfs_blk_strnlen(sb, pos, maxlen);
sb                267 fs/romfs/storage.c int romfs_dev_strcmp(struct super_block *sb, unsigned long pos,
sb                272 fs/romfs/storage.c 	limit = romfs_maxsize(sb);
sb                281 fs/romfs/storage.c 	if (sb->s_mtd)
sb                282 fs/romfs/storage.c 		return romfs_mtd_strcmp(sb, pos, str, size);
sb                285 fs/romfs/storage.c 	if (sb->s_bdev)
sb                286 fs/romfs/storage.c 		return romfs_blk_strcmp(sb, pos, str, size);
sb                 97 fs/romfs/super.c static struct inode *romfs_iget(struct super_block *sb, unsigned long pos);
sb                278 fs/romfs/super.c static struct inode *romfs_iget(struct super_block *sb, unsigned long pos)
sb                291 fs/romfs/super.c 		ret = romfs_dev_read(sb, pos, &ri, sizeof(ri));
sb                305 fs/romfs/super.c 	nlen = romfs_dev_strnlen(sb, pos + ROMFH_SIZE, ROMFS_MAXFN);
sb                310 fs/romfs/super.c 	i = iget_locked(sb, pos);
sb                373 fs/romfs/super.c static struct inode *romfs_alloc_inode(struct super_block *sb)
sb                394 fs/romfs/super.c 	struct super_block *sb = dentry->d_sb;
sb                407 fs/romfs/super.c 	if (sb->s_bdev)
sb                408 fs/romfs/super.c 		id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                409 fs/romfs/super.c 	else if (sb->s_dev)
sb                410 fs/romfs/super.c 		id = huge_encode_dev(sb->s_dev);
sb                459 fs/romfs/super.c static int romfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                469 fs/romfs/super.c 	if (!sb->s_mtd) {
sb                470 fs/romfs/super.c 		sb_set_blocksize(sb, ROMBSIZE);
sb                472 fs/romfs/super.c 		sb->s_blocksize = ROMBSIZE;
sb                473 fs/romfs/super.c 		sb->s_blocksize_bits = blksize_bits(ROMBSIZE);
sb                477 fs/romfs/super.c 	sb->s_maxbytes = 0xFFFFFFFF;
sb                478 fs/romfs/super.c 	sb->s_magic = ROMFS_MAGIC;
sb                479 fs/romfs/super.c 	sb->s_flags |= SB_RDONLY | SB_NOATIME;
sb                480 fs/romfs/super.c 	sb->s_time_min = 0;
sb                481 fs/romfs/super.c 	sb->s_time_max = 0;
sb                482 fs/romfs/super.c 	sb->s_op = &romfs_super_ops;
sb                486 fs/romfs/super.c 	if (sb->s_mtd)
sb                487 fs/romfs/super.c 		sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, sb->s_mtd->index);
sb                494 fs/romfs/super.c 	sb->s_fs_info = (void *) 512;
sb                495 fs/romfs/super.c 	ret = romfs_dev_read(sb, 0, rsb, 512);
sb                501 fs/romfs/super.c 	if (sb->s_mtd && img_size > sb->s_mtd->size)
sb                504 fs/romfs/super.c 	sb->s_fs_info = (void *) img_size;
sb                510 fs/romfs/super.c 			       sb->s_id);
sb                515 fs/romfs/super.c 		pr_err("bad initial checksum on dev %s.\n", sb->s_id);
sb                519 fs/romfs/super.c 	storage = sb->s_mtd ? "MTD" : "the block layer";
sb                532 fs/romfs/super.c 	root = romfs_iget(sb, pos);
sb                536 fs/romfs/super.c 	sb->s_root = d_make_root(root);
sb                537 fs/romfs/super.c 	if (!sb->s_root)
sb                583 fs/romfs/super.c static void romfs_kill_sb(struct super_block *sb)
sb                586 fs/romfs/super.c 	if (sb->s_mtd) {
sb                587 fs/romfs/super.c 		kill_mtd_super(sb);
sb                592 fs/romfs/super.c 	if (sb->s_bdev) {
sb                593 fs/romfs/super.c 		kill_block_super(sb);
sb                 33 fs/squashfs/block.c static struct buffer_head *get_block_length(struct super_block *sb,
sb                 36 fs/squashfs/block.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 39 fs/squashfs/block.c 	bh = sb_bread(sb, *cur_index);
sb                 46 fs/squashfs/block.c 		bh = sb_bread(sb, ++(*cur_index));
sb                 58 fs/squashfs/block.c 			bh = sb_bread(sb, ++(*cur_index));
sb                 78 fs/squashfs/block.c int squashfs_read_data(struct super_block *sb, u64 index, int length,
sb                 81 fs/squashfs/block.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                110 fs/squashfs/block.c 			bh[b] = sb_getblk(sb, cur_index);
sb                123 fs/squashfs/block.c 		bh[0] = get_block_length(sb, &cur_index, &offset, &length);
sb                142 fs/squashfs/block.c 			bh[b] = sb_getblk(sb, ++cur_index);
sb                 52 fs/squashfs/cache.c struct squashfs_cache_entry *squashfs_cache_get(struct super_block *sb,
sb                110 fs/squashfs/cache.c 			entry->length = squashfs_read_data(sb, block, length,
sb                331 fs/squashfs/cache.c int squashfs_read_metadata(struct super_block *sb, void *buffer,
sb                334 fs/squashfs/cache.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                344 fs/squashfs/cache.c 		entry = squashfs_cache_get(sb, msblk->block_cache, *block, 0);
sb                379 fs/squashfs/cache.c struct squashfs_cache_entry *squashfs_get_fragment(struct super_block *sb,
sb                382 fs/squashfs/cache.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                384 fs/squashfs/cache.c 	return squashfs_cache_get(sb, msblk->fragment_cache, start_block,
sb                394 fs/squashfs/cache.c struct squashfs_cache_entry *squashfs_get_datablock(struct super_block *sb,
sb                397 fs/squashfs/cache.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                399 fs/squashfs/cache.c 	return squashfs_cache_get(sb, msblk->read_page, start_block, length);
sb                406 fs/squashfs/cache.c void *squashfs_read_table(struct super_block *sb, u64 block, int length)
sb                432 fs/squashfs/cache.c 	res = squashfs_read_data(sb, block, length |
sb                 88 fs/squashfs/decompressor.c static void *get_comp_opts(struct super_block *sb, unsigned short flags)
sb                 90 fs/squashfs/decompressor.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                111 fs/squashfs/decompressor.c 		length = squashfs_read_data(sb,
sb                129 fs/squashfs/decompressor.c void *squashfs_decompressor_setup(struct super_block *sb, unsigned short flags)
sb                131 fs/squashfs/decompressor.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                132 fs/squashfs/decompressor.c 	void *stream, *comp_opts = get_comp_opts(sb, flags);
sb                 38 fs/squashfs/dir.c static int get_dir_index_using_offset(struct super_block *sb,
sb                 42 fs/squashfs/dir.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 60 fs/squashfs/dir.c 		err = squashfs_read_metadata(sb, &dir_index, &index_start,
sb                 78 fs/squashfs/dir.c 		err = squashfs_read_metadata(sb, NULL, &index_start,
sb                 39 fs/squashfs/export.c static long long squashfs_inode_lookup(struct super_block *sb, int ino_num)
sb                 41 fs/squashfs/export.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 50 fs/squashfs/export.c 	err = squashfs_read_metadata(sb, &ino, &start, &offset, sizeof(ino));
sb                 61 fs/squashfs/export.c static struct dentry *squashfs_export_iget(struct super_block *sb,
sb                 69 fs/squashfs/export.c 	ino = squashfs_inode_lookup(sb, ino_num);
sb                 71 fs/squashfs/export.c 		dentry = d_obtain_alias(squashfs_iget(sb, ino, ino_num));
sb                 77 fs/squashfs/export.c static struct dentry *squashfs_fh_to_dentry(struct super_block *sb,
sb                 84 fs/squashfs/export.c 	return squashfs_export_iget(sb, fid->i32.ino);
sb                 88 fs/squashfs/export.c static struct dentry *squashfs_fh_to_parent(struct super_block *sb,
sb                 94 fs/squashfs/export.c 	return squashfs_export_iget(sb, fid->i32.parent_ino);
sb                110 fs/squashfs/export.c __le64 *squashfs_read_inode_lookup_table(struct super_block *sb,
sb                131 fs/squashfs/export.c 	table = squashfs_read_table(sb, lookup_table_start, length);
sb                160 fs/squashfs/file.c static long long read_indexes(struct super_block *sb, int n,
sb                175 fs/squashfs/file.c 		err = squashfs_read_metadata(sb, blist, start_block,
sb                 35 fs/squashfs/fragment.c int squashfs_frag_lookup(struct super_block *sb, unsigned int fragment,
sb                 38 fs/squashfs/fragment.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 50 fs/squashfs/fragment.c 	size = squashfs_read_metadata(sb, &fragment_entry, &start_block,
sb                 63 fs/squashfs/fragment.c __le64 *squashfs_read_fragment_index_table(struct super_block *sb,
sb                 77 fs/squashfs/fragment.c 	table = squashfs_read_table(sb, fragment_table_start, length);
sb                 32 fs/squashfs/id.c int squashfs_get_id(struct super_block *sb, unsigned int index,
sb                 35 fs/squashfs/id.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 42 fs/squashfs/id.c 	err = squashfs_read_metadata(sb, &disk_id, &start_block, &offset,
sb                 55 fs/squashfs/id.c __le64 *squashfs_read_id_index_table(struct super_block *sb,
sb                 77 fs/squashfs/id.c 	table = squashfs_read_table(sb, id_table_start, length);
sb                 44 fs/squashfs/inode.c static int squashfs_new_inode(struct super_block *sb, struct inode *inode,
sb                 51 fs/squashfs/inode.c 	err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &i_uid);
sb                 55 fs/squashfs/inode.c 	err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &i_gid);
sb                 72 fs/squashfs/inode.c struct inode *squashfs_iget(struct super_block *sb, long long ino,
sb                 75 fs/squashfs/inode.c 	struct inode *inode = iget_locked(sb, ino_number);
sb                102 fs/squashfs/inode.c 	struct super_block *sb = inode->i_sb;
sb                103 fs/squashfs/inode.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                115 fs/squashfs/inode.c 	err = squashfs_read_metadata(sb, sqshb_ino, &block,
sb                120 fs/squashfs/inode.c 	err = squashfs_new_inode(sb, inode, sqshb_ino);
sb                135 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                143 fs/squashfs/inode.c 			frag_size = squashfs_frag_lookup(sb, frag, &frag_blk);
sb                178 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                186 fs/squashfs/inode.c 			frag_size = squashfs_frag_lookup(sb, frag, &frag_blk);
sb                222 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                246 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                274 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                291 fs/squashfs/inode.c 			err = squashfs_read_metadata(sb, NULL, &block,
sb                295 fs/squashfs/inode.c 			err = squashfs_read_metadata(sb, &xattr, &block,
sb                312 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                334 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                357 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                374 fs/squashfs/inode.c 		err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset,
sb                395 fs/squashfs/inode.c 		err = squashfs_xattr_lookup(sb, xattr_id,
sb                 63 fs/squashfs/namei.c static int get_dir_index_using_name(struct super_block *sb,
sb                 68 fs/squashfs/namei.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 87 fs/squashfs/namei.c 		err = squashfs_read_metadata(sb, index, &index_start,
sb                 97 fs/squashfs/namei.c 		err = squashfs_read_metadata(sb, index->name, &index_start,
sb                 68 fs/squashfs/super.c static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                 81 fs/squashfs/super.c 	sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL);
sb                 82 fs/squashfs/super.c 	if (sb->s_fs_info == NULL) {
sb                 86 fs/squashfs/super.c 	msblk = sb->s_fs_info;
sb                 88 fs/squashfs/super.c 	msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE);
sb                100 fs/squashfs/super.c 	sblk = squashfs_read_table(sb, SQUASHFS_START, sizeof(*sblk));
sb                112 fs/squashfs/super.c 	sb->s_magic = le32_to_cpu(sblk->s_magic);
sb                113 fs/squashfs/super.c 	if (sb->s_magic != SQUASHFS_MAGIC) {
sb                116 fs/squashfs/super.c 			       sb->s_bdev);
sb                133 fs/squashfs/super.c 			i_size_read(sb->s_bdev->bd_inode))
sb                171 fs/squashfs/super.c 	TRACE("Found valid superblock on %pg\n", sb->s_bdev);
sb                188 fs/squashfs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                189 fs/squashfs/super.c 	sb->s_time_min = 0;
sb                190 fs/squashfs/super.c 	sb->s_time_max = U32_MAX;
sb                191 fs/squashfs/super.c 	sb->s_flags |= SB_RDONLY;
sb                192 fs/squashfs/super.c 	sb->s_op = &squashfs_super_ops;
sb                209 fs/squashfs/super.c 	msblk->stream = squashfs_decompressor_setup(sb, flags);
sb                217 fs/squashfs/super.c 	sb->s_xattr = squashfs_xattr_handlers;
sb                225 fs/squashfs/super.c 	msblk->xattr_id_table = squashfs_read_xattr_id_table(sb,
sb                238 fs/squashfs/super.c 	msblk->id_table = squashfs_read_id_index_table(sb,
sb                255 fs/squashfs/super.c 	msblk->inode_lookup_table = squashfs_read_inode_lookup_table(sb,
sb                265 fs/squashfs/super.c 	sb->s_export_op = &squashfs_export_ops;
sb                280 fs/squashfs/super.c 	msblk->fragment_index = squashfs_read_fragment_index_table(sb,
sb                304 fs/squashfs/super.c 	root = new_inode(sb);
sb                318 fs/squashfs/super.c 	sb->s_root = d_make_root(root);
sb                319 fs/squashfs/super.c 	if (sb->s_root == NULL) {
sb                340 fs/squashfs/super.c 	kfree(sb->s_fs_info);
sb                341 fs/squashfs/super.c 	sb->s_fs_info = NULL;
sb                390 fs/squashfs/super.c static void squashfs_put_super(struct super_block *sb)
sb                392 fs/squashfs/super.c 	if (sb->s_fs_info) {
sb                393 fs/squashfs/super.c 		struct squashfs_sb_info *sbi = sb->s_fs_info;
sb                403 fs/squashfs/super.c 		kfree(sb->s_fs_info);
sb                404 fs/squashfs/super.c 		sb->s_fs_info = NULL;
sb                467 fs/squashfs/super.c static struct inode *squashfs_alloc_inode(struct super_block *sb)
sb                 36 fs/squashfs/symlink.c 	struct super_block *sb = inode->i_sb;
sb                 37 fs/squashfs/symlink.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 53 fs/squashfs/symlink.c 		bytes = squashfs_read_metadata(sb, NULL, &block, &offset,
sb                 71 fs/squashfs/symlink.c 		entry = squashfs_cache_get(sb, msblk->block_cache, block, 0);
sb                 30 fs/squashfs/xattr.c 	struct super_block *sb = inode->i_sb;
sb                 31 fs/squashfs/xattr.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 50 fs/squashfs/xattr.c 		err = squashfs_read_metadata(sb, &entry, &start, &offset,
sb                 69 fs/squashfs/xattr.c 			err = squashfs_read_metadata(sb, buffer, &start,
sb                 80 fs/squashfs/xattr.c 			err = squashfs_read_metadata(sb, NULL, &start,
sb                 88 fs/squashfs/xattr.c 		err = squashfs_read_metadata(sb, &val, &start, &offset,
sb                 93 fs/squashfs/xattr.c 		err = squashfs_read_metadata(sb, NULL, &start, &offset,
sb                108 fs/squashfs/xattr.c 	struct super_block *sb = inode->i_sb;
sb                109 fs/squashfs/xattr.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                127 fs/squashfs/xattr.c 		err = squashfs_read_metadata(sb, &entry, &start, &offset,
sb                137 fs/squashfs/xattr.c 			err = squashfs_read_metadata(sb, target, &start,
sb                140 fs/squashfs/xattr.c 			err = squashfs_read_metadata(sb, NULL, &start,
sb                152 fs/squashfs/xattr.c 				err = squashfs_read_metadata(sb, &val, &start,
sb                156 fs/squashfs/xattr.c 				err = squashfs_read_metadata(sb, &xattr_val,
sb                166 fs/squashfs/xattr.c 			err = squashfs_read_metadata(sb, &val, &start, &offset,
sb                177 fs/squashfs/xattr.c 				err = squashfs_read_metadata(sb, buffer, &start,
sb                186 fs/squashfs/xattr.c 		err = squashfs_read_metadata(sb, &val, &start, &offset,
sb                190 fs/squashfs/xattr.c 		err = squashfs_read_metadata(sb, NULL, &start, &offset,
sb                 17 fs/squashfs/xattr.h static inline __le64 *squashfs_read_xattr_id_table(struct super_block *sb,
sb                 25 fs/squashfs/xattr.h static inline int squashfs_xattr_lookup(struct super_block *sb,
sb                 28 fs/squashfs/xattr_id.c int squashfs_xattr_lookup(struct super_block *sb, unsigned int index,
sb                 31 fs/squashfs/xattr_id.c 	struct squashfs_sb_info *msblk = sb->s_fs_info;
sb                 38 fs/squashfs/xattr_id.c 	err = squashfs_read_metadata(sb, &id, &start_block, &offset,
sb                 53 fs/squashfs/xattr_id.c __le64 *squashfs_read_xattr_id_table(struct super_block *sb, u64 start,
sb                 59 fs/squashfs/xattr_id.c 	id_table = squashfs_read_table(sb, start, sizeof(*id_table));
sb                 81 fs/squashfs/xattr_id.c 	return squashfs_read_table(sb, start + sizeof(*id_table), len);
sb                 43 fs/super.c     static int thaw_super_locked(struct super_block *sb);
sb                 64 fs/super.c     	struct super_block *sb;
sb                 71 fs/super.c     	sb = container_of(shrink, struct super_block, s_shrink);
sb                 80 fs/super.c     	if (!trylock_super(sb))
sb                 83 fs/super.c     	if (sb->s_op->nr_cached_objects)
sb                 84 fs/super.c     		fs_objects = sb->s_op->nr_cached_objects(sb, sc);
sb                 86 fs/super.c     	inodes = list_lru_shrink_count(&sb->s_inode_lru, sc);
sb                 87 fs/super.c     	dentries = list_lru_shrink_count(&sb->s_dentry_lru, sc);
sb                105 fs/super.c     	freed = prune_dcache_sb(sb, sc);
sb                107 fs/super.c     	freed += prune_icache_sb(sb, sc);
sb                111 fs/super.c     		freed += sb->s_op->free_cached_objects(sb, sc);
sb                114 fs/super.c     	up_read(&sb->s_umount);
sb                121 fs/super.c     	struct super_block *sb;
sb                124 fs/super.c     	sb = container_of(shrink, struct super_block, s_shrink);
sb                140 fs/super.c     	if (!(sb->s_flags & SB_BORN))
sb                144 fs/super.c     	if (sb->s_op && sb->s_op->nr_cached_objects)
sb                145 fs/super.c     		total_objects = sb->s_op->nr_cached_objects(sb, sc);
sb                147 fs/super.c     	total_objects += list_lru_shrink_count(&sb->s_dentry_lru, sc);
sb                148 fs/super.c     	total_objects += list_lru_shrink_count(&sb->s_inode_lru, sc);
sb                310 fs/super.c     static void put_super(struct super_block *sb)
sb                313 fs/super.c     	__put_super(sb);
sb                416 fs/super.c     bool trylock_super(struct super_block *sb)
sb                418 fs/super.c     	if (down_read_trylock(&sb->s_umount)) {
sb                419 fs/super.c     		if (!hlist_unhashed(&sb->s_instances) &&
sb                420 fs/super.c     		    sb->s_root && (sb->s_flags & SB_BORN))
sb                422 fs/super.c     		up_read(&sb->s_umount);
sb                442 fs/super.c     void generic_shutdown_super(struct super_block *sb)
sb                444 fs/super.c     	const struct super_operations *sop = sb->s_op;
sb                446 fs/super.c     	if (sb->s_root) {
sb                447 fs/super.c     		shrink_dcache_for_umount(sb);
sb                448 fs/super.c     		sync_filesystem(sb);
sb                449 fs/super.c     		sb->s_flags &= ~SB_ACTIVE;
sb                454 fs/super.c     		evict_inodes(sb);
sb                456 fs/super.c     		fsnotify_sb_delete(sb);
sb                458 fs/super.c     		if (sb->s_dio_done_wq) {
sb                459 fs/super.c     			destroy_workqueue(sb->s_dio_done_wq);
sb                460 fs/super.c     			sb->s_dio_done_wq = NULL;
sb                464 fs/super.c     			sop->put_super(sb);
sb                466 fs/super.c     		if (!list_empty(&sb->s_inodes)) {
sb                469 fs/super.c     			   sb->s_id);
sb                474 fs/super.c     	hlist_del_init(&sb->s_instances);
sb                476 fs/super.c     	up_write(&sb->s_umount);
sb                477 fs/super.c     	if (sb->s_bdi != &noop_backing_dev_info) {
sb                478 fs/super.c     		bdi_put(sb->s_bdi);
sb                479 fs/super.c     		sb->s_bdi = &noop_backing_dev_info;
sb                636 fs/super.c     void drop_super(struct super_block *sb)
sb                638 fs/super.c     	up_read(&sb->s_umount);
sb                639 fs/super.c     	put_super(sb);
sb                644 fs/super.c     void drop_super_exclusive(struct super_block *sb)
sb                646 fs/super.c     	up_write(&sb->s_umount);
sb                647 fs/super.c     	put_super(sb);
sb                653 fs/super.c     	struct super_block *sb, *p = NULL;
sb                656 fs/super.c     	list_for_each_entry(sb, &super_blocks, s_list) {
sb                657 fs/super.c     		if (hlist_unhashed(&sb->s_instances))
sb                659 fs/super.c     		sb->s_count++;
sb                662 fs/super.c     		f(sb);
sb                667 fs/super.c     		p = sb;
sb                683 fs/super.c     	struct super_block *sb, *p = NULL;
sb                686 fs/super.c     	list_for_each_entry(sb, &super_blocks, s_list) {
sb                687 fs/super.c     		if (hlist_unhashed(&sb->s_instances))
sb                689 fs/super.c     		sb->s_count++;
sb                692 fs/super.c     		down_read(&sb->s_umount);
sb                693 fs/super.c     		if (sb->s_root && (sb->s_flags & SB_BORN))
sb                694 fs/super.c     			f(sb, arg);
sb                695 fs/super.c     		up_read(&sb->s_umount);
sb                700 fs/super.c     		p = sb;
sb                719 fs/super.c     	struct super_block *sb, *p = NULL;
sb                722 fs/super.c     	hlist_for_each_entry(sb, &type->fs_supers, s_instances) {
sb                723 fs/super.c     		sb->s_count++;
sb                726 fs/super.c     		down_read(&sb->s_umount);
sb                727 fs/super.c     		if (sb->s_root && (sb->s_flags & SB_BORN))
sb                728 fs/super.c     			f(sb, arg);
sb                729 fs/super.c     		up_read(&sb->s_umount);
sb                734 fs/super.c     		p = sb;
sb                745 fs/super.c     	struct super_block *sb;
sb                752 fs/super.c     	list_for_each_entry(sb, &super_blocks, s_list) {
sb                753 fs/super.c     		if (hlist_unhashed(&sb->s_instances))
sb                755 fs/super.c     		if (sb->s_bdev == bdev) {
sb                756 fs/super.c     			sb->s_count++;
sb                759 fs/super.c     				down_read(&sb->s_umount);
sb                761 fs/super.c     				down_write(&sb->s_umount);
sb                763 fs/super.c     			if (sb->s_root && (sb->s_flags & SB_BORN))
sb                764 fs/super.c     				return sb;
sb                766 fs/super.c     				up_read(&sb->s_umount);
sb                768 fs/super.c     				up_write(&sb->s_umount);
sb                771 fs/super.c     			__put_super(sb);
sb                849 fs/super.c     	struct super_block *sb;
sb                856 fs/super.c     	list_for_each_entry(sb, &super_blocks, s_list) {
sb                857 fs/super.c     		if (hlist_unhashed(&sb->s_instances))
sb                859 fs/super.c     		if (sb->s_bdev == bdev) {
sb                860 fs/super.c     			if (!grab_super(sb))
sb                862 fs/super.c     			up_write(&sb->s_umount);
sb                863 fs/super.c     			return sb;
sb                872 fs/super.c     	struct super_block *sb;
sb                876 fs/super.c     	list_for_each_entry(sb, &super_blocks, s_list) {
sb                877 fs/super.c     		if (hlist_unhashed(&sb->s_instances))
sb                879 fs/super.c     		if (sb->s_dev ==  dev) {
sb                880 fs/super.c     			sb->s_count++;
sb                882 fs/super.c     			down_read(&sb->s_umount);
sb                884 fs/super.c     			if (sb->s_root && (sb->s_flags & SB_BORN))
sb                885 fs/super.c     				return sb;
sb                886 fs/super.c     			up_read(&sb->s_umount);
sb                889 fs/super.c     			__put_super(sb);
sb                905 fs/super.c     	struct super_block *sb = fc->root->d_sb;
sb                912 fs/super.c     	if (sb->s_writers.frozen != SB_UNFROZEN)
sb                915 fs/super.c     	retval = security_sb_remount(sb, fc->security);
sb                921 fs/super.c     		if (!(fc->sb_flags & SB_RDONLY) && bdev_read_only(sb->s_bdev))
sb                925 fs/super.c     		remount_ro = (fc->sb_flags & SB_RDONLY) && !sb_rdonly(sb);
sb                929 fs/super.c     		if (!hlist_empty(&sb->s_pins)) {
sb                930 fs/super.c     			up_write(&sb->s_umount);
sb                931 fs/super.c     			group_pin_kill(&sb->s_pins);
sb                932 fs/super.c     			down_write(&sb->s_umount);
sb                933 fs/super.c     			if (!sb->s_root)
sb                935 fs/super.c     			if (sb->s_writers.frozen != SB_UNFROZEN)
sb                937 fs/super.c     			remount_ro = !sb_rdonly(sb);
sb                940 fs/super.c     	shrink_dcache_sb(sb);
sb                947 fs/super.c     			sb->s_readonly_remount = 1;
sb                950 fs/super.c     			retval = sb_prepare_remount_readonly(sb);
sb                963 fs/super.c     			     sb->s_type->name, retval);
sb                967 fs/super.c     	WRITE_ONCE(sb->s_flags, ((sb->s_flags & ~fc->sb_flags_mask) |
sb                971 fs/super.c     	sb->s_readonly_remount = 0;
sb                981 fs/super.c     	if (remount_ro && sb->s_bdev)
sb                982 fs/super.c     		invalidate_bdev(sb->s_bdev);
sb                986 fs/super.c     	sb->s_readonly_remount = 0;
sb                990 fs/super.c     static void do_emergency_remount_callback(struct super_block *sb)
sb                992 fs/super.c     	down_write(&sb->s_umount);
sb                993 fs/super.c     	if (sb->s_root && sb->s_bdev && (sb->s_flags & SB_BORN) &&
sb                994 fs/super.c     	    !sb_rdonly(sb)) {
sb                997 fs/super.c     		fc = fs_context_for_reconfigure(sb->s_root,
sb               1005 fs/super.c     	up_write(&sb->s_umount);
sb               1026 fs/super.c     static void do_thaw_all_callback(struct super_block *sb)
sb               1028 fs/super.c     	down_write(&sb->s_umount);
sb               1029 fs/super.c     	if (sb->s_root && sb->s_flags & SB_BORN) {
sb               1030 fs/super.c     		emergency_thaw_bdev(sb);
sb               1031 fs/super.c     		thaw_super_locked(sb);
sb               1033 fs/super.c     		up_write(&sb->s_umount);
sb               1105 fs/super.c     void kill_anon_super(struct super_block *sb)
sb               1107 fs/super.c     	dev_t dev = sb->s_dev;
sb               1108 fs/super.c     	generic_shutdown_super(sb);
sb               1113 fs/super.c     void kill_litter_super(struct super_block *sb)
sb               1115 fs/super.c     	if (sb->s_root)
sb               1116 fs/super.c     		d_genocide(sb->s_root);
sb               1117 fs/super.c     	kill_anon_super(sb);
sb               1121 fs/super.c     int set_anon_super_fc(struct super_block *sb, struct fs_context *fc)
sb               1123 fs/super.c     	return set_anon_super(sb, NULL);
sb               1127 fs/super.c     static int test_keyed_super(struct super_block *sb, struct fs_context *fc)
sb               1129 fs/super.c     	return sb->s_fs_info == fc->s_fs_info;
sb               1164 fs/super.c     		  int (*fill_super)(struct super_block *sb,
sb               1168 fs/super.c     	struct super_block *sb;
sb               1186 fs/super.c     	sb = sget_fc(fc, test, set_anon_super_fc);
sb               1187 fs/super.c     	if (IS_ERR(sb))
sb               1188 fs/super.c     		return PTR_ERR(sb);
sb               1190 fs/super.c     	if (!sb->s_root) {
sb               1191 fs/super.c     		err = fill_super(sb, fc);
sb               1195 fs/super.c     		sb->s_flags |= SB_ACTIVE;
sb               1196 fs/super.c     		fc->root = dget(sb->s_root);
sb               1198 fs/super.c     		fc->root = dget(sb->s_root);
sb               1212 fs/super.c     	deactivate_locked_super(sb);
sb               1218 fs/super.c     		  int (*fill_super)(struct super_block *sb,
sb               1226 fs/super.c     		  int (*fill_super)(struct super_block *sb,
sb               1234 fs/super.c     		  int (*fill_super)(struct super_block *sb,
sb               1242 fs/super.c     		  int (*fill_super)(struct super_block *sb,
sb               1438 fs/super.c     void kill_block_super(struct super_block *sb)
sb               1440 fs/super.c     	struct block_device *bdev = sb->s_bdev;
sb               1441 fs/super.c     	fmode_t mode = sb->s_mode;
sb               1444 fs/super.c     	generic_shutdown_super(sb);
sb               1538 fs/super.c     	struct super_block *sb;
sb               1560 fs/super.c     	sb = fc->root->d_sb;
sb               1561 fs/super.c     	WARN_ON(!sb->s_bdi);
sb               1570 fs/super.c     	sb->s_flags |= SB_BORN;
sb               1572 fs/super.c     	error = security_sb_set_mnt_opts(sb, fc->security, 0, NULL);
sb               1584 fs/super.c     	WARN((sb->s_maxbytes < 0), "%s set sb->s_maxbytes to "
sb               1585 fs/super.c     		"negative value (%lld)\n", fc->fs_type->name, sb->s_maxbytes);
sb               1595 fs/super.c     int super_setup_bdi_name(struct super_block *sb, char *fmt, ...)
sb               1605 fs/super.c     	bdi->name = sb->s_type->name;
sb               1614 fs/super.c     	WARN_ON(sb->s_bdi != &noop_backing_dev_info);
sb               1615 fs/super.c     	sb->s_bdi = bdi;
sb               1625 fs/super.c     int super_setup_bdi(struct super_block *sb)
sb               1629 fs/super.c     	return super_setup_bdi_name(sb, "%.28s-%ld", sb->s_type->name,
sb               1638 fs/super.c     void __sb_end_write(struct super_block *sb, int level)
sb               1640 fs/super.c     	percpu_up_read(sb->s_writers.rw_sem + level-1);
sb               1648 fs/super.c     int __sb_start_write(struct super_block *sb, int level, bool wait)
sb               1667 fs/super.c     			if (percpu_rwsem_is_held(sb->s_writers.rw_sem + i)) {
sb               1674 fs/super.c     		percpu_down_read(sb->s_writers.rw_sem + level-1);
sb               1676 fs/super.c     		ret = percpu_down_read_trylock(sb->s_writers.rw_sem + level-1);
sb               1691 fs/super.c     static void sb_wait_write(struct super_block *sb, int level)
sb               1693 fs/super.c     	percpu_down_write(sb->s_writers.rw_sem + level-1);
sb               1700 fs/super.c     static void lockdep_sb_freeze_release(struct super_block *sb)
sb               1705 fs/super.c     		percpu_rwsem_release(sb->s_writers.rw_sem + level, 0, _THIS_IP_);
sb               1711 fs/super.c     static void lockdep_sb_freeze_acquire(struct super_block *sb)
sb               1716 fs/super.c     		percpu_rwsem_acquire(sb->s_writers.rw_sem + level, 0, _THIS_IP_);
sb               1719 fs/super.c     static void sb_freeze_unlock(struct super_block *sb)
sb               1724 fs/super.c     		percpu_up_write(sb->s_writers.rw_sem + level);
sb               1760 fs/super.c     int freeze_super(struct super_block *sb)
sb               1764 fs/super.c     	atomic_inc(&sb->s_active);
sb               1765 fs/super.c     	down_write(&sb->s_umount);
sb               1766 fs/super.c     	if (sb->s_writers.frozen != SB_UNFROZEN) {
sb               1767 fs/super.c     		deactivate_locked_super(sb);
sb               1771 fs/super.c     	if (!(sb->s_flags & SB_BORN)) {
sb               1772 fs/super.c     		up_write(&sb->s_umount);
sb               1776 fs/super.c     	if (sb_rdonly(sb)) {
sb               1778 fs/super.c     		sb->s_writers.frozen = SB_FREEZE_COMPLETE;
sb               1779 fs/super.c     		up_write(&sb->s_umount);
sb               1783 fs/super.c     	sb->s_writers.frozen = SB_FREEZE_WRITE;
sb               1785 fs/super.c     	up_write(&sb->s_umount);
sb               1786 fs/super.c     	sb_wait_write(sb, SB_FREEZE_WRITE);
sb               1787 fs/super.c     	down_write(&sb->s_umount);
sb               1790 fs/super.c     	sb->s_writers.frozen = SB_FREEZE_PAGEFAULT;
sb               1791 fs/super.c     	sb_wait_write(sb, SB_FREEZE_PAGEFAULT);
sb               1794 fs/super.c     	sync_filesystem(sb);
sb               1797 fs/super.c     	sb->s_writers.frozen = SB_FREEZE_FS;
sb               1798 fs/super.c     	sb_wait_write(sb, SB_FREEZE_FS);
sb               1800 fs/super.c     	if (sb->s_op->freeze_fs) {
sb               1801 fs/super.c     		ret = sb->s_op->freeze_fs(sb);
sb               1805 fs/super.c     			sb->s_writers.frozen = SB_UNFROZEN;
sb               1806 fs/super.c     			sb_freeze_unlock(sb);
sb               1807 fs/super.c     			wake_up(&sb->s_writers.wait_unfrozen);
sb               1808 fs/super.c     			deactivate_locked_super(sb);
sb               1816 fs/super.c     	sb->s_writers.frozen = SB_FREEZE_COMPLETE;
sb               1817 fs/super.c     	lockdep_sb_freeze_release(sb);
sb               1818 fs/super.c     	up_write(&sb->s_umount);
sb               1829 fs/super.c     static int thaw_super_locked(struct super_block *sb)
sb               1833 fs/super.c     	if (sb->s_writers.frozen != SB_FREEZE_COMPLETE) {
sb               1834 fs/super.c     		up_write(&sb->s_umount);
sb               1838 fs/super.c     	if (sb_rdonly(sb)) {
sb               1839 fs/super.c     		sb->s_writers.frozen = SB_UNFROZEN;
sb               1843 fs/super.c     	lockdep_sb_freeze_acquire(sb);
sb               1845 fs/super.c     	if (sb->s_op->unfreeze_fs) {
sb               1846 fs/super.c     		error = sb->s_op->unfreeze_fs(sb);
sb               1850 fs/super.c     			lockdep_sb_freeze_release(sb);
sb               1851 fs/super.c     			up_write(&sb->s_umount);
sb               1856 fs/super.c     	sb->s_writers.frozen = SB_UNFROZEN;
sb               1857 fs/super.c     	sb_freeze_unlock(sb);
sb               1859 fs/super.c     	wake_up(&sb->s_writers.wait_unfrozen);
sb               1860 fs/super.c     	deactivate_locked_super(sb);
sb               1864 fs/super.c     int thaw_super(struct super_block *sb)
sb               1866 fs/super.c     	down_write(&sb->s_umount);
sb               1867 fs/super.c     	return thaw_super_locked(sb);
sb                 31 fs/sync.c      static int __sync_filesystem(struct super_block *sb, int wait)
sb                 34 fs/sync.c      		sync_inodes_sb(sb);
sb                 36 fs/sync.c      		writeback_inodes_sb(sb, WB_REASON_SYNC);
sb                 38 fs/sync.c      	if (sb->s_op->sync_fs)
sb                 39 fs/sync.c      		sb->s_op->sync_fs(sb, wait);
sb                 40 fs/sync.c      	return __sync_blockdev(sb->s_bdev, wait);
sb                 48 fs/sync.c      int sync_filesystem(struct super_block *sb)
sb                 56 fs/sync.c      	WARN_ON(!rwsem_is_locked(&sb->s_umount));
sb                 61 fs/sync.c      	if (sb_rdonly(sb))
sb                 64 fs/sync.c      	ret = __sync_filesystem(sb, 0);
sb                 67 fs/sync.c      	return __sync_filesystem(sb, 1);
sb                 71 fs/sync.c      static void sync_inodes_one_sb(struct super_block *sb, void *arg)
sb                 73 fs/sync.c      	if (!sb_rdonly(sb))
sb                 74 fs/sync.c      		sync_inodes_sb(sb);
sb                 77 fs/sync.c      static void sync_fs_one_sb(struct super_block *sb, void *arg)
sb                 79 fs/sync.c      	if (!sb_rdonly(sb) && sb->s_op->sync_fs)
sb                 80 fs/sync.c      		sb->s_op->sync_fs(sb, *(int *)arg);
sb                163 fs/sync.c      	struct super_block *sb;
sb                168 fs/sync.c      	sb = f.file->f_path.dentry->d_sb;
sb                170 fs/sync.c      	down_read(&sb->s_umount);
sb                171 fs/sync.c      	ret = sync_filesystem(sb);
sb                172 fs/sync.c      	up_read(&sb->s_umount);
sb                 82 fs/sysfs/mount.c static void sysfs_kill_sb(struct super_block *sb)
sb                 84 fs/sysfs/mount.c 	void *ns = (void *)kernfs_super_ns(sb);
sb                 86 fs/sysfs/mount.c 	kernfs_kill_sb(sb);
sb                 31 fs/sysv/balloc.c static inline sysv_zone_t *get_chunk(struct super_block *sb, struct buffer_head *bh)
sb                 35 fs/sysv/balloc.c 	if (SYSV_SB(sb)->s_type == FSTYPE_SYSV4)
sb                 43 fs/sysv/balloc.c void sysv_free_block(struct super_block * sb, sysv_zone_t nr)
sb                 45 fs/sysv/balloc.c 	struct sysv_sb_info * sbi = SYSV_SB(sb);
sb                 78 fs/sysv/balloc.c 		bh = sb_getblk(sb, block);
sb                 84 fs/sysv/balloc.c 		memset(bh->b_data, 0, sb->s_blocksize);
sb                 86 fs/sysv/balloc.c 		memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t));
sb                 96 fs/sysv/balloc.c 	dirty_sb(sb);
sb                100 fs/sysv/balloc.c sysv_zone_t sysv_new_block(struct super_block * sb)
sb                102 fs/sysv/balloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                131 fs/sysv/balloc.c 		if (!(bh = sb_bread(sb, block))) {
sb                144 fs/sysv/balloc.c 		memcpy(sbi->s_bcache, get_chunk(sb, bh),
sb                150 fs/sysv/balloc.c 	dirty_sb(sb);
sb                159 fs/sysv/balloc.c unsigned long sysv_count_free_blocks(struct super_block * sb)
sb                161 fs/sysv/balloc.c 	struct sysv_sb_info * sbi = SYSV_SB(sb);
sb                204 fs/sysv/balloc.c 		bh = sb_bread(sb, block);
sb                208 fs/sysv/balloc.c 		blocks = get_chunk(sb, bh);
sb                235 fs/sysv/balloc.c 	if (!sb_rdonly(sb)) {
sb                237 fs/sysv/balloc.c 		dirty_sb(sb);
sb                 68 fs/sysv/dir.c  	struct super_block *sb = inode->i_sb;
sb                 97 fs/sysv/dir.c  					fs16_to_cpu(SYSV_SB(sb), de->inode),
sb                286 fs/sysv/dir.c  	struct super_block *sb = inode->i_sb;
sb                309 fs/sysv/dir.c  				if (de->inode == cpu_to_fs16(SYSV_SB(sb),
sb                 40 fs/sysv/ialloc.c sv_sb_fic_inode(struct super_block * sb, unsigned int i)
sb                 42 fs/sysv/ialloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 57 fs/sysv/ialloc.c sysv_raw_inode(struct super_block *sb, unsigned ino, struct buffer_head **bh)
sb                 59 fs/sysv/ialloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 64 fs/sysv/ialloc.c 	*bh = sb_bread(sb, block);
sb                 71 fs/sysv/ialloc.c static int refill_free_cache(struct super_block *sb)
sb                 73 fs/sysv/ialloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 79 fs/sysv/ialloc.c 	raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                 84 fs/sysv/ialloc.c 			*sv_sb_fic_inode(sb,i++) = cpu_to_fs16(SYSV_SB(sb), ino);
sb                 90 fs/sysv/ialloc.c 			raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                103 fs/sysv/ialloc.c 	struct super_block *sb = inode->i_sb;
sb                104 fs/sysv/ialloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                110 fs/sysv/ialloc.c 	sb = inode->i_sb;
sb                116 fs/sysv/ialloc.c 	raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                125 fs/sysv/ialloc.c 		*sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino);
sb                129 fs/sysv/ialloc.c 	dirty_sb(sb);
sb                138 fs/sysv/ialloc.c 	struct super_block *sb = dir->i_sb;
sb                139 fs/sysv/ialloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                147 fs/sysv/ialloc.c 	inode = new_inode(sb);
sb                153 fs/sysv/ialloc.c 	if (count == 0 || (*sv_sb_fic_inode(sb,count-1) == 0)) {
sb                154 fs/sysv/ialloc.c 		count = refill_free_cache(sb);
sb                162 fs/sysv/ialloc.c 	ino = *sv_sb_fic_inode(sb,--count);
sb                165 fs/sysv/ialloc.c 	dirty_sb(sb);
sb                182 fs/sysv/ialloc.c unsigned long sysv_count_free_inodes(struct super_block * sb)
sb                184 fs/sysv/ialloc.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                199 fs/sysv/ialloc.c 	raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                207 fs/sysv/ialloc.c 			raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                224 fs/sysv/ialloc.c 	if (!sb_rdonly(sb)) {
sb                225 fs/sysv/ialloc.c 		*sbi->s_sb_total_free_inodes = cpu_to_fs16(SYSV_SB(sb), count);
sb                226 fs/sysv/ialloc.c 		dirty_sb(sb);
sb                 35 fs/sysv/inode.c static int sysv_sync_fs(struct super_block *sb, int wait)
sb                 37 fs/sysv/inode.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 60 fs/sysv/inode.c static int sysv_remount(struct super_block *sb, int *flags, char *data)
sb                 62 fs/sysv/inode.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 64 fs/sysv/inode.c 	sync_filesystem(sb);
sb                 70 fs/sysv/inode.c static void sysv_put_super(struct super_block *sb)
sb                 72 fs/sysv/inode.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 74 fs/sysv/inode.c 	if (!sb_rdonly(sb)) {
sb                 90 fs/sysv/inode.c 	struct super_block *sb = dentry->d_sb;
sb                 91 fs/sysv/inode.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 92 fs/sysv/inode.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb                 94 fs/sysv/inode.c 	buf->f_type = sb->s_magic;
sb                 95 fs/sysv/inode.c 	buf->f_bsize = sb->s_blocksize;
sb                 97 fs/sysv/inode.c 	buf->f_bavail = buf->f_bfree = sysv_count_free_blocks(sb);
sb                 99 fs/sysv/inode.c 	buf->f_ffree = sysv_count_free_inodes(sb);
sb                171 fs/sysv/inode.c struct inode *sysv_iget(struct super_block *sb, unsigned int ino)
sb                173 fs/sysv/inode.c 	struct sysv_sb_info * sbi = SYSV_SB(sb);
sb                182 fs/sysv/inode.c 		       sb->s_id, ino);
sb                186 fs/sysv/inode.c 	inode = iget_locked(sb, ino);
sb                192 fs/sysv/inode.c 	raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                233 fs/sysv/inode.c 	struct super_block * sb = inode->i_sb;
sb                234 fs/sysv/inode.c 	struct sysv_sb_info * sbi = SYSV_SB(sb);
sb                247 fs/sysv/inode.c 	raw_inode = sysv_raw_inode(sb, ino, &bh);
sb                273 fs/sysv/inode.c                                 sb->s_id, ino);
sb                306 fs/sysv/inode.c static struct inode *sysv_alloc_inode(struct super_block *sb)
sb                 25 fs/sysv/itree.c 	struct super_block *sb = inode->i_sb;
sb                 26 fs/sysv/itree.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                 94 fs/sysv/itree.c 	struct super_block *sb = inode->i_sb;
sb                103 fs/sysv/itree.c 		int block = block_to_cpu(SYSV_SB(sb), p->key);
sb                104 fs/sysv/itree.c 		bh = sb_bread(sb, block);
sb                208 fs/sysv/itree.c 	struct super_block *sb = inode->i_sb;
sb                224 fs/sysv/itree.c 		map_bh(bh_result, sb, block_to_cpu(SYSV_SB(sb),
sb                341 fs/sysv/itree.c 	struct super_block *sb = inode->i_sb;
sb                350 fs/sysv/itree.c 			block = block_to_cpu(SYSV_SB(sb), nr);
sb                351 fs/sysv/itree.c 			bh = sb_bread(sb, block);
sb                357 fs/sysv/itree.c 			sysv_free_block(sb, nr);
sb                202 fs/sysv/super.c 	struct super_block *sb = sbi->s_sb;
sb                220 fs/sysv/super.c  		if (!sb_rdonly(sb)) {
sb                223 fs/sysv/super.c  				sb->s_id);
sb                245 fs/sysv/super.c 		       "forcing read-only mode.\n", sb->s_id);
sb                303 fs/sysv/super.c static int complete_read_super(struct super_block *sb, int silent, int size)
sb                305 fs/sysv/super.c 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                314 fs/sysv/super.c 	flavour_setup[sbi->s_type](sbi, &sb->s_max_links);
sb                330 fs/sysv/super.c 		       found, sb->s_blocksize, sb->s_id);
sb                332 fs/sysv/super.c 	sb->s_magic = SYSV_MAGIC_BASE + sbi->s_type;
sb                334 fs/sysv/super.c 	sb->s_op = &sysv_sops;
sb                336 fs/sysv/super.c 		sb->s_flags |= SB_RDONLY;
sb                337 fs/sysv/super.c 	root_inode = sysv_iget(sb, SYSV_ROOT_INO);
sb                342 fs/sysv/super.c 	sb->s_root = d_make_root(root_inode);
sb                343 fs/sysv/super.c 	if (!sb->s_root) {
sb                350 fs/sysv/super.c static int sysv_fill_super(struct super_block *sb, void *data, int silent)
sb                367 fs/sysv/super.c 	sbi->s_sb = sb;
sb                370 fs/sysv/super.c 	sb->s_fs_info = sbi;
sb                371 fs/sysv/super.c 	sb->s_time_min = 0;
sb                372 fs/sysv/super.c 	sb->s_time_max = U32_MAX;
sb                373 fs/sysv/super.c 	sb_set_blocksize(sb, BLOCK_SIZE);
sb                377 fs/sysv/super.c 		bh = sb_bread(sb, flavours[i].block);
sb                380 fs/sysv/super.c 		size = flavours[i].test(SYSV_SB(sb), bh);
sb                390 fs/sysv/super.c 			sb_set_blocksize(sb, 512);
sb                391 fs/sysv/super.c 			bh1 = sb_bread(sb, blocknr);
sb                392 fs/sysv/super.c 			bh = sb_bread(sb, blocknr + 1);
sb                400 fs/sysv/super.c 			sb_set_blocksize(sb, 2048);
sb                401 fs/sysv/super.c 			bh1 = bh = sb_bread(sb, blocknr);
sb                410 fs/sysv/super.c 		if (complete_read_super(sb, silent, size))
sb                416 fs/sysv/super.c 	sb_set_blocksize(sb, BLOCK_SIZE);
sb                426 fs/sysv/super.c 			sb->s_id);
sb                436 fs/sysv/super.c static int v7_sanity_check(struct super_block *sb, struct buffer_head *bh)
sb                443 fs/sysv/super.c 	sbi = sb->s_fs_info;
sb                454 fs/sysv/super.c 	bh2 = sb_bread(sb, 2);
sb                472 fs/sysv/super.c static int v7_fill_super(struct super_block *sb, void *data, int silent)
sb                486 fs/sysv/super.c 	sbi->s_sb = sb;
sb                490 fs/sysv/super.c 	sb->s_fs_info = sbi;
sb                491 fs/sysv/super.c 	sb->s_time_min = 0;
sb                492 fs/sysv/super.c 	sb->s_time_max = U32_MAX;
sb                494 fs/sysv/super.c 	sb_set_blocksize(sb, 512);
sb                496 fs/sysv/super.c 	if ((bh = sb_bread(sb, 1)) == NULL) {
sb                499 fs/sysv/super.c 			       "device %s.\n", sb->s_id);
sb                505 fs/sysv/super.c 	if (v7_sanity_check(sb, bh))
sb                510 fs/sysv/super.c 	if (v7_sanity_check(sb, bh))
sb                518 fs/sysv/super.c 	if (complete_read_super(sb, silent, 1))
sb                523 fs/sysv/super.c 		sb->s_id);
sb                 78 fs/sysv/sysv.h static inline struct sysv_sb_info *SYSV_SB(struct super_block *sb)
sb                 80 fs/sysv/sysv.h 	return sb->s_fs_info;
sb                113 fs/sysv/sysv.h static inline void dirty_sb(struct super_block *sb)
sb                115 fs/sysv/sysv.h 	struct sysv_sb_info *sbi = SYSV_SB(sb);
sb                128 fs/tracefs/inode.c static struct inode *tracefs_get_inode(struct super_block *sb)
sb                130 fs/tracefs/inode.c 	struct inode *inode = new_inode(sb);
sb                210 fs/tracefs/inode.c static int tracefs_apply_options(struct super_block *sb)
sb                212 fs/tracefs/inode.c 	struct tracefs_fs_info *fsi = sb->s_fs_info;
sb                213 fs/tracefs/inode.c 	struct inode *inode = sb->s_root->d_inode;
sb                225 fs/tracefs/inode.c static int tracefs_remount(struct super_block *sb, int *flags, char *data)
sb                228 fs/tracefs/inode.c 	struct tracefs_fs_info *fsi = sb->s_fs_info;
sb                230 fs/tracefs/inode.c 	sync_filesystem(sb);
sb                235 fs/tracefs/inode.c 	tracefs_apply_options(sb);
sb                264 fs/tracefs/inode.c static int trace_fill_super(struct super_block *sb, void *data, int silent)
sb                271 fs/tracefs/inode.c 	sb->s_fs_info = fsi;
sb                281 fs/tracefs/inode.c 	err  =  simple_fill_super(sb, TRACEFS_MAGIC, trace_files);
sb                285 fs/tracefs/inode.c 	sb->s_op = &tracefs_super_operations;
sb                287 fs/tracefs/inode.c 	tracefs_apply_options(sb);
sb                293 fs/tracefs/inode.c 	sb->s_fs_info = NULL;
sb               2301 fs/ubifs/debug.c 	struct ubifs_scan_node *sa, *sb;
sb               2312 fs/ubifs/debug.c 		sb = container_of(cur->next, struct ubifs_scan_node, list);
sb               2319 fs/ubifs/debug.c 		if (sb->type != UBIFS_DATA_NODE) {
sb               2320 fs/ubifs/debug.c 			ubifs_err(c, "bad node type %d", sb->type);
sb               2321 fs/ubifs/debug.c 			ubifs_dump_node(c, sb->node);
sb               2326 fs/ubifs/debug.c 		inumb = key_inum(c, &sb->key);
sb               2337 fs/ubifs/debug.c 		blkb = key_block(c, &sb->key);
sb               2353 fs/ubifs/debug.c 	ubifs_dump_node(c, sb->node);
sb               2368 fs/ubifs/debug.c 	struct ubifs_scan_node *sa, *sb;
sb               2379 fs/ubifs/debug.c 		sb = container_of(cur->next, struct ubifs_scan_node, list);
sb               2387 fs/ubifs/debug.c 		if (sb->type != UBIFS_INO_NODE && sb->type != UBIFS_DENT_NODE &&
sb               2388 fs/ubifs/debug.c 		    sb->type != UBIFS_XENT_NODE) {
sb               2389 fs/ubifs/debug.c 			ubifs_err(c, "bad node type %d", sb->type);
sb               2390 fs/ubifs/debug.c 			ubifs_dump_node(c, sb->node);
sb               2394 fs/ubifs/debug.c 		if (sa->type != UBIFS_INO_NODE && sb->type == UBIFS_INO_NODE) {
sb               2399 fs/ubifs/debug.c 		if (sa->type == UBIFS_INO_NODE && sb->type != UBIFS_INO_NODE)
sb               2402 fs/ubifs/debug.c 		if (sa->type == UBIFS_INO_NODE && sb->type == UBIFS_INO_NODE) {
sb               2404 fs/ubifs/debug.c 			if (sa->len < sb->len) {
sb               2416 fs/ubifs/debug.c 		inumb = key_inum(c, &sb->key);
sb               2427 fs/ubifs/debug.c 		hashb = key_block(c, &sb->key);
sb               2442 fs/ubifs/debug.c 	ubifs_dump_node(c, sb->node);
sb                113 fs/ubifs/gc.c  	struct ubifs_scan_node *sa, *sb;
sb                120 fs/ubifs/gc.c  	sb = list_entry(b, struct ubifs_scan_node, list);
sb                123 fs/ubifs/gc.c  	ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DATA_KEY);
sb                125 fs/ubifs/gc.c  	ubifs_assert(c, sb->type == UBIFS_DATA_NODE);
sb                128 fs/ubifs/gc.c  	inumb = key_inum(c, &sb->key);
sb                132 fs/ubifs/gc.c  		unsigned int blkb = key_block(c, &sb->key);
sb                157 fs/ubifs/gc.c  	struct ubifs_scan_node *sa, *sb;
sb                164 fs/ubifs/gc.c  	sb = list_entry(b, struct ubifs_scan_node, list);
sb                167 fs/ubifs/gc.c  		     key_type(c, &sb->key) != UBIFS_DATA_KEY);
sb                169 fs/ubifs/gc.c  		     sb->type != UBIFS_DATA_NODE);
sb                173 fs/ubifs/gc.c  		if (sb->type == UBIFS_INO_NODE)
sb                174 fs/ubifs/gc.c  			return sb->len - sa->len;
sb                177 fs/ubifs/gc.c  	if (sb->type == UBIFS_INO_NODE)
sb                182 fs/ubifs/gc.c  	ubifs_assert(c, key_type(c, &sb->key) == UBIFS_DENT_KEY ||
sb                183 fs/ubifs/gc.c  		     key_type(c, &sb->key) == UBIFS_XENT_KEY);
sb                186 fs/ubifs/gc.c  	ubifs_assert(c, sb->type == UBIFS_DENT_NODE ||
sb                187 fs/ubifs/gc.c  		     sb->type == UBIFS_XENT_NODE);
sb                190 fs/ubifs/gc.c  	inumb = key_inum(c, &sb->key);
sb                194 fs/ubifs/gc.c  		uint32_t hashb = key_hash(c, &sb->key);
sb                 89 fs/ubifs/super.c struct inode *ubifs_iget(struct super_block *sb, unsigned long inum)
sb                 94 fs/ubifs/super.c 	struct ubifs_info *c = sb->s_fs_info;
sb                100 fs/ubifs/super.c 	inode = iget_locked(sb, inum);
sb                249 fs/ubifs/super.c static struct inode *ubifs_alloc_inode(struct super_block *sb)
sb                448 fs/ubifs/super.c static int ubifs_sync_fs(struct super_block *sb, int wait)
sb                451 fs/ubifs/super.c 	struct ubifs_info *c = sb->s_fs_info;
sb               1109 fs/ubifs/super.c 			struct super_block *sb = c->vfs_sb;
sb               1117 fs/ubifs/super.c 			sb->s_flags |= flag;
sb               1876 fs/ubifs/super.c static void ubifs_put_super(struct super_block *sb)
sb               1879 fs/ubifs/super.c 	struct ubifs_info *c = sb->s_fs_info;
sb               1954 fs/ubifs/super.c static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data)
sb               1957 fs/ubifs/super.c 	struct ubifs_info *c = sb->s_fs_info;
sb               1959 fs/ubifs/super.c 	sync_filesystem(sb);
sb               1960 fs/ubifs/super.c 	dbg_gen("old flags %#lx, new flags %#x", sb->s_flags, *flags);
sb               2130 fs/ubifs/super.c static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
sb               2132 fs/ubifs/super.c 	struct ubifs_info *c = sb->s_fs_info;
sb               2136 fs/ubifs/super.c 	c->vfs_sb = sb;
sb               2158 fs/ubifs/super.c 	err = super_setup_bdi_name(sb, "ubifs_%d_%d", c->vi.ubi_num,
sb               2163 fs/ubifs/super.c 	sb->s_fs_info = c;
sb               2164 fs/ubifs/super.c 	sb->s_magic = UBIFS_SUPER_MAGIC;
sb               2165 fs/ubifs/super.c 	sb->s_blocksize = UBIFS_BLOCK_SIZE;
sb               2166 fs/ubifs/super.c 	sb->s_blocksize_bits = UBIFS_BLOCK_SHIFT;
sb               2167 fs/ubifs/super.c 	sb->s_maxbytes = c->max_inode_sz = key_max_inode_size(c);
sb               2169 fs/ubifs/super.c 		sb->s_maxbytes = c->max_inode_sz = MAX_LFS_FILESIZE;
sb               2170 fs/ubifs/super.c 	sb->s_op = &ubifs_super_operations;
sb               2172 fs/ubifs/super.c 	sb->s_xattr = ubifs_xattr_handlers;
sb               2174 fs/ubifs/super.c 	fscrypt_set_ops(sb, &ubifs_crypt_operations);
sb               2184 fs/ubifs/super.c 	root = ubifs_iget(sb, UBIFS_ROOT_INO);
sb               2190 fs/ubifs/super.c 	sb->s_root = d_make_root(root);
sb               2191 fs/ubifs/super.c 	if (!sb->s_root) {
sb               2209 fs/ubifs/super.c static int sb_test(struct super_block *sb, void *data)
sb               2212 fs/ubifs/super.c 	struct ubifs_info *c = sb->s_fs_info;
sb               2217 fs/ubifs/super.c static int sb_set(struct super_block *sb, void *data)
sb               2219 fs/ubifs/super.c 	sb->s_fs_info = data;
sb               2220 fs/ubifs/super.c 	return set_anon_super(sb, NULL);
sb               2228 fs/ubifs/super.c 	struct super_block *sb;
sb               2254 fs/ubifs/super.c 	sb = sget(fs_type, sb_test, sb_set, flags, c);
sb               2255 fs/ubifs/super.c 	if (IS_ERR(sb)) {
sb               2256 fs/ubifs/super.c 		err = PTR_ERR(sb);
sb               2261 fs/ubifs/super.c 	if (sb->s_root) {
sb               2262 fs/ubifs/super.c 		struct ubifs_info *c1 = sb->s_fs_info;
sb               2271 fs/ubifs/super.c 		err = ubifs_fill_super(sb, data, flags & SB_SILENT ? 1 : 0);
sb               2275 fs/ubifs/super.c 		sb->s_flags |= SB_ACTIVE;
sb               2279 fs/ubifs/super.c 			sb->s_flags |= SB_NOATIME;
sb               2285 fs/ubifs/super.c 	return dget(sb->s_root);
sb               2288 fs/ubifs/super.c 	deactivate_locked_super(sb);
sb               2034 fs/ubifs/ubifs.h struct inode *ubifs_iget(struct super_block *sb, unsigned long inum);
sb                 34 fs/udf/balloc.c static int read_block_bitmap(struct super_block *sb,
sb                 43 fs/udf/balloc.c 	loc.partitionReferenceNum = UDF_SB(sb)->s_partition;
sb                 45 fs/udf/balloc.c 	bh = udf_tread(sb, udf_get_lb_pblock(sb, &loc, block));
sb                 53 fs/udf/balloc.c static int __load_block_bitmap(struct super_block *sb,
sb                 68 fs/udf/balloc.c 	retval = read_block_bitmap(sb, bitmap, block_group, block_group);
sb                 75 fs/udf/balloc.c static inline int load_block_bitmap(struct super_block *sb,
sb                 81 fs/udf/balloc.c 	slot = __load_block_bitmap(sb, bitmap, block_group);
sb                 92 fs/udf/balloc.c static void udf_add_free_space(struct super_block *sb, u16 partition, u32 cnt)
sb                 94 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                102 fs/udf/balloc.c 	udf_updated_lvid(sb);
sb                105 fs/udf/balloc.c static void udf_bitmap_free_blocks(struct super_block *sb,
sb                111 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                137 fs/udf/balloc.c 		block_group = block >> (sb->s_blocksize_bits + 3);
sb                138 fs/udf/balloc.c 		bit = block % (sb->s_blocksize << 3);
sb                143 fs/udf/balloc.c 		if (bit + count > (sb->s_blocksize << 3)) {
sb                144 fs/udf/balloc.c 			overflow = bit + count - (sb->s_blocksize << 3);
sb                147 fs/udf/balloc.c 		bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
sb                159 fs/udf/balloc.c 		udf_add_free_space(sb, sbi->s_partition, count);
sb                171 fs/udf/balloc.c static int udf_bitmap_prealloc_blocks(struct super_block *sb,
sb                176 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                193 fs/udf/balloc.c 		block_group = block >> (sb->s_blocksize_bits + 3);
sb                195 fs/udf/balloc.c 		bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
sb                200 fs/udf/balloc.c 		bit = block % (sb->s_blocksize << 3);
sb                202 fs/udf/balloc.c 		while (bit < (sb->s_blocksize << 3) && block_count > 0) {
sb                214 fs/udf/balloc.c 	udf_add_free_space(sb, partition, -alloc_count);
sb                219 fs/udf/balloc.c static udf_pblk_t udf_bitmap_new_block(struct super_block *sb,
sb                223 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                241 fs/udf/balloc.c 	block_group = block >> (sb->s_blocksize_bits + 3);
sb                244 fs/udf/balloc.c 	bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
sb                249 fs/udf/balloc.c 		      sb->s_blocksize - group_start);
sb                251 fs/udf/balloc.c 	if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) {
sb                252 fs/udf/balloc.c 		bit = block % (sb->s_blocksize << 3);
sb                262 fs/udf/balloc.c 			      sb->s_blocksize - ((bit + 7) >> 3));
sb                264 fs/udf/balloc.c 		if (newbit < sb->s_blocksize << 3) {
sb                270 fs/udf/balloc.c 					       sb->s_blocksize << 3, bit);
sb                271 fs/udf/balloc.c 		if (newbit < sb->s_blocksize << 3) {
sb                283 fs/udf/balloc.c 		bitmap_nr = load_block_bitmap(sb, bitmap, block_group);
sb                289 fs/udf/balloc.c 				      sb->s_blocksize - group_start);
sb                290 fs/udf/balloc.c 			if ((ptr - ((char *)bh->b_data)) < sb->s_blocksize) {
sb                296 fs/udf/balloc.c 						    sb->s_blocksize << 3,
sb                298 fs/udf/balloc.c 			if (bit < sb->s_blocksize << 3)
sb                306 fs/udf/balloc.c 	if (bit < sb->s_blocksize << 3)
sb                309 fs/udf/balloc.c 		bit = udf_find_next_one_bit(bh->b_data, sb->s_blocksize << 3,
sb                311 fs/udf/balloc.c 	if (bit >= sb->s_blocksize << 3) {
sb                325 fs/udf/balloc.c 	newblock = bit + (block_group << (sb->s_blocksize_bits + 3)) -
sb                333 fs/udf/balloc.c 		udf_err(sb, "bitmap for partition %d corrupted (block %u marked"
sb                346 fs/udf/balloc.c 	udf_add_free_space(sb, partition, -1);
sb                357 fs/udf/balloc.c static void udf_table_free_blocks(struct super_block *sb,
sb                363 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                384 fs/udf/balloc.c 	udf_add_free_space(sb, sbi->s_partition, count);
sb                397 fs/udf/balloc.c 			(elen >> sb->s_blocksize_bits)) == start)) {
sb                399 fs/udf/balloc.c 					(count << sb->s_blocksize_bits)) {
sb                401 fs/udf/balloc.c 							sb->s_blocksize_bits);
sb                405 fs/udf/balloc.c 					(0x40000000 - sb->s_blocksize);
sb                409 fs/udf/balloc.c 					(count << sb->s_blocksize_bits));
sb                416 fs/udf/balloc.c 					(count << sb->s_blocksize_bits)) {
sb                418 fs/udf/balloc.c 						sb->s_blocksize_bits);
sb                423 fs/udf/balloc.c 					(0x40000000 - sb->s_blocksize);
sb                428 fs/udf/balloc.c 					(count << sb->s_blocksize_bits));
sb                464 fs/udf/balloc.c 			(count << sb->s_blocksize_bits);
sb                476 fs/udf/balloc.c 		if (epos.offset + (2 * adsize) > sb->s_blocksize) {
sb                482 fs/udf/balloc.c 			elen -= sb->s_blocksize;
sb                498 fs/udf/balloc.c static int udf_table_prealloc_blocks(struct super_block *sb,
sb                502 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                537 fs/udf/balloc.c 		alloc_count = (elen >> sb->s_blocksize_bits);
sb                541 fs/udf/balloc.c 			elen -= (alloc_count << sb->s_blocksize_bits);
sb                553 fs/udf/balloc.c 		udf_add_free_space(sb, partition, -alloc_count);
sb                558 fs/udf/balloc.c static udf_pblk_t udf_table_new_block(struct super_block *sb,
sb                562 fs/udf/balloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                598 fs/udf/balloc.c 					(elen >> sb->s_blocksize_bits))
sb                602 fs/udf/balloc.c 					(elen >> sb->s_blocksize_bits);
sb                636 fs/udf/balloc.c 	goal_elen -= sb->s_blocksize;
sb                644 fs/udf/balloc.c 	udf_add_free_space(sb, partition, -1);
sb                651 fs/udf/balloc.c void udf_free_blocks(struct super_block *sb, struct inode *inode,
sb                656 fs/udf/balloc.c 	struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
sb                659 fs/udf/balloc.c 		udf_bitmap_free_blocks(sb, map->s_uspace.s_bitmap,
sb                662 fs/udf/balloc.c 		udf_table_free_blocks(sb, map->s_uspace.s_table,
sb                668 fs/udf/balloc.c 				((sector_t)count) << sb->s_blocksize_bits);
sb                672 fs/udf/balloc.c inline int udf_prealloc_blocks(struct super_block *sb,
sb                677 fs/udf/balloc.c 	struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
sb                681 fs/udf/balloc.c 		allocated = udf_bitmap_prealloc_blocks(sb,
sb                686 fs/udf/balloc.c 		allocated = udf_table_prealloc_blocks(sb,
sb                694 fs/udf/balloc.c 		inode_add_bytes(inode, allocated << sb->s_blocksize_bits);
sb                698 fs/udf/balloc.c inline udf_pblk_t udf_new_block(struct super_block *sb,
sb                702 fs/udf/balloc.c 	struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
sb                706 fs/udf/balloc.c 		block = udf_bitmap_new_block(sb,
sb                710 fs/udf/balloc.c 		block = udf_table_new_block(sb,
sb                718 fs/udf/balloc.c 		inode_add_bytes(inode, sb->s_blocksize);
sb                 60 fs/udf/dir.c   	struct super_block *sb = dir->i_sb;
sb                 80 fs/udf/dir.c   	fibh.soffset = fibh.eoffset = nf_pos & (sb->s_blocksize - 1);
sb                 82 fs/udf/dir.c   		if (inode_bmap(dir, nf_pos >> sb->s_blocksize_bits,
sb                 88 fs/udf/dir.c   		block = udf_get_lb_pblock(sb, &eloc, offset);
sb                 89 fs/udf/dir.c   		if ((++offset << sb->s_blocksize_bits) < elen) {
sb                 99 fs/udf/dir.c   		if (!(fibh.sbh = fibh.ebh = udf_tread(sb, block))) {
sb                104 fs/udf/dir.c   		if (!(offset & ((16 >> (sb->s_blocksize_bits - 9)) - 1))) {
sb                105 fs/udf/dir.c   			i = 16 >> (sb->s_blocksize_bits - 9);
sb                106 fs/udf/dir.c   			if (i + offset > (elen >> sb->s_blocksize_bits))
sb                107 fs/udf/dir.c   				i = (elen >> sb->s_blocksize_bits) - offset;
sb                109 fs/udf/dir.c   				block = udf_get_lb_pblock(sb, &eloc, offset + i);
sb                110 fs/udf/dir.c   				tmp = udf_tgetblk(sb, block);
sb                164 fs/udf/dir.c   			if (!UDF_QUERY_FLAG(sb, UDF_FLAG_UNDELETE))
sb                169 fs/udf/dir.c   			if (!UDF_QUERY_FLAG(sb, UDF_FLAG_UNHIDE))
sb                179 fs/udf/dir.c   		flen = udf_get_filename(sb, nameptr, lfi, fname, UDF_NAME_LEN);
sb                184 fs/udf/dir.c   		iblock = udf_get_lb_pblock(sb, &tloc, 0);
sb                260 fs/udf/file.c  	struct super_block *sb = inode->i_sb;
sb                268 fs/udf/file.c  	    UDF_QUERY_FLAG(sb, UDF_FLAG_UID_SET) &&
sb                269 fs/udf/file.c  	    !uid_eq(attr->ia_uid, UDF_SB(sb)->s_uid))
sb                272 fs/udf/file.c  	    UDF_QUERY_FLAG(sb, UDF_FLAG_GID_SET) &&
sb                273 fs/udf/file.c  	    !gid_eq(attr->ia_gid, UDF_SB(sb)->s_gid))
sb                 31 fs/udf/ialloc.c 	struct super_block *sb = inode->i_sb;
sb                 32 fs/udf/ialloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                 33 fs/udf/ialloc.c 	struct logicalVolIntegrityDescImpUse *lvidiu = udf_sb_lvidiu(sb);
sb                 41 fs/udf/ialloc.c 		udf_updated_lvid(sb);
sb                 45 fs/udf/ialloc.c 	udf_free_blocks(sb, NULL, &UDF_I(inode)->i_location, 0, 1);
sb                 50 fs/udf/ialloc.c 	struct super_block *sb = dir->i_sb;
sb                 51 fs/udf/ialloc.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                 60 fs/udf/ialloc.c 	inode = new_inode(sb);
sb                 93 fs/udf/ialloc.c 	lvidiu = udf_sb_lvidiu(sb);
sb                 95 fs/udf/ialloc.c 		iinfo->i_unique = lvid_get_unique_id(sb);
sb                102 fs/udf/ialloc.c 		udf_updated_lvid(sb);
sb                107 fs/udf/ialloc.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_UID_SET))
sb                109 fs/udf/ialloc.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_GID_SET))
sb                115 fs/udf/ialloc.c 	inode->i_ino = udf_get_lb_pblock(sb, &iinfo->i_location, 0);
sb                490 fs/udf/inode.c 	struct super_block *sb = inode->i_sb;
sb                503 fs/udf/inode.c 	if (last_ext->extLength & (sb->s_blocksize - 1)) {
sb                507 fs/udf/inode.c 			  sb->s_blocksize - 1) & ~(sb->s_blocksize - 1));
sb                509 fs/udf/inode.c 			(iinfo->i_lenExtents + sb->s_blocksize - 1) &
sb                510 fs/udf/inode.c 			~(sb->s_blocksize - 1);
sb                529 fs/udf/inode.c 		add = (1 << 30) - sb->s_blocksize -
sb                561 fs/udf/inode.c 	add = (1 << 30) - sb->s_blocksize;
sb                612 fs/udf/inode.c 	struct super_block *sb = inode->i_sb;
sb                616 fs/udf/inode.c 		      (last_ext->extLength & (sb->s_blocksize - 1));
sb                631 fs/udf/inode.c 	struct super_block *sb = inode->i_sb;
sb                632 fs/udf/inode.c 	sector_t first_block = newsize >> sb->s_blocksize_bits, offset;
sb                664 fs/udf/inode.c 	partial_final_block = newsize & (sb->s_blocksize - 1);
sb                674 fs/udf/inode.c 		loff_t add = ((loff_t)offset << sb->s_blocksize_bits) |
sb               1899 fs/udf/inode.c struct inode *__udf_iget(struct super_block *sb, struct kernel_lb_addr *ino,
sb               1902 fs/udf/inode.c 	unsigned long block = udf_get_lb_pblock(sb, ino, 0);
sb               1903 fs/udf/inode.c 	struct inode *inode = iget_locked(sb, block);
sb               1926 fs/udf/inode.c 	struct super_block *sb = inode->i_sb;
sb               1943 fs/udf/inode.c 	bh = udf_tgetblk(sb, udf_get_lb_pblock(sb, &neloc, 0));
sb               1947 fs/udf/inode.c 	memset(bh->b_data, 0x00, sb->s_blocksize);
sb               1953 fs/udf/inode.c 	if (!UDF_QUERY_FLAG(sb, UDF_FLAG_STRICT)) {
sb               1958 fs/udf/inode.c 	if (UDF_SB(sb)->s_udfrev >= 0x0200)
sb               1973 fs/udf/inode.c 	if (epos->offset + adsize > sb->s_blocksize) {
sb               1984 fs/udf/inode.c 			       sb->s_blocksize | EXT_NEXT_EXTENT_ALLOCDECS, 0);
sb               1987 fs/udf/inode.c 			       sb->s_blocksize | EXT_NEXT_EXTENT_ALLOCDECS, 0);
sb               2054 fs/udf/inode.c 	struct super_block *sb = inode->i_sb;
sb               2063 fs/udf/inode.c 	if (epos->offset + (2 * adsize) > sb->s_blocksize) {
sb               2067 fs/udf/inode.c 		new_block = udf_new_block(sb, NULL,
sb                 28 fs/udf/lowlevel.c unsigned int udf_get_last_session(struct super_block *sb)
sb                 32 fs/udf/lowlevel.c 	struct block_device *bdev = sb->s_bdev;
sb                 50 fs/udf/lowlevel.c unsigned long udf_get_last_block(struct super_block *sb)
sb                 52 fs/udf/lowlevel.c 	struct block_device *bdev = sb->s_bdev;
sb                 61 fs/udf/lowlevel.c 		lblock = i_size_read(bdev->bd_inode) >> sb->s_blocksize_bits;
sb                 31 fs/udf/misc.c  struct buffer_head *udf_tgetblk(struct super_block *sb, udf_pblk_t block)
sb                 33 fs/udf/misc.c  	if (UDF_QUERY_FLAG(sb, UDF_FLAG_VARCONV))
sb                 34 fs/udf/misc.c  		return sb_getblk(sb, udf_fixed_to_variable(block));
sb                 36 fs/udf/misc.c  		return sb_getblk(sb, block);
sb                 39 fs/udf/misc.c  struct buffer_head *udf_tread(struct super_block *sb, udf_pblk_t block)
sb                 41 fs/udf/misc.c  	if (UDF_QUERY_FLAG(sb, UDF_FLAG_VARCONV))
sb                 42 fs/udf/misc.c  		return sb_bread(sb, udf_fixed_to_variable(block));
sb                 44 fs/udf/misc.c  		return sb_bread(sb, block);
sb                199 fs/udf/misc.c  struct buffer_head *udf_read_tagged(struct super_block *sb, uint32_t block,
sb                210 fs/udf/misc.c  	bh = udf_tread(sb, block);
sb                212 fs/udf/misc.c  		udf_err(sb, "read failed, block=%u, location=%u\n",
sb                230 fs/udf/misc.c  		udf_err(sb, "tag checksum failed, block %u: 0x%02x != 0x%02x\n",
sb                238 fs/udf/misc.c  		udf_err(sb, "tag version 0x%04x != 0x0002 || 0x0003, block %u\n",
sb                244 fs/udf/misc.c  	if (le16_to_cpu(tag_p->descCRCLength) + sizeof(struct tag) > sb->s_blocksize ||
sb                258 fs/udf/misc.c  struct buffer_head *udf_read_ptagged(struct super_block *sb,
sb                262 fs/udf/misc.c  	return udf_read_tagged(sb, udf_get_lb_pblock(sb, loc, offset),
sb                181 fs/udf/namei.c 	struct super_block *sb = dir->i_sb;
sb                187 fs/udf/namei.c 	fibh->soffset = fibh->eoffset = f_pos & (sb->s_blocksize - 1);
sb                189 fs/udf/namei.c 		if (inode_bmap(dir, f_pos >> sb->s_blocksize_bits, &epos,
sb                195 fs/udf/namei.c 		block = udf_get_lb_pblock(sb, &eloc, offset);
sb                196 fs/udf/namei.c 		if ((++offset << sb->s_blocksize_bits) < elen) {
sb                204 fs/udf/namei.c 		fibh->sbh = fibh->ebh = udf_tread(sb, block);
sb                257 fs/udf/namei.c 			if (!UDF_QUERY_FLAG(sb, UDF_FLAG_UNDELETE))
sb                262 fs/udf/namei.c 			if (!UDF_QUERY_FLAG(sb, UDF_FLAG_UNHIDE))
sb                273 fs/udf/namei.c 		flen = udf_get_filename(sb, nameptr, lfi, fname, UDF_NAME_LEN);
sb                332 fs/udf/namei.c 	struct super_block *sb = dir->i_sb;
sb                358 fs/udf/namei.c 		namelen = udf_put_filename(sb, dentry->d_name.name,
sb                380 fs/udf/namei.c 			fibh->soffset = fibh->eoffset = sb->s_blocksize;
sb                432 fs/udf/namei.c 	    sb->s_blocksize - fibh->eoffset < nfidlen) {
sb                452 fs/udf/namei.c 	if (sb->s_blocksize - fibh->eoffset >= nfidlen) {
sb                476 fs/udf/namei.c 		elen = (elen + sb->s_blocksize - 1) & ~(sb->s_blocksize - 1);
sb                482 fs/udf/namei.c 		dinfo->i_lenExtents = (dinfo->i_lenExtents + sb->s_blocksize
sb                483 fs/udf/namei.c 					- 1) & ~(sb->s_blocksize - 1);
sb                485 fs/udf/namei.c 		fibh->soffset = fibh->eoffset - sb->s_blocksize;
sb                486 fs/udf/namei.c 		fibh->eoffset += nfidlen - sb->s_blocksize;
sb                516 fs/udf/namei.c 				(fibh->sbh->b_data + sb->s_blocksize +
sb                522 fs/udf/namei.c 	if (UDF_SB(sb)->s_udfrev >= 0x0200)
sb                895 fs/udf/namei.c 	struct super_block *sb = dir->i_sb;
sb                916 fs/udf/namei.c 		block = udf_new_block(sb, inode,
sb                927 fs/udf/namei.c 		bsize = sb->s_blocksize;
sb                932 fs/udf/namei.c 		block = udf_get_pblock(sb, block,
sb                935 fs/udf/namei.c 		epos.bh = udf_tgetblk(sb, block);
sb                945 fs/udf/namei.c 	eoffset = sb->s_blocksize - udf_ext0_offset(inode);
sb                985 fs/udf/namei.c 			namelen = udf_put_filename(sb, compstart,
sb               1237 fs/udf/namei.c static struct dentry *udf_nfs_get_inode(struct super_block *sb, u32 block,
sb               1248 fs/udf/namei.c 	inode = udf_iget(sb, &loc);
sb               1260 fs/udf/namei.c static struct dentry *udf_fh_to_dentry(struct super_block *sb,
sb               1268 fs/udf/namei.c 	return udf_nfs_get_inode(sb, fid->udf.block, fid->udf.partref,
sb               1272 fs/udf/namei.c static struct dentry *udf_fh_to_parent(struct super_block *sb,
sb               1278 fs/udf/namei.c 	return udf_nfs_get_inode(sb, fid->udf.parent_block,
sb                 29 fs/udf/partition.c uint32_t udf_get_pblock(struct super_block *sb, uint32_t block,
sb                 32 fs/udf/partition.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                 41 fs/udf/partition.c 		return map->s_partition_func(sb, block, partition, offset);
sb                 46 fs/udf/partition.c uint32_t udf_get_pblock_virt15(struct super_block *sb, uint32_t block,
sb                 53 fs/udf/partition.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                 72 fs/udf/partition.c 	index = (sb->s_blocksize - vdata->s_start_offset) / sizeof(uint32_t);
sb                 75 fs/udf/partition.c 		newblock = 1 + (block / (sb->s_blocksize / sizeof(uint32_t)));
sb                 76 fs/udf/partition.c 		index = block % (sb->s_blocksize / sizeof(uint32_t));
sb                 84 fs/udf/partition.c 	bh = sb_bread(sb, loc);
sb                 87 fs/udf/partition.c 			  sb, block, partition, loc, index);
sb                101 fs/udf/partition.c 	return udf_get_pblock(sb, loc,
sb                106 fs/udf/partition.c inline uint32_t udf_get_pblock_virt20(struct super_block *sb, uint32_t block,
sb                109 fs/udf/partition.c 	return udf_get_pblock_virt15(sb, block, partition, offset);
sb                112 fs/udf/partition.c uint32_t udf_get_pblock_spar15(struct super_block *sb, uint32_t block,
sb                117 fs/udf/partition.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                152 fs/udf/partition.c int udf_relocate_blocks(struct super_block *sb, long old_block, long *new_block)
sb                159 fs/udf/partition.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                283 fs/udf/partition.c 	struct super_block *sb = inode->i_sb;
sb                295 fs/udf/partition.c 		map = &UDF_SB(sb)->s_partmaps[partition];
sb                297 fs/udf/partition.c 		phyblock = udf_get_pblock(sb, eloc.logicalBlockNum,
sb                306 fs/udf/partition.c uint32_t udf_get_pblock_meta25(struct super_block *sb, uint32_t block,
sb                309 fs/udf/partition.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                326 fs/udf/partition.c 		udf_warn(sb, "error reading from METADATA, trying to read from MIRROR\n");
sb                328 fs/udf/partition.c 			mdata->s_mirror_fe = udf_find_metadata_inode_efe(sb,
sb                101 fs/udf/super.c struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb)
sb                107 fs/udf/super.c 	if (!UDF_SB(sb)->s_lvid_bh)
sb                109 fs/udf/super.c 	lvid = (struct logicalVolIntegrityDesc *)UDF_SB(sb)->s_lvid_bh->b_data;
sb                111 fs/udf/super.c 	if ((sb->s_blocksize - sizeof(struct logicalVolIntegrityDescImpUse) -
sb                114 fs/udf/super.c 		udf_err(sb, "Logical volume integrity descriptor corrupted "
sb                141 fs/udf/super.c static struct inode *udf_alloc_inode(struct super_block *sb)
sb                252 fs/udf/super.c static int udf_sb_alloc_partition_maps(struct super_block *sb, u32 count)
sb                254 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                302 fs/udf/super.c static void udf_sb_free_partitions(struct super_block *sb)
sb                304 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                317 fs/udf/super.c 	struct super_block *sb = root->d_sb;
sb                318 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                320 fs/udf/super.c 	if (!UDF_QUERY_FLAG(sb, UDF_FLAG_STRICT))
sb                322 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_BLOCKSIZE_SET))
sb                323 fs/udf/super.c 		seq_printf(seq, ",bs=%lu", sb->s_blocksize);
sb                324 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_UNHIDE))
sb                326 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_UNDELETE))
sb                328 fs/udf/super.c 	if (!UDF_QUERY_FLAG(sb, UDF_FLAG_USE_AD_IN_ICB))
sb                330 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_USE_SHORT_AD))
sb                332 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_UID_FORGET))
sb                334 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_GID_FORGET))
sb                336 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_UID_SET))
sb                338 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_GID_SET))
sb                346 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_SESSION_SET))
sb                348 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_LASTBLOCK_SET))
sb                352 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_UTF8))
sb                354 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP) && sbi->s_nls_map)
sb                603 fs/udf/super.c static int udf_remount_fs(struct super_block *sb, int *flags, char *options)
sb                606 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                609 fs/udf/super.c 	if (!(*flags & SB_RDONLY) && UDF_QUERY_FLAG(sb, UDF_FLAG_RW_INCOMPAT))
sb                612 fs/udf/super.c 	sync_filesystem(sb);
sb                634 fs/udf/super.c 	if ((bool)(*flags & SB_RDONLY) == sb_rdonly(sb))
sb                638 fs/udf/super.c 		udf_close_lvid(sb);
sb                640 fs/udf/super.c 		udf_open_lvid(sb);
sb                700 fs/udf/super.c static int udf_check_vsd(struct super_block *sb)
sb                709 fs/udf/super.c 	sbi = UDF_SB(sb);
sb                710 fs/udf/super.c 	if (sb->s_blocksize < sizeof(struct volStructDesc))
sb                713 fs/udf/super.c 		sectorsize = sb->s_blocksize;
sb                715 fs/udf/super.c 	sector += (((loff_t)sbi->s_session) << sb->s_blocksize_bits);
sb                718 fs/udf/super.c 		  (unsigned int)(sector >> sb->s_blocksize_bits),
sb                719 fs/udf/super.c 		  sb->s_blocksize);
sb                732 fs/udf/super.c 		bh = udf_tread(sb, sector >> sb->s_blocksize_bits);
sb                737 fs/udf/super.c 					      (sector & (sb->s_blocksize - 1)));
sb                749 fs/udf/super.c 		if (sb->s_blocksize == 4096) {
sb                760 fs/udf/super.c 	else if (!bh && sector - (sbi->s_session << sb->s_blocksize_bits) ==
sb                767 fs/udf/super.c static int udf_verify_domain_identifier(struct super_block *sb,
sb                773 fs/udf/super.c 		udf_warn(sb, "Not OSTA UDF compliant %s descriptor.\n", dname);
sb                777 fs/udf/super.c 		udf_warn(sb, "Possibly not OSTA UDF compliant %s descriptor.\n",
sb                784 fs/udf/super.c 		if (!sb_rdonly(sb)) {
sb                785 fs/udf/super.c 			udf_warn(sb, "Descriptor for %s marked write protected."
sb                793 fs/udf/super.c 	if (!sb_rdonly(sb))
sb                795 fs/udf/super.c 	UDF_SET_FLAG(sb, UDF_FLAG_RW_INCOMPAT);
sb                799 fs/udf/super.c static int udf_load_fileset(struct super_block *sb, struct fileSetDesc *fset,
sb                804 fs/udf/super.c 	ret = udf_verify_domain_identifier(sb, &fset->domainIdent, "file set");
sb                809 fs/udf/super.c 	UDF_SB(sb)->s_serial_number = le16_to_cpu(fset->descTag.tagSerialNum);
sb                816 fs/udf/super.c static int udf_find_fileset(struct super_block *sb,
sb                828 fs/udf/super.c 	bh = udf_read_ptagged(sb, fileset, 0, &ident);
sb                839 fs/udf/super.c 	UDF_SB(sb)->s_partition = fileset->partitionReferenceNum;
sb                840 fs/udf/super.c 	ret = udf_load_fileset(sb, (struct fileSetDesc *)bh->b_data, root);
sb                851 fs/udf/super.c static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
sb                864 fs/udf/super.c 	bh = udf_read_tagged(sb, block, block, &ident);
sb                877 fs/udf/super.c 	udf_disk_stamp_to_time(&UDF_SB(sb)->s_record_time,
sb                884 fs/udf/super.c 	ret = udf_dstrCS0toChar(sb, outstr, 31, pvoldesc->volIdent, 32);
sb                886 fs/udf/super.c 		strcpy(UDF_SB(sb)->s_volume_ident, "InvalidName");
sb                890 fs/udf/super.c 		strncpy(UDF_SB(sb)->s_volume_ident, outstr, ret);
sb                892 fs/udf/super.c 	udf_debug("volIdent[] = '%s'\n", UDF_SB(sb)->s_volume_ident);
sb                894 fs/udf/super.c 	ret = udf_dstrCS0toChar(sb, outstr, 127, pvoldesc->volSetIdent, 128);
sb                910 fs/udf/super.c struct inode *udf_find_metadata_inode_efe(struct super_block *sb,
sb                919 fs/udf/super.c 	metadata_fe = udf_iget_special(sb, &addr);
sb                922 fs/udf/super.c 		udf_warn(sb, "metadata inode efe not found\n");
sb                926 fs/udf/super.c 		udf_warn(sb, "metadata inode efe does not have short allocation descriptors!\n");
sb                934 fs/udf/super.c static int udf_load_metadata_files(struct super_block *sb, int partition,
sb                937 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                951 fs/udf/super.c 	fe = udf_find_metadata_inode_efe(sb, mdata->s_meta_file_loc,
sb                958 fs/udf/super.c 		fe = udf_find_metadata_inode_efe(sb, mdata->s_mirror_file_loc,
sb                962 fs/udf/super.c 			udf_err(sb, "Both metadata and mirror metadata inode efe can not found\n");
sb                982 fs/udf/super.c 		fe = udf_iget_special(sb, &addr);
sb                984 fs/udf/super.c 			if (sb_rdonly(sb))
sb                985 fs/udf/super.c 				udf_warn(sb, "bitmap inode efe not found but it's ok since the disc is mounted read-only\n");
sb                987 fs/udf/super.c 				udf_err(sb, "bitmap inode efe not found and attempted read-write mount\n");
sb                998 fs/udf/super.c int udf_compute_nr_groups(struct super_block *sb, u32 partition)
sb               1000 fs/udf/super.c 	struct udf_part_map *map = &UDF_SB(sb)->s_partmaps[partition];
sb               1003 fs/udf/super.c 			    sb->s_blocksize * 8);
sb               1006 fs/udf/super.c static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)
sb               1012 fs/udf/super.c 	nr_groups = udf_compute_nr_groups(sb, index);
sb               1028 fs/udf/super.c static int check_partition_desc(struct super_block *sb,
sb               1070 fs/udf/super.c 	if (!sb_rdonly(sb))
sb               1072 fs/udf/super.c 	UDF_SET_FLAG(sb, UDF_FLAG_RW_INCOMPAT);
sb               1076 fs/udf/super.c static int udf_fill_partdesc_info(struct super_block *sb,
sb               1080 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1102 fs/udf/super.c 	err = check_partition_desc(sb, p, map);
sb               1111 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_RW_INCOMPAT))
sb               1123 fs/udf/super.c 		inode = udf_iget_special(sb, &loc);
sb               1136 fs/udf/super.c 		struct udf_bitmap *bitmap = udf_sb_alloc_bitmap(sb, p_index);
sb               1150 fs/udf/super.c static void udf_find_vat_block(struct super_block *sb, int p_index,
sb               1153 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1168 fs/udf/super.c 		inode = udf_iget_special(sb, &ino);
sb               1176 fs/udf/super.c static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
sb               1178 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1184 fs/udf/super.c 	sector_t blocks = i_size_read(sb->s_bdev->bd_inode) >>
sb               1185 fs/udf/super.c 			  sb->s_blocksize_bits;
sb               1187 fs/udf/super.c 	udf_find_vat_block(sb, p_index, type1_index, sbi->s_last_block);
sb               1193 fs/udf/super.c 		udf_find_vat_block(sb, p_index, type1_index, blocks - 1);
sb               1206 fs/udf/super.c 			bh = sb_bread(sb, pos);
sb               1232 fs/udf/super.c static int udf_load_partdesc(struct super_block *sb, sector_t block)
sb               1237 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1243 fs/udf/super.c 	bh = udf_read_tagged(sb, block, block, &ident);
sb               1272 fs/udf/super.c 	ret = udf_fill_partdesc_info(sb, p, i);
sb               1297 fs/udf/super.c 	ret = udf_fill_partdesc_info(sb, p, i);
sb               1302 fs/udf/super.c 		ret = udf_load_metadata_files(sb, i, type1_idx);
sb               1304 fs/udf/super.c 			udf_err(sb, "error loading MetaData partition map %d\n",
sb               1314 fs/udf/super.c 		if (!sb_rdonly(sb)) {
sb               1318 fs/udf/super.c 		UDF_SET_FLAG(sb, UDF_FLAG_RW_INCOMPAT);
sb               1319 fs/udf/super.c 		ret = udf_load_vat(sb, i, type1_idx);
sb               1330 fs/udf/super.c static int udf_load_sparable_map(struct super_block *sb,
sb               1344 fs/udf/super.c 		udf_err(sb, "error loading logical volume descriptor: "
sb               1350 fs/udf/super.c 		udf_err(sb, "error loading logical volume descriptor: "
sb               1358 fs/udf/super.c 		bh = udf_read_tagged(sb, loc, loc, &ident);
sb               1367 fs/udf/super.c 							sb->s_blocksize) {
sb               1378 fs/udf/super.c static int udf_load_logicalvol(struct super_block *sb, sector_t block,
sb               1384 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1391 fs/udf/super.c 	bh = udf_read_tagged(sb, block, block, &ident);
sb               1397 fs/udf/super.c 	if (table_len > sb->s_blocksize - sizeof(*lvd)) {
sb               1398 fs/udf/super.c 		udf_err(sb, "error loading logical volume descriptor: "
sb               1400 fs/udf/super.c 			sb->s_blocksize - sizeof(*lvd));
sb               1405 fs/udf/super.c 	ret = udf_verify_domain_identifier(sb, &lvd->domainIdent,
sb               1409 fs/udf/super.c 	ret = udf_sb_alloc_partition_maps(sb, le32_to_cpu(lvd->numPartitionMaps));
sb               1449 fs/udf/super.c 				ret = udf_load_sparable_map(sb, map,
sb               1516 fs/udf/super.c 		udf_load_logicalvolint(sb, leea_to_cpu(lvd->integritySeqExt));
sb               1521 fs/udf/super.c 		if (sb_rdonly(sb)) {
sb               1522 fs/udf/super.c 			UDF_SET_FLAG(sb, UDF_FLAG_RW_INCOMPAT);
sb               1524 fs/udf/super.c 			udf_warn(sb, "Damaged or missing LVID, forcing "
sb               1537 fs/udf/super.c static void udf_load_logicalvolint(struct super_block *sb, struct kernel_extent_ad loc)
sb               1541 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1548 fs/udf/super.c 			(bh = udf_read_tagged(sb, loc.extLocation,
sb               1558 fs/udf/super.c 			loc.extLength -= sb->s_blocksize;
sb               1575 fs/udf/super.c 	udf_warn(sb, "Too many LVID indirections (max %u), ignoring.\n",
sb               1656 fs/udf/super.c 		struct super_block *sb,
sb               1686 fs/udf/super.c 		bh = udf_read_tagged(sb, block, block, &ident);
sb               1696 fs/udf/super.c 				udf_err(sb, "too many Volume Descriptor "
sb               1707 fs/udf/super.c 				sb->s_blocksize_bits;
sb               1741 fs/udf/super.c 		udf_err(sb, "Primary Volume Descriptor not found!\n");
sb               1744 fs/udf/super.c 	ret = udf_load_pvoldesc(sb, data.vds[VDS_POS_PRIMARY_VOL_DESC].block);
sb               1749 fs/udf/super.c 		ret = udf_load_logicalvol(sb,
sb               1758 fs/udf/super.c 		ret = udf_load_partdesc(sb, data.part_descs_loc[i].rec.block);
sb               1771 fs/udf/super.c static int udf_load_sequence(struct super_block *sb, struct buffer_head *bh,
sb               1783 fs/udf/super.c 	main_e = main_e >> sb->s_blocksize_bits;
sb               1789 fs/udf/super.c 	reserve_e = reserve_e >> sb->s_blocksize_bits;
sb               1794 fs/udf/super.c 	ret = udf_process_sequence(sb, main_s, main_e, fileset);
sb               1797 fs/udf/super.c 	udf_sb_free_partitions(sb);
sb               1798 fs/udf/super.c 	ret = udf_process_sequence(sb, reserve_s, reserve_e, fileset);
sb               1800 fs/udf/super.c 		udf_sb_free_partitions(sb);
sb               1815 fs/udf/super.c static int udf_check_anchor_block(struct super_block *sb, sector_t block,
sb               1822 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_VARCONV) &&
sb               1824 fs/udf/super.c 	    i_size_read(sb->s_bdev->bd_inode) >> sb->s_blocksize_bits)
sb               1827 fs/udf/super.c 	bh = udf_read_tagged(sb, block, block, &ident);
sb               1834 fs/udf/super.c 	ret = udf_load_sequence(sb, bh, fileset);
sb               1845 fs/udf/super.c static int udf_scan_anchors(struct super_block *sb, sector_t *lastblock,
sb               1850 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1856 fs/udf/super.c 		ret = udf_check_anchor_block(sb, sbi->s_anchor, fileset);
sb               1867 fs/udf/super.c 	ret = udf_check_anchor_block(sb, sbi->s_session + 256, fileset);
sb               1886 fs/udf/super.c 		if (last[i] >= i_size_read(sb->s_bdev->bd_inode) >>
sb               1887 fs/udf/super.c 				sb->s_blocksize_bits)
sb               1889 fs/udf/super.c 		ret = udf_check_anchor_block(sb, last[i], fileset);
sb               1897 fs/udf/super.c 		ret = udf_check_anchor_block(sb, last[i] - 256, fileset);
sb               1906 fs/udf/super.c 	return udf_check_anchor_block(sb, sbi->s_session + 512, fileset);
sb               1917 fs/udf/super.c static int udf_find_anchor(struct super_block *sb,
sb               1920 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1924 fs/udf/super.c 	ret = udf_scan_anchors(sb, &lastblock, fileset);
sb               1929 fs/udf/super.c 	UDF_SET_FLAG(sb, UDF_FLAG_VARCONV);
sb               1932 fs/udf/super.c 	ret = udf_scan_anchors(sb, &lastblock, fileset);
sb               1938 fs/udf/super.c 	ret = udf_scan_anchors(sb, &lastblock, fileset);
sb               1941 fs/udf/super.c 		UDF_CLEAR_FLAG(sb, UDF_FLAG_VARCONV);
sb               1956 fs/udf/super.c static int udf_load_vrs(struct super_block *sb, struct udf_options *uopt,
sb               1959 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               1963 fs/udf/super.c 	if (!sb_set_blocksize(sb, uopt->blocksize)) {
sb               1965 fs/udf/super.c 			udf_warn(sb, "Bad block size\n");
sb               1971 fs/udf/super.c 		nsr = udf_check_vsd(sb);
sb               1974 fs/udf/super.c 				udf_warn(sb, "No VRS found\n");
sb               1982 fs/udf/super.c 			sbi->s_last_block = udf_get_last_block(sb);
sb               1989 fs/udf/super.c 	ret = udf_find_anchor(sb, fileset);
sb               1992 fs/udf/super.c 			udf_warn(sb, "No anchor found\n");
sb               2010 fs/udf/super.c static void udf_open_lvid(struct super_block *sb)
sb               2012 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               2020 fs/udf/super.c 	lvidiu = udf_sb_lvidiu(sb);
sb               2030 fs/udf/super.c 		UDF_SET_FLAG(sb, UDF_FLAG_INCONSISTENT);
sb               2040 fs/udf/super.c static void udf_close_lvid(struct super_block *sb)
sb               2042 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               2050 fs/udf/super.c 	lvidiu = udf_sb_lvidiu(sb);
sb               2063 fs/udf/super.c 	if (!UDF_QUERY_FLAG(sb, UDF_FLAG_INCONSISTENT))
sb               2080 fs/udf/super.c u64 lvid_get_unique_id(struct super_block *sb)
sb               2083 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               2101 fs/udf/super.c 	udf_updated_lvid(sb);
sb               2107 fs/udf/super.c static int udf_fill_super(struct super_block *sb, void *options, int silent)
sb               2129 fs/udf/super.c 	sb->s_fs_info = sbi;
sb               2138 fs/udf/super.c 		udf_err(sb, "utf8 cannot be combined with iocharset\n");
sb               2164 fs/udf/super.c 		sbi->s_session = udf_get_last_session(sb);
sb               2171 fs/udf/super.c 	sb->s_op = &udf_sb_ops;
sb               2172 fs/udf/super.c 	sb->s_export_op = &udf_export_ops;
sb               2174 fs/udf/super.c 	sb->s_magic = UDF_SUPER_MAGIC;
sb               2175 fs/udf/super.c 	sb->s_time_gran = 1000;
sb               2178 fs/udf/super.c 		ret = udf_load_vrs(sb, &uopt, silent, &fileset);
sb               2180 fs/udf/super.c 		uopt.blocksize = bdev_logical_block_size(sb->s_bdev);
sb               2182 fs/udf/super.c 			ret = udf_load_vrs(sb, &uopt, silent, &fileset);
sb               2204 fs/udf/super.c 			udf_warn(sb, "No partition found (1)\n");
sb               2214 fs/udf/super.c 							udf_sb_lvidiu(sb);
sb               2225 fs/udf/super.c 			udf_err(sb, "minUDFReadRev=%x (max is %x)\n",
sb               2231 fs/udf/super.c 			if (!sb_rdonly(sb)) {
sb               2235 fs/udf/super.c 			UDF_SET_FLAG(sb, UDF_FLAG_RW_INCOMPAT);
sb               2241 fs/udf/super.c 			UDF_SET_FLAG(sb, UDF_FLAG_USE_EXTENDED_FE);
sb               2243 fs/udf/super.c 			UDF_SET_FLAG(sb, UDF_FLAG_USE_STREAMS);
sb               2247 fs/udf/super.c 		udf_warn(sb, "No partition found (2)\n");
sb               2254 fs/udf/super.c 		if (!sb_rdonly(sb)) {
sb               2258 fs/udf/super.c 		UDF_SET_FLAG(sb, UDF_FLAG_RW_INCOMPAT);
sb               2261 fs/udf/super.c 	ret = udf_find_fileset(sb, &fileset, &rootdir);
sb               2263 fs/udf/super.c 		udf_warn(sb, "No fileset found\n");
sb               2275 fs/udf/super.c 	if (!sb_rdonly(sb)) {
sb               2276 fs/udf/super.c 		udf_open_lvid(sb);
sb               2283 fs/udf/super.c 	inode = udf_iget(sb, &rootdir);
sb               2285 fs/udf/super.c 		udf_err(sb, "Error in udf_iget, block=%u, partition=%u\n",
sb               2292 fs/udf/super.c 	sb->s_root = d_make_root(inode);
sb               2293 fs/udf/super.c 	if (!sb->s_root) {
sb               2294 fs/udf/super.c 		udf_err(sb, "Couldn't allocate root dentry\n");
sb               2298 fs/udf/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               2299 fs/udf/super.c 	sb->s_max_links = UDF_MAX_LINKS;
sb               2308 fs/udf/super.c 		udf_close_lvid(sb);
sb               2310 fs/udf/super.c 	udf_sb_free_partitions(sb);
sb               2312 fs/udf/super.c 	sb->s_fs_info = NULL;
sb               2317 fs/udf/super.c void _udf_err(struct super_block *sb, const char *function,
sb               2328 fs/udf/super.c 	pr_err("error (device %s): %s: %pV", sb->s_id, function, &vaf);
sb               2333 fs/udf/super.c void _udf_warn(struct super_block *sb, const char *function,
sb               2344 fs/udf/super.c 	pr_warn("warning (device %s): %s: %pV", sb->s_id, function, &vaf);
sb               2349 fs/udf/super.c static void udf_put_super(struct super_block *sb)
sb               2353 fs/udf/super.c 	sbi = UDF_SB(sb);
sb               2356 fs/udf/super.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP))
sb               2358 fs/udf/super.c 	if (!sb_rdonly(sb))
sb               2359 fs/udf/super.c 		udf_close_lvid(sb);
sb               2361 fs/udf/super.c 	udf_sb_free_partitions(sb);
sb               2363 fs/udf/super.c 	kfree(sb->s_fs_info);
sb               2364 fs/udf/super.c 	sb->s_fs_info = NULL;
sb               2367 fs/udf/super.c static int udf_sync_fs(struct super_block *sb, int wait)
sb               2369 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               2393 fs/udf/super.c 	struct super_block *sb = dentry->d_sb;
sb               2394 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               2396 fs/udf/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb               2398 fs/udf/super.c 	lvidiu = udf_sb_lvidiu(sb);
sb               2400 fs/udf/super.c 	buf->f_bsize = sb->s_blocksize;
sb               2402 fs/udf/super.c 	buf->f_bfree = udf_count_free(sb);
sb               2415 fs/udf/super.c static unsigned int udf_count_free_bitmap(struct super_block *sb,
sb               2429 fs/udf/super.c 	loc.partitionReferenceNum = UDF_SB(sb)->s_partition;
sb               2430 fs/udf/super.c 	bh = udf_read_ptagged(sb, &loc, 0, &ident);
sb               2433 fs/udf/super.c 		udf_err(sb, "udf_count_free failed\n");
sb               2437 fs/udf/super.c 		udf_err(sb, "udf_count_free failed\n");
sb               2447 fs/udf/super.c 		u32 cur_bytes = min_t(u32, bytes, sb->s_blocksize - index);
sb               2453 fs/udf/super.c 			newblock = udf_get_lb_pblock(sb, &loc, ++block);
sb               2454 fs/udf/super.c 			bh = udf_tread(sb, newblock);
sb               2468 fs/udf/super.c static unsigned int udf_count_free_table(struct super_block *sb,
sb               2477 fs/udf/super.c 	mutex_lock(&UDF_SB(sb)->s_alloc_mutex);
sb               2486 fs/udf/super.c 	mutex_unlock(&UDF_SB(sb)->s_alloc_mutex);
sb               2491 fs/udf/super.c static unsigned int udf_count_free(struct super_block *sb)
sb               2494 fs/udf/super.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb               2527 fs/udf/super.c 		accum += udf_count_free_bitmap(sb,
sb               2534 fs/udf/super.c 		accum += udf_count_free_table(sb,
sb                 32 fs/udf/symlink.c static int udf_pc_to_char(struct super_block *sb, unsigned char *from,
sb                 82 fs/udf/symlink.c 			comp_len = udf_get_filename(sb, pc->componentIdent,
sb                183 fs/udf/truncate.c 	struct super_block *sb = inode->i_sb;
sb                184 fs/udf/truncate.c 	struct udf_sb_info *sbi = UDF_SB(sb);
sb                190 fs/udf/truncate.c 	if (!UDF_QUERY_FLAG(sb, UDF_FLAG_STRICT) || sbi->s_udfrev >= 0x0201)
sb                208 fs/udf/truncate.c 	struct super_block *sb = inode->i_sb;
sb                209 fs/udf/truncate.c 	sector_t first_block = inode->i_size >> sb->s_blocksize_bits, offset;
sb                222 fs/udf/truncate.c 	byte_offset = (offset << sb->s_blocksize_bits) +
sb                223 fs/udf/truncate.c 		(inode->i_size & (sb->s_blocksize - 1));
sb                250 fs/udf/truncate.c 				udf_free_blocks(sb, NULL, &epos.block,
sb                261 fs/udf/truncate.c 			epos.bh = udf_tread(sb,
sb                262 fs/udf/truncate.c 					udf_get_lb_pblock(sb, &eloc, 0));
sb                268 fs/udf/truncate.c 					(elen + sb->s_blocksize - 1) >>
sb                269 fs/udf/truncate.c 					sb->s_blocksize_bits;
sb                280 fs/udf/truncate.c 		udf_free_blocks(sb, NULL, &epos.block, 0, indirect_ext_len);
sb                157 fs/udf/udf_sb.h static inline struct udf_sb_info *UDF_SB(struct super_block *sb)
sb                159 fs/udf/udf_sb.h 	return sb->s_fs_info;
sb                162 fs/udf/udf_sb.h struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb);
sb                164 fs/udf/udf_sb.h int udf_compute_nr_groups(struct super_block *sb, u32 partition);
sb                166 fs/udf/udf_sb.h static inline int UDF_QUERY_FLAG(struct super_block *sb, int flag)
sb                168 fs/udf/udf_sb.h 	return test_bit(flag, &UDF_SB(sb)->s_flags);
sb                171 fs/udf/udf_sb.h static inline void UDF_SET_FLAG(struct super_block *sb, int flag)
sb                173 fs/udf/udf_sb.h 	set_bit(flag, &UDF_SB(sb)->s_flags);
sb                176 fs/udf/udf_sb.h static inline void UDF_CLEAR_FLAG(struct super_block *sb, int flag)
sb                178 fs/udf/udf_sb.h 	clear_bit(flag, &UDF_SB(sb)->s_flags);
sb                 21 fs/udf/udfdecl.h extern __printf(3, 4) void _udf_err(struct super_block *sb,
sb                 23 fs/udf/udfdecl.h #define udf_err(sb, fmt, ...)					\
sb                 24 fs/udf/udfdecl.h 	_udf_err(sb, __func__, fmt, ##__VA_ARGS__)
sb                 26 fs/udf/udfdecl.h extern __printf(3, 4) void _udf_warn(struct super_block *sb,
sb                 28 fs/udf/udfdecl.h #define udf_warn(sb, fmt, ...)					\
sb                 29 fs/udf/udfdecl.h 	_udf_warn(sb, __func__, fmt, ##__VA_ARGS__)
sb                109 fs/udf/udfdecl.h static inline void udf_updated_lvid(struct super_block *sb)
sb                111 fs/udf/udfdecl.h 	struct buffer_head *bh = UDF_SB(sb)->s_lvid_bh;
sb                117 fs/udf/udfdecl.h 	UDF_SB(sb)->s_lvid_dirty = 1;
sb                119 fs/udf/udfdecl.h extern u64 lvid_get_unique_id(struct super_block *sb);
sb                120 fs/udf/udfdecl.h struct inode *udf_find_metadata_inode_efe(struct super_block *sb,
sb                139 fs/udf/udfdecl.h static inline struct inode *udf_iget_special(struct super_block *sb,
sb                142 fs/udf/udfdecl.h 	return __udf_iget(sb, ino, true);
sb                144 fs/udf/udfdecl.h static inline struct inode *udf_iget(struct super_block *sb,
sb                147 fs/udf/udfdecl.h 	return __udf_iget(sb, ino, false);
sb                176 fs/udf/udfdecl.h extern struct buffer_head *udf_tgetblk(struct super_block *sb,
sb                178 fs/udf/udfdecl.h extern struct buffer_head *udf_tread(struct super_block *sb, udf_pblk_t block);
sb                209 fs/udf/udfdecl.h udf_get_lb_pblock(struct super_block *sb, struct kernel_lb_addr *loc,
sb                212 fs/udf/udfdecl.h 	return udf_get_pblock(sb, loc->logicalBlockNum,
sb                238 fs/udf/udfdecl.h extern udf_pblk_t udf_new_block(struct super_block *sb, struct inode *inode,
sb                151 fs/udf/unicode.c static int udf_name_from_CS0(struct super_block *sb,
sb                180 fs/udf/unicode.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP))
sb                181 fs/udf/unicode.c 		conv_f = UDF_SB(sb)->s_nls_map->uni2char;
sb                275 fs/udf/unicode.c static int udf_name_to_CS0(struct super_block *sb,
sb                288 fs/udf/unicode.c 	if (UDF_QUERY_FLAG(sb, UDF_FLAG_NLS_MAP))
sb                289 fs/udf/unicode.c 		conv_f = UDF_SB(sb)->s_nls_map->char2uni;
sb                359 fs/udf/unicode.c int udf_dstrCS0toChar(struct super_block *sb, uint8_t *utf_o, int o_len,
sb                376 fs/udf/unicode.c 	return udf_name_from_CS0(sb, utf_o, o_len, ocu_i, s_len, 0);
sb                379 fs/udf/unicode.c int udf_get_filename(struct super_block *sb, const uint8_t *sname, int slen,
sb                390 fs/udf/unicode.c 	ret = udf_name_from_CS0(sb, dname, dlen, sname, slen, 1);
sb                397 fs/udf/unicode.c int udf_put_filename(struct super_block *sb, const uint8_t *sname, int slen,
sb                400 fs/udf/unicode.c 	return udf_name_to_CS0(sb, dname, dlen, sname, slen);
sb                 41 fs/ufs/balloc.c 	struct super_block * sb;
sb                 48 fs/ufs/balloc.c 	sb = inode->i_sb;
sb                 49 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                 55 fs/ufs/balloc.c 		ufs_error (sb, "ufs_free_fragments", "internal error");
sb                 57 fs/ufs/balloc.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb                 62 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_free_fragments", "freeing blocks are outside device");
sb                 66 fs/ufs/balloc.c 	ucpi = ufs_load_cylinder (sb, cgno);
sb                 70 fs/ufs/balloc.c 	if (!ufs_cg_chkmagic(sb, ucg)) {
sb                 71 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_free_fragments", "internal error, bad magic number on cg %u", cgno);
sb                 78 fs/ufs/balloc.c 	ufs_fragacct (sb, blkmap, ucg->cg_frsum, -1);
sb                 83 fs/ufs/balloc.c 			ufs_error (sb, "ufs_free_fragments",
sb                 88 fs/ufs/balloc.c 	fs32_add(sb, &ucg->cg_cs.cs_nffree, count);
sb                 90 fs/ufs/balloc.c 	fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count);
sb                 92 fs/ufs/balloc.c 	ufs_fragacct(sb, blkmap, ucg->cg_frsum, 1);
sb                 99 fs/ufs/balloc.c 		fs32_sub(sb, &ucg->cg_cs.cs_nffree, uspi->s_fpb);
sb                101 fs/ufs/balloc.c 		fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, uspi->s_fpb);
sb                102 fs/ufs/balloc.c 		if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD)
sb                103 fs/ufs/balloc.c 			ufs_clusteracct (sb, ucpi, blkno, 1);
sb                104 fs/ufs/balloc.c 		fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1);
sb                106 fs/ufs/balloc.c 		fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nbfree, 1);
sb                110 fs/ufs/balloc.c 			fs16_add(sb, &ubh_cg_blks(ucpi, cylno,
sb                112 fs/ufs/balloc.c 			fs32_add(sb, &ubh_cg_blktot(ucpi, cylno), 1);
sb                118 fs/ufs/balloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                120 fs/ufs/balloc.c 	ufs_mark_sb_dirty(sb);
sb                122 fs/ufs/balloc.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                127 fs/ufs/balloc.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                137 fs/ufs/balloc.c 	struct super_block * sb;
sb                144 fs/ufs/balloc.c 	sb = inode->i_sb;
sb                145 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                151 fs/ufs/balloc.c 		ufs_error (sb, "ufs_free_blocks", "internal error, "
sb                157 fs/ufs/balloc.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb                164 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_free_blocks", "freeing blocks are outside device");
sb                174 fs/ufs/balloc.c 	ucpi = ufs_load_cylinder (sb, cgno);
sb                178 fs/ufs/balloc.c 	if (!ufs_cg_chkmagic(sb, ucg)) {
sb                179 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_free_blocks", "internal error, bad magic number on cg %u", cgno);
sb                186 fs/ufs/balloc.c 			ufs_error(sb, "ufs_free_blocks", "freeing free fragment");
sb                190 fs/ufs/balloc.c 		if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD)
sb                191 fs/ufs/balloc.c 			ufs_clusteracct (sb, ucpi, blkno, 1);
sb                193 fs/ufs/balloc.c 		fs32_add(sb, &ucg->cg_cs.cs_nbfree, 1);
sb                195 fs/ufs/balloc.c 		fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nbfree, 1);
sb                200 fs/ufs/balloc.c 			fs16_add(sb, &ubh_cg_blks(ucpi, cylno,
sb                202 fs/ufs/balloc.c 			fs32_add(sb, &ubh_cg_blktot(ucpi, cylno), 1);
sb                208 fs/ufs/balloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                217 fs/ufs/balloc.c 	ufs_mark_sb_dirty(sb);
sb                218 fs/ufs/balloc.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                223 fs/ufs/balloc.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                348 fs/ufs/balloc.c 	struct super_block * sb;
sb                358 fs/ufs/balloc.c 	sb = inode->i_sb;
sb                359 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                363 fs/ufs/balloc.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb                364 fs/ufs/balloc.c 	tmp = ufs_data_ptr_to_cpu(sb, p);
sb                367 fs/ufs/balloc.c 		ufs_warning(sb, "ufs_new_fragments", "internal warning"
sb                380 fs/ufs/balloc.c 			ufs_error(sb, "ufs_new_fragments", "internal error, "
sb                384 fs/ufs/balloc.c 			mutex_unlock(&UFS_SB(sb)->s_lock);
sb                389 fs/ufs/balloc.c 			mutex_unlock(&UFS_SB(sb)->s_lock);
sb                396 fs/ufs/balloc.c 			mutex_unlock(&UFS_SB(sb)->s_lock);
sb                406 fs/ufs/balloc.c 			mutex_unlock(&UFS_SB(sb)->s_lock);
sb                429 fs/ufs/balloc.c 			ufs_cpu_to_data_ptr(sb, p, result);
sb                434 fs/ufs/balloc.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb                451 fs/ufs/balloc.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb                459 fs/ufs/balloc.c 	if (fs32_to_cpu(sb, usb1->fs_optim) == UFS_OPTSPACE) {
sb                462 fs/ufs/balloc.c 			usb1->fs_optim = cpu_to_fs32(sb, UFS_OPTTIME);
sb                466 fs/ufs/balloc.c 			usb1->fs_optim = cpu_to_fs32(sb, UFS_OPTSPACE);
sb                472 fs/ufs/balloc.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb                478 fs/ufs/balloc.c 		ufs_cpu_to_data_ptr(sb, p, result);
sb                489 fs/ufs/balloc.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                511 fs/ufs/balloc.c 	struct super_block * sb;
sb                520 fs/ufs/balloc.c 	sb = inode->i_sb;
sb                521 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                525 fs/ufs/balloc.c 	if (fs32_to_cpu(sb, UFS_SB(sb)->fs_cs(cgno).cs_nffree) < count)
sb                529 fs/ufs/balloc.c 	ucpi = ufs_load_cylinder (sb, cgno);
sb                533 fs/ufs/balloc.c 	if (!ufs_cg_chkmagic(sb, ucg)) {
sb                534 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_add_fragments",
sb                550 fs/ufs/balloc.c 	ucg->cg_time = ufs_get_seconds(sb);
sb                555 fs/ufs/balloc.c 	if (!fs32_to_cpu(sb, ucg->cg_frsum[fragsize]))
sb                556 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_add_fragments",
sb                558 fs/ufs/balloc.c 	fs32_sub(sb, &ucg->cg_frsum[fragsize], 1);
sb                560 fs/ufs/balloc.c 		fs32_add(sb, &ucg->cg_frsum[fragsize - count], 1);
sb                564 fs/ufs/balloc.c 	fs32_sub(sb, &ucg->cg_cs.cs_nffree, count);
sb                565 fs/ufs/balloc.c 	fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count);
sb                570 fs/ufs/balloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                572 fs/ufs/balloc.c 	ufs_mark_sb_dirty(sb);
sb                580 fs/ufs/balloc.c 	ucg = (struct ufs_cylinder_group *) UFS_SB(sb)->s_ucg[cgno]->b_data; \
sb                581 fs/ufs/balloc.c 	if (fs32_to_cpu(sb, ucg->cg_cs.cs_nbfree)) \
sb                584 fs/ufs/balloc.c 		if (fs32_to_cpu(sb, ucg->cg_frsum[k])) \
sb                590 fs/ufs/balloc.c 	struct super_block * sb;
sb                600 fs/ufs/balloc.c 	sb = inode->i_sb;
sb                601 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                635 fs/ufs/balloc.c 	ucpi = ufs_load_cylinder (sb, cgno);
sb                639 fs/ufs/balloc.c 	if (!ufs_cg_chkmagic(sb, ucg)) 
sb                640 fs/ufs/balloc.c 		ufs_panic (sb, "ufs_alloc_fragments",
sb                642 fs/ufs/balloc.c 	ucg->cg_time = ufs_get_seconds(sb);
sb                652 fs/ufs/balloc.c 		if (fs32_to_cpu(sb, ucg->cg_frsum[allocsize]) != 0)
sb                665 fs/ufs/balloc.c 		fs32_add(sb, &ucg->cg_cs.cs_nffree, i);
sb                667 fs/ufs/balloc.c 		fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, i);
sb                668 fs/ufs/balloc.c 		fs32_add(sb, &ucg->cg_frsum[i], 1);
sb                672 fs/ufs/balloc.c 	result = ufs_bitmap_search (sb, ucpi, goal, allocsize);
sb                680 fs/ufs/balloc.c 	fs32_sub(sb, &ucg->cg_cs.cs_nffree, count);
sb                682 fs/ufs/balloc.c 	fs32_sub(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count);
sb                683 fs/ufs/balloc.c 	fs32_sub(sb, &ucg->cg_frsum[allocsize], 1);
sb                686 fs/ufs/balloc.c 		fs32_add(sb, &ucg->cg_frsum[allocsize - count], 1);
sb                691 fs/ufs/balloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                693 fs/ufs/balloc.c 	ufs_mark_sb_dirty(sb);
sb                704 fs/ufs/balloc.c 	struct super_block * sb;
sb                711 fs/ufs/balloc.c 	sb = inode->i_sb;
sb                712 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                731 fs/ufs/balloc.c 	result = ufs_bitmap_search (sb, ucpi, goal, uspi->s_fpb);
sb                740 fs/ufs/balloc.c 	if ((UFS_SB(sb)->s_flags & UFS_CG_MASK) == UFS_CG_44BSD)
sb                741 fs/ufs/balloc.c 		ufs_clusteracct (sb, ucpi, blkno, -1);
sb                743 fs/ufs/balloc.c 	fs32_sub(sb, &ucg->cg_cs.cs_nbfree, 1);
sb                745 fs/ufs/balloc.c 	fs32_sub(sb, &UFS_SB(sb)->fs_cs(ucpi->c_cgx).cs_nbfree, 1);
sb                750 fs/ufs/balloc.c 		fs16_sub(sb, &ubh_cg_blks(ucpi, cylno,
sb                752 fs/ufs/balloc.c 		fs32_sub(sb, &ubh_cg_blktot(ucpi, cylno), 1);
sb                795 fs/ufs/balloc.c static u64 ufs_bitmap_search(struct super_block *sb,
sb                809 fs/ufs/balloc.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                833 fs/ufs/balloc.c 			ufs_error(sb, "ufs_bitmap_search",
sb                865 fs/ufs/balloc.c 	ufs_error(sb, "ufs_bitmap_search", "block not in map on cg %u\n",
sb                871 fs/ufs/balloc.c static void ufs_clusteracct(struct super_block * sb,
sb                877 fs/ufs/balloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                917 fs/ufs/balloc.c 	fs32_add(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (i << 2)), cnt);
sb                919 fs/ufs/balloc.c 		fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (back << 2)), cnt);
sb                921 fs/ufs/balloc.c 		fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (forw << 2)), cnt);
sb                 29 fs/ufs/cylinder.c static void ufs_read_cylinder (struct super_block * sb,
sb                 32 fs/ufs/cylinder.c 	struct ufs_sb_info * sbi = UFS_SB(sb);
sb                 44 fs/ufs/cylinder.c 	UCPI_UBH(ucpi)->count = uspi->s_cgsize >> sb->s_blocksize_bits;
sb                 50 fs/ufs/cylinder.c 		if (!(UCPI_UBH(ucpi)->bh[i] = sb_bread(sb, UCPI_UBH(ucpi)->fragment + i)))
sb                 54 fs/ufs/cylinder.c 	ucpi->c_cgx	= fs32_to_cpu(sb, ucg->cg_cgx);
sb                 55 fs/ufs/cylinder.c 	ucpi->c_ncyl	= fs16_to_cpu(sb, ucg->cg_ncyl);
sb                 56 fs/ufs/cylinder.c 	ucpi->c_niblk	= fs16_to_cpu(sb, ucg->cg_niblk);
sb                 57 fs/ufs/cylinder.c 	ucpi->c_ndblk	= fs32_to_cpu(sb, ucg->cg_ndblk);
sb                 58 fs/ufs/cylinder.c 	ucpi->c_rotor	= fs32_to_cpu(sb, ucg->cg_rotor);
sb                 59 fs/ufs/cylinder.c 	ucpi->c_frotor	= fs32_to_cpu(sb, ucg->cg_frotor);
sb                 60 fs/ufs/cylinder.c 	ucpi->c_irotor	= fs32_to_cpu(sb, ucg->cg_irotor);
sb                 61 fs/ufs/cylinder.c 	ucpi->c_btotoff	= fs32_to_cpu(sb, ucg->cg_btotoff);
sb                 62 fs/ufs/cylinder.c 	ucpi->c_boff	= fs32_to_cpu(sb, ucg->cg_boff);
sb                 63 fs/ufs/cylinder.c 	ucpi->c_iusedoff = fs32_to_cpu(sb, ucg->cg_iusedoff);
sb                 64 fs/ufs/cylinder.c 	ucpi->c_freeoff	= fs32_to_cpu(sb, ucg->cg_freeoff);
sb                 65 fs/ufs/cylinder.c 	ucpi->c_nextfreeoff = fs32_to_cpu(sb, ucg->cg_nextfreeoff);
sb                 66 fs/ufs/cylinder.c 	ucpi->c_clustersumoff = fs32_to_cpu(sb, ucg->cg_u.cg_44.cg_clustersumoff);
sb                 67 fs/ufs/cylinder.c 	ucpi->c_clusteroff = fs32_to_cpu(sb, ucg->cg_u.cg_44.cg_clusteroff);
sb                 68 fs/ufs/cylinder.c 	ucpi->c_nclusterblks = fs32_to_cpu(sb, ucg->cg_u.cg_44.cg_nclusterblks);
sb                 76 fs/ufs/cylinder.c 	ufs_error (sb, "ufs_read_cylinder", "can't read cylinder group block %u", cgno);
sb                 83 fs/ufs/cylinder.c void ufs_put_cylinder (struct super_block * sb, unsigned bitmap_nr)
sb                 85 fs/ufs/cylinder.c 	struct ufs_sb_info * sbi = UFS_SB(sb);
sb                102 fs/ufs/cylinder.c 		ufs_panic (sb, "ufs_put_cylinder", "internal error");
sb                109 fs/ufs/cylinder.c 	ucg->cg_rotor = cpu_to_fs32(sb, ucpi->c_rotor);
sb                110 fs/ufs/cylinder.c 	ucg->cg_frotor = cpu_to_fs32(sb, ucpi->c_frotor);
sb                111 fs/ufs/cylinder.c 	ucg->cg_irotor = cpu_to_fs32(sb, ucpi->c_irotor);
sb                128 fs/ufs/cylinder.c 	struct super_block * sb, unsigned cgno)
sb                130 fs/ufs/cylinder.c 	struct ufs_sb_info * sbi = UFS_SB(sb);
sb                139 fs/ufs/cylinder.c 		ufs_panic (sb, "ufs_load_cylinder", "internal error, high number of cg");
sb                155 fs/ufs/cylinder.c 				ufs_panic (sb, "ufs_load_cylinder", "internal error, wrong number of cg in cache");
sb                164 fs/ufs/cylinder.c 			ufs_read_cylinder (sb, cgno, cgno);
sb                191 fs/ufs/cylinder.c 			ufs_put_cylinder (sb, UFS_MAX_GROUP_LOADED-1);
sb                198 fs/ufs/cylinder.c 		ufs_read_cylinder (sb, cgno, 0);
sb                 35 fs/ufs/dir.c   static inline int ufs_match(struct super_block *sb, int len,
sb                 38 fs/ufs/dir.c   	if (len != ufs_get_de_namlen(sb, de))
sb                113 fs/ufs/dir.c   	struct super_block *sb = dir->i_sb;
sb                117 fs/ufs/dir.c   	const unsigned chunk_mask = UFS_SB(sb)->s_uspi->s_dirblksize - 1;
sb                130 fs/ufs/dir.c   		rec_len = fs16_to_cpu(sb, p->d_reclen);
sb                136 fs/ufs/dir.c   		if (rec_len < UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, p)))
sb                140 fs/ufs/dir.c   		if (fs32_to_cpu(sb, p->d_ino) > (UFS_SB(sb)->s_uspi->s_ipg *
sb                141 fs/ufs/dir.c   						  UFS_SB(sb)->s_uspi->s_ncg))
sb                153 fs/ufs/dir.c   	ufs_error(sb, "ufs_check_page",
sb                173 fs/ufs/dir.c   	ufs_error (sb, "ufs_check_page", "bad entry in directory #%lu: %s - "
sb                176 fs/ufs/dir.c   		   rec_len, ufs_get_de_namlen(sb, p));
sb                180 fs/ufs/dir.c   	ufs_error(sb, __func__,
sb                223 fs/ufs/dir.c   ufs_next_entry(struct super_block *sb, struct ufs_dir_entry *p)
sb                226 fs/ufs/dir.c   					fs16_to_cpu(sb, p->d_reclen));
sb                253 fs/ufs/dir.c   	struct super_block *sb = dir->i_sb;
sb                284 fs/ufs/dir.c   				if (ufs_match(sb, namelen, name, de))
sb                286 fs/ufs/dir.c   				de = ufs_next_entry(sb, de);
sb                310 fs/ufs/dir.c   	struct super_block *sb = dir->i_sb;
sb                312 fs/ufs/dir.c   	const unsigned int chunk_size = UFS_SB(sb)->s_uspi->s_dirblksize;
sb                346 fs/ufs/dir.c   				de->d_reclen = cpu_to_fs16(sb, chunk_size);
sb                357 fs/ufs/dir.c   			if (ufs_match(sb, namelen, name, de))
sb                359 fs/ufs/dir.c   			name_len = UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, de));
sb                360 fs/ufs/dir.c   			rec_len = fs16_to_cpu(sb, de->d_reclen);
sb                382 fs/ufs/dir.c   		de1->d_reclen = cpu_to_fs16(sb, rec_len - name_len);
sb                383 fs/ufs/dir.c   		de->d_reclen = cpu_to_fs16(sb, name_len);
sb                388 fs/ufs/dir.c   	ufs_set_de_namlen(sb, de, namelen);
sb                390 fs/ufs/dir.c   	de->d_ino = cpu_to_fs32(sb, inode->i_ino);
sb                391 fs/ufs/dir.c   	ufs_set_de_type(sb, de, inode->i_mode);
sb                408 fs/ufs/dir.c   ufs_validate_entry(struct super_block *sb, char *base,
sb                414 fs/ufs/dir.c   		p = ufs_next_entry(sb, p);
sb                427 fs/ufs/dir.c   	struct super_block *sb = inode->i_sb;
sb                431 fs/ufs/dir.c   	unsigned chunk_mask = ~(UFS_SB(sb)->s_uspi->s_dirblksize - 1);
sb                433 fs/ufs/dir.c   	unsigned flags = UFS_SB(sb)->s_flags;
sb                447 fs/ufs/dir.c   			ufs_error(sb, __func__,
sb                456 fs/ufs/dir.c   				offset = ufs_validate_entry(sb, kaddr, offset, chunk_mask);
sb                464 fs/ufs/dir.c   		for ( ;(char*)de <= limit; de = ufs_next_entry(sb, de)) {
sb                469 fs/ufs/dir.c   				      fs32_to_cpu(sb, de->d_ino));
sb                470 fs/ufs/dir.c   				UFSD("namlen %u\n", ufs_get_de_namlen(sb, de));
sb                476 fs/ufs/dir.c   					       ufs_get_de_namlen(sb, de),
sb                477 fs/ufs/dir.c   					       fs32_to_cpu(sb, de->d_ino),
sb                483 fs/ufs/dir.c   			ctx->pos += fs16_to_cpu(sb, de->d_reclen);
sb                498 fs/ufs/dir.c   	struct super_block *sb = inode->i_sb;
sb                500 fs/ufs/dir.c   	unsigned from = ((char*)dir - kaddr) & ~(UFS_SB(sb)->s_uspi->s_dirblksize - 1);
sb                501 fs/ufs/dir.c   	unsigned to = ((char*)dir - kaddr) + fs16_to_cpu(sb, dir->d_reclen);
sb                510 fs/ufs/dir.c   	      fs32_to_cpu(sb, de->d_ino),
sb                511 fs/ufs/dir.c   	      fs16_to_cpu(sb, de->d_reclen),
sb                512 fs/ufs/dir.c   	      ufs_get_de_namlen(sb, de), de->d_name);
sb                522 fs/ufs/dir.c   		de = ufs_next_entry(sb, de);
sb                532 fs/ufs/dir.c   		pde->d_reclen = cpu_to_fs16(sb, to - from);
sb                545 fs/ufs/dir.c   	struct super_block * sb = dir->i_sb;
sb                548 fs/ufs/dir.c   	const unsigned int chunk_size = UFS_SB(sb)->s_uspi->s_dirblksize;
sb                568 fs/ufs/dir.c   	de->d_ino = cpu_to_fs32(sb, inode->i_ino);
sb                569 fs/ufs/dir.c   	ufs_set_de_type(sb, de, inode->i_mode);
sb                570 fs/ufs/dir.c   	ufs_set_de_namlen(sb, de, 1);
sb                571 fs/ufs/dir.c   	de->d_reclen = cpu_to_fs16(sb, UFS_DIR_REC_LEN(1));
sb                574 fs/ufs/dir.c   		((char *)de + fs16_to_cpu(sb, de->d_reclen));
sb                575 fs/ufs/dir.c   	de->d_ino = cpu_to_fs32(sb, dir->i_ino);
sb                576 fs/ufs/dir.c   	ufs_set_de_type(sb, de, dir->i_mode);
sb                577 fs/ufs/dir.c   	de->d_reclen = cpu_to_fs16(sb, chunk_size - UFS_DIR_REC_LEN(1));
sb                578 fs/ufs/dir.c   	ufs_set_de_namlen(sb, de, 2);
sb                593 fs/ufs/dir.c   	struct super_block *sb = inode->i_sb;
sb                617 fs/ufs/dir.c   				u16 namelen=ufs_get_de_namlen(sb, de);
sb                625 fs/ufs/dir.c   					    fs32_to_cpu(sb, de->d_ino))
sb                630 fs/ufs/dir.c   			de = ufs_next_entry(sb, de);
sb                 59 fs/ufs/ialloc.c 	struct super_block * sb;
sb                 68 fs/ufs/ialloc.c 	sb = inode->i_sb;
sb                 69 fs/ufs/ialloc.c 	uspi = UFS_SB(sb)->s_uspi;
sb                 73 fs/ufs/ialloc.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb                 76 fs/ufs/ialloc.c 		ufs_warning(sb, "ufs_free_inode", "reserved inode or nonexistent inode %u\n", ino);
sb                 77 fs/ufs/ialloc.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb                 83 fs/ufs/ialloc.c 	ucpi = ufs_load_cylinder (sb, cg);
sb                 85 fs/ufs/ialloc.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb                 89 fs/ufs/ialloc.c 	if (!ufs_cg_chkmagic(sb, ucg))
sb                 90 fs/ufs/ialloc.c 		ufs_panic (sb, "ufs_free_fragments", "internal error, bad cg magic number");
sb                 92 fs/ufs/ialloc.c 	ucg->cg_time = ufs_get_seconds(sb);
sb                 97 fs/ufs/ialloc.c 		ufs_error(sb, "ufs_free_inode", "bit already cleared for inode %u", ino);
sb                102 fs/ufs/ialloc.c 		fs32_add(sb, &ucg->cg_cs.cs_nifree, 1);
sb                104 fs/ufs/ialloc.c 		fs32_add(sb, &UFS_SB(sb)->fs_cs(cg).cs_nifree, 1);
sb                107 fs/ufs/ialloc.c 			fs32_sub(sb, &ucg->cg_cs.cs_ndir, 1);
sb                109 fs/ufs/ialloc.c 			fs32_sub(sb, &UFS_SB(sb)->fs_cs(cg).cs_ndir, 1);
sb                115 fs/ufs/ialloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                118 fs/ufs/ialloc.c 	ufs_mark_sb_dirty(sb);
sb                119 fs/ufs/ialloc.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                129 fs/ufs/ialloc.c static void ufs2_init_inodes_chunk(struct super_block *sb,
sb                134 fs/ufs/ialloc.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                137 fs/ufs/ialloc.c 			      fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_initediblk));
sb                143 fs/ufs/ialloc.c 		bh = sb_getblk(sb, beg);
sb                145 fs/ufs/ialloc.c 		memset(bh->b_data, 0, sb->s_blocksize);
sb                149 fs/ufs/ialloc.c 		if (sb->s_flags & SB_SYNCHRONOUS)
sb                154 fs/ufs/ialloc.c 	fs32_add(sb, &ucg->cg_u.cg_u2.cg_initediblk, uspi->s_inopb);
sb                156 fs/ufs/ialloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                174 fs/ufs/ialloc.c 	struct super_block * sb;
sb                190 fs/ufs/ialloc.c 	sb = dir->i_sb;
sb                191 fs/ufs/ialloc.c 	inode = new_inode(sb);
sb                195 fs/ufs/ialloc.c 	sbi = UFS_SB(sb);
sb                239 fs/ufs/ialloc.c 	ucpi = ufs_load_cylinder (sb, cg);
sb                245 fs/ufs/ialloc.c 	if (!ufs_cg_chkmagic(sb, ucg)) 
sb                246 fs/ufs/ialloc.c 		ufs_panic (sb, "ufs_new_inode", "internal error, bad cg magic number");
sb                253 fs/ufs/ialloc.c 			ufs_error (sb, "ufs_new_inode",
sb                263 fs/ufs/ialloc.c 		ufs_panic (sb, "ufs_new_inode", "internal error");
sb                269 fs/ufs/ialloc.c 		u32 initediblk = fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_initediblk);
sb                272 fs/ufs/ialloc.c 		    initediblk < fs32_to_cpu(sb, ucg->cg_u.cg_u2.cg_niblk))
sb                273 fs/ufs/ialloc.c 			ufs2_init_inodes_chunk(sb, ucpi, ucg);
sb                276 fs/ufs/ialloc.c 	fs32_sub(sb, &ucg->cg_cs.cs_nifree, 1);
sb                278 fs/ufs/ialloc.c 	fs32_sub(sb, &sbi->fs_cs(cg).cs_nifree, 1);
sb                281 fs/ufs/ialloc.c 		fs32_add(sb, &ucg->cg_cs.cs_ndir, 1);
sb                283 fs/ufs/ialloc.c 		fs32_add(sb, &sbi->fs_cs(cg).cs_ndir, 1);
sb                287 fs/ufs/ialloc.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                289 fs/ufs/ialloc.c 	ufs_mark_sb_dirty(sb);
sb                317 fs/ufs/ialloc.c 		bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino));
sb                319 fs/ufs/ialloc.c 			ufs_warning(sb, "ufs_read_inode",
sb                329 fs/ufs/ialloc.c 		ufs2_inode->ui_birthtime = cpu_to_fs64(sb, ts.tv_sec);
sb                330 fs/ufs/ialloc.c 		ufs2_inode->ui_birthnsec = cpu_to_fs32(sb, ts.tv_nsec);
sb                333 fs/ufs/ialloc.c 		if (sb->s_flags & SB_SYNCHRONOUS)
sb                127 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                128 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                133 fs/ufs/inode.c 	unsigned flags = UFS_SB(sb)->s_flags;
sb                158 fs/ufs/inode.c 		bh = sb_bread(sb, uspi->s_sbbase +
sb                159 fs/ufs/inode.c 				  fs32_to_cpu(sb, q->key32) + (n>>shift));
sb                168 fs/ufs/inode.c 	res = fs32_to_cpu(sb, q->key32);
sb                182 fs/ufs/inode.c 		bh = sb_bread(sb, uspi->s_sbbase +
sb                183 fs/ufs/inode.c 				  fs64_to_cpu(sb, q->key64) + (n>>shift));
sb                192 fs/ufs/inode.c 	res = fs64_to_cpu(sb, q->key64);
sb                225 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                226 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                239 fs/ufs/inode.c 	tmp = ufs_new_fragments(inode, p, lastfrag, ufs_data_ptr_to_cpu(sb, p),
sb                260 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                261 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                272 fs/ufs/inode.c 	tmp = ufs_data_ptr_to_cpu(sb, p);
sb                284 fs/ufs/inode.c 		goal = ufs_data_ptr_to_cpu(sb,
sb                338 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                339 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                348 fs/ufs/inode.c 	bh = sb_bread(sb, ind_block + (index >> shift));
sb                360 fs/ufs/inode.c 	tmp = ufs_data_ptr_to_cpu(sb, p);
sb                365 fs/ufs/inode.c 		      (tmp = fs64_to_cpu(sb, ((__fs64 *)bh->b_data)[index-1])) :
sb                366 fs/ufs/inode.c 		      (tmp = fs32_to_cpu(sb, ((__fs32 *)bh->b_data)[index-1]))))
sb                398 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                399 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                426 fs/ufs/inode.c 		ufs_warning(sb, "ufs_get_block", "block > big");
sb                457 fs/ufs/inode.c 		map_bh(bh_result, sb, phys64);
sb                466 fs/ufs/inode.c 		map_bh(bh_result, sb, phys64 + frag);
sb                563 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                569 fs/ufs/inode.c 	inode->i_mode = mode = fs16_to_cpu(sb, ufs_inode->ui_mode);
sb                570 fs/ufs/inode.c 	set_nlink(inode, fs16_to_cpu(sb, ufs_inode->ui_nlink));
sb                577 fs/ufs/inode.c 	i_uid_write(inode, ufs_get_inode_uid(sb, ufs_inode));
sb                578 fs/ufs/inode.c 	i_gid_write(inode, ufs_get_inode_gid(sb, ufs_inode));
sb                580 fs/ufs/inode.c 	inode->i_size = fs64_to_cpu(sb, ufs_inode->ui_size);
sb                581 fs/ufs/inode.c 	inode->i_atime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_atime.tv_sec);
sb                582 fs/ufs/inode.c 	inode->i_ctime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_ctime.tv_sec);
sb                583 fs/ufs/inode.c 	inode->i_mtime.tv_sec = (signed)fs32_to_cpu(sb, ufs_inode->ui_mtime.tv_sec);
sb                587 fs/ufs/inode.c 	inode->i_blocks = fs32_to_cpu(sb, ufs_inode->ui_blocks);
sb                588 fs/ufs/inode.c 	inode->i_generation = fs32_to_cpu(sb, ufs_inode->ui_gen);
sb                589 fs/ufs/inode.c 	ufsi->i_flags = fs32_to_cpu(sb, ufs_inode->ui_flags);
sb                590 fs/ufs/inode.c 	ufsi->i_shadow = fs32_to_cpu(sb, ufs_inode->ui_u3.ui_sun.ui_shadow);
sb                591 fs/ufs/inode.c 	ufsi->i_oeftflag = fs32_to_cpu(sb, ufs_inode->ui_u3.ui_sun.ui_oeftflag);
sb                608 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                615 fs/ufs/inode.c 	inode->i_mode = mode = fs16_to_cpu(sb, ufs2_inode->ui_mode);
sb                616 fs/ufs/inode.c 	set_nlink(inode, fs16_to_cpu(sb, ufs2_inode->ui_nlink));
sb                623 fs/ufs/inode.c 	i_uid_write(inode, fs32_to_cpu(sb, ufs2_inode->ui_uid));
sb                624 fs/ufs/inode.c 	i_gid_write(inode, fs32_to_cpu(sb, ufs2_inode->ui_gid));
sb                626 fs/ufs/inode.c 	inode->i_size = fs64_to_cpu(sb, ufs2_inode->ui_size);
sb                627 fs/ufs/inode.c 	inode->i_atime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_atime);
sb                628 fs/ufs/inode.c 	inode->i_ctime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_ctime);
sb                629 fs/ufs/inode.c 	inode->i_mtime.tv_sec = fs64_to_cpu(sb, ufs2_inode->ui_mtime);
sb                630 fs/ufs/inode.c 	inode->i_atime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_atimensec);
sb                631 fs/ufs/inode.c 	inode->i_ctime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_ctimensec);
sb                632 fs/ufs/inode.c 	inode->i_mtime.tv_nsec = fs32_to_cpu(sb, ufs2_inode->ui_mtimensec);
sb                633 fs/ufs/inode.c 	inode->i_blocks = fs64_to_cpu(sb, ufs2_inode->ui_blocks);
sb                634 fs/ufs/inode.c 	inode->i_generation = fs32_to_cpu(sb, ufs2_inode->ui_gen);
sb                635 fs/ufs/inode.c 	ufsi->i_flags = fs32_to_cpu(sb, ufs2_inode->ui_flags);
sb                652 fs/ufs/inode.c struct inode *ufs_iget(struct super_block *sb, unsigned long ino)
sb                655 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                663 fs/ufs/inode.c 		ufs_warning(sb, "ufs_read_inode", "bad inode number (%lu)\n",
sb                668 fs/ufs/inode.c 	inode = iget_locked(sb, ino);
sb                676 fs/ufs/inode.c 	bh = sb_bread(sb, uspi->s_sbbase + ufs_inotofsba(inode->i_ino));
sb                678 fs/ufs/inode.c 		ufs_warning(sb, "ufs_read_inode", "unable to read inode %lu\n",
sb                682 fs/ufs/inode.c 	if ((UFS_SB(sb)->s_flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) {
sb                716 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                719 fs/ufs/inode.c 	ufs_inode->ui_mode = cpu_to_fs16(sb, inode->i_mode);
sb                720 fs/ufs/inode.c 	ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink);
sb                722 fs/ufs/inode.c 	ufs_set_inode_uid(sb, ufs_inode, i_uid_read(inode));
sb                723 fs/ufs/inode.c 	ufs_set_inode_gid(sb, ufs_inode, i_gid_read(inode));
sb                725 fs/ufs/inode.c 	ufs_inode->ui_size = cpu_to_fs64(sb, inode->i_size);
sb                726 fs/ufs/inode.c 	ufs_inode->ui_atime.tv_sec = cpu_to_fs32(sb, inode->i_atime.tv_sec);
sb                728 fs/ufs/inode.c 	ufs_inode->ui_ctime.tv_sec = cpu_to_fs32(sb, inode->i_ctime.tv_sec);
sb                730 fs/ufs/inode.c 	ufs_inode->ui_mtime.tv_sec = cpu_to_fs32(sb, inode->i_mtime.tv_sec);
sb                732 fs/ufs/inode.c 	ufs_inode->ui_blocks = cpu_to_fs32(sb, inode->i_blocks);
sb                733 fs/ufs/inode.c 	ufs_inode->ui_flags = cpu_to_fs32(sb, ufsi->i_flags);
sb                734 fs/ufs/inode.c 	ufs_inode->ui_gen = cpu_to_fs32(sb, inode->i_generation);
sb                736 fs/ufs/inode.c 	if ((UFS_SB(sb)->s_flags & UFS_UID_MASK) == UFS_UID_EFT) {
sb                737 fs/ufs/inode.c 		ufs_inode->ui_u3.ui_sun.ui_shadow = cpu_to_fs32(sb, ufsi->i_shadow);
sb                738 fs/ufs/inode.c 		ufs_inode->ui_u3.ui_sun.ui_oeftflag = cpu_to_fs32(sb, ufsi->i_oeftflag);
sb                759 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                763 fs/ufs/inode.c 	ufs_inode->ui_mode = cpu_to_fs16(sb, inode->i_mode);
sb                764 fs/ufs/inode.c 	ufs_inode->ui_nlink = cpu_to_fs16(sb, inode->i_nlink);
sb                766 fs/ufs/inode.c 	ufs_inode->ui_uid = cpu_to_fs32(sb, i_uid_read(inode));
sb                767 fs/ufs/inode.c 	ufs_inode->ui_gid = cpu_to_fs32(sb, i_gid_read(inode));
sb                769 fs/ufs/inode.c 	ufs_inode->ui_size = cpu_to_fs64(sb, inode->i_size);
sb                770 fs/ufs/inode.c 	ufs_inode->ui_atime = cpu_to_fs64(sb, inode->i_atime.tv_sec);
sb                771 fs/ufs/inode.c 	ufs_inode->ui_atimensec = cpu_to_fs32(sb, inode->i_atime.tv_nsec);
sb                772 fs/ufs/inode.c 	ufs_inode->ui_ctime = cpu_to_fs64(sb, inode->i_ctime.tv_sec);
sb                773 fs/ufs/inode.c 	ufs_inode->ui_ctimensec = cpu_to_fs32(sb, inode->i_ctime.tv_nsec);
sb                774 fs/ufs/inode.c 	ufs_inode->ui_mtime = cpu_to_fs64(sb, inode->i_mtime.tv_sec);
sb                775 fs/ufs/inode.c 	ufs_inode->ui_mtimensec = cpu_to_fs32(sb, inode->i_mtime.tv_nsec);
sb                777 fs/ufs/inode.c 	ufs_inode->ui_blocks = cpu_to_fs64(sb, inode->i_blocks);
sb                778 fs/ufs/inode.c 	ufs_inode->ui_flags = cpu_to_fs32(sb, ufsi->i_flags);
sb                779 fs/ufs/inode.c 	ufs_inode->ui_gen = cpu_to_fs32(sb, inode->i_generation);
sb                799 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                800 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                807 fs/ufs/inode.c 		ufs_warning (sb, "ufs_read_inode", "bad inode number (%lu)\n", inode->i_ino);
sb                811 fs/ufs/inode.c 	bh = sb_bread(sb, ufs_inotofsba(inode->i_ino));
sb                813 fs/ufs/inode.c 		ufs_warning (sb, "ufs_read_inode", "unable to read inode %lu\n", inode->i_ino);
sb                891 fs/ufs/inode.c 	struct super_block * sb;
sb                900 fs/ufs/inode.c 	sb = inode->i_sb;
sb                901 fs/ufs/inode.c 	uspi = UFS_SB(sb)->s_uspi;
sb                929 fs/ufs/inode.c 	tmp = ufs_data_ptr_to_cpu(sb, p);
sb                931 fs/ufs/inode.c 		ufs_panic (sb, "ufs_trunc_direct", "internal error");
sb                943 fs/ufs/inode.c 		tmp = ufs_data_ptr_to_cpu(sb, p);
sb                962 fs/ufs/inode.c 	tmp = ufs_data_ptr_to_cpu(sb, p);
sb                964 fs/ufs/inode.c 		ufs_panic(sb, "ufs_truncate_direct", "internal error");
sb                978 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb                979 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                980 fs/ufs/inode.c 	struct ufs_buffer_head *ubh = ubh_bread(sb, ind_block, uspi->s_bsize);
sb                989 fs/ufs/inode.c 			u64 block = ufs_data_ptr_to_cpu(sb, p);
sb                998 fs/ufs/inode.c 			u64 block = ufs_data_ptr_to_cpu(sb, p);
sb               1011 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb               1012 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb               1018 fs/ufs/inode.c 			u64 block = ufs_data_ptr_to_cpu(sb, p);
sb               1032 fs/ufs/inode.c 			u64 block = ufs_data_ptr_to_cpu(sb, p);
sb               1051 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb               1053 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb               1101 fs/ufs/inode.c 		       bh = sb_getblk(sb, i + phys64);
sb               1103 fs/ufs/inode.c 		       memset(bh->b_data, 0, sb->s_blocksize);
sb               1120 fs/ufs/inode.c 	struct super_block *sb = inode->i_sb;
sb               1121 fs/ufs/inode.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb               1151 fs/ufs/inode.c 			block = ufs_data_ptr_to_cpu(sb, p);
sb               1154 fs/ufs/inode.c 			ubh[i] = ubh_bread(sb, block, uspi->s_bsize);
sb               1168 fs/ufs/inode.c 		block = ufs_data_ptr_to_cpu(sb, p);
sb                110 fs/ufs/namei.c 	struct super_block * sb = dir->i_sb;
sb                115 fs/ufs/namei.c 	if (l > sb->s_blocksize)
sb                123 fs/ufs/namei.c 	if (l > UFS_SB(sb)->s_uspi->s_maxsymlinklen) {
sb                 99 fs/ufs/super.c static struct inode *ufs_nfs_get_inode(struct super_block *sb, u64 ino, u32 generation)
sb                101 fs/ufs/super.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                107 fs/ufs/super.c 	inode = ufs_iget(sb, ino);
sb                117 fs/ufs/super.c static struct dentry *ufs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                120 fs/ufs/super.c 	return generic_fh_to_dentry(sb, fid, fh_len, fh_type, ufs_nfs_get_inode);
sb                123 fs/ufs/super.c static struct dentry *ufs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                126 fs/ufs/super.c 	return generic_fh_to_parent(sb, fid, fh_len, fh_type, ufs_nfs_get_inode);
sb                150 fs/ufs/super.c static void ufs_print_super_stuff(struct super_block *sb,
sb                155 fs/ufs/super.c 	u32 magic = fs32_to_cpu(sb, usb3->fs_magic);
sb                159 fs/ufs/super.c 	if (fs32_to_cpu(sb, usb3->fs_magic) == UFS2_MAGIC) {
sb                161 fs/ufs/super.c 			 fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_size));
sb                163 fs/ufs/super.c 			 fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_dsize));
sb                165 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_bsize));
sb                167 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_fsize));
sb                170 fs/ufs/super.c 			 fs64_to_cpu(sb, usb2->fs_un.fs_u2.fs_sblockloc));
sb                172 fs/ufs/super.c 			 fs64_to_cpu(sb, usb2->fs_un.fs_u2.cs_ndir));
sb                175 fs/ufs/super.c 			 fs64_to_cpu(sb, usb2->fs_un.fs_u2.cs_nbfree));
sb                178 fs/ufs/super.c 			fs64_to_cpu(sb, usb3->fs_un1.fs_u2.cs_nifree));
sb                181 fs/ufs/super.c 			fs64_to_cpu(sb, usb3->fs_un1.fs_u2.cs_nffree));
sb                183 fs/ufs/super.c 			fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_maxsymlinklen));
sb                185 fs/ufs/super.c 		pr_debug(" sblkno:      %u\n", fs32_to_cpu(sb, usb1->fs_sblkno));
sb                186 fs/ufs/super.c 		pr_debug(" cblkno:      %u\n", fs32_to_cpu(sb, usb1->fs_cblkno));
sb                187 fs/ufs/super.c 		pr_debug(" iblkno:      %u\n", fs32_to_cpu(sb, usb1->fs_iblkno));
sb                188 fs/ufs/super.c 		pr_debug(" dblkno:      %u\n", fs32_to_cpu(sb, usb1->fs_dblkno));
sb                190 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_cgoffset));
sb                192 fs/ufs/super.c 			 ~fs32_to_cpu(sb, usb1->fs_cgmask));
sb                193 fs/ufs/super.c 		pr_debug(" size:        %u\n", fs32_to_cpu(sb, usb1->fs_size));
sb                194 fs/ufs/super.c 		pr_debug(" dsize:       %u\n", fs32_to_cpu(sb, usb1->fs_dsize));
sb                195 fs/ufs/super.c 		pr_debug(" ncg:         %u\n", fs32_to_cpu(sb, usb1->fs_ncg));
sb                196 fs/ufs/super.c 		pr_debug(" bsize:       %u\n", fs32_to_cpu(sb, usb1->fs_bsize));
sb                197 fs/ufs/super.c 		pr_debug(" fsize:       %u\n", fs32_to_cpu(sb, usb1->fs_fsize));
sb                198 fs/ufs/super.c 		pr_debug(" frag:        %u\n", fs32_to_cpu(sb, usb1->fs_frag));
sb                200 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_fragshift));
sb                201 fs/ufs/super.c 		pr_debug(" ~fmask:      %u\n", ~fs32_to_cpu(sb, usb1->fs_fmask));
sb                202 fs/ufs/super.c 		pr_debug(" fshift:      %u\n", fs32_to_cpu(sb, usb1->fs_fshift));
sb                203 fs/ufs/super.c 		pr_debug(" sbsize:      %u\n", fs32_to_cpu(sb, usb1->fs_sbsize));
sb                204 fs/ufs/super.c 		pr_debug(" spc:         %u\n", fs32_to_cpu(sb, usb1->fs_spc));
sb                205 fs/ufs/super.c 		pr_debug(" cpg:         %u\n", fs32_to_cpu(sb, usb1->fs_cpg));
sb                206 fs/ufs/super.c 		pr_debug(" ipg:         %u\n", fs32_to_cpu(sb, usb1->fs_ipg));
sb                207 fs/ufs/super.c 		pr_debug(" fpg:         %u\n", fs32_to_cpu(sb, usb1->fs_fpg));
sb                208 fs/ufs/super.c 		pr_debug(" csaddr:      %u\n", fs32_to_cpu(sb, usb1->fs_csaddr));
sb                209 fs/ufs/super.c 		pr_debug(" cssize:      %u\n", fs32_to_cpu(sb, usb1->fs_cssize));
sb                210 fs/ufs/super.c 		pr_debug(" cgsize:      %u\n", fs32_to_cpu(sb, usb1->fs_cgsize));
sb                212 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_fsbtodb));
sb                213 fs/ufs/super.c 		pr_debug(" nrpos:       %u\n", fs32_to_cpu(sb, usb3->fs_nrpos));
sb                215 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_cstotal.cs_ndir));
sb                217 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_cstotal.cs_nifree));
sb                219 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_cstotal.cs_nbfree));
sb                221 fs/ufs/super.c 			 fs32_to_cpu(sb, usb1->fs_cstotal.cs_nffree));
sb                229 fs/ufs/super.c static void ufs_print_cylinder_stuff(struct super_block *sb,
sb                234 fs/ufs/super.c 	pr_debug("  magic:        %x\n", fs32_to_cpu(sb, cg->cg_magic));
sb                235 fs/ufs/super.c 	pr_debug("  time:         %u\n", fs32_to_cpu(sb, cg->cg_time));
sb                236 fs/ufs/super.c 	pr_debug("  cgx:          %u\n", fs32_to_cpu(sb, cg->cg_cgx));
sb                237 fs/ufs/super.c 	pr_debug("  ncyl:         %u\n", fs16_to_cpu(sb, cg->cg_ncyl));
sb                238 fs/ufs/super.c 	pr_debug("  niblk:        %u\n", fs16_to_cpu(sb, cg->cg_niblk));
sb                239 fs/ufs/super.c 	pr_debug("  ndblk:        %u\n", fs32_to_cpu(sb, cg->cg_ndblk));
sb                240 fs/ufs/super.c 	pr_debug("  cs_ndir:      %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_ndir));
sb                241 fs/ufs/super.c 	pr_debug("  cs_nbfree:    %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_nbfree));
sb                242 fs/ufs/super.c 	pr_debug("  cs_nifree:    %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_nifree));
sb                243 fs/ufs/super.c 	pr_debug("  cs_nffree:    %u\n", fs32_to_cpu(sb, cg->cg_cs.cs_nffree));
sb                244 fs/ufs/super.c 	pr_debug("  rotor:        %u\n", fs32_to_cpu(sb, cg->cg_rotor));
sb                245 fs/ufs/super.c 	pr_debug("  frotor:       %u\n", fs32_to_cpu(sb, cg->cg_frotor));
sb                246 fs/ufs/super.c 	pr_debug("  irotor:       %u\n", fs32_to_cpu(sb, cg->cg_irotor));
sb                248 fs/ufs/super.c 	    fs32_to_cpu(sb, cg->cg_frsum[0]), fs32_to_cpu(sb, cg->cg_frsum[1]),
sb                249 fs/ufs/super.c 	    fs32_to_cpu(sb, cg->cg_frsum[2]), fs32_to_cpu(sb, cg->cg_frsum[3]),
sb                250 fs/ufs/super.c 	    fs32_to_cpu(sb, cg->cg_frsum[4]), fs32_to_cpu(sb, cg->cg_frsum[5]),
sb                251 fs/ufs/super.c 	    fs32_to_cpu(sb, cg->cg_frsum[6]), fs32_to_cpu(sb, cg->cg_frsum[7]));
sb                252 fs/ufs/super.c 	pr_debug("  btotoff:      %u\n", fs32_to_cpu(sb, cg->cg_btotoff));
sb                253 fs/ufs/super.c 	pr_debug("  boff:         %u\n", fs32_to_cpu(sb, cg->cg_boff));
sb                254 fs/ufs/super.c 	pr_debug("  iuseoff:      %u\n", fs32_to_cpu(sb, cg->cg_iusedoff));
sb                255 fs/ufs/super.c 	pr_debug("  freeoff:      %u\n", fs32_to_cpu(sb, cg->cg_freeoff));
sb                256 fs/ufs/super.c 	pr_debug("  nextfreeoff:  %u\n", fs32_to_cpu(sb, cg->cg_nextfreeoff));
sb                258 fs/ufs/super.c 		 fs32_to_cpu(sb, cg->cg_u.cg_44.cg_clustersumoff));
sb                260 fs/ufs/super.c 		 fs32_to_cpu(sb, cg->cg_u.cg_44.cg_clusteroff));
sb                262 fs/ufs/super.c 		 fs32_to_cpu(sb, cg->cg_u.cg_44.cg_nclusterblks));
sb                266 fs/ufs/super.c #  define ufs_print_super_stuff(sb, usb1, usb2, usb3) /**/
sb                267 fs/ufs/super.c #  define ufs_print_cylinder_stuff(sb, cg) /**/
sb                272 fs/ufs/super.c void ufs_error (struct super_block * sb, const char * function,
sb                280 fs/ufs/super.c 	uspi = UFS_SB(sb)->s_uspi;
sb                283 fs/ufs/super.c 	if (!sb_rdonly(sb)) {
sb                286 fs/ufs/super.c 		ufs_mark_sb_dirty(sb);
sb                287 fs/ufs/super.c 		sb->s_flags |= SB_RDONLY;
sb                292 fs/ufs/super.c 	switch (UFS_SB(sb)->s_mount_opt & UFS_MOUNT_ONERROR) {
sb                295 fs/ufs/super.c 		      sb->s_id, function, &vaf);
sb                301 fs/ufs/super.c 			sb->s_id, function, &vaf);
sb                306 fs/ufs/super.c void ufs_panic (struct super_block * sb, const char * function,
sb                314 fs/ufs/super.c 	uspi = UFS_SB(sb)->s_uspi;
sb                317 fs/ufs/super.c 	if (!sb_rdonly(sb)) {
sb                320 fs/ufs/super.c 		ufs_mark_sb_dirty(sb);
sb                325 fs/ufs/super.c 	sb->s_flags |= SB_RDONLY;
sb                327 fs/ufs/super.c 		sb->s_id, function, &vaf);
sb                331 fs/ufs/super.c void ufs_warning (struct super_block * sb, const char * function,
sb                341 fs/ufs/super.c 		sb->s_id, function, &vaf);
sb                470 fs/ufs/super.c static void ufs_setup_cstotal(struct super_block *sb)
sb                472 fs/ufs/super.c 	struct ufs_sb_info *sbi = UFS_SB(sb);
sb                488 fs/ufs/super.c 		uspi->cs_total.cs_ndir = fs64_to_cpu(sb, usb2->fs_un.fs_u2.cs_ndir);
sb                489 fs/ufs/super.c 		uspi->cs_total.cs_nbfree = fs64_to_cpu(sb, usb2->fs_un.fs_u2.cs_nbfree);
sb                490 fs/ufs/super.c 		uspi->cs_total.cs_nifree = fs64_to_cpu(sb, usb3->fs_un1.fs_u2.cs_nifree);
sb                491 fs/ufs/super.c 		uspi->cs_total.cs_nffree = fs64_to_cpu(sb, usb3->fs_un1.fs_u2.cs_nffree);
sb                493 fs/ufs/super.c 		uspi->cs_total.cs_ndir = fs32_to_cpu(sb, usb1->fs_cstotal.cs_ndir);
sb                494 fs/ufs/super.c 		uspi->cs_total.cs_nbfree = fs32_to_cpu(sb, usb1->fs_cstotal.cs_nbfree);
sb                495 fs/ufs/super.c 		uspi->cs_total.cs_nifree = fs32_to_cpu(sb, usb1->fs_cstotal.cs_nifree);
sb                496 fs/ufs/super.c 		uspi->cs_total.cs_nffree = fs32_to_cpu(sb, usb1->fs_cstotal.cs_nffree);
sb                504 fs/ufs/super.c static int ufs_read_cylinder_structures(struct super_block *sb)
sb                506 fs/ufs/super.c 	struct ufs_sb_info *sbi = UFS_SB(sb);
sb                529 fs/ufs/super.c 		ubh = ubh_bread(sb, uspi->s_csaddr + i, size);
sb                557 fs/ufs/super.c 		if (!(sbi->s_ucg[i] = sb_bread(sb, ufs_cgcmin(i))))
sb                559 fs/ufs/super.c 		if (!ufs_cg_chkmagic (sb, (struct ufs_cylinder_group *) sbi->s_ucg[i]->b_data))
sb                562 fs/ufs/super.c 		ufs_print_cylinder_stuff(sb, (struct ufs_cylinder_group *) sbi->s_ucg[i]->b_data);
sb                590 fs/ufs/super.c static void ufs_put_cstotal(struct super_block *sb)
sb                592 fs/ufs/super.c 	unsigned mtype = UFS_SB(sb)->s_mount_opt & UFS_MOUNT_UFSTYPE;
sb                593 fs/ufs/super.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                606 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_ndir);
sb                608 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_nbfree);
sb                610 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_nifree);
sb                612 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_nffree);
sb                620 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_ndir);
sb                622 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_nbfree);
sb                624 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_nifree);
sb                626 fs/ufs/super.c 			cpu_to_fs64(sb, uspi->cs_total.cs_nffree);
sb                628 fs/ufs/super.c 	usb1->fs_cstotal.cs_ndir = cpu_to_fs32(sb, uspi->cs_total.cs_ndir);
sb                629 fs/ufs/super.c 	usb1->fs_cstotal.cs_nbfree = cpu_to_fs32(sb, uspi->cs_total.cs_nbfree);
sb                630 fs/ufs/super.c 	usb1->fs_cstotal.cs_nifree = cpu_to_fs32(sb, uspi->cs_total.cs_nifree);
sb                631 fs/ufs/super.c 	usb1->fs_cstotal.cs_nffree = cpu_to_fs32(sb, uspi->cs_total.cs_nffree);
sb                634 fs/ufs/super.c 	ufs_print_super_stuff(sb, usb1, usb2, usb3);
sb                644 fs/ufs/super.c static void ufs_put_super_internal(struct super_block *sb)
sb                646 fs/ufs/super.c 	struct ufs_sb_info *sbi = UFS_SB(sb);
sb                655 fs/ufs/super.c 	ufs_put_cstotal(sb);
sb                664 fs/ufs/super.c 		ubh = ubh_bread(sb, uspi->s_csaddr + i, size);
sb                673 fs/ufs/super.c 		ufs_put_cylinder (sb, i);
sb                686 fs/ufs/super.c static int ufs_sync_fs(struct super_block *sb, int wait)
sb                693 fs/ufs/super.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb                697 fs/ufs/super.c 	flags = UFS_SB(sb)->s_flags;
sb                698 fs/ufs/super.c 	uspi = UFS_SB(sb)->s_uspi;
sb                702 fs/ufs/super.c 	usb1->fs_time = ufs_get_seconds(sb);
sb                706 fs/ufs/super.c 		ufs_set_fs_state(sb, usb1, usb3,
sb                707 fs/ufs/super.c 				UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time));
sb                708 fs/ufs/super.c 	ufs_put_cstotal(sb);
sb                711 fs/ufs/super.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb                726 fs/ufs/super.c 	ufs_sync_fs(sbi->sb, 1);
sb                729 fs/ufs/super.c void ufs_mark_sb_dirty(struct super_block *sb)
sb                731 fs/ufs/super.c 	struct ufs_sb_info *sbi = UFS_SB(sb);
sb                743 fs/ufs/super.c static void ufs_put_super(struct super_block *sb)
sb                745 fs/ufs/super.c 	struct ufs_sb_info * sbi = UFS_SB(sb);
sb                749 fs/ufs/super.c 	if (!sb_rdonly(sb))
sb                750 fs/ufs/super.c 		ufs_put_super_internal(sb);
sb                756 fs/ufs/super.c 	sb->s_fs_info = NULL;
sb                761 fs/ufs/super.c static u64 ufs_max_bytes(struct super_block *sb)
sb                763 fs/ufs/super.c 	struct ufs_sb_private_info *uspi = UFS_SB(sb)->s_uspi;
sb                778 fs/ufs/super.c static int ufs_fill_super(struct super_block *sb, void *data, int silent)
sb                800 fs/ufs/super.c 	if (!sb_rdonly(sb)) {
sb                809 fs/ufs/super.c 	sb->s_fs_info = sbi;
sb                810 fs/ufs/super.c 	sbi->sb = sb;
sb                812 fs/ufs/super.c 	UFSD("flag %u\n", (int)(sb_rdonly(sb)));
sb                844 fs/ufs/super.c 	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb                846 fs/ufs/super.c 	sb->s_time_gran = NSEC_PER_SEC;
sb                847 fs/ufs/super.c 	sb->s_time_min = S32_MIN;
sb                848 fs/ufs/super.c 	sb->s_time_max = S32_MAX;
sb                868 fs/ufs/super.c 		sb->s_time_gran = 1;
sb                869 fs/ufs/super.c 		sb->s_time_min = S64_MIN;
sb                870 fs/ufs/super.c 		sb->s_time_max = S64_MAX;
sb                916 fs/ufs/super.c 		if (!sb_rdonly(sb)) {
sb                919 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb                932 fs/ufs/super.c 		if (!sb_rdonly(sb)) {
sb                935 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb                948 fs/ufs/super.c 		if (!sb_rdonly(sb)) {
sb                951 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb                964 fs/ufs/super.c 		if (!sb_rdonly(sb)) {
sb                967 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb                979 fs/ufs/super.c 		if (!sb_rdonly(sb)) {
sb                982 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb                992 fs/ufs/super.c 	if (!sb_set_blocksize(sb, block_size)) {
sb               1001 fs/ufs/super.c 	ubh = ubh_bread_uspi(uspi, sb, uspi->s_sbbase + super_block_offset/block_size, super_block_size);
sb               1011 fs/ufs/super.c 	uspi->s_postblformat = fs32_to_cpu(sb, usb3->fs_postblformat);
sb               1029 fs/ufs/super.c 	switch ((uspi->fs_magic = fs32_to_cpu(sb, usb3->fs_magic))) {
sb               1039 fs/ufs/super.c 	switch ((uspi->fs_magic = fs32_to_cpu(sb, usb3->fs_magic))) {
sb               1066 fs/ufs/super.c 	uspi->s_bsize = fs32_to_cpu(sb, usb1->fs_bsize);
sb               1067 fs/ufs/super.c 	uspi->s_fsize = fs32_to_cpu(sb, usb1->fs_fsize);
sb               1068 fs/ufs/super.c 	uspi->s_sbsize = fs32_to_cpu(sb, usb1->fs_sbsize);
sb               1069 fs/ufs/super.c 	uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask);
sb               1070 fs/ufs/super.c 	uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift);
sb               1112 fs/ufs/super.c 	ufs_print_super_stuff(sb, usb1, usb2, usb3);
sb               1123 fs/ufs/super.c 	  (ufs_get_fs_state(sb, usb1, usb3) == (UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time))))) {
sb               1139 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1143 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1148 fs/ufs/super.c 			sb->s_flags |= SB_RDONLY;
sb               1153 fs/ufs/super.c 		sb->s_flags |= SB_RDONLY;
sb               1159 fs/ufs/super.c 	sb->s_op = &ufs_super_ops;
sb               1160 fs/ufs/super.c 	sb->s_export_op = &ufs_export_ops;
sb               1162 fs/ufs/super.c 	sb->s_magic = fs32_to_cpu(sb, usb3->fs_magic);
sb               1164 fs/ufs/super.c 	uspi->s_sblkno = fs32_to_cpu(sb, usb1->fs_sblkno);
sb               1165 fs/ufs/super.c 	uspi->s_cblkno = fs32_to_cpu(sb, usb1->fs_cblkno);
sb               1166 fs/ufs/super.c 	uspi->s_iblkno = fs32_to_cpu(sb, usb1->fs_iblkno);
sb               1167 fs/ufs/super.c 	uspi->s_dblkno = fs32_to_cpu(sb, usb1->fs_dblkno);
sb               1168 fs/ufs/super.c 	uspi->s_cgoffset = fs32_to_cpu(sb, usb1->fs_cgoffset);
sb               1169 fs/ufs/super.c 	uspi->s_cgmask = fs32_to_cpu(sb, usb1->fs_cgmask);
sb               1172 fs/ufs/super.c 		uspi->s_size  = fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_size);
sb               1173 fs/ufs/super.c 		uspi->s_dsize = fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_dsize);
sb               1175 fs/ufs/super.c 		uspi->s_size  =  fs32_to_cpu(sb, usb1->fs_size);
sb               1176 fs/ufs/super.c 		uspi->s_dsize =  fs32_to_cpu(sb, usb1->fs_dsize);
sb               1179 fs/ufs/super.c 	uspi->s_ncg = fs32_to_cpu(sb, usb1->fs_ncg);
sb               1182 fs/ufs/super.c 	uspi->s_fpb = fs32_to_cpu(sb, usb1->fs_frag);
sb               1183 fs/ufs/super.c 	uspi->s_minfree = fs32_to_cpu(sb, usb1->fs_minfree);
sb               1184 fs/ufs/super.c 	uspi->s_bmask = fs32_to_cpu(sb, usb1->fs_bmask);
sb               1185 fs/ufs/super.c 	uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask);
sb               1186 fs/ufs/super.c 	uspi->s_bshift = fs32_to_cpu(sb, usb1->fs_bshift);
sb               1187 fs/ufs/super.c 	uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift);
sb               1190 fs/ufs/super.c 	uspi->s_fpbshift = fs32_to_cpu(sb, usb1->fs_fragshift);
sb               1191 fs/ufs/super.c 	uspi->s_fsbtodb = fs32_to_cpu(sb, usb1->fs_fsbtodb);
sb               1193 fs/ufs/super.c 	uspi->s_csmask = fs32_to_cpu(sb, usb1->fs_csmask);
sb               1194 fs/ufs/super.c 	uspi->s_csshift = fs32_to_cpu(sb, usb1->fs_csshift);
sb               1195 fs/ufs/super.c 	uspi->s_nindir = fs32_to_cpu(sb, usb1->fs_nindir);
sb               1196 fs/ufs/super.c 	uspi->s_inopb = fs32_to_cpu(sb, usb1->fs_inopb);
sb               1197 fs/ufs/super.c 	uspi->s_nspf = fs32_to_cpu(sb, usb1->fs_nspf);
sb               1198 fs/ufs/super.c 	uspi->s_npsect = ufs_get_fs_npsect(sb, usb1, usb3);
sb               1199 fs/ufs/super.c 	uspi->s_interleave = fs32_to_cpu(sb, usb1->fs_interleave);
sb               1200 fs/ufs/super.c 	uspi->s_trackskew = fs32_to_cpu(sb, usb1->fs_trackskew);
sb               1203 fs/ufs/super.c 		uspi->s_csaddr = fs64_to_cpu(sb, usb3->fs_un1.fs_u2.fs_csaddr);
sb               1205 fs/ufs/super.c 		uspi->s_csaddr = fs32_to_cpu(sb, usb1->fs_csaddr);
sb               1207 fs/ufs/super.c 	uspi->s_cssize = fs32_to_cpu(sb, usb1->fs_cssize);
sb               1208 fs/ufs/super.c 	uspi->s_cgsize = fs32_to_cpu(sb, usb1->fs_cgsize);
sb               1209 fs/ufs/super.c 	uspi->s_ntrak = fs32_to_cpu(sb, usb1->fs_ntrak);
sb               1210 fs/ufs/super.c 	uspi->s_nsect = fs32_to_cpu(sb, usb1->fs_nsect);
sb               1211 fs/ufs/super.c 	uspi->s_spc = fs32_to_cpu(sb, usb1->fs_spc);
sb               1212 fs/ufs/super.c 	uspi->s_ipg = fs32_to_cpu(sb, usb1->fs_ipg);
sb               1213 fs/ufs/super.c 	uspi->s_fpg = fs32_to_cpu(sb, usb1->fs_fpg);
sb               1214 fs/ufs/super.c 	uspi->s_cpc = fs32_to_cpu(sb, usb2->fs_un.fs_u1.fs_cpc);
sb               1215 fs/ufs/super.c 	uspi->s_contigsumsize = fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_contigsumsize);
sb               1216 fs/ufs/super.c 	uspi->s_qbmask = ufs_get_fs_qbmask(sb, usb3);
sb               1217 fs/ufs/super.c 	uspi->s_qfmask = ufs_get_fs_qfmask(sb, usb3);
sb               1218 fs/ufs/super.c 	uspi->s_nrpos = fs32_to_cpu(sb, usb3->fs_nrpos);
sb               1219 fs/ufs/super.c 	uspi->s_postbloff = fs32_to_cpu(sb, usb3->fs_postbloff);
sb               1220 fs/ufs/super.c 	uspi->s_rotbloff = fs32_to_cpu(sb, usb3->fs_rotbloff);
sb               1227 fs/ufs/super.c 		usb1->fs_optim = cpu_to_fs32(sb, UFS_OPTSPACE);
sb               1258 fs/ufs/super.c 		    fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_maxsymlinklen);
sb               1265 fs/ufs/super.c 		ufs_warning(sb, __func__, "ufs_read_super: excessive maximum "
sb               1269 fs/ufs/super.c 	sb->s_maxbytes = ufs_max_bytes(sb);
sb               1270 fs/ufs/super.c 	sb->s_max_links = UFS_LINK_MAX;
sb               1272 fs/ufs/super.c 	inode = ufs_iget(sb, UFS_ROOTINO);
sb               1277 fs/ufs/super.c 	sb->s_root = d_make_root(inode);
sb               1278 fs/ufs/super.c 	if (!sb->s_root) {
sb               1283 fs/ufs/super.c 	ufs_setup_cstotal(sb);
sb               1287 fs/ufs/super.c 	if (!sb_rdonly(sb))
sb               1288 fs/ufs/super.c 		if (!ufs_read_cylinder_structures(sb))
sb               1299 fs/ufs/super.c 	sb->s_fs_info = NULL;
sb               1308 fs/ufs/super.c static int ufs_remount (struct super_block *sb, int *mount_flags, char *data)
sb               1316 fs/ufs/super.c 	sync_filesystem(sb);
sb               1317 fs/ufs/super.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb               1318 fs/ufs/super.c 	uspi = UFS_SB(sb)->s_uspi;
sb               1319 fs/ufs/super.c 	flags = UFS_SB(sb)->s_flags;
sb               1327 fs/ufs/super.c 	ufstype = UFS_SB(sb)->s_mount_opt & UFS_MOUNT_UFSTYPE;
sb               1331 fs/ufs/super.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1338 fs/ufs/super.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1342 fs/ufs/super.c 	if ((bool)(*mount_flags & SB_RDONLY) == sb_rdonly(sb)) {
sb               1343 fs/ufs/super.c 		UFS_SB(sb)->s_mount_opt = new_mount_opt;
sb               1344 fs/ufs/super.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1352 fs/ufs/super.c 		ufs_put_super_internal(sb);
sb               1353 fs/ufs/super.c 		usb1->fs_time = ufs_get_seconds(sb);
sb               1357 fs/ufs/super.c 			ufs_set_fs_state(sb, usb1, usb3,
sb               1358 fs/ufs/super.c 				UFS_FSOK - fs32_to_cpu(sb, usb1->fs_time));
sb               1360 fs/ufs/super.c 		sb->s_flags |= SB_RDONLY;
sb               1367 fs/ufs/super.c 		mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1376 fs/ufs/super.c 			mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1379 fs/ufs/super.c 		if (!ufs_read_cylinder_structures(sb)) {
sb               1381 fs/ufs/super.c 			mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1384 fs/ufs/super.c 		sb->s_flags &= ~SB_RDONLY;
sb               1387 fs/ufs/super.c 	UFS_SB(sb)->s_mount_opt = new_mount_opt;
sb               1388 fs/ufs/super.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1414 fs/ufs/super.c 	struct super_block *sb = dentry->d_sb;
sb               1415 fs/ufs/super.c 	struct ufs_sb_private_info *uspi= UFS_SB(sb)->s_uspi;
sb               1416 fs/ufs/super.c 	unsigned  flags = UFS_SB(sb)->s_flags;
sb               1417 fs/ufs/super.c 	u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
sb               1419 fs/ufs/super.c 	mutex_lock(&UFS_SB(sb)->s_lock);
sb               1429 fs/ufs/super.c 	buf->f_bsize = sb->s_blocksize;
sb               1437 fs/ufs/super.c 	mutex_unlock(&UFS_SB(sb)->s_lock);
sb               1444 fs/ufs/super.c static struct inode *ufs_alloc_inode(struct super_block *sb)
sb                 28 fs/ufs/ufs.h   	struct super_block *sb;
sb                138 fs/ufs/ufs.h   void ufs_mark_sb_dirty(struct super_block *sb);
sb                140 fs/ufs/ufs.h   static inline struct ufs_sb_info *UFS_SB(struct super_block *sb)
sb                142 fs/ufs/ufs.h   	return sb->s_fs_info;
sb                240 fs/ufs/ufs_fs.h 	((UFS_SB(sb)->s_flags & UFS_CG_SUN) ?		      \
sb                522 fs/ufs/ufs_fs.h #define ufs_cg_chkmagic(sb, ucg) \
sb                523 fs/ufs/ufs_fs.h 	(fs32_to_cpu((sb), (ucg)->cg_magic) == CG_MAGIC)
sb                527 fs/ufs/ufs_fs.h #define ufs_ocg_blktot(sb, ucg)      fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_btot)
sb                528 fs/ufs/ufs_fs.h #define ufs_ocg_blks(sb, ucg, cylno) fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_b[cylno])
sb                529 fs/ufs/ufs_fs.h #define ufs_ocg_inosused(sb, ucg)    fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_iused)
sb                530 fs/ufs/ufs_fs.h #define ufs_ocg_blksfree(sb, ucg)    fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_free)
sb                531 fs/ufs/ufs_fs.h #define ufs_ocg_chkmagic(sb, ucg) \
sb                532 fs/ufs/ufs_fs.h 	(fs32_to_cpu((sb), ((struct ufs_old_cylinder_group *)(ucg))->cg_magic) == CG_MAGIC)
sb                 20 fs/ufs/util.c  	struct super_block *sb, u64 fragment, u64 size)
sb                 36 fs/ufs/util.c  		if (!(ubh->bh[i] = sb_bread(sb, fragment + i)))
sb                 49 fs/ufs/util.c  	struct super_block *sb, u64 fragment, u64 size)
sb                 61 fs/ufs/util.c  		if (!(USPI_UBH(uspi)->bh[i] = sb_bread(sb, fragment + i)))
sb                182 fs/ufs/util.c  ufs_get_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi)
sb                187 fs/ufs/util.c  	if ((UFS_SB(sb)->s_flags & UFS_ST_MASK) == UFS_ST_SUNx86)
sb                188 fs/ufs/util.c  		fs32 = fs32_to_cpu(sb, ufsi->i_u1.i_data[1]);
sb                190 fs/ufs/util.c  		fs32 = fs32_to_cpu(sb, ufsi->i_u1.i_data[0]);
sb                191 fs/ufs/util.c  	switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) {
sb                209 fs/ufs/util.c  ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev)
sb                213 fs/ufs/util.c  	switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) {
sb                226 fs/ufs/util.c  	if ((UFS_SB(sb)->s_flags & UFS_ST_MASK) == UFS_ST_SUNx86)
sb                227 fs/ufs/util.c  		ufsi->i_u1.i_data[1] = cpu_to_fs32(sb, fs32);
sb                229 fs/ufs/util.c  		ufsi->i_u1.i_data[0] = cpu_to_fs32(sb, fs32);
sb                 38 fs/ufs/util.h  ufs_get_fs_state(struct super_block *sb, struct ufs_super_block_first *usb1,
sb                 41 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) {
sb                 43 fs/ufs/util.h  		if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT)
sb                 44 fs/ufs/util.h  			return fs32_to_cpu(sb, usb1->fs_u0.fs_sun.fs_state);
sb                 47 fs/ufs/util.h  		return fs32_to_cpu(sb, usb3->fs_un2.fs_sun.fs_state);
sb                 49 fs/ufs/util.h  		return fs32_to_cpu(sb, usb1->fs_u1.fs_sunx86.fs_state);
sb                 52 fs/ufs/util.h  		return fs32_to_cpu(sb, usb3->fs_un2.fs_44.fs_state);
sb                 57 fs/ufs/util.h  ufs_set_fs_state(struct super_block *sb, struct ufs_super_block_first *usb1,
sb                 60 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) {
sb                 62 fs/ufs/util.h  		if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) {
sb                 63 fs/ufs/util.h  			usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value);
sb                 68 fs/ufs/util.h  		usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value);
sb                 71 fs/ufs/util.h  		usb1->fs_u1.fs_sunx86.fs_state = cpu_to_fs32(sb, value);
sb                 74 fs/ufs/util.h  		usb3->fs_un2.fs_44.fs_state = cpu_to_fs32(sb, value);
sb                 80 fs/ufs/util.h  ufs_get_fs_npsect(struct super_block *sb, struct ufs_super_block_first *usb1,
sb                 83 fs/ufs/util.h  	if ((UFS_SB(sb)->s_flags & UFS_ST_MASK) == UFS_ST_SUNx86)
sb                 84 fs/ufs/util.h  		return fs32_to_cpu(sb, usb3->fs_un2.fs_sunx86.fs_npsect);
sb                 86 fs/ufs/util.h  		return fs32_to_cpu(sb, usb1->fs_u1.fs_sun.fs_npsect);
sb                 90 fs/ufs/util.h  ufs_get_fs_qbmask(struct super_block *sb, struct ufs_super_block_third *usb3)
sb                 94 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) {
sb                110 fs/ufs/util.h  	return fs64_to_cpu(sb, tmp);
sb                114 fs/ufs/util.h  ufs_get_fs_qfmask(struct super_block *sb, struct ufs_super_block_third *usb3)
sb                118 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_ST_MASK) {
sb                134 fs/ufs/util.h  	return fs64_to_cpu(sb, tmp);
sb                138 fs/ufs/util.h  ufs_get_de_namlen(struct super_block *sb, struct ufs_dir_entry *de)
sb                140 fs/ufs/util.h  	if ((UFS_SB(sb)->s_flags & UFS_DE_MASK) == UFS_DE_OLD)
sb                141 fs/ufs/util.h  		return fs16_to_cpu(sb, de->d_u.d_namlen);
sb                147 fs/ufs/util.h  ufs_set_de_namlen(struct super_block *sb, struct ufs_dir_entry *de, u16 value)
sb                149 fs/ufs/util.h  	if ((UFS_SB(sb)->s_flags & UFS_DE_MASK) == UFS_DE_OLD)
sb                150 fs/ufs/util.h  		de->d_u.d_namlen = cpu_to_fs16(sb, value);
sb                156 fs/ufs/util.h  ufs_set_de_type(struct super_block *sb, struct ufs_dir_entry *de, int mode)
sb                158 fs/ufs/util.h  	if ((UFS_SB(sb)->s_flags & UFS_DE_MASK) != UFS_DE_44BSD)
sb                192 fs/ufs/util.h  ufs_get_inode_uid(struct super_block *sb, struct ufs_inode *inode)
sb                194 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_UID_MASK) {
sb                196 fs/ufs/util.h  		return fs32_to_cpu(sb, inode->ui_u3.ui_44.ui_uid);
sb                199 fs/ufs/util.h  			return fs32_to_cpu(sb, inode->ui_u3.ui_sun.ui_uid);
sb                202 fs/ufs/util.h  		return fs16_to_cpu(sb, inode->ui_u1.oldids.ui_suid);
sb                207 fs/ufs/util.h  ufs_set_inode_uid(struct super_block *sb, struct ufs_inode *inode, u32 value)
sb                209 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_UID_MASK) {
sb                211 fs/ufs/util.h  		inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value);
sb                212 fs/ufs/util.h  		inode->ui_u1.oldids.ui_suid = cpu_to_fs16(sb, value);
sb                215 fs/ufs/util.h  		inode->ui_u3.ui_sun.ui_uid = cpu_to_fs32(sb, value);
sb                220 fs/ufs/util.h  		inode->ui_u1.oldids.ui_suid = cpu_to_fs16(sb, value);
sb                226 fs/ufs/util.h  ufs_get_inode_gid(struct super_block *sb, struct ufs_inode *inode)
sb                228 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_UID_MASK) {
sb                230 fs/ufs/util.h  		return fs32_to_cpu(sb, inode->ui_u3.ui_44.ui_gid);
sb                233 fs/ufs/util.h  			return fs32_to_cpu(sb, inode->ui_u3.ui_sun.ui_gid);
sb                236 fs/ufs/util.h  		return fs16_to_cpu(sb, inode->ui_u1.oldids.ui_sgid);
sb                241 fs/ufs/util.h  ufs_set_inode_gid(struct super_block *sb, struct ufs_inode *inode, u32 value)
sb                243 fs/ufs/util.h  	switch (UFS_SB(sb)->s_flags & UFS_UID_MASK) {
sb                245 fs/ufs/util.h  		inode->ui_u3.ui_44.ui_gid = cpu_to_fs32(sb, value);
sb                246 fs/ufs/util.h  		inode->ui_u1.oldids.ui_sgid =  cpu_to_fs16(sb, value);
sb                249 fs/ufs/util.h  		inode->ui_u3.ui_sun.ui_gid = cpu_to_fs32(sb, value);
sb                254 fs/ufs/util.h  		inode->ui_u1.oldids.ui_sgid =  cpu_to_fs16(sb, value);
sb                266 fs/ufs/util.h  #define ubh_bread(sb,fragment,size) _ubh_bread_(uspi,sb,fragment,size)  
sb                529 fs/ufs/util.h  static inline void ufs_fragacct (struct super_block * sb, unsigned blockmap,
sb                535 fs/ufs/util.h  	uspi = UFS_SB(sb)->s_uspi;
sb                543 fs/ufs/util.h  			fs32_add(sb, &fraglist[fragsize], cnt);
sb                548 fs/ufs/util.h  		fs32_add(sb, &fraglist[fragsize], cnt);
sb                561 fs/ufs/util.h  static inline u64 ufs_data_ptr_to_cpu(struct super_block *sb, void *p)
sb                563 fs/ufs/util.h  	return UFS_SB(sb)->s_uspi->fs_magic == UFS2_MAGIC ?
sb                564 fs/ufs/util.h  		fs64_to_cpu(sb, *(__fs64 *)p) :
sb                565 fs/ufs/util.h  		fs32_to_cpu(sb, *(__fs32 *)p);
sb                568 fs/ufs/util.h  static inline void ufs_cpu_to_data_ptr(struct super_block *sb, void *p, u64 val)
sb                570 fs/ufs/util.h  	if (UFS_SB(sb)->s_uspi->fs_magic == UFS2_MAGIC)
sb                571 fs/ufs/util.h  		*(__fs64 *)p = cpu_to_fs64(sb, val);
sb                573 fs/ufs/util.h  		*(__fs32 *)p = cpu_to_fs32(sb, val);
sb               2429 fs/unicode/mkutf8data.c 	unsigned int sb = 0xAC00;
sb               2449 fs/unicode/mkutf8data.c 		unsigned int si = unichar - sb;
sb                456 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_fsblock_t	sb;		/* summary fsblock */
sb                467 fs/xfs/libxfs/xfs_rtbitmap.c 	sb = XFS_SUMOFFSTOBLOCK(mp, so);
sb                471 fs/xfs/libxfs/xfs_rtbitmap.c 	if (*rbpp && *rsb == sb)
sb                482 fs/xfs/libxfs/xfs_rtbitmap.c 		error = xfs_rtbuf_get(mp, tp, sb, 1, &bp);
sb                490 fs/xfs/libxfs/xfs_rtbitmap.c 		*rsb = sb;
sb                971 fs/xfs/libxfs/xfs_rtbitmap.c 	xfs_fsblock_t	sb;		/* summary file block number */
sb                986 fs/xfs/libxfs/xfs_rtbitmap.c 	error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb);
sb                681 fs/xfs/libxfs/xfs_sb.c 	struct xfs_sb		sb;
sb                709 fs/xfs/libxfs/xfs_sb.c 	__xfs_sb_from_disk(&sb, XFS_BUF_TO_SBP(bp), false);
sb                710 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_common(mp, bp, &sb);
sb                713 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_read(mp, &sb);
sb                747 fs/xfs/libxfs/xfs_sb.c 	struct xfs_sb		sb;
sb                756 fs/xfs/libxfs/xfs_sb.c 	__xfs_sb_from_disk(&sb, XFS_BUF_TO_SBP(bp), false);
sb                757 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_common(mp, bp, &sb);
sb                760 fs/xfs/libxfs/xfs_sb.c 	error = xfs_validate_sb_write(mp, bp, &sb);
sb                 64 fs/xfs/scrub/agheader.c 	struct xfs_dsb		*sb;
sb                 95 fs/xfs/scrub/agheader.c 	sb = XFS_BUF_TO_SBP(bp);
sb                103 fs/xfs/scrub/agheader.c 	if (sb->sb_blocksize != cpu_to_be32(mp->m_sb.sb_blocksize))
sb                106 fs/xfs/scrub/agheader.c 	if (sb->sb_dblocks != cpu_to_be64(mp->m_sb.sb_dblocks))
sb                109 fs/xfs/scrub/agheader.c 	if (sb->sb_rblocks != cpu_to_be64(mp->m_sb.sb_rblocks))
sb                112 fs/xfs/scrub/agheader.c 	if (sb->sb_rextents != cpu_to_be64(mp->m_sb.sb_rextents))
sb                115 fs/xfs/scrub/agheader.c 	if (!uuid_equal(&sb->sb_uuid, &mp->m_sb.sb_uuid))
sb                118 fs/xfs/scrub/agheader.c 	if (sb->sb_logstart != cpu_to_be64(mp->m_sb.sb_logstart))
sb                121 fs/xfs/scrub/agheader.c 	if (sb->sb_rootino != cpu_to_be64(mp->m_sb.sb_rootino))
sb                124 fs/xfs/scrub/agheader.c 	if (sb->sb_rbmino != cpu_to_be64(mp->m_sb.sb_rbmino))
sb                127 fs/xfs/scrub/agheader.c 	if (sb->sb_rsumino != cpu_to_be64(mp->m_sb.sb_rsumino))
sb                130 fs/xfs/scrub/agheader.c 	if (sb->sb_rextsize != cpu_to_be32(mp->m_sb.sb_rextsize))
sb                133 fs/xfs/scrub/agheader.c 	if (sb->sb_agblocks != cpu_to_be32(mp->m_sb.sb_agblocks))
sb                136 fs/xfs/scrub/agheader.c 	if (sb->sb_agcount != cpu_to_be32(mp->m_sb.sb_agcount))
sb                139 fs/xfs/scrub/agheader.c 	if (sb->sb_rbmblocks != cpu_to_be32(mp->m_sb.sb_rbmblocks))
sb                142 fs/xfs/scrub/agheader.c 	if (sb->sb_logblocks != cpu_to_be32(mp->m_sb.sb_logblocks))
sb                155 fs/xfs/scrub/agheader.c 	if ((sb->sb_versionnum & vernum_mask) !=
sb                163 fs/xfs/scrub/agheader.c 	if ((sb->sb_versionnum & vernum_mask) !=
sb                167 fs/xfs/scrub/agheader.c 	if (sb->sb_sectsize != cpu_to_be16(mp->m_sb.sb_sectsize))
sb                170 fs/xfs/scrub/agheader.c 	if (sb->sb_inodesize != cpu_to_be16(mp->m_sb.sb_inodesize))
sb                173 fs/xfs/scrub/agheader.c 	if (sb->sb_inopblock != cpu_to_be16(mp->m_sb.sb_inopblock))
sb                176 fs/xfs/scrub/agheader.c 	if (memcmp(sb->sb_fname, mp->m_sb.sb_fname, sizeof(sb->sb_fname)))
sb                179 fs/xfs/scrub/agheader.c 	if (sb->sb_blocklog != mp->m_sb.sb_blocklog)
sb                182 fs/xfs/scrub/agheader.c 	if (sb->sb_sectlog != mp->m_sb.sb_sectlog)
sb                185 fs/xfs/scrub/agheader.c 	if (sb->sb_inodelog != mp->m_sb.sb_inodelog)
sb                188 fs/xfs/scrub/agheader.c 	if (sb->sb_inopblog != mp->m_sb.sb_inopblog)
sb                191 fs/xfs/scrub/agheader.c 	if (sb->sb_agblklog != mp->m_sb.sb_agblklog)
sb                194 fs/xfs/scrub/agheader.c 	if (sb->sb_rextslog != mp->m_sb.sb_rextslog)
sb                197 fs/xfs/scrub/agheader.c 	if (sb->sb_imax_pct != mp->m_sb.sb_imax_pct)
sb                205 fs/xfs/scrub/agheader.c 	if (sb->sb_uquotino != cpu_to_be64(mp->m_sb.sb_uquotino))
sb                208 fs/xfs/scrub/agheader.c 	if (sb->sb_gquotino != cpu_to_be64(mp->m_sb.sb_gquotino))
sb                216 fs/xfs/scrub/agheader.c 	if (sb->sb_flags != mp->m_sb.sb_flags)
sb                219 fs/xfs/scrub/agheader.c 	if (sb->sb_shared_vn != mp->m_sb.sb_shared_vn)
sb                222 fs/xfs/scrub/agheader.c 	if (sb->sb_inoalignmt != cpu_to_be32(mp->m_sb.sb_inoalignmt))
sb                225 fs/xfs/scrub/agheader.c 	if (sb->sb_unit != cpu_to_be32(mp->m_sb.sb_unit))
sb                228 fs/xfs/scrub/agheader.c 	if (sb->sb_width != cpu_to_be32(mp->m_sb.sb_width))
sb                231 fs/xfs/scrub/agheader.c 	if (sb->sb_dirblklog != mp->m_sb.sb_dirblklog)
sb                234 fs/xfs/scrub/agheader.c 	if (sb->sb_logsectlog != mp->m_sb.sb_logsectlog)
sb                237 fs/xfs/scrub/agheader.c 	if (sb->sb_logsectsize != cpu_to_be16(mp->m_sb.sb_logsectsize))
sb                240 fs/xfs/scrub/agheader.c 	if (sb->sb_logsunit != cpu_to_be32(mp->m_sb.sb_logsunit))
sb                245 fs/xfs/scrub/agheader.c 		if (sb->sb_features2 != 0)
sb                252 fs/xfs/scrub/agheader.c 		if (!!(sb->sb_features2 & cpu_to_be32(~v2_ok)))
sb                255 fs/xfs/scrub/agheader.c 		if (sb->sb_features2 != sb->sb_bad_features2)
sb                264 fs/xfs/scrub/agheader.c 	if ((sb->sb_features2 & features_mask) !=
sb                270 fs/xfs/scrub/agheader.c 	if ((sb->sb_features2 & features_mask) !=
sb                276 fs/xfs/scrub/agheader.c 		if (memchr_inv(&sb->sb_features_compat, 0,
sb                283 fs/xfs/scrub/agheader.c 		if ((sb->sb_features_compat & features_mask) !=
sb                292 fs/xfs/scrub/agheader.c 		if ((sb->sb_features_ro_compat & features_mask) !=
sb                302 fs/xfs/scrub/agheader.c 		if ((sb->sb_features_incompat & features_mask) !=
sb                309 fs/xfs/scrub/agheader.c 		if ((sb->sb_features_log_incompat & features_mask) !=
sb                316 fs/xfs/scrub/agheader.c 		if (sb->sb_spino_align != cpu_to_be32(mp->m_sb.sb_spino_align))
sb                319 fs/xfs/scrub/agheader.c 		if (sb->sb_pquotino != cpu_to_be64(mp->m_sb.sb_pquotino))
sb                327 fs/xfs/scrub/agheader.c 		if (!uuid_equal(&sb->sb_meta_uuid, &mp->m_sb.sb_meta_uuid))
sb                332 fs/xfs/scrub/agheader.c 	if (memchr_inv(sb + 1, 0,
sb                 28 fs/xfs/xfs_attr_list.c 	xfs_attr_sf_sort_t *sa, *sb;
sb                 31 fs/xfs/xfs_attr_list.c 	sb = (xfs_attr_sf_sort_t *)b;
sb                 32 fs/xfs/xfs_attr_list.c 	if (sa->hash < sb->hash) {
sb                 34 fs/xfs/xfs_attr_list.c 	} else if (sa->hash > sb->hash) {
sb                 37 fs/xfs/xfs_attr_list.c 		return sa->entno - sb->entno;
sb                108 fs/xfs/xfs_export.c 	struct super_block	*sb,
sb                112 fs/xfs/xfs_export.c  	xfs_mount_t		*mp = XFS_M(sb);
sb                159 fs/xfs/xfs_export.c xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid,
sb                171 fs/xfs/xfs_export.c 		inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen);
sb                175 fs/xfs/xfs_export.c 		inode = xfs_nfs_get_inode(sb, fid64->ino, fid64->gen);
sb                183 fs/xfs/xfs_export.c xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid,
sb                194 fs/xfs/xfs_export.c 		inode = xfs_nfs_get_inode(sb, fid->i32.parent_ino,
sb                198 fs/xfs/xfs_export.c 		inode = xfs_nfs_get_inode(sb, fid64->parent_ino,
sb                436 fs/xfs/xfs_fsops.c 		struct super_block *sb = freeze_bdev(mp->m_super->s_bdev);
sb                438 fs/xfs/xfs_fsops.c 		if (sb && !IS_ERR(sb)) {
sb                440 fs/xfs/xfs_fsops.c 			thaw_bdev(sb->s_bdev, sb);
sb               1304 fs/xfs/xfs_ioctl.c 	struct super_block	*sb = inode->i_sb;
sb               1319 fs/xfs/xfs_ioctl.c 				sb->s_blocksize))
sb                 53 fs/xfs/xfs_pnfs.c 	struct super_block	*sb,
sb                 58 fs/xfs/xfs_pnfs.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                  6 fs/xfs/xfs_pnfs.h int xfs_fs_get_uuid(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
sb                 56 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                 59 fs/xfs/xfs_quotaops.c 	struct xfs_mount *mp = XFS_M(sb);
sb                108 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                112 fs/xfs/xfs_quotaops.c 	struct xfs_mount *mp = XFS_M(sb);
sb                115 fs/xfs/xfs_quotaops.c 	if (sb_rdonly(sb))
sb                160 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                163 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                165 fs/xfs/xfs_quotaops.c 	if (sb_rdonly(sb))
sb                175 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                178 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                180 fs/xfs/xfs_quotaops.c 	if (sb_rdonly(sb))
sb                192 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                195 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                198 fs/xfs/xfs_quotaops.c 	if (sb_rdonly(sb))
sb                219 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                223 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                238 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                243 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                264 fs/xfs/xfs_quotaops.c 	struct super_block	*sb,
sb                268 fs/xfs/xfs_quotaops.c 	struct xfs_mount	*mp = XFS_M(sb);
sb                270 fs/xfs/xfs_quotaops.c 	if (sb_rdonly(sb))
sb               1124 fs/xfs/xfs_rtalloc.c 	xfs_fsblock_t	sb;		/* summary file block number */
sb               1150 fs/xfs/xfs_rtalloc.c 				&sumbp,	&sb, prod, &r);
sb               1153 fs/xfs/xfs_rtalloc.c 				len, &sumbp, &sb, prod, &r);
sb                161 fs/xfs/xfs_super.c 	const struct super_block *sb = mp->m_super;
sb                173 fs/xfs/xfs_super.c 	mp->m_fsname = kstrndup(sb->s_id, MAXNAMELEN, GFP_KERNEL);
sb                181 fs/xfs/xfs_super.c 	if (sb_rdonly(sb))
sb                183 fs/xfs/xfs_super.c 	if (sb->s_flags & SB_DIRSYNC)
sb                185 fs/xfs/xfs_super.c 	if (sb->s_flags & SB_SYNCHRONOUS)
sb                879 fs/xfs/xfs_super.c 	struct super_block	*sb = mp->m_super;
sb                881 fs/xfs/xfs_super.c 	if (down_read_trylock(&sb->s_umount)) {
sb                882 fs/xfs/xfs_super.c 		sync_inodes_sb(sb);
sb                883 fs/xfs/xfs_super.c 		up_read(&sb->s_umount);
sb                890 fs/xfs/xfs_super.c 	struct super_block	*sb)
sb               1052 fs/xfs/xfs_super.c 	struct super_block	*sb,
sb               1055 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
sb               1210 fs/xfs/xfs_super.c 	struct super_block	*sb,
sb               1220 fs/xfs/xfs_super.c 	tmp_mp->m_super = sb;
sb               1230 fs/xfs/xfs_super.c 	struct super_block	*sb,
sb               1234 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
sb               1241 fs/xfs/xfs_super.c 	error = xfs_test_remount_options(sb, options);
sb               1245 fs/xfs/xfs_super.c 	sync_filesystem(sb);
sb               1391 fs/xfs/xfs_super.c 	struct super_block	*sb)
sb               1393 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
sb               1403 fs/xfs/xfs_super.c 	struct super_block	*sb)
sb               1405 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
sb               1546 fs/xfs/xfs_super.c 	struct super_block	*sb)
sb               1554 fs/xfs/xfs_super.c 	mp->m_super = sb;
sb               1578 fs/xfs/xfs_super.c 	struct super_block	*sb,
sb               1590 fs/xfs/xfs_super.c 	mp = xfs_mount_alloc(sb);
sb               1593 fs/xfs/xfs_super.c 	sb->s_fs_info = mp;
sb               1599 fs/xfs/xfs_super.c 	sb_min_blocksize(sb, BBSIZE);
sb               1600 fs/xfs/xfs_super.c 	sb->s_xattr = xfs_xattr_handlers;
sb               1601 fs/xfs/xfs_super.c 	sb->s_export_op = &xfs_export_operations;
sb               1603 fs/xfs/xfs_super.c 	sb->s_qcop = &xfs_quotactl_operations;
sb               1604 fs/xfs/xfs_super.c 	sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ;
sb               1606 fs/xfs/xfs_super.c 	sb->s_op = &xfs_super_operations;
sb               1661 fs/xfs/xfs_super.c 	sb->s_magic = XFS_SUPER_MAGIC;
sb               1662 fs/xfs/xfs_super.c 	sb->s_blocksize = mp->m_sb.sb_blocksize;
sb               1663 fs/xfs/xfs_super.c 	sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1;
sb               1664 fs/xfs/xfs_super.c 	sb->s_maxbytes = xfs_max_file_offset(sb->s_blocksize_bits);
sb               1665 fs/xfs/xfs_super.c 	sb->s_max_links = XFS_MAXLINK;
sb               1666 fs/xfs/xfs_super.c 	sb->s_time_gran = 1;
sb               1667 fs/xfs/xfs_super.c 	sb->s_time_min = S32_MIN;
sb               1668 fs/xfs/xfs_super.c 	sb->s_time_max = S32_MAX;
sb               1669 fs/xfs/xfs_super.c 	sb->s_iflags |= SB_I_CGROUPWB;
sb               1671 fs/xfs/xfs_super.c 	set_posix_acl_flag(sb);
sb               1675 fs/xfs/xfs_super.c 		sb->s_flags |= SB_I_VERSION;
sb               1684 fs/xfs/xfs_super.c 			sb->s_blocksize);
sb               1687 fs/xfs/xfs_super.c 				mp->m_rtdev_targp->bt_bdev, sb->s_blocksize);
sb               1702 fs/xfs/xfs_super.c 		struct request_queue *q = bdev_get_queue(sb->s_bdev);
sb               1741 fs/xfs/xfs_super.c 	sb->s_root = d_make_root(root);
sb               1742 fs/xfs/xfs_super.c 	if (!sb->s_root) {
sb               1762 fs/xfs/xfs_super.c 	sb->s_fs_info = NULL;
sb               1776 fs/xfs/xfs_super.c 	struct super_block	*sb)
sb               1778 fs/xfs/xfs_super.c 	struct xfs_mount	*mp = XFS_M(sb);
sb               1781 fs/xfs/xfs_super.c 	if (!sb->s_fs_info)
sb               1794 fs/xfs/xfs_super.c 	sb->s_fs_info = NULL;
sb               1811 fs/xfs/xfs_super.c 	struct super_block	*sb,
sb               1815 fs/xfs/xfs_super.c 	if (WARN_ON_ONCE(!sb->s_fs_info))
sb               1817 fs/xfs/xfs_super.c 	return xfs_reclaim_inodes_count(XFS_M(sb));
sb               1822 fs/xfs/xfs_super.c 	struct super_block	*sb,
sb               1825 fs/xfs/xfs_super.c 	return xfs_reclaim_inodes_nr(XFS_M(sb), sc->nr_to_scan);
sb                 21 fs/xfs/xfs_super.h # define set_posix_acl_flag(sb)	((sb)->s_flags |= SB_POSIXACL)
sb                 24 fs/xfs/xfs_super.h # define set_posix_acl_flag(sb)	do { } while (0)
sb                 87 fs/xfs/xfs_super.h #define XFS_M(sb)		((struct xfs_mount *)((sb)->s_fs_info))
sb                161 include/linux/backing-dev.h 	struct super_block *sb;
sb                166 include/linux/backing-dev.h 	sb = inode->i_sb;
sb                168 include/linux/backing-dev.h 	if (sb_is_blkdev_sb(sb))
sb                171 include/linux/backing-dev.h 	return sb->s_bdi;
sb               1231 include/linux/blkdev.h static inline int sb_issue_discard(struct super_block *sb, sector_t block,
sb               1234 include/linux/blkdev.h 	return blkdev_issue_discard(sb->s_bdev,
sb               1235 include/linux/blkdev.h 				    block << (sb->s_blocksize_bits -
sb               1237 include/linux/blkdev.h 				    nr_blocks << (sb->s_blocksize_bits -
sb               1241 include/linux/blkdev.h static inline int sb_issue_zeroout(struct super_block *sb, sector_t block,
sb               1244 include/linux/blkdev.h 	return blkdev_issue_zeroout(sb->s_bdev,
sb               1245 include/linux/blkdev.h 				    block << (sb->s_blocksize_bits -
sb               1247 include/linux/blkdev.h 				    nr_blocks << (sb->s_blocksize_bits -
sb                307 include/linux/buffer_head.h sb_bread(struct super_block *sb, sector_t block)
sb                309 include/linux/buffer_head.h 	return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE);
sb                313 include/linux/buffer_head.h sb_bread_unmovable(struct super_block *sb, sector_t block)
sb                315 include/linux/buffer_head.h 	return __bread_gfp(sb->s_bdev, block, sb->s_blocksize, 0);
sb                319 include/linux/buffer_head.h sb_breadahead(struct super_block *sb, sector_t block)
sb                321 include/linux/buffer_head.h 	__breadahead(sb->s_bdev, block, sb->s_blocksize);
sb                325 include/linux/buffer_head.h sb_breadahead_unmovable(struct super_block *sb, sector_t block)
sb                327 include/linux/buffer_head.h 	__breadahead_gfp(sb->s_bdev, block, sb->s_blocksize, 0);
sb                331 include/linux/buffer_head.h sb_getblk(struct super_block *sb, sector_t block)
sb                333 include/linux/buffer_head.h 	return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE);
sb                338 include/linux/buffer_head.h sb_getblk_gfp(struct super_block *sb, sector_t block, gfp_t gfp)
sb                340 include/linux/buffer_head.h 	return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, gfp);
sb                344 include/linux/buffer_head.h sb_find_get_block(struct super_block *sb, sector_t block)
sb                346 include/linux/buffer_head.h 	return __find_get_block(sb->s_bdev, block, sb->s_blocksize);
sb                350 include/linux/buffer_head.h map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block)
sb                353 include/linux/buffer_head.h 	bh->b_bdev = sb->s_bdev;
sb                355 include/linux/buffer_head.h 	bh->b_size = sb->s_blocksize;
sb                 79 include/linux/cleancache.h static inline void cleancache_init_fs(struct super_block *sb)
sb                 82 include/linux/cleancache.h 		__cleancache_init_fs(sb);
sb                 85 include/linux/cleancache.h static inline void cleancache_init_shared_fs(struct super_block *sb)
sb                 88 include/linux/cleancache.h 		__cleancache_init_shared_fs(sb);
sb                118 include/linux/cleancache.h static inline void cleancache_invalidate_fs(struct super_block *sb)
sb                121 include/linux/cleancache.h 		__cleancache_invalidate_fs(sb);
sb                196 include/linux/exportfs.h 	struct dentry * (*fh_to_dentry)(struct super_block *sb, struct fid *fid,
sb                198 include/linux/exportfs.h 	struct dentry * (*fh_to_parent)(struct super_block *sb, struct fid *fid,
sb                205 include/linux/exportfs.h 	int (*get_uuid)(struct super_block *sb, u8 *buf, u32 *len, u64 *offset);
sb                224 include/linux/exportfs.h extern struct dentry *generic_fh_to_dentry(struct super_block *sb,
sb                226 include/linux/exportfs.h 	struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
sb                227 include/linux/exportfs.h extern struct dentry *generic_fh_to_parent(struct super_block *sb,
sb                229 include/linux/exportfs.h 	struct inode *(*get_inode) (struct super_block *sb, u64 ino, u32 gen));
sb               1586 include/linux/fs.h void __sb_end_write(struct super_block *sb, int level);
sb               1587 include/linux/fs.h int __sb_start_write(struct super_block *sb, int level, bool wait);
sb               1589 include/linux/fs.h #define __sb_writers_acquired(sb, lev)	\
sb               1590 include/linux/fs.h 	percpu_rwsem_acquire(&(sb)->s_writers.rw_sem[(lev)-1], 1, _THIS_IP_)
sb               1591 include/linux/fs.h #define __sb_writers_release(sb, lev)	\
sb               1592 include/linux/fs.h 	percpu_rwsem_release(&(sb)->s_writers.rw_sem[(lev)-1], 1, _THIS_IP_)
sb               1601 include/linux/fs.h static inline void sb_end_write(struct super_block *sb)
sb               1603 include/linux/fs.h 	__sb_end_write(sb, SB_FREEZE_WRITE);
sb               1613 include/linux/fs.h static inline void sb_end_pagefault(struct super_block *sb)
sb               1615 include/linux/fs.h 	__sb_end_write(sb, SB_FREEZE_PAGEFAULT);
sb               1625 include/linux/fs.h static inline void sb_end_intwrite(struct super_block *sb)
sb               1627 include/linux/fs.h 	__sb_end_write(sb, SB_FREEZE_FS);
sb               1649 include/linux/fs.h static inline void sb_start_write(struct super_block *sb)
sb               1651 include/linux/fs.h 	__sb_start_write(sb, SB_FREEZE_WRITE, true);
sb               1654 include/linux/fs.h static inline int sb_start_write_trylock(struct super_block *sb)
sb               1656 include/linux/fs.h 	return __sb_start_write(sb, SB_FREEZE_WRITE, false);
sb               1678 include/linux/fs.h static inline void sb_start_pagefault(struct super_block *sb)
sb               1680 include/linux/fs.h 	__sb_start_write(sb, SB_FREEZE_PAGEFAULT, true);
sb               1696 include/linux/fs.h static inline void sb_start_intwrite(struct super_block *sb)
sb               1698 include/linux/fs.h 	__sb_start_write(sb, SB_FREEZE_FS, true);
sb               1701 include/linux/fs.h static inline int sb_start_intwrite_trylock(struct super_block *sb)
sb               1703 include/linux/fs.h 	return __sb_start_write(sb, SB_FREEZE_FS, false);
sb               1944 include/linux/fs.h    	struct inode *(*alloc_inode)(struct super_block *sb);
sb               1953 include/linux/fs.h 	int (*sync_fs)(struct super_block *sb, int wait);
sb               2018 include/linux/fs.h static inline bool sb_rdonly(const struct super_block *sb) { return sb->s_flags & SB_RDONLY; }
sb               2267 include/linux/fs.h void generic_shutdown_super(struct super_block *sb);
sb               2269 include/linux/fs.h void kill_block_super(struct super_block *sb);
sb               2271 include/linux/fs.h static inline void kill_block_super(struct super_block *sb)
sb               2276 include/linux/fs.h void kill_anon_super(struct super_block *sb);
sb               2277 include/linux/fs.h void kill_litter_super(struct super_block *sb);
sb               2278 include/linux/fs.h void deactivate_super(struct super_block *sb);
sb               2279 include/linux/fs.h void deactivate_locked_super(struct super_block *sb);
sb               2328 include/linux/fs.h int super_setup_bdi_name(struct super_block *sb, char *fmt, ...);
sb               2329 include/linux/fs.h extern int super_setup_bdi(struct super_block *sb);
sb               2584 include/linux/fs.h extern void emergency_thaw_bdev(struct super_block *sb);
sb               2585 include/linux/fs.h extern int thaw_bdev(struct block_device *bdev, struct super_block *sb);
sb               2590 include/linux/fs.h static inline bool sb_is_blkdev_sb(struct super_block *sb)
sb               2592 include/linux/fs.h 	return sb == blockdev_superblock;
sb               2600 include/linux/fs.h static inline struct super_block *freeze_bdev(struct block_device *sb)
sb               2605 include/linux/fs.h static inline int thaw_bdev(struct block_device *bdev, struct super_block *sb)
sb               2610 include/linux/fs.h static inline int emergency_thaw_bdev(struct super_block *sb)
sb               2619 include/linux/fs.h static inline bool sb_is_blkdev_sb(struct super_block *sb)
sb               3034 include/linux/fs.h extern struct inode *ilookup5_nowait(struct super_block *sb,
sb               3037 include/linux/fs.h extern struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
sb               3039 include/linux/fs.h extern struct inode *ilookup(struct super_block *sb, unsigned long ino);
sb               3062 include/linux/fs.h extern void evict_inodes(struct super_block *sb);
sb               3068 include/linux/fs.h extern struct inode *new_inode_pseudo(struct super_block *sb);
sb               3069 include/linux/fs.h extern struct inode *new_inode(struct super_block *sb);
sb               3288 include/linux/fs.h extern void drop_super(struct super_block *sb);
sb               3289 include/linux/fs.h extern void drop_super_exclusive(struct super_block *sb);
sb                149 include/linux/fs_context.h 			 int (*fill_super)(struct super_block *sb,
sb                153 include/linux/fs_context.h 			 int (*fill_super)(struct super_block *sb,
sb                156 include/linux/fs_context.h 			 int (*fill_super)(struct super_block *sb,
sb                159 include/linux/fs_context.h 			 int (*fill_super)(struct super_block *sb,
sb                162 include/linux/fs_context.h 			 int (*fill_super)(struct super_block *sb,
sb                167 include/linux/fs_context.h 			       int (*fill_super)(struct super_block *sb,
sb                143 include/linux/fscrypt.h extern void fscrypt_sb_free(struct super_block *sb);
sb                272 include/linux/fscrypt.h static inline void fscrypt_set_ops(struct super_block *sb,
sb                275 include/linux/fscrypt.h 	sb->s_cop = s_cop;
sb                387 include/linux/fscrypt.h static inline void fscrypt_sb_free(struct super_block *sb)
sb                554 include/linux/fscrypt.h static inline void fscrypt_set_ops(struct super_block *sb,
sb                274 include/linux/fsnotify_backend.h FSNOTIFY_ITER_FUNCS(sb, SB)
sb                358 include/linux/fsnotify_backend.h extern void fsnotify_sb_delete(struct super_block *sb);
sb                527 include/linux/fsnotify_backend.h static inline void fsnotify_sb_delete(struct super_block *sb)
sb                538 include/linux/fsnotify_backend.h static inline void fsnotify_unmount_inodes(struct super_block *sb)
sb                271 include/linux/hugetlb.h static inline struct hugetlbfs_sb_info *HUGETLBFS_SB(struct super_block *sb)
sb                273 include/linux/hugetlb.h 	return sb->s_fs_info;
sb                335 include/linux/kernfs.h struct kernfs_root *kernfs_root_from_sb(struct super_block *sb);
sb                336 include/linux/kernfs.h struct inode *kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn);
sb                339 include/linux/kernfs.h 				  struct super_block *sb);
sb                379 include/linux/kernfs.h const void *kernfs_super_ns(struct super_block *sb);
sb                382 include/linux/kernfs.h void kernfs_kill_sb(struct super_block *sb);
sb                427 include/linux/kernfs.h static inline struct kernfs_root *kernfs_root_from_sb(struct super_block *sb)
sb                431 include/linux/kernfs.h kernfs_get_inode(struct super_block *sb, struct kernfs_node *kn)
sb                489 include/linux/kernfs.h static inline const void *kernfs_super_ns(struct super_block *sb)
sb                497 include/linux/kernfs.h static inline void kernfs_kill_sb(struct super_block *sb) { }
sb                301 include/linux/lockd/lockd.h int           nlmsvc_unlock_all_by_sb(struct super_block *sb);
sb               1481 include/linux/lsm_hooks.h 	int (*quotactl)(int cmds, int type, int id, struct super_block *sb);
sb               1495 include/linux/lsm_hooks.h 	int (*sb_alloc_security)(struct super_block *sb);
sb               1496 include/linux/lsm_hooks.h 	void (*sb_free_security)(struct super_block *sb);
sb               1499 include/linux/lsm_hooks.h 	int (*sb_remount)(struct super_block *sb, void *mnt_opts);
sb               1500 include/linux/lsm_hooks.h 	int (*sb_kern_mount)(struct super_block *sb);
sb               1501 include/linux/lsm_hooks.h 	int (*sb_show_options)(struct seq_file *m, struct super_block *sb);
sb               1507 include/linux/lsm_hooks.h 	int (*sb_set_mnt_opts)(struct super_block *sb,
sb                 18 include/linux/mtd/super.h 		     int (*fill_super)(struct super_block *sb,
sb                 20 include/linux/mtd/super.h extern void kill_mtd_super(struct super_block *sb);
sb                373 include/linux/nfs_fs.h struct inode *nfs_ilookup(struct super_block *sb, struct nfs_fattr *, struct nfs_fh *);
sb                247 include/linux/quota.h extern void mark_info_dirty(struct super_block *sb, int type);
sb                311 include/linux/quota.h 	int (*check_quota_file)(struct super_block *sb, int type);	/* Detect whether file is in our format */
sb                312 include/linux/quota.h 	int (*read_file_info)(struct super_block *sb, int type);	/* Read main info about file - called on quotaon() */
sb                313 include/linux/quota.h 	int (*write_file_info)(struct super_block *sb, int type);	/* Write main info about file */
sb                314 include/linux/quota.h 	int (*free_file_info)(struct super_block *sb, int type);	/* Called on quotaoff() */
sb                318 include/linux/quota.h 	int (*get_next_id)(struct super_block *sb, struct kqid *qid);	/* Get next ID with existing structure in the quota file */
sb                337 include/linux/quota.h 	int (*get_next_id) (struct super_block *sb, struct kqid *qid);
sb                 17 include/linux/quotaops.h static inline struct quota_info *sb_dqopt(struct super_block *sb)
sb                 19 include/linux/quotaops.h 	return &sb->s_dquot;
sb                 35 include/linux/quotaops.h #define quota_error(sb, fmt, args...) \
sb                 36 include/linux/quotaops.h 	__quota_error((sb), __func__, fmt , ## args)
sb                 39 include/linux/quotaops.h void __quota_error(struct super_block *sb, const char *func,
sb                 48 include/linux/quotaops.h struct dquot *dqget(struct super_block *sb, struct kqid qid);
sb                 68 include/linux/quotaops.h int dquot_scan_active(struct super_block *sb,
sb                 71 include/linux/quotaops.h struct dquot *dquot_alloc(struct super_block *sb, int type);
sb                 83 include/linux/quotaops.h int dquot_disable(struct super_block *sb, int type, unsigned int flags);
sb                 85 include/linux/quotaops.h static inline int dquot_suspend(struct super_block *sb, int type)
sb                 87 include/linux/quotaops.h 	return dquot_disable(sb, type, DQUOT_SUSPENDED);
sb                 89 include/linux/quotaops.h int dquot_resume(struct super_block *sb, int type);
sb                 94 include/linux/quotaops.h int dquot_commit_info(struct super_block *sb, int type);
sb                 95 include/linux/quotaops.h int dquot_get_next_id(struct super_block *sb, struct kqid *qid);
sb                102 include/linux/quotaops.h int dquot_quota_on(struct super_block *sb, int type, int format_id,
sb                104 include/linux/quotaops.h int dquot_quota_on_mount(struct super_block *sb, char *qf_name,
sb                106 include/linux/quotaops.h int dquot_quota_off(struct super_block *sb, int type);
sb                107 include/linux/quotaops.h int dquot_writeback_dquots(struct super_block *sb, int type);
sb                108 include/linux/quotaops.h int dquot_quota_sync(struct super_block *sb, int type);
sb                109 include/linux/quotaops.h int dquot_get_state(struct super_block *sb, struct qc_state *state);
sb                110 include/linux/quotaops.h int dquot_set_dqinfo(struct super_block *sb, int type, struct qc_info *ii);
sb                111 include/linux/quotaops.h int dquot_get_dqblk(struct super_block *sb, struct kqid id,
sb                113 include/linux/quotaops.h int dquot_get_next_dqblk(struct super_block *sb, struct kqid *id,
sb                115 include/linux/quotaops.h int dquot_set_dqblk(struct super_block *sb, struct kqid id,
sb                121 include/linux/quotaops.h static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type)
sb                123 include/linux/quotaops.h 	return sb_dqopt(sb)->info + type;
sb                130 include/linux/quotaops.h static inline bool sb_has_quota_usage_enabled(struct super_block *sb, int type)
sb                132 include/linux/quotaops.h 	return sb_dqopt(sb)->flags &
sb                136 include/linux/quotaops.h static inline bool sb_has_quota_limits_enabled(struct super_block *sb, int type)
sb                138 include/linux/quotaops.h 	return sb_dqopt(sb)->flags &
sb                142 include/linux/quotaops.h static inline bool sb_has_quota_suspended(struct super_block *sb, int type)
sb                144 include/linux/quotaops.h 	return sb_dqopt(sb)->flags &
sb                148 include/linux/quotaops.h static inline unsigned sb_any_quota_suspended(struct super_block *sb)
sb                150 include/linux/quotaops.h 	return dquot_state_types(sb_dqopt(sb)->flags, DQUOT_SUSPENDED);
sb                154 include/linux/quotaops.h static inline bool sb_has_quota_loaded(struct super_block *sb, int type)
sb                157 include/linux/quotaops.h 	return sb_has_quota_usage_enabled(sb, type);
sb                160 include/linux/quotaops.h static inline unsigned sb_any_quota_loaded(struct super_block *sb)
sb                162 include/linux/quotaops.h 	return dquot_state_types(sb_dqopt(sb)->flags, DQUOT_USAGE_ENABLED);
sb                165 include/linux/quotaops.h static inline bool sb_has_quota_active(struct super_block *sb, int type)
sb                167 include/linux/quotaops.h 	return sb_has_quota_loaded(sb, type) &&
sb                168 include/linux/quotaops.h 	       !sb_has_quota_suspended(sb, type);
sb                179 include/linux/quotaops.h static inline int sb_has_quota_usage_enabled(struct super_block *sb, int type)
sb                184 include/linux/quotaops.h static inline int sb_has_quota_limits_enabled(struct super_block *sb, int type)
sb                189 include/linux/quotaops.h static inline int sb_has_quota_suspended(struct super_block *sb, int type)
sb                194 include/linux/quotaops.h static inline int sb_any_quota_suspended(struct super_block *sb)
sb                200 include/linux/quotaops.h static inline int sb_has_quota_loaded(struct super_block *sb, int type)
sb                205 include/linux/quotaops.h static inline int sb_any_quota_loaded(struct super_block *sb)
sb                210 include/linux/quotaops.h static inline int sb_has_quota_active(struct super_block *sb, int type)
sb                271 include/linux/quotaops.h static inline int dquot_disable(struct super_block *sb, int type,
sb                277 include/linux/quotaops.h static inline int dquot_suspend(struct super_block *sb, int type)
sb                282 include/linux/quotaops.h static inline int dquot_resume(struct super_block *sb, int type)
sb                289 include/linux/quotaops.h static inline int dquot_writeback_dquots(struct super_block *sb, int type)
sb                  5 include/linux/ramfs.h struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
sb                101 include/linux/sbitmap.h 	struct sbitmap sb;
sb                155 include/linux/sbitmap.h int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
sb                162 include/linux/sbitmap.h static inline void sbitmap_free(struct sbitmap *sb)
sb                164 include/linux/sbitmap.h 	kfree(sb->map);
sb                165 include/linux/sbitmap.h 	sb->map = NULL;
sb                176 include/linux/sbitmap.h void sbitmap_resize(struct sbitmap *sb, unsigned int depth);
sb                190 include/linux/sbitmap.h int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin);
sb                208 include/linux/sbitmap.h int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint,
sb                217 include/linux/sbitmap.h bool sbitmap_any_bit_set(const struct sbitmap *sb);
sb                226 include/linux/sbitmap.h bool sbitmap_any_bit_clear(const struct sbitmap *sb);
sb                228 include/linux/sbitmap.h #define SB_NR_TO_INDEX(sb, bitnr) ((bitnr) >> (sb)->shift)
sb                229 include/linux/sbitmap.h #define SB_NR_TO_BIT(sb, bitnr) ((bitnr) & ((1U << (sb)->shift) - 1U))
sb                243 include/linux/sbitmap.h static inline void __sbitmap_for_each_set(struct sbitmap *sb,
sb                251 include/linux/sbitmap.h 	if (start >= sb->depth)
sb                253 include/linux/sbitmap.h 	index = SB_NR_TO_INDEX(sb, start);
sb                254 include/linux/sbitmap.h 	nr = SB_NR_TO_BIT(sb, start);
sb                256 include/linux/sbitmap.h 	while (scanned < sb->depth) {
sb                259 include/linux/sbitmap.h 					   sb->map[index].depth - nr,
sb                260 include/linux/sbitmap.h 					   sb->depth - scanned);
sb                263 include/linux/sbitmap.h 		word = sb->map[index].word & ~sb->map[index].cleared;
sb                277 include/linux/sbitmap.h 			if (!fn(sb, (index << sb->shift) + nr, data))
sb                284 include/linux/sbitmap.h 		if (++index >= sb->map_nr)
sb                295 include/linux/sbitmap.h static inline void sbitmap_for_each_set(struct sbitmap *sb, sb_for_each_fn fn,
sb                298 include/linux/sbitmap.h 	__sbitmap_for_each_set(sb, 0, fn, data);
sb                301 include/linux/sbitmap.h static inline unsigned long *__sbitmap_word(struct sbitmap *sb,
sb                304 include/linux/sbitmap.h 	return &sb->map[SB_NR_TO_INDEX(sb, bitnr)].word;
sb                309 include/linux/sbitmap.h static inline void sbitmap_set_bit(struct sbitmap *sb, unsigned int bitnr)
sb                311 include/linux/sbitmap.h 	set_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr));
sb                314 include/linux/sbitmap.h static inline void sbitmap_clear_bit(struct sbitmap *sb, unsigned int bitnr)
sb                316 include/linux/sbitmap.h 	clear_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr));
sb                325 include/linux/sbitmap.h static inline void sbitmap_deferred_clear_bit(struct sbitmap *sb, unsigned int bitnr)
sb                327 include/linux/sbitmap.h 	unsigned long *addr = &sb->map[SB_NR_TO_INDEX(sb, bitnr)].cleared;
sb                329 include/linux/sbitmap.h 	set_bit(SB_NR_TO_BIT(sb, bitnr), addr);
sb                332 include/linux/sbitmap.h static inline void sbitmap_clear_bit_unlock(struct sbitmap *sb,
sb                335 include/linux/sbitmap.h 	clear_bit_unlock(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr));
sb                338 include/linux/sbitmap.h static inline int sbitmap_test_bit(struct sbitmap *sb, unsigned int bitnr)
sb                340 include/linux/sbitmap.h 	return test_bit(SB_NR_TO_BIT(sb, bitnr), __sbitmap_word(sb, bitnr));
sb                350 include/linux/sbitmap.h void sbitmap_show(struct sbitmap *sb, struct seq_file *m);
sb                361 include/linux/sbitmap.h void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m);
sb                387 include/linux/sbitmap.h 	sbitmap_free(&sbq->sb);
sb                273 include/linux/security.h int security_quotactl(int cmds, int type, int id, struct super_block *sb);
sb                284 include/linux/security.h int security_sb_alloc(struct super_block *sb);
sb                285 include/linux/security.h void security_sb_free(struct super_block *sb);
sb                288 include/linux/security.h int security_sb_remount(struct super_block *sb, void *mnt_opts);
sb                289 include/linux/security.h int security_sb_kern_mount(struct super_block *sb);
sb                290 include/linux/security.h int security_sb_show_options(struct seq_file *m, struct super_block *sb);
sb                296 include/linux/security.h int security_sb_set_mnt_opts(struct super_block *sb,
sb                545 include/linux/security.h 				     struct super_block *sb)
sb                600 include/linux/security.h static inline int security_sb_alloc(struct super_block *sb)
sb                605 include/linux/security.h static inline void security_sb_free(struct super_block *sb)
sb                614 include/linux/security.h static inline int security_sb_remount(struct super_block *sb,
sb                620 include/linux/security.h static inline int security_sb_kern_mount(struct super_block *sb)
sb                626 include/linux/security.h 					   struct super_block *sb)
sb                654 include/linux/security.h static inline int security_sb_set_mnt_opts(struct super_block *sb,
sb                470 include/linux/ssb/ssb_driver_chipcommon.h #define	SSB_CHIPCO_CLK_SB2MIPS_T6(sb)	(2 * (sb))
sb                 86 include/linux/sunrpc/rpc_pipe_fs.h extern struct dentry *rpc_d_lookup_sb(const struct super_block *sb,
sb                194 include/linux/writeback.h void try_to_writeback_inodes_sb(struct super_block *sb, enum wb_reason reason);
sb                177 include/net/9p/client.h int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb);
sb                167 include/trace/events/bcache.h 		memcpy(__entry->uuid, c->sb.set_uuid, 16);
sb                203 include/trace/events/bcache.h 		memcpy(__entry->uuid, c->sb.set_uuid, 16);
sb                610 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long long blk,
sb                613 include/trace/events/ext4.h 	TP_ARGS(sb, blk, count),
sb                623 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb                706 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, struct ext4_prealloc_space *pa),
sb                708 include/trace/events/ext4.h 	TP_ARGS(sb, pa),
sb                718 include/trace/events/ext4.h 		__entry->dev		= sb->s_dev;
sb                750 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int needed),
sb                752 include/trace/events/ext4.h 	TP_ARGS(sb, needed),
sb                761 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb                934 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int wait),
sb                936 include/trace/events/ext4.h 	TP_ARGS(sb, wait),
sb                945 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb               1085 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb,
sb               1091 include/trace/events/ext4.h 	TP_ARGS(sb, inode, group, start, len),
sb               1102 include/trace/events/ext4.h 		__entry->dev		= sb->s_dev;
sb               1118 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb,
sb               1124 include/trace/events/ext4.h 	TP_ARGS(sb, inode, group, start, len)
sb               1129 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb,
sb               1135 include/trace/events/ext4.h 	TP_ARGS(sb, inode, group, start, len)
sb               1261 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long group),
sb               1263 include/trace/events/ext4.h 	TP_ARGS(sb, group),
sb               1272 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb               1283 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long group),
sb               1285 include/trace/events/ext4.h 	TP_ARGS(sb, group)
sb               1290 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long group),
sb               1292 include/trace/events/ext4.h 	TP_ARGS(sb, group)
sb               1297 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long group),
sb               1299 include/trace/events/ext4.h 	TP_ARGS(sb, group)
sb               1304 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long group),
sb               1306 include/trace/events/ext4.h 	TP_ARGS(sb, group)
sb               1748 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int blocks, int rsv_blocks,
sb               1751 include/trace/events/ext4.h 	TP_ARGS(sb, blocks, rsv_blocks, IP),
sb               1761 include/trace/events/ext4.h 		__entry->dev		 = sb->s_dev;
sb               1773 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int blocks, unsigned long IP),
sb               1775 include/trace/events/ext4.h 	TP_ARGS(sb, blocks, IP),
sb               1784 include/trace/events/ext4.h 		__entry->dev		 = sb->s_dev;
sb               1795 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb,
sb               1800 include/trace/events/ext4.h 	TP_ARGS(sb, group, start, len),
sb               1811 include/trace/events/ext4.h 		__entry->dev_major	= MAJOR(sb->s_dev);
sb               1812 include/trace/events/ext4.h 		__entry->dev_minor	= MINOR(sb->s_dev);
sb               1825 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb,
sb               1830 include/trace/events/ext4.h 	TP_ARGS(sb, group, start, len)
sb               1835 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb,
sb               1840 include/trace/events/ext4.h 	TP_ARGS(sb, group, start, len)
sb               1882 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, struct ext4_map_blocks *map, int ret),
sb               1884 include/trace/events/ext4.h 	TP_ARGS(sb, map, ret),
sb               1896 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb               2422 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt),
sb               2424 include/trace/events/ext4.h 	TP_ARGS(sb, nr_to_scan, cache_cnt),
sb               2433 include/trace/events/ext4.h 		__entry->dev		= sb->s_dev;
sb               2444 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt),
sb               2446 include/trace/events/ext4.h 	TP_ARGS(sb, nr_to_scan, cache_cnt)
sb               2450 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt),
sb               2452 include/trace/events/ext4.h 	TP_ARGS(sb, nr_to_scan, cache_cnt)
sb               2456 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int nr_shrunk, int cache_cnt),
sb               2458 include/trace/events/ext4.h 	TP_ARGS(sb, nr_shrunk, cache_cnt),
sb               2467 include/trace/events/ext4.h 		__entry->dev		= sb->s_dev;
sb               2528 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, int nr_shrunk, u64 scan_time,
sb               2531 include/trace/events/ext4.h 	TP_ARGS(sb, nr_shrunk, scan_time, nr_skipped, retried),
sb               2542 include/trace/events/ext4.h 		__entry->dev		= sb->s_dev;
sb               2592 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, u32 keydev, u32 agno, u64 bno, u64 len,
sb               2594 include/trace/events/ext4.h 	TP_ARGS(sb, keydev, agno, bno, len, owner),
sb               2604 include/trace/events/ext4.h 		__entry->dev = sb->s_bdev->bd_dev;
sb               2621 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, u32 keydev, u32 agno, u64 bno, u64 len, \
sb               2623 include/trace/events/ext4.h 	TP_ARGS(sb, keydev, agno, bno, len, owner))
sb               2629 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, struct ext4_fsmap *fsmap),
sb               2630 include/trace/events/ext4.h 	TP_ARGS(sb, fsmap),
sb               2640 include/trace/events/ext4.h 		__entry->dev = sb->s_bdev->bd_dev;
sb               2657 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, struct ext4_fsmap *fsmap), \
sb               2658 include/trace/events/ext4.h 	TP_ARGS(sb, fsmap))
sb               2664 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, unsigned long flags),
sb               2666 include/trace/events/ext4.h 	TP_ARGS(sb, flags),
sb               2674 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb               2684 include/trace/events/ext4.h 	TP_PROTO(struct super_block *sb, const char *function,
sb               2687 include/trace/events/ext4.h 	TP_ARGS(sb, function, line),
sb               2696 include/trace/events/ext4.h 		__entry->dev	= sb->s_dev;
sb                258 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int wait),
sb                260 include/trace/events/f2fs.h 	TP_ARGS(sb, wait),
sb                269 include/trace/events/f2fs.h 		__entry->dev	= sb->s_dev;
sb                270 include/trace/events/f2fs.h 		__entry->dirty	= is_sbi_flag_set(F2FS_SB(sb), SBI_IS_DIRTY);
sb                602 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, unsigned int wait_ms,
sb                605 include/trace/events/f2fs.h 	TP_ARGS(sb, wait_ms, prefree, free),
sb                615 include/trace/events/f2fs.h 		__entry->dev		= sb->s_dev;
sb                630 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, bool sync, bool background,
sb                636 include/trace/events/f2fs.h 	TP_ARGS(sb, sync, background, dirty_nodes, dirty_dents, dirty_imeta,
sb                653 include/trace/events/f2fs.h 		__entry->dev		= sb->s_dev;
sb                682 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int ret, int seg_freed,
sb                688 include/trace/events/f2fs.h 	TP_ARGS(sb, ret, seg_freed, sec_freed, dirty_nodes, dirty_dents,
sb                706 include/trace/events/f2fs.h 		__entry->dev		= sb->s_dev;
sb                737 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, int gc_type,
sb                741 include/trace/events/f2fs.h 	TP_ARGS(sb, type, gc_type, p, pre_victim, prefree, free),
sb                758 include/trace/events/f2fs.h 		__entry->dev		= sb->s_dev;
sb               1064 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, struct bio *bio),
sb               1066 include/trace/events/f2fs.h 	TP_ARGS(sb, type, bio),
sb               1079 include/trace/events/f2fs.h 		__entry->dev		= sb->s_dev;
sb               1099 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, struct bio *bio),
sb               1101 include/trace/events/f2fs.h 	TP_ARGS(sb, type, bio),
sb               1108 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, struct bio *bio),
sb               1110 include/trace/events/f2fs.h 	TP_ARGS(sb, type, bio),
sb               1117 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, struct bio *bio),
sb               1119 include/trace/events/f2fs.h 	TP_ARGS(sb, type, bio),
sb               1126 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, struct bio *bio),
sb               1128 include/trace/events/f2fs.h 	TP_ARGS(sb, type, bio),
sb               1397 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int reason, char *msg),
sb               1399 include/trace/events/f2fs.h 	TP_ARGS(sb, reason, msg),
sb               1408 include/trace/events/f2fs.h 		__entry->dev		= sb->s_dev;
sb               1617 include/trace/events/f2fs.h 		__entry->dev = sbi->sb->s_dev;
sb               1653 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, s64 count),
sb               1655 include/trace/events/f2fs.h 	TP_ARGS(sb, type, count),
sb               1664 include/trace/events/f2fs.h 		__entry->dev	= sb->s_dev;
sb               1677 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, s64 count),
sb               1679 include/trace/events/f2fs.h 	TP_ARGS(sb, type, count)
sb               1684 include/trace/events/f2fs.h 	TP_PROTO(struct super_block *sb, int type, s64 count),
sb               1686 include/trace/events/f2fs.h 	TP_ARGS(sb, type, count)
sb               1702 include/trace/events/f2fs.h 		__entry->dev = sbi->sb->s_dev;
sb                 67 include/trace/events/nilfs2.h 	    TP_PROTO(struct super_block *sb,
sb                 73 include/trace/events/nilfs2.h 	    TP_ARGS(sb, ti, count, flags, state),
sb                 76 include/trace/events/nilfs2.h 		    __field(void *, sb)
sb                 84 include/trace/events/nilfs2.h 		    __entry->sb = sb;
sb                 92 include/trace/events/nilfs2.h 		      __entry->sb,
sb                365 include/trace/events/writeback.h 		__entry->sb_dev = work->sb ? work->sb->s_dev : 0;
sb                210 include/uapi/linux/bcache.h static inline _Bool SB_IS_BDEV(const struct cache_sb *sb)
sb                212 include/uapi/linux/bcache.h 	return sb->version == BCACHE_SB_VERSION_BDEV
sb                213 include/uapi/linux/bcache.h 		|| sb->version == BCACHE_SB_VERSION_BDEV_WITH_OFFSET;
sb                245 include/uapi/linux/bcache.h static inline __u64 jset_magic(struct cache_sb *sb)
sb                247 include/uapi/linux/bcache.h 	return sb->set_magic ^ JSET_MAGIC;
sb                250 include/uapi/linux/bcache.h static inline __u64 pset_magic(struct cache_sb *sb)
sb                252 include/uapi/linux/bcache.h 	return sb->set_magic ^ PSET_MAGIC;
sb                255 include/uapi/linux/bcache.h static inline __u64 bset_magic(struct cache_sb *sb)
sb                257 include/uapi/linux/bcache.h 	return sb->set_magic ^ BSET_MAGIC;
sb                 78 include/uapi/linux/bfs_fs.h #define BFS_UNCLEAN(bfs_sb, sb)	\
sb                 79 include/uapi/linux/bfs_fs.h 	((le32_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to) != -1) && !(sb->s_flags & SB_RDONLY))
sb                215 include/uapi/linux/raid/md_p.h static inline __u64 md_event(mdp_super_t *sb) {
sb                216 include/uapi/linux/raid/md_p.h 	__u64 ev = sb->events_hi;
sb                217 include/uapi/linux/raid/md_p.h 	return (ev<<32)| sb->events_lo;
sb                232 ipc/mqueue.c   static struct inode *mqueue_get_inode(struct super_block *sb,
sb                240 ipc/mqueue.c   	inode = new_inode(sb);
sb                343 ipc/mqueue.c   static int mqueue_fill_super(struct super_block *sb, struct fs_context *fc)
sb                346 ipc/mqueue.c   	struct ipc_namespace *ns = sb->s_fs_info;
sb                348 ipc/mqueue.c   	sb->s_iflags |= SB_I_NOEXEC | SB_I_NODEV;
sb                349 ipc/mqueue.c   	sb->s_blocksize = PAGE_SIZE;
sb                350 ipc/mqueue.c   	sb->s_blocksize_bits = PAGE_SHIFT;
sb                351 ipc/mqueue.c   	sb->s_magic = MQUEUE_MAGIC;
sb                352 ipc/mqueue.c   	sb->s_op = &mqueue_super_ops;
sb                354 ipc/mqueue.c   	inode = mqueue_get_inode(sb, ns, S_IFDIR | S_ISVTX | S_IRWXUGO, NULL);
sb                358 ipc/mqueue.c   	sb->s_root = d_make_root(inode);
sb                359 ipc/mqueue.c   	if (!sb->s_root)
sb                423 ipc/mqueue.c   static struct inode *mqueue_alloc_inode(struct super_block *sb)
sb                 81 kernel/bpf/inode.c static struct inode *bpf_get_inode(struct super_block *sb,
sb                 96 kernel/bpf/inode.c 	inode = new_inode(sb);
sb                625 kernel/bpf/inode.c static int bpf_fill_super(struct super_block *sb, struct fs_context *fc)
sb                632 kernel/bpf/inode.c 	ret = simple_fill_super(sb, BPF_FS_MAGIC, bpf_rfiles);
sb                636 kernel/bpf/inode.c 	sb->s_op = &bpf_super_ops;
sb                638 kernel/bpf/inode.c 	inode = sb->s_root->d_inode;
sb               1223 kernel/cgroup/cgroup-v1.c 		struct super_block *sb = fc->root->d_sb;
sb               1225 kernel/cgroup/cgroup-v1.c 		deactivate_locked_super(sb);
sb               2109 kernel/cgroup/cgroup.c 		struct super_block *sb = fc->root->d_sb;
sb               2120 kernel/cgroup/cgroup.c 		nsdentry = kernfs_node_dentry(cgrp->kn, sb);
sb               2123 kernel/cgroup/cgroup.c 			deactivate_locked_super(sb);
sb               2211 kernel/cgroup/cgroup.c static void cgroup_kill_sb(struct super_block *sb)
sb               2213 kernel/cgroup/cgroup.c 	struct kernfs_root *kf_root = kernfs_root_from_sb(sb);
sb               2227 kernel/cgroup/cgroup.c 	kernfs_kill_sb(sb);
sb               4731 kernel/cgroup/cgroup.c 					 struct super_block *sb)
sb               4745 kernel/cgroup/cgroup.c 	inode = kernfs_get_inode(sb, com_cgrp->procs_file.kn);
sb                 15 lib/sbitmap.c  static inline bool sbitmap_deferred_clear(struct sbitmap *sb, int index)
sb                 21 lib/sbitmap.c  	spin_lock_irqsave(&sb->map[index].swap_lock, flags);
sb                 23 lib/sbitmap.c  	if (!sb->map[index].cleared)
sb                 29 lib/sbitmap.c  	mask = xchg(&sb->map[index].cleared, 0);
sb                 35 lib/sbitmap.c  		val = sb->map[index].word;
sb                 36 lib/sbitmap.c  	} while (cmpxchg(&sb->map[index].word, val, val & ~mask) != val);
sb                 40 lib/sbitmap.c  	spin_unlock_irqrestore(&sb->map[index].swap_lock, flags);
sb                 44 lib/sbitmap.c  int sbitmap_init_node(struct sbitmap *sb, unsigned int depth, int shift,
sb                 67 lib/sbitmap.c  	sb->shift = shift;
sb                 68 lib/sbitmap.c  	sb->depth = depth;
sb                 69 lib/sbitmap.c  	sb->map_nr = DIV_ROUND_UP(sb->depth, bits_per_word);
sb                 72 lib/sbitmap.c  		sb->map = NULL;
sb                 76 lib/sbitmap.c  	sb->map = kcalloc_node(sb->map_nr, sizeof(*sb->map), flags, node);
sb                 77 lib/sbitmap.c  	if (!sb->map)
sb                 80 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                 81 lib/sbitmap.c  		sb->map[i].depth = min(depth, bits_per_word);
sb                 82 lib/sbitmap.c  		depth -= sb->map[i].depth;
sb                 83 lib/sbitmap.c  		spin_lock_init(&sb->map[i].swap_lock);
sb                 89 lib/sbitmap.c  void sbitmap_resize(struct sbitmap *sb, unsigned int depth)
sb                 91 lib/sbitmap.c  	unsigned int bits_per_word = 1U << sb->shift;
sb                 94 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++)
sb                 95 lib/sbitmap.c  		sbitmap_deferred_clear(sb, i);
sb                 97 lib/sbitmap.c  	sb->depth = depth;
sb                 98 lib/sbitmap.c  	sb->map_nr = DIV_ROUND_UP(sb->depth, bits_per_word);
sb                100 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                101 lib/sbitmap.c  		sb->map[i].depth = min(depth, bits_per_word);
sb                102 lib/sbitmap.c  		depth -= sb->map[i].depth;
sb                139 lib/sbitmap.c  static int sbitmap_find_bit_in_index(struct sbitmap *sb, int index,
sb                145 lib/sbitmap.c  		nr = __sbitmap_get_word(&sb->map[index].word,
sb                146 lib/sbitmap.c  					sb->map[index].depth, alloc_hint,
sb                150 lib/sbitmap.c  		if (!sbitmap_deferred_clear(sb, index))
sb                157 lib/sbitmap.c  int sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint, bool round_robin)
sb                162 lib/sbitmap.c  	index = SB_NR_TO_INDEX(sb, alloc_hint);
sb                170 lib/sbitmap.c  		alloc_hint = SB_NR_TO_BIT(sb, alloc_hint);
sb                174 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                175 lib/sbitmap.c  		nr = sbitmap_find_bit_in_index(sb, index, alloc_hint,
sb                178 lib/sbitmap.c  			nr += index << sb->shift;
sb                184 lib/sbitmap.c  		if (++index >= sb->map_nr)
sb                192 lib/sbitmap.c  int sbitmap_get_shallow(struct sbitmap *sb, unsigned int alloc_hint,
sb                198 lib/sbitmap.c  	index = SB_NR_TO_INDEX(sb, alloc_hint);
sb                200 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                202 lib/sbitmap.c  		nr = __sbitmap_get_word(&sb->map[index].word,
sb                203 lib/sbitmap.c  					min(sb->map[index].depth, shallow_depth),
sb                204 lib/sbitmap.c  					SB_NR_TO_BIT(sb, alloc_hint), true);
sb                206 lib/sbitmap.c  			nr += index << sb->shift;
sb                210 lib/sbitmap.c  		if (sbitmap_deferred_clear(sb, index))
sb                215 lib/sbitmap.c  		alloc_hint = index << sb->shift;
sb                217 lib/sbitmap.c  		if (index >= sb->map_nr) {
sb                227 lib/sbitmap.c  bool sbitmap_any_bit_set(const struct sbitmap *sb)
sb                231 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                232 lib/sbitmap.c  		if (sb->map[i].word & ~sb->map[i].cleared)
sb                239 lib/sbitmap.c  bool sbitmap_any_bit_clear(const struct sbitmap *sb)
sb                243 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                244 lib/sbitmap.c  		const struct sbitmap_word *word = &sb->map[i];
sb                256 lib/sbitmap.c  static unsigned int __sbitmap_weight(const struct sbitmap *sb, bool set)
sb                260 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                261 lib/sbitmap.c  		const struct sbitmap_word *word = &sb->map[i];
sb                271 lib/sbitmap.c  static unsigned int sbitmap_weight(const struct sbitmap *sb)
sb                273 lib/sbitmap.c  	return __sbitmap_weight(sb, true);
sb                276 lib/sbitmap.c  static unsigned int sbitmap_cleared(const struct sbitmap *sb)
sb                278 lib/sbitmap.c  	return __sbitmap_weight(sb, false);
sb                281 lib/sbitmap.c  void sbitmap_show(struct sbitmap *sb, struct seq_file *m)
sb                283 lib/sbitmap.c  	seq_printf(m, "depth=%u\n", sb->depth);
sb                284 lib/sbitmap.c  	seq_printf(m, "busy=%u\n", sbitmap_weight(sb) - sbitmap_cleared(sb));
sb                285 lib/sbitmap.c  	seq_printf(m, "cleared=%u\n", sbitmap_cleared(sb));
sb                286 lib/sbitmap.c  	seq_printf(m, "bits_per_word=%u\n", 1U << sb->shift);
sb                287 lib/sbitmap.c  	seq_printf(m, "map_nr=%u\n", sb->map_nr);
sb                303 lib/sbitmap.c  void sbitmap_bitmap_show(struct sbitmap *sb, struct seq_file *m)
sb                310 lib/sbitmap.c  	for (i = 0; i < sb->map_nr; i++) {
sb                311 lib/sbitmap.c  		unsigned long word = READ_ONCE(sb->map[i].word);
sb                312 lib/sbitmap.c  		unsigned int word_bits = READ_ONCE(sb->map[i].depth);
sb                360 lib/sbitmap.c  	shallow_depth = min(1U << sbq->sb.shift, sbq->min_shallow_depth);
sb                361 lib/sbitmap.c  	depth = ((depth >> sbq->sb.shift) * shallow_depth +
sb                362 lib/sbitmap.c  		 min(depth & ((1U << sbq->sb.shift) - 1), shallow_depth));
sb                375 lib/sbitmap.c  	ret = sbitmap_init_node(&sbq->sb, depth, shift, flags, node);
sb                381 lib/sbitmap.c  		sbitmap_free(&sbq->sb);
sb                398 lib/sbitmap.c  		sbitmap_free(&sbq->sb);
sb                434 lib/sbitmap.c  	sbitmap_resize(&sbq->sb, depth);
sb                444 lib/sbitmap.c  	depth = READ_ONCE(sbq->sb.depth);
sb                449 lib/sbitmap.c  	nr = sbitmap_get(&sbq->sb, hint, sbq->round_robin);
sb                475 lib/sbitmap.c  	depth = READ_ONCE(sbq->sb.depth);
sb                480 lib/sbitmap.c  	nr = sbitmap_get_shallow(&sbq->sb, hint, shallow_depth);
sb                501 lib/sbitmap.c  	sbitmap_queue_update_wake_batch(sbq, sbq->sb.depth);
sb                590 lib/sbitmap.c  	sbitmap_deferred_clear_bit(&sbq->sb, nr);
sb                601 lib/sbitmap.c  	if (likely(!sbq->round_robin && nr < sbq->sb.depth))
sb                632 lib/sbitmap.c  	sbitmap_show(&sbq->sb, m);
sb                 36 mm/cleancache.c static void cleancache_register_ops_sb(struct super_block *sb, void *unused)
sb                 38 mm/cleancache.c 	switch (sb->cleancache_poolid) {
sb                 40 mm/cleancache.c 		__cleancache_init_fs(sb);
sb                 43 mm/cleancache.c 		__cleancache_init_shared_fs(sb);
sb                113 mm/cleancache.c void __cleancache_init_fs(struct super_block *sb)
sb                122 mm/cleancache.c 	sb->cleancache_poolid = pool_id;
sb                127 mm/cleancache.c void __cleancache_init_shared_fs(struct super_block *sb)
sb                132 mm/cleancache.c 		pool_id = cleancache_ops->init_shared_fs(&sb->s_uuid, PAGE_SIZE);
sb                136 mm/cleancache.c 	sb->cleancache_poolid = pool_id;
sb                149 mm/cleancache.c 	struct super_block *sb = inode->i_sb;
sb                152 mm/cleancache.c 	if (sb->s_export_op != NULL) {
sb                153 mm/cleancache.c 		fhfn = sb->s_export_op->encode_fh;
sb                291 mm/cleancache.c void __cleancache_invalidate_fs(struct super_block *sb)
sb                295 mm/cleancache.c 	pool_id = sb->cleancache_poolid;
sb                296 mm/cleancache.c 	sb->cleancache_poolid = CLEANCACHE_NO_POOL;
sb                158 mm/shmem.c     static inline struct shmem_sb_info *SHMEM_SB(struct super_block *sb)
sb                160 mm/shmem.c     	return sb->s_fs_info;
sb                264 mm/shmem.c     static int shmem_reserve_inode(struct super_block *sb)
sb                266 mm/shmem.c     	struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
sb                279 mm/shmem.c     static void shmem_free_inode(struct super_block *sb)
sb                281 mm/shmem.c     	struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
sb                566 mm/shmem.c     static long shmem_unused_huge_scan(struct super_block *sb,
sb                569 mm/shmem.c     	struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
sb                577 mm/shmem.c     static long shmem_unused_huge_count(struct super_block *sb,
sb                580 mm/shmem.c     	struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
sb               2116 mm/shmem.c     		struct super_block *sb;
sb               2120 mm/shmem.c     			sb = file_inode(file)->i_sb;
sb               2128 mm/shmem.c     			sb = shm_mnt->mnt_sb;
sb               2130 mm/shmem.c     		if (SHMEM_SB(sb)->huge == SHMEM_HUGE_NEVER)
sb               2241 mm/shmem.c     static struct inode *shmem_get_inode(struct super_block *sb, const struct inode *dir,
sb               2246 mm/shmem.c     	struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
sb               2248 mm/shmem.c     	if (shmem_reserve_inode(sb))
sb               2251 mm/shmem.c     	inode = new_inode(sb);
sb               2299 mm/shmem.c     		shmem_free_inode(sb);
sb               3316 mm/shmem.c     static struct dentry *shmem_fh_to_dentry(struct super_block *sb,
sb               3329 mm/shmem.c     	inode = ilookup5(sb, (unsigned long)(inum + fid->raw[0]),
sb               3623 mm/shmem.c     static void shmem_put_super(struct super_block *sb)
sb               3625 mm/shmem.c     	struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
sb               3630 mm/shmem.c     	sb->s_fs_info = NULL;
sb               3633 mm/shmem.c     static int shmem_fill_super(struct super_block *sb, struct fs_context *fc)
sb               3646 mm/shmem.c     	sb->s_fs_info = sbinfo;
sb               3654 mm/shmem.c     	if (!(sb->s_flags & SB_KERNMOUNT)) {
sb               3660 mm/shmem.c     		sb->s_flags |= SB_NOUSER;
sb               3662 mm/shmem.c     	sb->s_export_op = &shmem_export_ops;
sb               3663 mm/shmem.c     	sb->s_flags |= SB_NOSEC;
sb               3665 mm/shmem.c     	sb->s_flags |= SB_NOUSER;
sb               3682 mm/shmem.c     	sb->s_maxbytes = MAX_LFS_FILESIZE;
sb               3683 mm/shmem.c     	sb->s_blocksize = PAGE_SIZE;
sb               3684 mm/shmem.c     	sb->s_blocksize_bits = PAGE_SHIFT;
sb               3685 mm/shmem.c     	sb->s_magic = TMPFS_MAGIC;
sb               3686 mm/shmem.c     	sb->s_op = &shmem_ops;
sb               3687 mm/shmem.c     	sb->s_time_gran = 1;
sb               3689 mm/shmem.c     	sb->s_xattr = shmem_xattr_handlers;
sb               3692 mm/shmem.c     	sb->s_flags |= SB_POSIXACL;
sb               3694 mm/shmem.c     	uuid_gen(&sb->s_uuid);
sb               3696 mm/shmem.c     	inode = shmem_get_inode(sb, NULL, S_IFDIR | sbinfo->mode, 0, VM_NORESERVE);
sb               3701 mm/shmem.c     	sb->s_root = d_make_root(inode);
sb               3702 mm/shmem.c     	if (!sb->s_root)
sb               3707 mm/shmem.c     	shmem_put_super(sb);
sb               3738 mm/shmem.c     static struct inode *shmem_alloc_inode(struct super_block *sb)
sb               4087 mm/shmem.c     #define shmem_get_inode(sb, dir, mode, dev, flags)	ramfs_get_inode(sb, dir, mode, dev)
sb               1896 net/9p/client.c int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb)
sb               1913 net/9p/client.c 	err = p9pdu_readf(&req->rc, clnt->proto_version, "ddqqqqqqd", &sb->type,
sb               1914 net/9p/client.c 			  &sb->bsize, &sb->blocks, &sb->bfree, &sb->bavail,
sb               1915 net/9p/client.c 			  &sb->files, &sb->ffree, &sb->fsid, &sb->namelen);
sb               1925 net/9p/client.c 		fid->fid, (long unsigned int)sb->type, (long int)sb->bsize,
sb               1926 net/9p/client.c 		sb->blocks, sb->bfree, sb->bavail, sb->files,  sb->ffree,
sb               1927 net/9p/client.c 		sb->fsid, (long int)sb->namelen);
sb                 82 net/ceph/debugfs.c 		char sb[64];
sb                 87 net/ceph/debugfs.c 			   ceph_osdmap_state_str(sb, sizeof(sb), state),
sb                178 net/core/gen_stats.c 		struct gnet_stats_basic sb;
sb                180 net/core/gen_stats.c 		memset(&sb, 0, sizeof(sb));
sb                181 net/core/gen_stats.c 		sb.bytes = bstats.bytes;
sb                182 net/core/gen_stats.c 		sb.packets = bstats.packets;
sb                183 net/core/gen_stats.c 		return gnet_stats_copy(d, type, &sb, sizeof(sb),
sb                309 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb;
sb                313 net/netfilter/ipvs/ip_vs_sync.c 		sb = NULL;
sb                316 net/netfilter/ipvs/ip_vs_sync.c 		sb = list_entry(ms->sync_queue.next, struct ip_vs_sync_buff,
sb                318 net/netfilter/ipvs/ip_vs_sync.c 		list_del(&sb->list);
sb                325 net/netfilter/ipvs/ip_vs_sync.c 	return sb;
sb                334 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb;
sb                336 net/netfilter/ipvs/ip_vs_sync.c 	if (!(sb=kmalloc(sizeof(struct ip_vs_sync_buff), GFP_ATOMIC)))
sb                341 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg = kmalloc(len, GFP_ATOMIC);
sb                342 net/netfilter/ipvs/ip_vs_sync.c 	if (!sb->mesg) {
sb                343 net/netfilter/ipvs/ip_vs_sync.c 		kfree(sb);
sb                346 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg->reserved = 0;  /* old nr_conns i.e. must be zero now */
sb                347 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg->version = SYNC_PROTO_VER;
sb                348 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg->syncid = ipvs->mcfg.syncid;
sb                349 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg->size = htons(sizeof(struct ip_vs_sync_mesg));
sb                350 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg->nr_conns = 0;
sb                351 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg->spare = 0;
sb                352 net/netfilter/ipvs/ip_vs_sync.c 	sb->head = (unsigned char *)sb->mesg + sizeof(struct ip_vs_sync_mesg);
sb                353 net/netfilter/ipvs/ip_vs_sync.c 	sb->end = (unsigned char *)sb->mesg + len;
sb                355 net/netfilter/ipvs/ip_vs_sync.c 	sb->firstuse = jiffies;
sb                356 net/netfilter/ipvs/ip_vs_sync.c 	return sb;
sb                359 net/netfilter/ipvs/ip_vs_sync.c static inline void ip_vs_sync_buff_release(struct ip_vs_sync_buff *sb)
sb                361 net/netfilter/ipvs/ip_vs_sync.c 	kfree(sb->mesg);
sb                362 net/netfilter/ipvs/ip_vs_sync.c 	kfree(sb);
sb                368 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb = ms->sync_buff;
sb                377 net/netfilter/ipvs/ip_vs_sync.c 		list_add_tail(&sb->list, &ms->sync_queue);
sb                384 net/netfilter/ipvs/ip_vs_sync.c 		ip_vs_sync_buff_release(sb);
sb                396 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb;
sb                399 net/netfilter/ipvs/ip_vs_sync.c 	sb = ms->sync_buff;
sb                400 net/netfilter/ipvs/ip_vs_sync.c 	if (sb && time_after_eq(jiffies - sb->firstuse, time)) {
sb                404 net/netfilter/ipvs/ip_vs_sync.c 		sb = NULL;
sb                406 net/netfilter/ipvs/ip_vs_sync.c 	return sb;
sb                421 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb;
sb                424 net/netfilter/ipvs/ip_vs_sync.c 	if (!(sb=kmalloc(sizeof(struct ip_vs_sync_buff), GFP_ATOMIC)))
sb                429 net/netfilter/ipvs/ip_vs_sync.c 	sb->mesg = kmalloc(len, GFP_ATOMIC);
sb                430 net/netfilter/ipvs/ip_vs_sync.c 	if (!sb->mesg) {
sb                431 net/netfilter/ipvs/ip_vs_sync.c 		kfree(sb);
sb                434 net/netfilter/ipvs/ip_vs_sync.c 	mesg = (struct ip_vs_sync_mesg_v0 *)sb->mesg;
sb                438 net/netfilter/ipvs/ip_vs_sync.c 	sb->head = (unsigned char *)mesg + sizeof(struct ip_vs_sync_mesg_v0);
sb                439 net/netfilter/ipvs/ip_vs_sync.c 	sb->end = (unsigned char *)mesg + len;
sb                440 net/netfilter/ipvs/ip_vs_sync.c 	sb->firstuse = jiffies;
sb                441 net/netfilter/ipvs/ip_vs_sync.c 	return sb;
sb               1655 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb;
sb               1657 net/netfilter/ipvs/ip_vs_sync.c 	sb = sb_dequeue(ipvs, ms);
sb               1658 net/netfilter/ipvs/ip_vs_sync.c 	if (sb)
sb               1659 net/netfilter/ipvs/ip_vs_sync.c 		return sb;
sb               1670 net/netfilter/ipvs/ip_vs_sync.c 	struct ip_vs_sync_buff *sb;
sb               1677 net/netfilter/ipvs/ip_vs_sync.c 		sb = next_sync_buff(ipvs, ms);
sb               1680 net/netfilter/ipvs/ip_vs_sync.c 		if (!sb) {
sb               1684 net/netfilter/ipvs/ip_vs_sync.c 		while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) {
sb               1694 net/netfilter/ipvs/ip_vs_sync.c 		ip_vs_sync_buff_release(sb);
sb               1699 net/netfilter/ipvs/ip_vs_sync.c 	if (sb)
sb               1700 net/netfilter/ipvs/ip_vs_sync.c 		ip_vs_sync_buff_release(sb);
sb               1703 net/netfilter/ipvs/ip_vs_sync.c 	while ((sb = sb_dequeue(ipvs, ms)))
sb               1704 net/netfilter/ipvs/ip_vs_sync.c 		ip_vs_sync_buff_release(sb);
sb               1708 net/netfilter/ipvs/ip_vs_sync.c 	sb = get_curr_sync_buff(ipvs, ms, 0);
sb               1709 net/netfilter/ipvs/ip_vs_sync.c 	if (sb)
sb               1710 net/netfilter/ipvs/ip_vs_sync.c 		ip_vs_sync_buff_release(sb);
sb                235 net/socket.c   static struct inode *sock_alloc_inode(struct super_block *sb)
sb                121 net/sunrpc/clnt.c static struct dentry *rpc_setup_pipedir_sb(struct super_block *sb,
sb                129 net/sunrpc/clnt.c 	dir = rpc_d_lookup_sb(sb, dir_name);
sb                185 net/sunrpc/clnt.c 				   struct super_block *sb)
sb                191 net/sunrpc/clnt.c 		dentry = rpc_setup_pipedir_sb(sb, clnt);
sb                208 net/sunrpc/clnt.c 				struct super_block *sb)
sb                214 net/sunrpc/clnt.c 			error = __rpc_clnt_handle_event(clnt, event, sb);
sb                240 net/sunrpc/clnt.c 	struct super_block *sb = ptr;
sb                244 net/sunrpc/clnt.c 	while ((clnt = rpc_get_client_for_event(sb->s_fs_info, event))) {
sb                245 net/sunrpc/clnt.c 		error = __rpc_pipefs_event(clnt, event, sb);
sb                197 net/sunrpc/rpc_pipe.c rpc_alloc_inode(struct super_block *sb)
sb                468 net/sunrpc/rpc_pipe.c rpc_get_inode(struct super_block *sb, umode_t mode)
sb                470 net/sunrpc/rpc_pipe.c 	struct inode *inode = new_inode(sb);
sb               1189 net/sunrpc/rpc_pipe.c struct dentry *rpc_d_lookup_sb(const struct super_block *sb,
sb               1193 net/sunrpc/rpc_pipe.c 	return d_hash_and_lookup(sb->s_root, &dir);
sb               1356 net/sunrpc/rpc_pipe.c rpc_fill_super(struct super_block *sb, struct fs_context *fc)
sb               1360 net/sunrpc/rpc_pipe.c 	struct net *net = sb->s_fs_info;
sb               1364 net/sunrpc/rpc_pipe.c 	sb->s_blocksize = PAGE_SIZE;
sb               1365 net/sunrpc/rpc_pipe.c 	sb->s_blocksize_bits = PAGE_SHIFT;
sb               1366 net/sunrpc/rpc_pipe.c 	sb->s_magic = RPCAUTH_GSSMAGIC;
sb               1367 net/sunrpc/rpc_pipe.c 	sb->s_op = &s_ops;
sb               1368 net/sunrpc/rpc_pipe.c 	sb->s_d_op = &simple_dentry_operations;
sb               1369 net/sunrpc/rpc_pipe.c 	sb->s_time_gran = 1;
sb               1371 net/sunrpc/rpc_pipe.c 	inode = rpc_get_inode(sb, S_IFDIR | 0555);
sb               1372 net/sunrpc/rpc_pipe.c 	sb->s_root = root = d_make_root(inode);
sb               1387 net/sunrpc/rpc_pipe.c 	sn->pipefs_sb = sb;
sb               1390 net/sunrpc/rpc_pipe.c 					   sb);
sb               1400 net/sunrpc/rpc_pipe.c 					   sb);
sb               1441 net/sunrpc/rpc_pipe.c static void rpc_kill_sb(struct super_block *sb)
sb               1443 net/sunrpc/rpc_pipe.c 	struct net *net = sb->s_fs_info;
sb               1447 net/sunrpc/rpc_pipe.c 	if (sn->pipefs_sb != sb) {
sb               1456 net/sunrpc/rpc_pipe.c 					   sb);
sb               1459 net/sunrpc/rpc_pipe.c 	kill_litter_super(sb);
sb                288 net/tipc/name_table.c 	struct tipc_subscr *sb = &sub->evt.s;
sb                295 net/tipc/name_table.c 	ns.type = tipc_sub_read(sb, seq.type);
sb                296 net/tipc/name_table.c 	ns.lower = tipc_sub_read(sb, seq.lower);
sb                297 net/tipc/name_table.c 	ns.upper = tipc_sub_read(sb, seq.upper);
sb                302 net/tipc/name_table.c 	if (tipc_sub_read(sb, filter) & TIPC_SUB_NO_STATUS)
sb                676 scripts/kallsyms.c 	const struct sym_entry *sb;
sb                680 scripts/kallsyms.c 	sb = b;
sb                683 scripts/kallsyms.c 	if (sa->addr > sb->addr)
sb                685 scripts/kallsyms.c 	if (sa->addr < sb->addr)
sb                690 scripts/kallsyms.c 	wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W');
sb                696 scripts/kallsyms.c 	wb = may_be_linker_script_provide_symbol(sb);
sb                702 scripts/kallsyms.c 	wb = prefix_underscores_count((const char *)sb->sym + 1);
sb                707 scripts/kallsyms.c 	return sa->start_pos - sb->start_pos;
sb                 48 scripts/recordmcount.c static struct stat sb;	/* Remember .st_size, etc. */
sb                 71 scripts/recordmcount.c 		munmap(file_map, sb.st_size);
sb                 89 scripts/recordmcount.c 		file_ptr = file_map + (sb.st_size - offset);
sb                170 scripts/recordmcount.c 	sb.st_size = 0;
sb                177 scripts/recordmcount.c 	if (fstat(fd_map, &sb) < 0) {
sb                181 scripts/recordmcount.c 	if (!S_ISREG(sb.st_mode)) {
sb                185 scripts/recordmcount.c 	file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE,
sb                189 scripts/recordmcount.c 		file_map = umalloc(sb.st_size);
sb                194 scripts/recordmcount.c 		if (read(fd_map, file_map, sb.st_size) != sb.st_size) {
sb                206 scripts/recordmcount.c 	file_end = file_map + sb.st_size;
sb                330 scripts/recordmcount.c 	fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode);
sb                335 scripts/recordmcount.c 	n = write(fd_map, file_map, sb.st_size);
sb                336 scripts/recordmcount.c 	if (n != sb.st_size) {
sb                199 scripts/recordmcount.h 	shstr->sh_offset = _w(sb.st_size);
sb                200 scripts/recordmcount.h 	t += sb.st_size;
sb                205 scripts/recordmcount.h 	if (ulseek(sb.st_size, SEEK_SET) < 0)
sb                 57 scripts/sortextable.c static struct stat sb;	/* Remember .st_size, etc. */
sb                 72 scripts/sortextable.c 		munmap(ehdr_curr, sb.st_size);
sb                 94 scripts/sortextable.c 	if (fd_map < 0 || fstat(fd_map, &sb) < 0) {
sb                 98 scripts/sortextable.c 	if (!S_ISREG(sb.st_mode)) {
sb                102 scripts/sortextable.c 	addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED,
sb                136 security/apparmor/apparmorfs.c static int apparmorfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                141 security/apparmor/apparmorfs.c 	error = simple_fill_super(sb, AAFS_MAGIC, files);
sb                144 security/apparmor/apparmorfs.c 	sb->s_op = &aafs_super_ops;
sb                 40 security/inode.c static int securityfs_fill_super(struct super_block *sb, struct fs_context *fc)
sb                 45 security/inode.c 	error = simple_fill_super(sb, SECURITYFS_MAGIC, files);
sb                 49 security/inode.c 	sb->s_op = &securityfs_super_operations;
sb                732 security/security.c int security_quotactl(int cmds, int type, int id, struct super_block *sb)
sb                734 security/security.c 	return call_int_hook(quotactl, 0, cmds, type, id, sb);
sb                810 security/security.c int security_sb_alloc(struct super_block *sb)
sb                812 security/security.c 	return call_int_hook(sb_alloc_security, 0, sb);
sb                815 security/security.c void security_sb_free(struct super_block *sb)
sb                817 security/security.c 	call_void_hook(sb_free_security, sb);
sb                835 security/security.c int security_sb_remount(struct super_block *sb,
sb                838 security/security.c 	return call_int_hook(sb_remount, 0, sb, mnt_opts);
sb                842 security/security.c int security_sb_kern_mount(struct super_block *sb)
sb                844 security/security.c 	return call_int_hook(sb_kern_mount, 0, sb);
sb                847 security/security.c int security_sb_show_options(struct seq_file *m, struct super_block *sb)
sb                849 security/security.c 	return call_int_hook(sb_show_options, 0, m, sb);
sb                873 security/security.c int security_sb_set_mnt_opts(struct super_block *sb,
sb                879 security/security.c 				mnt_opts ? -EOPNOTSUPP : 0, sb,
sb                368 security/selinux/hooks.c static int superblock_alloc_security(struct super_block *sb)
sb                379 security/selinux/hooks.c 	sbsec->sb = sb;
sb                383 security/selinux/hooks.c 	sb->s_security = sbsec;
sb                388 security/selinux/hooks.c static void superblock_free_security(struct super_block *sb)
sb                390 security/selinux/hooks.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb                391 security/selinux/hooks.c 	sb->s_security = NULL;
sb                496 security/selinux/hooks.c static int selinux_is_genfs_special_handling(struct super_block *sb)
sb                499 security/selinux/hooks.c 	return	!strcmp(sb->s_type->name, "sysfs") ||
sb                500 security/selinux/hooks.c 		!strcmp(sb->s_type->name, "pstore") ||
sb                501 security/selinux/hooks.c 		!strcmp(sb->s_type->name, "debugfs") ||
sb                502 security/selinux/hooks.c 		!strcmp(sb->s_type->name, "tracefs") ||
sb                503 security/selinux/hooks.c 		!strcmp(sb->s_type->name, "rootfs") ||
sb                505 security/selinux/hooks.c 		 (!strcmp(sb->s_type->name, "cgroup") ||
sb                506 security/selinux/hooks.c 		  !strcmp(sb->s_type->name, "cgroup2")));
sb                509 security/selinux/hooks.c static int selinux_is_sblabel_mnt(struct super_block *sb)
sb                511 security/selinux/hooks.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb                527 security/selinux/hooks.c 		return selinux_is_genfs_special_handling(sb);
sb                537 security/selinux/hooks.c static int sb_finish_set_opts(struct super_block *sb)
sb                539 security/selinux/hooks.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb                540 security/selinux/hooks.c 	struct dentry *root = sb->s_root;
sb                552 security/selinux/hooks.c 			       "xattr support\n", sb->s_id, sb->s_type->name);
sb                562 security/selinux/hooks.c 				       sb->s_id, sb->s_type->name);
sb                565 security/selinux/hooks.c 				       "%s) getxattr errno %d\n", sb->s_id,
sb                566 security/selinux/hooks.c 				       sb->s_type->name, -rc);
sb                578 security/selinux/hooks.c 	if (selinux_is_sblabel_mnt(sb))
sb                631 security/selinux/hooks.c static int parse_sid(struct super_block *sb, const char *s, u32 *sid)
sb                638 security/selinux/hooks.c 		       s, sb->s_id, sb->s_type->name, rc);
sb                646 security/selinux/hooks.c static int selinux_set_mnt_opts(struct super_block *sb,
sb                652 security/selinux/hooks.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb                653 security/selinux/hooks.c 	struct dentry *root = sbsec->sb->s_root;
sb                692 security/selinux/hooks.c 	if ((sbsec->flags & SE_SBINITIALIZED) && (sb->s_type->fs_flags & FS_BINARY_MOUNTDATA)
sb                705 security/selinux/hooks.c 			rc = parse_sid(sb, opts->fscontext, &fscontext_sid);
sb                714 security/selinux/hooks.c 			rc = parse_sid(sb, opts->context, &context_sid);
sb                723 security/selinux/hooks.c 			rc = parse_sid(sb, opts->rootcontext, &rootcontext_sid);
sb                732 security/selinux/hooks.c 			rc = parse_sid(sb, opts->defcontext, &defcontext_sid);
sb                750 security/selinux/hooks.c 	if (strcmp(sb->s_type->name, "proc") == 0)
sb                753 security/selinux/hooks.c 	if (!strcmp(sb->s_type->name, "debugfs") ||
sb                754 security/selinux/hooks.c 	    !strcmp(sb->s_type->name, "tracefs") ||
sb                755 security/selinux/hooks.c 	    !strcmp(sb->s_type->name, "pstore"))
sb                758 security/selinux/hooks.c 	if (!strcmp(sb->s_type->name, "sysfs") ||
sb                759 security/selinux/hooks.c 	    !strcmp(sb->s_type->name, "cgroup") ||
sb                760 security/selinux/hooks.c 	    !strcmp(sb->s_type->name, "cgroup2"))
sb                768 security/selinux/hooks.c 		rc = security_fs_use(&selinux_state, sb);
sb                771 security/selinux/hooks.c 					__func__, sb->s_type->name, rc);
sb                781 security/selinux/hooks.c 	if (sb->s_user_ns != &init_user_ns &&
sb                782 security/selinux/hooks.c 	    strcmp(sb->s_type->name, "tmpfs") &&
sb                783 security/selinux/hooks.c 	    strcmp(sb->s_type->name, "ramfs") &&
sb                784 security/selinux/hooks.c 	    strcmp(sb->s_type->name, "devpts")) {
sb                872 security/selinux/hooks.c 	rc = sb_finish_set_opts(sb);
sb                879 security/selinux/hooks.c 	       "security settings for (dev %s, type %s)\n", sb->s_id,
sb                880 security/selinux/hooks.c 	       sb->s_type->name);
sb               1098 security/selinux/hooks.c static int selinux_sb_show_options(struct seq_file *m, struct super_block *sb)
sb               1100 security/selinux/hooks.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb               1131 security/selinux/hooks.c 		struct dentry *root = sbsec->sb->s_root;
sb               1337 security/selinux/hooks.c 	struct super_block *sb = dentry->d_sb;
sb               1357 security/selinux/hooks.c 		rc = security_genfs_sid(&selinux_state, sb->s_type->name,
sb               1964 security/selinux/hooks.c 			       struct super_block *sb,
sb               1971 security/selinux/hooks.c 	sbsec = sb->s_security;
sb               2181 security/selinux/hooks.c static int selinux_quotactl(int cmds, int type, int id, struct super_block *sb)
sb               2186 security/selinux/hooks.c 	if (!sb)
sb               2195 security/selinux/hooks.c 		rc = superblock_has_perm(cred, sb, FILESYSTEM__QUOTAMOD, NULL);
sb               2200 security/selinux/hooks.c 		rc = superblock_has_perm(cred, sb, FILESYSTEM__QUOTAGET, NULL);
sb               2597 security/selinux/hooks.c static int selinux_sb_alloc_security(struct super_block *sb)
sb               2599 security/selinux/hooks.c 	return superblock_alloc_security(sb);
sb               2602 security/selinux/hooks.c static void selinux_sb_free_security(struct super_block *sb)
sb               2604 security/selinux/hooks.c 	superblock_free_security(sb);
sb               2682 security/selinux/hooks.c static int selinux_sb_remount(struct super_block *sb, void *mnt_opts)
sb               2685 security/selinux/hooks.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb               2696 security/selinux/hooks.c 		rc = parse_sid(sb, opts->fscontext, &sid);
sb               2703 security/selinux/hooks.c 		rc = parse_sid(sb, opts->context, &sid);
sb               2711 security/selinux/hooks.c 		root_isec = backing_inode_security(sb->s_root);
sb               2712 security/selinux/hooks.c 		rc = parse_sid(sb, opts->rootcontext, &sid);
sb               2719 security/selinux/hooks.c 		rc = parse_sid(sb, opts->defcontext, &sid);
sb               2729 security/selinux/hooks.c 	       "during remount (dev %s, type=%s)\n", sb->s_id,
sb               2730 security/selinux/hooks.c 	       sb->s_type->name);
sb               2734 security/selinux/hooks.c static int selinux_sb_kern_mount(struct super_block *sb)
sb               2740 security/selinux/hooks.c 	ad.u.dentry = sb->s_root;
sb               2741 security/selinux/hooks.c 	return superblock_has_perm(cred, sb, FILESYSTEM__MOUNT, &ad);
sb               7110 security/selinux/hooks.c static void delayed_superblock_init(struct super_block *sb, void *unused)
sb               7112 security/selinux/hooks.c 	selinux_set_mnt_opts(sb, NULL, 0, NULL);
sb                 64 security/selinux/include/objsec.h 	struct super_block *sb;		/* back pointer to sb object */
sb                332 security/selinux/include/security.h int security_fs_use(struct selinux_state *state, struct super_block *sb);
sb                 80 security/selinux/selinuxfs.c 	struct super_block *sb;
sb                 83 security/selinux/selinuxfs.c static int selinux_fs_info_create(struct super_block *sb)
sb                 94 security/selinux/selinuxfs.c 	fsi->sb = sb;
sb                 95 security/selinux/selinuxfs.c 	sb->s_fs_info = fsi;
sb                 99 security/selinux/selinuxfs.c static void selinux_fs_info_free(struct super_block *sb)
sb                101 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = sb->s_fs_info;
sb                110 security/selinux/selinuxfs.c 	kfree(sb->s_fs_info);
sb                111 security/selinux/selinuxfs.c 	sb->s_fs_info = NULL;
sb               1157 security/selinux/selinuxfs.c static struct inode *sel_make_inode(struct super_block *sb, int mode)
sb               1159 security/selinux/selinuxfs.c 	struct inode *ret = new_inode(sb);
sb               1572 security/selinux/selinuxfs.c 	struct super_block *sb = dir->d_sb;
sb               1573 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = sb->s_fs_info;
sb               1765 security/selinux/selinuxfs.c 	struct super_block *sb = dir->d_sb;
sb               1766 security/selinux/selinuxfs.c 	struct selinux_fs_info *fsi = sb->s_fs_info;
sb               1852 security/selinux/selinuxfs.c 		inode = sel_make_inode(fsi->sb, S_IFREG | 0444);
sb               1895 security/selinux/selinuxfs.c static int sel_fill_super(struct super_block *sb, struct fs_context *fc)
sb               1926 security/selinux/selinuxfs.c 	ret = selinux_fs_info_create(sb);
sb               1930 security/selinux/selinuxfs.c 	ret = simple_fill_super(sb, SELINUX_MAGIC, selinux_files);
sb               1934 security/selinux/selinuxfs.c 	fsi = sb->s_fs_info;
sb               1935 security/selinux/selinuxfs.c 	fsi->bool_dir = sel_make_dir(sb->s_root, BOOL_DIR_NAME, &fsi->last_ino);
sb               1943 security/selinux/selinuxfs.c 	dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME);
sb               1948 security/selinux/selinuxfs.c 	inode = sel_make_inode(sb, S_IFCHR | S_IRUGO | S_IWUGO);
sb               1963 security/selinux/selinuxfs.c 	dentry = sel_make_dir(sb->s_root, "avc", &fsi->last_ino);
sb               1973 security/selinux/selinuxfs.c 	dentry = sel_make_dir(sb->s_root, "initial_contexts", &fsi->last_ino);
sb               1983 security/selinux/selinuxfs.c 	fsi->class_dir = sel_make_dir(sb->s_root, "class", &fsi->last_ino);
sb               1990 security/selinux/selinuxfs.c 	fsi->policycap_dir = sel_make_dir(sb->s_root, "policy_capabilities",
sb               2006 security/selinux/selinuxfs.c 	selinux_fs_info_free(sb);
sb               2026 security/selinux/selinuxfs.c static void sel_kill_sb(struct super_block *sb)
sb               2028 security/selinux/selinuxfs.c 	selinux_fs_info_free(sb);
sb               2029 security/selinux/selinuxfs.c 	kill_litter_super(sb);
sb               2749 security/selinux/ss/services.c int security_fs_use(struct selinux_state *state, struct super_block *sb)
sb               2755 security/selinux/ss/services.c 	struct superblock_security_struct *sbsec = sb->s_security;
sb               2756 security/selinux/ss/services.c 	const char *fstype = sb->s_type->name;
sb                538 security/smack/smack_lsm.c static int smack_sb_alloc_security(struct super_block *sb)
sb                554 security/smack/smack_lsm.c 	sb->s_security = sbsp;
sb                564 security/smack/smack_lsm.c static void smack_sb_free_security(struct super_block *sb)
sb                566 security/smack/smack_lsm.c 	kfree(sb->s_security);
sb                567 security/smack/smack_lsm.c 	sb->s_security = NULL;
sb                775 security/smack/smack_lsm.c static int smack_set_mnt_opts(struct super_block *sb,
sb                780 security/smack/smack_lsm.c 	struct dentry *root = sb->s_root;
sb                782 security/smack/smack_lsm.c 	struct superblock_smack *sp = sb->s_security;
sb                815 security/smack/smack_lsm.c 		if (sb->s_user_ns != &init_user_ns &&
sb                816 security/smack/smack_lsm.c 		    sb->s_magic != SYSFS_MAGIC && sb->s_magic != TMPFS_MAGIC &&
sb                817 security/smack/smack_lsm.c 		    sb->s_magic != RAMFS_MAGIC) {
sb               2836 security/smack/smackfs.c static int smk_fill_super(struct super_block *sb, struct fs_context *fc)
sb               2895 security/smack/smackfs.c 	rc = simple_fill_super(sb, SMACK_MAGIC, smack_files);
sb                155 security/tomoyo/realpath.c 	struct super_block *sb = dentry->d_sb;
sb                161 security/tomoyo/realpath.c 	if (sb->s_magic == PROC_SUPER_MAGIC && *pos == '/') {
sb                166 security/tomoyo/realpath.c 		    task_tgid_nr_ns(current, sb->s_fs_info)) {
sb                175 security/tomoyo/realpath.c 	if (!MAJOR(sb->s_dev))
sb                178 security/tomoyo/realpath.c 		struct inode *inode = d_backing_inode(sb->s_root);
sb                191 security/tomoyo/realpath.c 		const dev_t dev = sb->s_dev;
sb                206 security/tomoyo/realpath.c 		const char *name = sb->s_type->name;
sb                241 security/tomoyo/realpath.c 	struct super_block *sb;
sb                245 security/tomoyo/realpath.c 	sb = dentry->d_sb;
sb                262 security/tomoyo/realpath.c 		inode = d_backing_inode(sb->s_root);
sb                269 security/tomoyo/realpath.c 		     !(sb->s_type->fs_flags & FS_REQUIRES_DEV)))
sb                157 sound/isa/cmi8330.c 	struct snd_sb *sb;
sb                311 sound/isa/cmi8330.c 	if ((err = cmi8330_add_sb_mixers(acard->sb)) < 0)
sb                446 sound/isa/cmi8330.c 	chip->streams[CMI_SB_STREAM].private_data = chip->sb;
sb                474 sound/isa/cmi8330.c 	snd_sbmixer_suspend(acard->sb);
sb                482 sound/isa/cmi8330.c 	snd_sbdsp_reset(acard->sb);
sb                483 sound/isa/cmi8330.c 	snd_sbmixer_suspend(acard->sb);
sb                546 sound/isa/cmi8330.c 				    SB_HW_AUTO, &acard->sb)) < 0) {
sb                550 sound/isa/cmi8330.c 	if (acard->sb->hardware != SB_HW_16) {
sb                 58 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                 65 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                 66 sound/isa/sb/sb_mixer.c 	val = (snd_sbmixer_read(sb, reg) >> shift) & mask;
sb                 67 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                 74 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                 83 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                 84 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, reg);
sb                 88 sound/isa/sb/sb_mixer.c 		snd_sbmixer_write(sb, reg, val);
sb                 89 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                110 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                119 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                120 sound/isa/sb/sb_mixer.c 	left = (snd_sbmixer_read(sb, left_reg) >> left_shift) & mask;
sb                121 sound/isa/sb/sb_mixer.c 	right = (snd_sbmixer_read(sb, right_reg) >> right_shift) & mask;
sb                122 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                130 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                142 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                144 sound/isa/sb/sb_mixer.c 		oleft = snd_sbmixer_read(sb, left_reg);
sb                148 sound/isa/sb/sb_mixer.c 			snd_sbmixer_write(sb, left_reg, left);
sb                150 sound/isa/sb/sb_mixer.c 		oleft = snd_sbmixer_read(sb, left_reg);
sb                151 sound/isa/sb/sb_mixer.c 		oright = snd_sbmixer_read(sb, right_reg);
sb                156 sound/isa/sb/sb_mixer.c 			snd_sbmixer_write(sb, left_reg, left);
sb                157 sound/isa/sb/sb_mixer.c 			snd_sbmixer_write(sb, right_reg, right);
sb                160 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                179 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                183 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                184 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, SB_DT019X_CAPTURE_SW);
sb                185 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                215 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                241 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                242 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, SB_DT019X_CAPTURE_SW);
sb                245 sound/isa/sb/sb_mixer.c 		snd_sbmixer_write(sb, SB_DT019X_CAPTURE_SW, nval);
sb                246 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                267 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                271 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                272 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, SB_ALS4000_MONO_IO_CTRL);
sb                273 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                285 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                292 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                293 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, SB_ALS4000_MONO_IO_CTRL);
sb                299 sound/isa/sb/sb_mixer.c 		snd_sbmixer_write(sb, SB_ALS4000_MONO_IO_CTRL, nval);
sb                300 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                320 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                324 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                325 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, SB_DSP_CAPTURE_SOURCE);
sb                326 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                343 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                361 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                362 sound/isa/sb/sb_mixer.c 	oval = snd_sbmixer_read(sb, SB_DSP_CAPTURE_SOURCE);
sb                366 sound/isa/sb/sb_mixer.c 		snd_sbmixer_write(sb, SB_DSP_CAPTURE_SOURCE, nval);
sb                367 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                386 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                394 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                395 sound/isa/sb/sb_mixer.c 	val1 = snd_sbmixer_read(sb, reg1);
sb                396 sound/isa/sb/sb_mixer.c 	val2 = snd_sbmixer_read(sb, reg2);
sb                397 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                407 sound/isa/sb/sb_mixer.c 	struct snd_sb *sb = snd_kcontrol_chip(kcontrol);
sb                416 sound/isa/sb/sb_mixer.c 	spin_lock_irqsave(&sb->mixer_lock, flags);
sb                417 sound/isa/sb/sb_mixer.c 	oval1 = snd_sbmixer_read(sb, reg1);
sb                418 sound/isa/sb/sb_mixer.c 	oval2 = snd_sbmixer_read(sb, reg2);
sb                427 sound/isa/sb/sb_mixer.c 		snd_sbmixer_write(sb, reg1, val1);
sb                428 sound/isa/sb/sb_mixer.c 		snd_sbmixer_write(sb, reg2, val2);
sb                430 sound/isa/sb/sb_mixer.c 	spin_unlock_irqrestore(&sb->mixer_lock, flags);
sb                211 sound/pci/als4000.c static inline void snd_als4k_gcr_write(struct snd_sb *sb,
sb                215 sound/pci/als4000.c 	snd_als4k_gcr_write_addr(sb->alt_port, reg, val);
sb                226 sound/pci/als4000.c static inline u32 snd_als4k_gcr_read(struct snd_sb *sb, enum als4k_gcr_t reg)
sb                228 sound/pci/als4000.c 	return snd_als4k_gcr_read_addr(sb->alt_port, reg);
sb                197 sound/pci/au88x0/au88x0.h static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb);
sb                203 sound/pci/au88x0/au88x0.h static void vortex_wtdma_setstartbuffer(vortex_t * vortex, int wtdma, int sb);
sb               1078 sound/pci/au88x0/au88x0_core.c static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb)
sb               1083 sound/pci/au88x0/au88x0_core.c 		sb << ((0xf - (adbdma & 0xf)) * 2));
sb               1084 sound/pci/au88x0/au88x0_core.c 	dma->period_real = dma->period_virt = sb;
sb               1357 sound/pci/au88x0/au88x0_core.c static void vortex_wtdma_setstartbuffer(vortex_t * vortex, int wtdma, int sb)
sb               1362 sound/pci/au88x0/au88x0_core.c 		sb << ((0xf - (wtdma & 0xf)) * 2));
sb               1363 sound/pci/au88x0/au88x0_core.c 	dma->period_real = dma->period_virt = sb;
sb                 56 sound/pci/cs5530.c 	struct snd_sb *sb;
sb                210 sound/pci/cs5530.c 						dma16, SB_HW_CS5530, &chip->sb);
sb                217 sound/pci/cs5530.c 	err = snd_sb16dsp_pcm(chip->sb, 0);
sb                224 sound/pci/cs5530.c 	err = snd_sbmixer_new(chip->sb);
sb                384 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb;
sb                401 sound/soc/intel/skylake/skl-topology.c 			sb = (void *) k->private_value;
sb                402 sound/soc/intel/skylake/skl-topology.c 			bc = (struct skl_algo_data *)sb->dobj.private;
sb                426 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb;
sb                434 sound/soc/intel/skylake/skl-topology.c 			sb = (struct soc_bytes_ext *)k->private_value;
sb                435 sound/soc/intel/skylake/skl-topology.c 			bc = (struct skl_algo_data *)sb->dobj.private;
sb                744 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb;
sb                776 sound/soc/intel/skylake/skl-topology.c 			sb = (void *) k->private_value;
sb                777 sound/soc/intel/skylake/skl-topology.c 			bc = (struct skl_algo_data *)sb->dobj.private;
sb                815 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb = (void *) k->private_value;
sb                816 sound/soc/intel/skylake/skl-topology.c 	struct skl_algo_data *bc = (struct skl_algo_data *)sb->dobj.private;
sb               1320 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb =
sb               1322 sound/soc/intel/skylake/skl-topology.c 	struct skl_algo_data *bc = (struct skl_algo_data *)sb->dobj.private;
sb               1357 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb =
sb               1359 sound/soc/intel/skylake/skl-topology.c 	struct skl_algo_data *ac = (struct skl_algo_data *)sb->dobj.private;
sb               2995 sound/soc/intel/skylake/skl-topology.c 	struct soc_bytes_ext *sb;
sb               3006 sound/soc/intel/skylake/skl-topology.c 			sb = (struct soc_bytes_ext *)kctl->private_value;
sb               3009 sound/soc/intel/skylake/skl-topology.c 						bus->dev, sb, tplg_bc);
sb                417 sound/soc/soc-topology.c 	struct soc_bytes_ext *sb =
sb                428 sound/soc/soc-topology.c 	kfree(sb);
sb                946 tools/bpf/bpf_dbg.c 	struct stat sb;
sb                955 tools/bpf/bpf_dbg.c 	ret = fstat(pcap_fd, &sb);
sb                961 tools/bpf/bpf_dbg.c 	if (!S_ISREG(sb.st_mode)) {
sb                966 tools/bpf/bpf_dbg.c 	pcap_map_size = sb.st_size;
sb                258 tools/bpf/bpftool/cgroup.c static int do_show_tree_fn(const char *fpath, const struct stat *sb,
sb                150 tools/bpf/bpftool/perf.c static int show_proc(const char *fpath, const struct stat *sb,
sb                116 tools/hv/hv_vss_daemon.c 	struct stat sb;
sb                140 tools/hv/hv_vss_daemon.c 		if (stat(ent->mnt_fsname, &sb)) {
sb                145 tools/hv/hv_vss_daemon.c 				major(sb.st_rdev), minor(sb.st_rdev));
sb                786 tools/lib/subcmd/parse-options.c 	int sa = tolower(a->short_name), sb = tolower(b->short_name), ret;
sb                790 tools/lib/subcmd/parse-options.c 	if (sb == 0)
sb                791 tools/lib/subcmd/parse-options.c 		sb = 'z' + 1;
sb                793 tools/lib/subcmd/parse-options.c 	ret = sa - sb;
sb                928 tools/perf/pmu-events/jevents.c static int preprocess_arch_std_files(const char *fpath, const struct stat *sb,
sb                935 tools/perf/pmu-events/jevents.c 		return json_events(fpath, save_arch_std_events, (void *)sb);
sb                940 tools/perf/pmu-events/jevents.c static int process_one_file(const char *fpath, const struct stat *sb,
sb                967 tools/perf/pmu-events/jevents.c 		 level, sb->st_size, bname, fpath);
sb               2199 tools/perf/util/header.c 	struct strbuf sb;
sb               2214 tools/perf/util/header.c 	if (strbuf_init(&sb, 128) < 0)
sb               2223 tools/perf/util/header.c 		if (strbuf_add(&sb, str, strlen(str) + 1) < 0)
sb               2228 tools/perf/util/header.c 	ph->env.sibling_cores = strbuf_detach(&sb, NULL);
sb               2242 tools/perf/util/header.c 		if (strbuf_add(&sb, str, strlen(str) + 1) < 0)
sb               2247 tools/perf/util/header.c 	ph->env.sibling_threads = strbuf_detach(&sb, NULL);
sb               2306 tools/perf/util/header.c 		if (strbuf_add(&sb, str, strlen(str) + 1) < 0)
sb               2311 tools/perf/util/header.c 	ph->env.sibling_dies = strbuf_detach(&sb, NULL);
sb               2323 tools/perf/util/header.c 	strbuf_release(&sb);
sb               2380 tools/perf/util/header.c 	struct strbuf sb;
sb               2391 tools/perf/util/header.c 	if (strbuf_init(&sb, 128) < 0)
sb               2402 tools/perf/util/header.c 		if (strbuf_addf(&sb, "%u:%s", type, name) < 0)
sb               2405 tools/perf/util/header.c 		if (strbuf_add(&sb, "", 1) < 0)
sb               2414 tools/perf/util/header.c 	ff->ph->env.pmu_mappings = strbuf_detach(&sb, NULL);
sb               2418 tools/perf/util/header.c 	strbuf_release(&sb);
sb               3117 tools/perf/util/sort.c static void add_key(struct strbuf *sb, const char *str, int *llen)
sb               3120 tools/perf/util/sort.c 		strbuf_addstr(sb, "\n\t\t\t ");
sb               3123 tools/perf/util/sort.c 	strbuf_addf(sb, " %s", str);
sb               3127 tools/perf/util/sort.c static void add_sort_string(struct strbuf *sb, struct sort_dimension *s, int n,
sb               3133 tools/perf/util/sort.c 		add_key(sb, s[i].name, llen);
sb               3136 tools/perf/util/sort.c static void add_hpp_sort_string(struct strbuf *sb, struct hpp_dimension *s, int n,
sb               3142 tools/perf/util/sort.c 		add_key(sb, s[i].name, llen);
sb               3147 tools/perf/util/sort.c 	struct strbuf sb;
sb               3151 tools/perf/util/sort.c 	strbuf_init(&sb, 300);
sb               3152 tools/perf/util/sort.c 	strbuf_addstr(&sb, prefix);
sb               3153 tools/perf/util/sort.c 	add_hpp_sort_string(&sb, hpp_sort_dimensions,
sb               3155 tools/perf/util/sort.c 	add_sort_string(&sb, common_sort_dimensions,
sb               3157 tools/perf/util/sort.c 	add_sort_string(&sb, bstack_sort_dimensions,
sb               3159 tools/perf/util/sort.c 	add_sort_string(&sb, memory_sort_dimensions,
sb               3161 tools/perf/util/sort.c 	s = strbuf_detach(&sb, NULL);
sb               3162 tools/perf/util/sort.c 	strbuf_release(&sb);
sb                 20 tools/perf/util/strbuf.c int strbuf_init(struct strbuf *sb, ssize_t hint)
sb                 22 tools/perf/util/strbuf.c 	sb->alloc = sb->len = 0;
sb                 23 tools/perf/util/strbuf.c 	sb->buf = strbuf_slopbuf;
sb                 25 tools/perf/util/strbuf.c 		return strbuf_grow(sb, hint);
sb                 29 tools/perf/util/strbuf.c void strbuf_release(struct strbuf *sb)
sb                 31 tools/perf/util/strbuf.c 	if (sb->alloc) {
sb                 32 tools/perf/util/strbuf.c 		zfree(&sb->buf);
sb                 33 tools/perf/util/strbuf.c 		strbuf_init(sb, 0);
sb                 37 tools/perf/util/strbuf.c char *strbuf_detach(struct strbuf *sb, size_t *sz)
sb                 39 tools/perf/util/strbuf.c 	char *res = sb->alloc ? sb->buf : NULL;
sb                 41 tools/perf/util/strbuf.c 		*sz = sb->len;
sb                 42 tools/perf/util/strbuf.c 	strbuf_init(sb, 0);
sb                 46 tools/perf/util/strbuf.c int strbuf_grow(struct strbuf *sb, size_t extra)
sb                 49 tools/perf/util/strbuf.c 	size_t nr = sb->len + extra + 1;
sb                 51 tools/perf/util/strbuf.c 	if (nr < sb->alloc)
sb                 54 tools/perf/util/strbuf.c 	if (nr <= sb->len)
sb                 57 tools/perf/util/strbuf.c 	if (alloc_nr(sb->alloc) > nr)
sb                 58 tools/perf/util/strbuf.c 		nr = alloc_nr(sb->alloc);
sb                 64 tools/perf/util/strbuf.c 	buf = realloc(sb->alloc ? sb->buf : NULL, nr * sizeof(*buf));
sb                 68 tools/perf/util/strbuf.c 	sb->buf = buf;
sb                 69 tools/perf/util/strbuf.c 	sb->alloc = nr;
sb                 73 tools/perf/util/strbuf.c int strbuf_addch(struct strbuf *sb, int c)
sb                 75 tools/perf/util/strbuf.c 	int ret = strbuf_grow(sb, 1);
sb                 79 tools/perf/util/strbuf.c 	sb->buf[sb->len++] = c;
sb                 80 tools/perf/util/strbuf.c 	sb->buf[sb->len] = '\0';
sb                 84 tools/perf/util/strbuf.c int strbuf_add(struct strbuf *sb, const void *data, size_t len)
sb                 86 tools/perf/util/strbuf.c 	int ret = strbuf_grow(sb, len);
sb                 90 tools/perf/util/strbuf.c 	memcpy(sb->buf + sb->len, data, len);
sb                 91 tools/perf/util/strbuf.c 	return strbuf_setlen(sb, sb->len + len);
sb                 94 tools/perf/util/strbuf.c static int strbuf_addv(struct strbuf *sb, const char *fmt, va_list ap)
sb                 99 tools/perf/util/strbuf.c 	if (!strbuf_avail(sb)) {
sb                100 tools/perf/util/strbuf.c 		ret = strbuf_grow(sb, 64);
sb                106 tools/perf/util/strbuf.c 	len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap);
sb                111 tools/perf/util/strbuf.c 	if (len > strbuf_avail(sb)) {
sb                112 tools/perf/util/strbuf.c 		ret = strbuf_grow(sb, len);
sb                117 tools/perf/util/strbuf.c 		len = vsnprintf(sb->buf + sb->len, sb->alloc - sb->len, fmt, ap_saved);
sb                118 tools/perf/util/strbuf.c 		if (len > strbuf_avail(sb)) {
sb                125 tools/perf/util/strbuf.c 	return strbuf_setlen(sb, sb->len + len);
sb                128 tools/perf/util/strbuf.c int strbuf_addf(struct strbuf *sb, const char *fmt, ...)
sb                134 tools/perf/util/strbuf.c 	ret = strbuf_addv(sb, fmt, ap);
sb                139 tools/perf/util/strbuf.c ssize_t strbuf_read(struct strbuf *sb, int fd, ssize_t hint)
sb                141 tools/perf/util/strbuf.c 	size_t oldlen = sb->len;
sb                142 tools/perf/util/strbuf.c 	size_t oldalloc = sb->alloc;
sb                145 tools/perf/util/strbuf.c 	ret = strbuf_grow(sb, hint ? hint : 8192);
sb                152 tools/perf/util/strbuf.c 		cnt = read(fd, sb->buf + sb->len, sb->alloc - sb->len - 1);
sb                155 tools/perf/util/strbuf.c 				strbuf_release(sb);
sb                157 tools/perf/util/strbuf.c 				strbuf_setlen(sb, oldlen);
sb                162 tools/perf/util/strbuf.c 		sb->len += cnt;
sb                163 tools/perf/util/strbuf.c 		ret = strbuf_grow(sb, 8192);
sb                168 tools/perf/util/strbuf.c 	sb->buf[sb->len] = '\0';
sb                169 tools/perf/util/strbuf.c 	return sb->len - oldlen;
sb                 64 tools/perf/util/strbuf.h static inline ssize_t strbuf_avail(const struct strbuf *sb) {
sb                 65 tools/perf/util/strbuf.h 	return sb->alloc ? sb->alloc - sb->len - 1 : 0;
sb                 70 tools/perf/util/strbuf.h static inline int strbuf_setlen(struct strbuf *sb, size_t len) {
sb                 71 tools/perf/util/strbuf.h 	if (!sb->alloc) {
sb                 72 tools/perf/util/strbuf.h 		int ret = strbuf_grow(sb, 0);
sb                 76 tools/perf/util/strbuf.h 	assert(len < sb->alloc);
sb                 77 tools/perf/util/strbuf.h 	sb->len = len;
sb                 78 tools/perf/util/strbuf.h 	sb->buf[len] = '\0';
sb                 83 tools/perf/util/strbuf.h int strbuf_addch(struct strbuf *sb, int c);
sb                 86 tools/perf/util/strbuf.h static inline int strbuf_addstr(struct strbuf *sb, const char *s) {
sb                 87 tools/perf/util/strbuf.h 	return strbuf_add(sb, s, strlen(s));
sb                 90 tools/perf/util/strbuf.h int strbuf_addf(struct strbuf *sb, const char *fmt, ...) __printf(2, 3);
sb               3144 tools/power/x86/turbostat/turbostat.c 	struct stat sb;
sb               3148 tools/power/x86/turbostat/turbostat.c 	if (stat(pathname, &sb))
sb               1254 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	struct stat sb;
sb               1258 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	if (stat(pathname, &sb))
sb                320 tools/spi/spidev_test.c 	struct stat sb;
sb                325 tools/spi/spidev_test.c 	if (stat(filename, &sb) == -1)
sb                332 tools/spi/spidev_test.c 	tx = malloc(sb.st_size);
sb                336 tools/spi/spidev_test.c 	rx = malloc(sb.st_size);
sb                340 tools/spi/spidev_test.c 	bytes = read(tx_fd, tx, sb.st_size);
sb                341 tools/spi/spidev_test.c 	if (bytes != sb.st_size)
sb                344 tools/spi/spidev_test.c 	transfer(fd, tx, rx, sb.st_size);
sb                233 tools/usb/testusb.c static int find_testdev(const char *name, const struct stat *sb, int flag)
sb                239 tools/usb/testusb.c 	(void)sb; /* unused */