Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 108) sorted by relevance

12345

/fs/hfs/
Dbnode.c19 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 …]
Dbtree.c252 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 …]
Dbfind.c46 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 …]
Dmdb.c75 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/
Dbnode.c22 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 …]
Dbtree.c378 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 …]
Dbfind.c117 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 …]
Dunicode.c278 int off; in hfsplus_decompose_nonhangul() local
280 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; in hfsplus_decompose_nonhangul()
281 if (off == 0 || off == 0xffff) in hfsplus_decompose_nonhangul()
284 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; in hfsplus_decompose_nonhangul()
285 if (!off) in hfsplus_decompose_nonhangul()
288 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; in hfsplus_decompose_nonhangul()
289 if (!off) in hfsplus_decompose_nonhangul()
292 off = hfsplus_decompose_table[off + (uc & 0xf)]; in hfsplus_decompose_nonhangul()
293 *size = off & 3; in hfsplus_decompose_nonhangul()
296 return hfsplus_decompose_table + (off / 4); in hfsplus_decompose_nonhangul()
Dhfsplus_fs.h404 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len);
405 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off);
406 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off);
407 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off);
408 void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len);
409 void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data);
410 void hfs_bnode_clear(struct hfs_bnode *node, int off, int len);
426 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off);
/fs/btrfs/
Dstruct-funcs.c42 const void *ptr, unsigned long off, \
46 unsigned long offset = part_offset + off; \
62 res = get_unaligned_le##bits(p + off); \
74 res = get_unaligned_le##bits(p + off); \
80 const void *ptr, unsigned long off) \
83 unsigned long offset = part_offset + off; \
101 res = get_unaligned_le##bits(p + off); \
105 const void *ptr, unsigned long off, \
110 unsigned long offset = part_offset + off; \
125 put_unaligned_le##bits(val, p + off); \
[all …]
/fs/cifs/
Dcifs_dfs_ref.c148 int off, noff; in cifs_compose_mount_options() local
188 off = 0; in cifs_compose_mount_options()
192 off += 5; in cifs_compose_mount_options()
196 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options()
198 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
200 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options()
202 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options()
203 off += noff; in cifs_compose_mount_options()
206 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options()
207 off += noff; in cifs_compose_mount_options()
[all …]
Dsmb2misc.c303 smb2_get_data_area_len(int *off, int *len, struct smb2_sync_hdr *shdr) in smb2_get_data_area_len() argument
305 *off = 0; in smb2_get_data_area_len()
321 *off = le16_to_cpu( in smb2_get_data_area_len()
327 *off = le16_to_cpu( in smb2_get_data_area_len()
333 *off = le32_to_cpu( in smb2_get_data_area_len()
339 *off = le16_to_cpu( in smb2_get_data_area_len()
346 *off = ((struct smb2_read_rsp *)shdr)->DataOffset; in smb2_get_data_area_len()
350 *off = le16_to_cpu( in smb2_get_data_area_len()
356 *off = le32_to_cpu( in smb2_get_data_area_len()
372 if (*off > 4096) { in smb2_get_data_area_len()
[all …]
/fs/freevxfs/
Dvxfs_bmap.c140 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/xfs/
Dxfs_stats.h180 #define XFS_STATS_INC_OFF(mp, off) \ argument
182 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]++; \
183 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]++; \
186 #define XFS_STATS_DEC_OFF(mp, off) \ argument
188 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]; \
189 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]; \
192 #define XFS_STATS_ADD_OFF(mp, off, inc) \ argument
194 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off] += (inc); \
195 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off] += (inc); \
Dxfs_bio_io.c36 unsigned int off = offset_in_page(data); in xfs_rw_bdev() local
37 unsigned int len = min_t(unsigned, left, PAGE_SIZE - off); in xfs_rw_bdev()
39 while (bio_add_page(bio, page, len, off) != len) { in xfs_rw_bdev()
/fs/orangefs/
Dinode.c27 loff_t off; in orangefs_writepage_locked() local
35 off = wr->pos; in orangefs_writepage_locked()
36 if (off + wr->len > len) in orangefs_writepage_locked()
37 wlen = len - off; in orangefs_writepage_locked()
42 off = page_offset(page); in orangefs_writepage_locked()
43 if (off + PAGE_SIZE > len) in orangefs_writepage_locked()
44 wlen = len - off; in orangefs_writepage_locked()
49 WARN_ON(off == len || off + wlen > len); in orangefs_writepage_locked()
53 bv.bv_offset = off % PAGE_SIZE; in orangefs_writepage_locked()
57 ret = wait_for_direct_io(ORANGEFS_IO_WRITE, inode, &off, &iter, wlen, in orangefs_writepage_locked()
[all …]
/fs/overlayfs/
DKconfig20 still possible to turn off redirects globally with the
21 "redirect_dir=off" module option or on a filesystem instance basis
22 with the "redirect_dir=off" mount option.
31 bool "Overlayfs: follow redirects even if redirects are turned off"
51 In this case it is still possible to turn off index globally with the
52 "index=off" module option or on a filesystem instance basis with the
53 "index=off" mount option.
72 In this case, it is still possible to turn off NFS export support
73 globally with the "nfs_export=off" module option or on a filesystem
74 instance basis with the "nfs_export=off" mount option.
[all …]
/fs/iomap/
Dseek.c22 unsigned int bsize = i_blocksize(inode), off; in page_seek_hole_data() local
49 for (off = 0; off < PAGE_SIZE; off += bsize) { in page_seek_hole_data()
50 if (offset_in_page(*lastoff) >= off + bsize) in page_seek_hole_data()
52 if (ops->is_partially_uptodate(page, off, bsize) == seek_data) { in page_seek_hole_data()
56 *lastoff = poff + off + bsize; in page_seek_hole_data()
/fs/pstore/
Dinode.c43 size_t off; member
69 data->off = ps->total_size % REC_SIZE; in pstore_ftrace_seq_start()
70 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start()
71 if (data->off + REC_SIZE > ps->total_size) { in pstore_ftrace_seq_start()
90 data->off += REC_SIZE; in pstore_ftrace_seq_next()
91 if (data->off + REC_SIZE > ps->total_size) in pstore_ftrace_seq_next()
104 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show()
154 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
159 return seq_lseek(file, off, whence); in pstore_file_llseek()
160 return default_llseek(file, off, whence); in pstore_file_llseek()
/fs/ceph/
Daddr.c194 u64 off = page_offset(page); in ceph_do_readpage() local
197 if (off >= i_size_read(inode)) { in ceph_do_readpage()
208 if (off == 0) in ceph_do_readpage()
222 &ci->i_layout, off, &len, in ceph_do_readpage()
316 u64 off; in start_read() local
349 off = (u64) page_offset(page); in start_read()
363 off, len); in start_read()
365 req = ceph_osdc_new_request(osdc, &ci->i_layout, vino, off, &len, in start_read()
409 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/f2fs/
Dgc.c511 int off; in gc_node_segment() local
524 for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { in gc_node_segment()
534 if (check_valid_map(sbi, segno, off) == 0) in gc_node_segment()
554 if (check_valid_map(sbi, segno, off) == 0) { in gc_node_segment()
564 if (ni.blk_addr != start_addr + off) { in gc_node_segment()
746 int gc_type, unsigned int segno, int off) in move_data_block() argument
772 if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { in move_data_block()
908 unsigned int segno, int off) in move_data_page() argument
917 if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { in move_data_page()
998 int off; in gc_data_segment() local
[all …]
/fs/squashfs/
Dnamei.c200 unsigned int blk, off, ino_num; in squashfs_lookup() local
203 off = le16_to_cpu(dire->offset); in squashfs_lookup()
206 ino = SQUASHFS_MKINODE(blk, off); in squashfs_lookup()
210 blk, off, ino_num); in squashfs_lookup()
/fs/jfs/
Dsuper.c736 size_t len, loff_t off) in jfs_quota_read() argument
739 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_read()
741 int offset = off & (sb->s_blocksize - 1); in jfs_quota_read()
748 if (off > i_size) in jfs_quota_read()
750 if (off+len > i_size) in jfs_quota_read()
751 len = i_size-off; in jfs_quota_read()
781 const char *data, size_t len, loff_t off) in jfs_quota_write() argument
784 sector_t blk = off >> sb->s_blocksize_bits; in jfs_quota_write()
786 int offset = off & (sb->s_blocksize - 1); in jfs_quota_write()
827 if (inode->i_size < off+len-towrite) in jfs_quota_write()
[all …]
/fs/bfs/
Ddir.c273 int block, sblock, eblock, off, pos; in bfs_add_entry() local
289 for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { in bfs_add_entry()
290 de = (struct bfs_dirent *)(bh->b_data + off); in bfs_add_entry()
292 pos = (block - sblock) * BFS_BSIZE + off; in bfs_add_entry()
/fs/befs/
Dbtree.c194 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()

12345