/fs/ntfs/ |
D | mst.c | 42 int post_read_mst_fixup(NTFS_RECORD *b, const u32 size) in post_read_mst_fixup() argument 48 usa_ofs = le16_to_cpu(b->usa_ofs); in post_read_mst_fixup() 50 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup() 58 usa_pos = (u16*)b + usa_ofs/sizeof(u16); in post_read_mst_fixup() 70 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup() 81 b->magic = magic_BAAD; in post_read_mst_fixup() 87 usa_count = le16_to_cpu(b->usa_count) - 1; in post_read_mst_fixup() 88 data_pos = (u16*)b + NTFS_BLOCK_SIZE/sizeof(u16) - 1; in post_read_mst_fixup() 123 int pre_write_mst_fixup(NTFS_RECORD *b, const u32 size) in pre_write_mst_fixup() argument 130 if (!b || ntfs_is_baad_record(b->magic) || in pre_write_mst_fixup() [all …]
|
/fs/xfs/ |
D | xfs_linux.h | 154 #define MIN(a,b) (min(a,b)) argument 155 #define MAX(a,b) (max(a,b)) argument 221 static inline __u32 xfs_do_div(void *a, __u32 b, int n) in xfs_do_div() argument 227 mod = *(__u32 *)a % b; in xfs_do_div() 228 *(__u32 *)a = *(__u32 *)a / b; in xfs_do_div() 237 __upper = __high % (b); in xfs_do_div() 238 __high = __high / (b); in xfs_do_div() 240 asm("divl %2":"=a" (__low), "=d" (__mod):"rm" (b), "0" (__low), "1" (__upper)); in xfs_do_div() 252 static inline __u32 xfs_do_mod(void *a, __u32 b, int n) in xfs_do_mod() argument 256 return *(__u32 *)a % b; in xfs_do_mod() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_rtbitmap.c | 90 xfs_rtword_t *b; /* current word in buffer */ in xfs_rtfind_back() local 117 b = &bufp[word]; in xfs_rtfind_back() 124 want = (*b & ((xfs_rtword_t)1 << bit)) ? -1 : 0; in xfs_rtfind_back() 141 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() 166 b = &bufp[word]; in xfs_rtfind_back() 171 b--; in xfs_rtfind_back() 187 if ((wdiff = *b ^ want)) { in xfs_rtfind_back() 212 b = &bufp[word]; in xfs_rtfind_back() 217 b--; in xfs_rtfind_back() 234 if ((wdiff = (*b ^ want) & mask)) { in xfs_rtfind_back() [all …]
|
D | xfs_bmap_btree.c | 406 cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor() 412 new->bc_private.b.firstblock = cur->bc_private.b.firstblock; in xfs_bmbt_dup_cursor() 413 new->bc_private.b.flist = cur->bc_private.b.flist; in xfs_bmbt_dup_cursor() 414 new->bc_private.b.flags = cur->bc_private.b.flags; in xfs_bmbt_dup_cursor() 424 ASSERT((dst->bc_private.b.firstblock != NULLFSBLOCK) || in xfs_bmbt_update_cursor() 425 (dst->bc_private.b.ip->i_d.di_flags & XFS_DIFLAG_REALTIME)); in xfs_bmbt_update_cursor() 426 ASSERT(dst->bc_private.b.flist == src->bc_private.b.flist); in xfs_bmbt_update_cursor() 428 dst->bc_private.b.allocated += src->bc_private.b.allocated; in xfs_bmbt_update_cursor() 429 dst->bc_private.b.firstblock = src->bc_private.b.firstblock; in xfs_bmbt_update_cursor() 431 src->bc_private.b.allocated = 0; in xfs_bmbt_update_cursor() [all …]
|
D | xfs_btree.h | 207 xfs_bmbt_irec_t b; member 232 } b; member 443 #define XFS_EXTLEN_MIN(a,b) min_t(xfs_extlen_t, (a), (b)) argument 444 #define XFS_EXTLEN_MAX(a,b) max_t(xfs_extlen_t, (a), (b)) argument 445 #define XFS_AGBLOCK_MIN(a,b) min_t(xfs_agblock_t, (a), (b)) argument 446 #define XFS_AGBLOCK_MAX(a,b) max_t(xfs_agblock_t, (a), (b)) argument 447 #define XFS_FILEOFF_MIN(a,b) min_t(xfs_fileoff_t, (a), (b)) argument 448 #define XFS_FILEOFF_MAX(a,b) max_t(xfs_fileoff_t, (a), (b)) argument 449 #define XFS_FILBLKS_MIN(a,b) min_t(xfs_filblks_t, (a), (b)) argument 450 #define XFS_FILBLKS_MAX(a,b) max_t(xfs_filblks_t, (a), (b)) argument [all …]
|
D | xfs_trans_space.h | 27 #define XFS_NEXTENTADD_SPACE_RES(mp,b,w)\ argument 28 (((b + XFS_MAX_CONTIG_EXTENTS_PER_BLOCK(mp) - 1) / \ 71 #define XFS_GROWFSRT_SPACE_RES(mp,b) \ argument 72 ((b) + XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK)) 86 #define XFS_SYMLINK_SPACE_RES(mp,nl,b) \ argument 87 (XFS_IALLOC_SPACE_RES(mp) + XFS_DIRENTER_SPACE_RES(mp,nl) + (b))
|
/fs/jfs/ |
D | jfs_dmap.h | 85 #define BLKTODMAP(b,s) \ argument 86 ((((b) >> 13) + ((b) >> 23) + ((b) >> 33) + 3 + 1) << (s)) 100 #define BLKTOL0(b,s) \ argument 101 (((((b) >> 23) << 10) + ((b) >> 23) + ((b) >> 33) + 2 + 1) << (s)) 115 #define BLKTOL1(b,s) \ argument 116 (((((b) >> 33) << 20) + (((b) >> 33) << 10) + ((b) >> 33) + 1 + 1) << (s)) 122 #define BLKTOCTL(b,s,l) \ argument 123 (((l) == 2) ? 1 : ((l) == 1) ? BLKTOL1((b),(s)) : BLKTOL0((b),(s))) 134 #define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size)) argument 281 #define LITOL2BSZ(n,m,b) ((((n) == 0) ? (m) : cnttz((n))) + (b)) argument [all …]
|
/fs/ubifs/ |
D | replay.c | 97 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() argument 104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops() 111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 131 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops() 133 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum, in set_bud_lprops() 145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops() 146 b->dirty); in set_bud_lprops() 148 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops() 156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops() 157 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops() [all …]
|
/fs/nfs/blocklayout/ |
D | dev.c | 40 nfs4_block_decode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfs4_block_decode_volume() argument 48 b->type = be32_to_cpup(p++); in nfs4_block_decode_volume() 50 switch (b->type) { in nfs4_block_decode_volume() 55 b->simple.nr_sigs = be32_to_cpup(p++); in nfs4_block_decode_volume() 56 if (!b->simple.nr_sigs) { in nfs4_block_decode_volume() 61 b->simple.len = 4 + 4; in nfs4_block_decode_volume() 62 for (i = 0; i < b->simple.nr_sigs; i++) { in nfs4_block_decode_volume() 66 p = xdr_decode_hyper(p, &b->simple.sigs[i].offset); in nfs4_block_decode_volume() 67 b->simple.sigs[i].sig_len = be32_to_cpup(p++); in nfs4_block_decode_volume() 68 if (b->simple.sigs[i].sig_len > PNFS_BLOCK_UUID_LEN) { in nfs4_block_decode_volume() [all …]
|
D | rpc_pipefs.c | 38 nfs4_encode_simple(__be32 *p, struct pnfs_block_volume *b) in nfs4_encode_simple() argument 43 *p++ = cpu_to_be32(b->type); in nfs4_encode_simple() 44 *p++ = cpu_to_be32(b->simple.nr_sigs); in nfs4_encode_simple() 45 for (i = 0; i < b->simple.nr_sigs; i++) { in nfs4_encode_simple() 46 p = xdr_encode_hyper(p, b->simple.sigs[i].offset); in nfs4_encode_simple() 47 p = xdr_encode_opaque(p, b->simple.sigs[i].sig, in nfs4_encode_simple() 48 b->simple.sigs[i].sig_len); in nfs4_encode_simple() 53 bl_resolve_deviceid(struct nfs_server *server, struct pnfs_block_volume *b, in bl_resolve_deviceid() argument 71 b->simple.len += 4; /* single volume */ in bl_resolve_deviceid() 72 if (b->simple.len > PAGE_SIZE) in bl_resolve_deviceid() [all …]
|
/fs/efivarfs/ |
D | inode.c | 87 guid->b[0] = hex_to_bin(str[6]) << 4 | hex_to_bin(str[7]); in efivarfs_hex_to_guid() 88 guid->b[1] = hex_to_bin(str[4]) << 4 | hex_to_bin(str[5]); in efivarfs_hex_to_guid() 89 guid->b[2] = hex_to_bin(str[2]) << 4 | hex_to_bin(str[3]); in efivarfs_hex_to_guid() 90 guid->b[3] = hex_to_bin(str[0]) << 4 | hex_to_bin(str[1]); in efivarfs_hex_to_guid() 91 guid->b[4] = hex_to_bin(str[11]) << 4 | hex_to_bin(str[12]); in efivarfs_hex_to_guid() 92 guid->b[5] = hex_to_bin(str[9]) << 4 | hex_to_bin(str[10]); in efivarfs_hex_to_guid() 93 guid->b[6] = hex_to_bin(str[16]) << 4 | hex_to_bin(str[17]); in efivarfs_hex_to_guid() 94 guid->b[7] = hex_to_bin(str[14]) << 4 | hex_to_bin(str[15]); in efivarfs_hex_to_guid() 95 guid->b[8] = hex_to_bin(str[19]) << 4 | hex_to_bin(str[20]); in efivarfs_hex_to_guid() 96 guid->b[9] = hex_to_bin(str[21]) << 4 | hex_to_bin(str[22]); in efivarfs_hex_to_guid() [all …]
|
/fs/nfsd/ |
D | nfscache.c | 149 nfsd_reply_cache_free(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in nfsd_reply_cache_free() argument 151 spin_lock(&b->cache_lock); in nfsd_reply_cache_free() 153 spin_unlock(&b->cache_lock); in nfsd_reply_cache_free() 220 lru_put_end(struct nfsd_drc_bucket *b, struct svc_cacherep *rp) in lru_put_end() argument 223 list_move_tail(&rp->c_lru, &b->lru_head); in lru_put_end() 227 prune_bucket(struct nfsd_drc_bucket *b) in prune_bucket() argument 232 list_for_each_entry_safe(rp, tmp, &b->lru_head, c_lru) { in prune_bucket() 259 struct nfsd_drc_bucket *b = &drc_hashtbl[i]; in prune_cache_entries() local 261 if (list_empty(&b->lru_head)) in prune_cache_entries() 263 spin_lock(&b->cache_lock); in prune_cache_entries() [all …]
|
D | blocklayoutxdr.c | 18 struct pnfs_block_extent *b = lgp->lg_content; in nfsd4_block_encode_layoutget() local 29 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget() 31 p = xdr_encode_hyper(p, b->foff); in nfsd4_block_encode_layoutget() 32 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget() 33 p = xdr_encode_hyper(p, b->soff); in nfsd4_block_encode_layoutget() 34 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget() 39 nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfsd4_block_encode_volume() argument 44 switch (b->type) { in nfsd4_block_encode_volume() 46 len = 4 + 4 + 8 + 4 + b->simple.sig_len; in nfsd4_block_encode_volume() 51 *p++ = cpu_to_be32(b->type); in nfsd4_block_encode_volume() [all …]
|
D | blocklayout.c | 21 struct pnfs_block_volume *b; in nfsd4_block_get_device_info_simple() local 30 b = &dev->volumes[0]; in nfsd4_block_get_device_info_simple() 32 b->type = PNFS_BLOCK_VOLUME_SIMPLE; in nfsd4_block_get_device_info_simple() 33 b->simple.sig_len = PNFS_BLOCK_UUID_LEN; in nfsd4_block_get_device_info_simple() 34 return sb->s_export_op->get_uuid(sb, b->simple.sig, &b->simple.sig_len, in nfsd4_block_get_device_info_simple() 35 &b->simple.offset); in nfsd4_block_get_device_info_simple()
|
/fs/ocfs2/ |
D | blockcheck.c | 66 unsigned int b, p = 0; in calc_code_bit() local 72 b = i + 1; in calc_code_bit() 77 b += p; in calc_code_bit() 87 for (; (1 << p) < (b + 1); p++) in calc_code_bit() 88 b++; in calc_code_bit() 93 return b; in calc_code_bit() 109 unsigned int i, b, p = 0; in ocfs2_hamming_encode() local 128 b = calc_code_bit(nr + i, &p); in ocfs2_hamming_encode() 146 parity ^= b; in ocfs2_hamming_encode() 169 unsigned int i, b; in ocfs2_hamming_fix() local [all …]
|
/fs/reiserfs/ |
D | hashes.c | 36 b0 += ((b1 << 4)+a) ^ (b1+sum) ^ ((b1 >> 5)+b); \ 49 u32 a, b, c, d; in keyed_hash() local 61 b = (u32) msg[4] | in keyed_hash() 79 b = (u32) msg[4] | in keyed_hash() 93 b = (u32) msg[4] | in keyed_hash() 105 b = c = d = pad; in keyed_hash() 107 b <<= 8; in keyed_hash() 108 b |= msg[i]; in keyed_hash() 111 a = b = c = d = pad; in keyed_hash()
|
D | procfs.c | 306 char b[BDEVNAME_SIZE]; in show_journal() local 351 bdevname(SB_JOURNAL(sb)->j_dev_bd, b), in show_journal() 418 char b[BDEVNAME_SIZE]; in reiserfs_proc_info_init() local 422 strlcpy(b, sb->s_id, BDEVNAME_SIZE); in reiserfs_proc_info_init() 423 s = strchr(b, '/'); in reiserfs_proc_info_init() 428 REISERFS_SB(sb)->procdir = proc_mkdir_data(b, 0, proc_info_root, sb); in reiserfs_proc_info_init() 440 proc_info_root_name, b); in reiserfs_proc_info_init() 448 char b[BDEVNAME_SIZE]; in reiserfs_proc_info_done() local 452 strlcpy(b, sb->s_id, BDEVNAME_SIZE); in reiserfs_proc_info_done() 453 s = strchr(b, '/'); in reiserfs_proc_info_done() [all …]
|
/fs/jffs2/ |
D | summary.h | 201 #define jffs2_sum_add_kvec(a,b,c,d) (0) argument 202 #define jffs2_sum_move_collected(a,b) argument 204 #define jffs2_sum_add_padding_mem(a,b) argument 205 #define jffs2_sum_add_inode_mem(a,b,c) argument 206 #define jffs2_sum_add_dirent_mem(a,b,c) argument 207 #define jffs2_sum_add_xattr_mem(a,b,c) argument 208 #define jffs2_sum_add_xref_mem(a,b,c) argument 209 #define jffs2_sum_scan_sumnode(a,b,c,d,e) (0) argument
|
/fs/squashfs/ |
D | block.c | 261 int b = 0, prev_block = 0; in squashfs_bio_submit() local 282 for (b = 0; b < nr_buffers; ++b, offset += blksz) { in squashfs_bio_submit() 283 bh = req->bh[b]; in squashfs_bio_submit() 293 if (bio && bio_req && prev_block + 1 == b) { in squashfs_bio_submit() 296 prev_block = b; in squashfs_bio_submit() 308 bio_req->bh = &req->bh[b]; in squashfs_bio_submit() 313 bio->bi_iter.bi_sector = (block + b) in squashfs_bio_submit() 320 prev_block = b; in squashfs_bio_submit() 337 while (--nr_buffers >= b) in squashfs_bio_submit() 340 while (--b >= 0) in squashfs_bio_submit() [all …]
|
D | page_actor.c | 80 int bytes = 0, pgoff = 0, b = 0, p = 0, avail, i; in squashfs_bh_to_actor() local 88 memcpy(kaddr + pgoff, bh[b]->b_data + offset, in squashfs_bh_to_actor() 94 put_bh(bh[b]); in squashfs_bh_to_actor() 95 ++b; in squashfs_bh_to_actor() 102 if (bh[b]) in squashfs_bh_to_actor() 103 put_bh(bh[b]); in squashfs_bh_to_actor() 104 ++b; in squashfs_bh_to_actor()
|
D | zlib_wrapper.c | 66 struct buffer_head **bh, int b, int offset, int length, in zlib_uncompress() argument 78 if (stream->avail_in == 0 && k < b) { in zlib_uncompress() 112 if (stream->avail_in == 0 && k < b) in zlib_uncompress() 125 if (k < b) in zlib_uncompress() 132 for (; k < b; k++) in zlib_uncompress()
|
/fs/fat/ |
D | inode.c | 573 struct fat_boot_sector *b; in fat_set_state() local 597 b = (struct fat_boot_sector *) bh->b_data; in fat_set_state() 601 b->fat32.state |= FAT_STATE_DIRTY; in fat_set_state() 603 b->fat32.state &= ~FAT_STATE_DIRTY; in fat_set_state() 606 b->fat16.state |= FAT_STATE_DIRTY; in fat_set_state() 608 b->fat16.state &= ~FAT_STATE_DIRTY; in fat_set_state() 1334 static bool fat_bpb_is_zero(struct fat_boot_sector *b) in fat_bpb_is_zero() argument 1336 if (get_unaligned_le16(&b->sector_size)) in fat_bpb_is_zero() 1338 if (b->sec_per_clus) in fat_bpb_is_zero() 1340 if (b->reserved) in fat_bpb_is_zero() [all …]
|
/fs/dlm/ |
D | dir.c | 66 char *b, *last_name = NULL; in dlm_recover_directory() local 104 b = ls->ls_recover_buf->rc_buf; in dlm_recover_directory() 115 memcpy(&v, b, sizeof(__be16)); in dlm_recover_directory() 117 b += sizeof(__be16); in dlm_recover_directory() 136 b, namelen, in dlm_recover_directory() 159 b, namelen); in dlm_recover_directory() 178 memcpy(last_name, b, namelen); in dlm_recover_directory() 179 b += namelen; in dlm_recover_directory()
|
D | lock.c | 546 uint32_t hash, uint32_t b, in find_rsb_dir() argument 594 spin_lock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir() 596 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in find_rsb_dir() 610 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in find_rsb_dir() 650 rb_erase(&r->res_hashnode, &ls->ls_rsbtbl[b].toss); in find_rsb_dir() 651 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir() 665 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir() 672 r->res_bucket = b; in find_rsb_dir() 712 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir() 714 spin_unlock(&ls->ls_rsbtbl[b].lock); in find_rsb_dir() [all …]
|
/fs/nfs_common/ |
D | nfsacl.c | 198 const struct posix_acl_entry *a = x, *b = y; in cmp_acl_entry() local 200 if (a->e_tag != b->e_tag) in cmp_acl_entry() 201 return a->e_tag - b->e_tag; in cmp_acl_entry() 202 else if ((a->e_tag == ACL_USER) && uid_gt(a->e_uid, b->e_uid)) in cmp_acl_entry() 204 else if ((a->e_tag == ACL_USER) && uid_lt(a->e_uid, b->e_uid)) in cmp_acl_entry() 206 else if ((a->e_tag == ACL_GROUP) && gid_gt(a->e_gid, b->e_gid)) in cmp_acl_entry() 208 else if ((a->e_tag == ACL_GROUP) && gid_lt(a->e_gid, b->e_gid)) in cmp_acl_entry()
|