/fs/hfs/ |
D | bnode.c | 19 int off, int len) in hfs_bnode_read() argument 23 off += node->page_offset; in hfs_bnode_read() 26 memcpy(buf, kmap(page) + off, len); in hfs_bnode_read() 30 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 34 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 38 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 42 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 46 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 54 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key() 58 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key() [all …]
|
D | btree.c | 252 unsigned off; in hfs_bmap_alloc() local 267 off = off16; in hfs_bmap_alloc() 269 off += node->page_offset; in hfs_bmap_alloc() 270 pagep = node->page + (off >> PAGE_SHIFT); in hfs_bmap_alloc() 272 off &= ~PAGE_MASK; in hfs_bmap_alloc() 277 byte = data[off]; in hfs_bmap_alloc() 282 data[off] |= m; in hfs_bmap_alloc() 292 if (++off >= PAGE_SIZE) { in hfs_bmap_alloc() 295 off = 0; in hfs_bmap_alloc() 313 off = off16; in hfs_bmap_alloc() [all …]
|
D | bfind.c | 46 u16 off, len, keylen; in __hfs_brec_find() local 56 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 62 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find() 75 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find() 81 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find() 85 fd->keyoffset = off; in __hfs_brec_find() 87 fd->entryoffset = off + keylen; in __hfs_brec_find() 167 u16 off, len, keylen; in hfs_brec_goto() local 211 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto() 217 fd->keyoffset = off; in hfs_brec_goto() [all …]
|
D | mdb.c | 75 loff_t off; in hfs_mdb_get() local 175 off = (loff_t)block << HFS_SECTOR_SIZE_BITS; in hfs_mdb_get() 179 bh = sb_bread(sb, off >> sb->s_blocksize_bits); in hfs_mdb_get() 184 off2 = off & (sb->s_blocksize - 1); in hfs_mdb_get() 189 off += len; in hfs_mdb_get() 304 int off, size, len; in hfs_mdb_commit() local 307 off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); in hfs_mdb_commit() 317 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit() 320 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit() 326 off = 0; in hfs_mdb_commit()
|
/fs/hfsplus/ |
D | bnode.c | 22 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument 27 off += node->page_offset; in hfs_bnode_read() 28 pagep = node->page + (off >> PAGE_SHIFT); in hfs_bnode_read() 29 off &= ~PAGE_MASK; in hfs_bnode_read() 31 l = min_t(int, len, PAGE_SIZE - off); in hfs_bnode_read() 32 memcpy(buf, kmap(*pagep) + off, l); in hfs_bnode_read() 43 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 47 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 51 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 55 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() [all …]
|
D | btree.c | 378 unsigned off; in hfs_bmap_alloc() local 393 off = off16; in hfs_bmap_alloc() 395 off += node->page_offset; in hfs_bmap_alloc() 396 pagep = node->page + (off >> PAGE_SHIFT); in hfs_bmap_alloc() 398 off &= ~PAGE_MASK; in hfs_bmap_alloc() 403 byte = data[off]; in hfs_bmap_alloc() 408 data[off] |= m; in hfs_bmap_alloc() 419 if (++off >= PAGE_SIZE) { in hfs_bmap_alloc() 422 off = 0; in hfs_bmap_alloc() 440 off = off16; in hfs_bmap_alloc() [all …]
|
D | bfind.c | 117 u16 off, len, keylen; in __hfs_brec_find() local 128 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 134 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find() 142 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find() 148 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find() 153 fd->keyoffset = off; in __hfs_brec_find() 155 fd->entryoffset = off + keylen; in __hfs_brec_find() 236 u16 off, len, keylen; in hfs_brec_goto() local 280 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto() 286 fd->keyoffset = off; in hfs_brec_goto() [all …]
|
D | unicode.c | 278 int off; in decompose_unichar() local 280 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; in decompose_unichar() 281 if (off == 0 || off == 0xffff) in decompose_unichar() 284 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; in decompose_unichar() 285 if (!off) in decompose_unichar() 288 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; in decompose_unichar() 289 if (!off) in decompose_unichar() 292 off = hfsplus_decompose_table[off + (uc & 0xf)]; in decompose_unichar() 293 *size = off & 3; in decompose_unichar() 296 return hfsplus_decompose_table + (off / 4); in decompose_unichar()
|
D | hfsplus_fs.h | 405 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len); 406 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off); 407 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off); 408 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off); 409 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len); 410 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data); 411 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len); 427 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off);
|
D | catalog.c | 336 int err, off; in hfsplus_delete_cat() local 360 off = fd.entryoffset + in hfsplus_delete_cat() 364 &fd.search_key->cat.name.length, off, 2); in hfsplus_delete_cat() 368 off + 2, len); in hfsplus_delete_cat() 383 off = fd.entryoffset + offsetof(hfsplus_cat_file, data_fork); in hfsplus_delete_cat() 384 hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); in hfsplus_delete_cat() 388 off = fd.entryoffset + in hfsplus_delete_cat() 390 hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); in hfsplus_delete_cat()
|
/fs/cifs/ |
D | cifs_dfs_ref.c | 149 int off, noff; in cifs_compose_mount_options() local 189 off = 0; in cifs_compose_mount_options() 193 off += 5; in cifs_compose_mount_options() 197 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options() 199 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options() 201 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options() 203 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options() 204 off += noff; in cifs_compose_mount_options() 207 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options() 208 off += noff; in cifs_compose_mount_options() [all …]
|
D | smb2misc.c | 272 smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *hdr) in smb2_get_data_area_len() argument 275 *off = 0; in smb2_get_data_area_len() 291 *off = le16_to_cpu( in smb2_get_data_area_len() 297 *off = le16_to_cpu( in smb2_get_data_area_len() 303 *off = le32_to_cpu( in smb2_get_data_area_len() 309 *off = le16_to_cpu( in smb2_get_data_area_len() 315 *off = ((struct smb2_read_rsp *)hdr)->DataOffset; in smb2_get_data_area_len() 319 *off = le16_to_cpu( in smb2_get_data_area_len() 325 *off = le32_to_cpu( in smb2_get_data_area_len() 340 if (*off > 4096) { in smb2_get_data_area_len() [all …]
|
/fs/freevxfs/ |
D | vxfs_bmap.c | 140 int64_t off; in vxfs_bmap_indir() local 149 off = fs64_to_cpu(sbi, typ->vt_hdr) & VXFS_TYPED_OFFSETMASK; in vxfs_bmap_indir() 151 if (block < off) { in vxfs_bmap_indir() 162 block - off); in vxfs_bmap_indir() 167 if ((block - off) >= fs32_to_cpu(sbi, typ->vt_size)) in vxfs_bmap_indir() 169 pblock = fs32_to_cpu(sbi, typ->vt_block) + block - off; in vxfs_bmap_indir() 220 int64_t off = (hdr & VXFS_TYPED_OFFSETMASK); in vxfs_bmap_typed() local 225 if (iblock < off) in vxfs_bmap_typed() 232 iblock - off); in vxfs_bmap_typed() 237 if ((iblock - off) < fs32_to_cpu(sbi, typ->vt_size)) in vxfs_bmap_typed() [all …]
|
/fs/btrfs/ |
D | struct-funcs.c | 54 const void *ptr, unsigned long off, \ 58 unsigned long offset = part_offset + off; \ 72 res = get_unaligned_le##bits(p + off); \ 84 res = get_unaligned_le##bits(p + off); \ 93 const void *ptr, unsigned long off, \ 98 unsigned long offset = part_offset + off; \ 111 put_unaligned_le##bits(val, p + off); \ 124 put_unaligned_le##bits(val, p + off); \
|
D | ioctl.c | 91 u64 off, u64 olen, u64 olen_aligned, u64 destoff, 923 u64 *off, u32 thresh) in find_new_extents() argument 939 min_key.offset = *off; in find_new_extents() 959 *off = min_key.offset; in find_new_extents() 2893 int num_pages, u64 off) in gather_extent_pages() argument 2896 pgoff_t index = off >> PAGE_SHIFT; in gather_extent_pages() 2913 static int lock_extent_range(struct inode *inode, u64 off, u64 len, in lock_extent_range() argument 2926 lock_extent(&BTRFS_I(inode)->io_tree, off, off + len - 1); in lock_extent_range() 2928 off + len - 1); in lock_extent_range() 2930 ordered->file_offset + ordered->len <= off || in lock_extent_range() [all …]
|
/fs/xfs/ |
D | xfs_stats.h | 214 #define XFS_STATS_INC_OFF(mp, off) \ argument 216 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]++; \ 217 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]++; \ 220 #define XFS_STATS_DEC_OFF(mp, off) \ argument 222 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]; \ 223 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]; \ 226 #define XFS_STATS_ADD_OFF(mp, off, inc) \ argument 228 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off] += (inc); \ 229 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off] += (inc); \
|
/fs/overlayfs/ |
D | Kconfig | 19 still possible to turn off redirects globally with the 20 "redirect_dir=off" module option or on a filesystem instance basis 21 with the "redirect_dir=off" mount option. 33 In this case it is still possible to turn off index globally with the 34 "index=off" module option or on a filesystem instance basis with the 35 "index=off" mount option.
|
/fs/pstore/ |
D | inode.c | 55 size_t off; member 81 data->off = ps->total_size % REC_SIZE; in pstore_ftrace_seq_start() 82 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start() 83 if (data->off + REC_SIZE > ps->total_size) { in pstore_ftrace_seq_start() 102 data->off += REC_SIZE; in pstore_ftrace_seq_next() 103 if (data->off + REC_SIZE > ps->total_size) in pstore_ftrace_seq_next() 116 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show() 166 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument 171 return seq_lseek(file, off, whence); in pstore_file_llseek() 172 return default_llseek(file, off, whence); in pstore_file_llseek()
|
/fs/f2fs/ |
D | gc.c | 498 int off; in gc_node_segment() local 511 for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { in gc_node_segment() 521 if (check_valid_map(sbi, segno, off) == 0) in gc_node_segment() 541 if (check_valid_map(sbi, segno, off) == 0) { in gc_node_segment() 551 if (ni.blk_addr != start_addr + off) { in gc_node_segment() 712 int gc_type, unsigned int segno, int off) in move_data_block() argument 738 if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { in move_data_block() 876 unsigned int segno, int off) in move_data_page() argument 885 if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { in move_data_page() 966 int off; in gc_data_segment() local [all …]
|
D | node.h | 360 static inline int set_nid(struct page *p, int off, nid_t nid, bool i) in set_nid() argument 367 rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); in set_nid() 369 rn->in.nid[off] = cpu_to_le32(nid); in set_nid() 373 static inline nid_t get_nid(struct page *p, int off, bool i) in get_nid() argument 378 return le32_to_cpu(rn->i.i_nid[off - NODE_DIR1_BLOCK]); in get_nid() 379 return le32_to_cpu(rn->in.nid[off]); in get_nid()
|
/fs/ceph/ |
D | addr.c | 193 u64 off = page_offset(page); in ceph_do_readpage() local 196 if (off >= i_size_read(inode)) { in ceph_do_readpage() 207 if (off == 0) in ceph_do_readpage() 221 off, &len, in ceph_do_readpage() 310 u64 off; in start_read() local 343 off = (u64) page_offset(page); in start_read() 357 off, len); in start_read() 359 req = ceph_osdc_new_request(osdc, &ci->i_layout, vino, off, &len, in start_read() 403 dout("start_read %p starting %p %lld~%lld\n", inode, req, off, len); in start_read() 1430 loff_t off = vmf->pgoff << PAGE_SHIFT; in ceph_filemap_fault() local [all …]
|
/fs/squashfs/ |
D | namei.c | 213 unsigned int blk, off, ino_num; in squashfs_lookup() local 216 off = le16_to_cpu(dire->offset); in squashfs_lookup() 219 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup() 223 blk, off, ino_num); in squashfs_lookup()
|
/fs/befs/ |
D | btree.c | 194 uint off = 0; in befs_bt_read_node() local 201 node->bh = befs_read_datastream(sb, ds, node_off, &off); in befs_bt_read_node() 210 (befs_btree_nodehead *) ((void *) node->bh->b_data + off); in befs_bt_read_node() 625 unsigned long int off = in befs_bt_keylen_index() local 627 ulong tmp = off % keylen_align; in befs_bt_keylen_index() 630 off += keylen_align - tmp; in befs_bt_keylen_index() 632 return (fs16 *) ((void *) node->od_node + off); in befs_bt_keylen_index()
|
/fs/jfs/ |
D | super.c | 763 size_t len, loff_t off) in jfs_quota_read() argument 766 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read() 768 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read() 775 if (off > i_size) in jfs_quota_read() 777 if (off+len > i_size) in jfs_quota_read() 778 len = i_size-off; in jfs_quota_read() 808 const char *data, size_t len, loff_t off) in jfs_quota_write() argument 811 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write() 813 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write() 854 if (inode->i_size < off+len-towrite) in jfs_quota_write() [all …]
|
/fs/bfs/ |
D | dir.c | 286 int block, sblock, eblock, off, pos; in bfs_add_entry() local 302 for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { in bfs_add_entry() 303 de = (struct bfs_dirent *)(bh->b_data + off); in bfs_add_entry() 305 pos = (block - sblock) * BFS_BSIZE + off; in bfs_add_entry()
|