Home
last modified time | relevance | path

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

1234567

/fs/hfs/
A Dbnode.c44 if ((off + len) > node_size) { in check_and_correct_requested_length()
81 off += node->page_offset; in hfs_bnode_read()
82 pagenum = off >> PAGE_SHIFT; in hfs_bnode_read()
153 off += node->page_offset; in hfs_bnode_write()
191 off += node->page_offset; in hfs_bnode_clear()
194 memzero_page(page, off, len); in hfs_bnode_clear()
244 int i, off, key_off; in hfs_bnode_dump() local
348 loff_t off; in __hfs_bnode_create() local
385 block = off >> PAGE_SHIFT; in __hfs_bnode_create()
475 if (next_off <= off || in hfs_bnode_find()
[all …]
A Dbtree.c290 unsigned off; in hfs_bmap_alloc() local
305 off = off16; in hfs_bmap_alloc()
310 off &= ~PAGE_MASK; in hfs_bmap_alloc()
315 byte = data[off]; in hfs_bmap_alloc()
320 data[off] |= m; in hfs_bmap_alloc()
333 off = 0; in hfs_bmap_alloc()
351 off = off16; in hfs_bmap_alloc()
355 off &= ~PAGE_MASK; in hfs_bmap_alloc()
363 u16 off, len; in hfs_bmap_free() local
402 off &= ~PAGE_MASK; in hfs_bmap_free()
[all …]
A Dbfind.c61 u16 off, len, keylen; in __hfs_brec_find() local
71 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
77 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
90 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
96 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
100 fd->keyoffset = off; in __hfs_brec_find()
102 fd->entryoffset = off + keylen; in __hfs_brec_find()
182 u16 off, len, keylen; in hfs_brec_goto() local
232 fd->keyoffset = off; in hfs_brec_goto()
234 fd->entryoffset = off + keylen; in hfs_brec_goto()
[all …]
/fs/hfsplus/
A Dbnode.c47 if ((off + len) > node_size) { in check_and_correct_requested_length()
83 off += node->page_offset; in hfs_bnode_read()
85 off &= ~PAGE_MASK; in hfs_bnode_read()
154 off += node->page_offset; in hfs_bnode_write()
156 off &= ~PAGE_MASK; in hfs_bnode_write()
196 off += node->page_offset; in hfs_bnode_clear()
198 off &= ~PAGE_MASK; in hfs_bnode_clear()
393 int i, off, key_off; in hfs_bnode_dump() local
497 loff_t off; in __hfs_bnode_create() local
535 block = off >> PAGE_SHIFT; in __hfs_bnode_create()
[all …]
A Dbtree.c379 unsigned off; in hfs_bmap_alloc() local
394 off = off16; in hfs_bmap_alloc()
399 off &= ~PAGE_MASK; in hfs_bmap_alloc()
404 byte = data[off]; in hfs_bmap_alloc()
409 data[off] |= m; in hfs_bmap_alloc()
423 off = 0; in hfs_bmap_alloc()
441 off = off16; in hfs_bmap_alloc()
445 off &= ~PAGE_MASK; in hfs_bmap_alloc()
453 u16 off, len; in hfs_bmap_free() local
495 off &= ~PAGE_MASK; in hfs_bmap_free()
[all …]
A Dbfind.c106 u16 off, len, keylen; in __hfs_brec_find() local
117 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
123 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
131 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
137 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
142 fd->keyoffset = off; in __hfs_brec_find()
144 fd->entryoffset = off + keylen; in __hfs_brec_find()
225 u16 off, len, keylen; in hfs_brec_goto() local
275 fd->keyoffset = off; in hfs_brec_goto()
277 fd->entryoffset = off + keylen; in hfs_brec_goto()
[all …]
A Dunicode.c285 int off; in hfsplus_decompose_nonhangul() local
287 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; in hfsplus_decompose_nonhangul()
288 if (off == 0 || off == 0xffff) in hfsplus_decompose_nonhangul()
291 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; in hfsplus_decompose_nonhangul()
292 if (!off) in hfsplus_decompose_nonhangul()
295 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; in hfsplus_decompose_nonhangul()
296 if (!off) in hfsplus_decompose_nonhangul()
299 off = hfsplus_decompose_table[off + (uc & 0xf)]; in hfsplus_decompose_nonhangul()
300 *size = off & 3; in hfsplus_decompose_nonhangul()
303 return hfsplus_decompose_table + (off / 4); in hfsplus_decompose_nonhangul()
/fs/udf/
A Ddirectory.c71 u32 off, len, nameoff; in udf_copy_fi() local
335 if (off >= len1) { in udf_copy_to_bufs()
336 off -= len1; in udf_copy_to_bufs()
338 copy = min(off + len, len1) - off; in udf_copy_to_bufs()
342 off = 0; in udf_copy_to_bufs()
357 if (off >= len1) { in udf_crc_fi_bufs()
358 off -= len1; in udf_crc_fi_bufs()
360 copy = min(off + len, len1) - off; in udf_crc_fi_bufs()
363 off = 0; in udf_crc_fi_bufs()
378 int fioff = off; in udf_copy_fi_to_bufs()
[all …]
/fs/smb/server/
A Dsmb2misc.c90 *off = 0; in smb2_get_data_area_len()
104 *off = max_t(unsigned short int, in smb2_get_data_area_len()
126 if (name_off + name_len < (u64)*off + *len) in smb2_get_data_area_len()
130 *off = name_off; in smb2_get_data_area_len()
135 *off = max_t(unsigned int, in smb2_get_data_area_len()
141 *off = max_t(unsigned int, in smb2_get_data_area_len()
153 *off = max_t(unsigned short int, in smb2_get_data_area_len()
164 *off = max_t(unsigned short int, in smb2_get_data_area_len()
181 *off = max_t(unsigned int, in smb2_get_data_area_len()
191 if (*off > 4096) { in smb2_get_data_area_len()
[all …]
/fs/cachefiles/
A Dio.c205 loff_t off, off2; in cachefiles_query_occupancy() local
222 if (off == 0) in cachefiles_query_occupancy()
224 if (off == -ENXIO) in cachefiles_query_occupancy()
226 if (off < 0 && off >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
240 off = round_up(off, granularity); in cachefiles_query_occupancy()
242 if (off2 <= off) in cachefiles_query_occupancy()
391 loff_t off, to; in cachefiles_do_prepare_read() local
426 if (off == 0) in cachefiles_do_prepare_read()
428 if (off < 0 && off >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read()
445 off = round_up(off, cache->bsize); in cachefiles_do_prepare_read()
[all …]
/fs/ceph/
A Dcrypto.h126 static inline unsigned int ceph_fscrypt_blocks(u64 off, u64 len) in ceph_fscrypt_blocks() argument
132 (off >> CEPH_FSCRYPT_BLOCK_SHIFT); in ceph_fscrypt_blocks()
142 u64 *off, u64 *len) in ceph_fscrypt_adjust_off_and_len() argument
145 *len = ceph_fscrypt_blocks(*off, *len) * CEPH_FSCRYPT_BLOCK_SIZE; in ceph_fscrypt_adjust_off_and_len()
146 *off &= CEPH_FSCRYPT_BLOCK_MASK; in ceph_fscrypt_adjust_off_and_len()
157 u64 off, int len);
159 u64 off, struct ceph_sparse_extent *map,
225 u64 *off, u64 *len) in ceph_fscrypt_adjust_off_and_len() argument
244 struct page **page, u64 off, in ceph_fscrypt_decrypt_pages() argument
251 struct page **page, u64 off, in ceph_fscrypt_decrypt_extents() argument
[all …]
/fs/pstore/
A Dzone.c78 loff_t off; member
180 if (off > zone->buffer_size) in psz_zone_read_buffer()
192 if (off > zone->buffer_size) in psz_zone_read_oldbuf()
208 if (off > zone->buffer_size) in psz_zone_write()
232 zone->off + sizeof(*zone->buffer) + off); in psz_zone_write()
364 zone->off); in psz_kmsg_recover_data()
541 off = zone->off + sizeof(*oldbuf); in psz_recover_zone()
1153 loff_t *off, size_t size) in psz_init_zone() argument
1178 zone->off = *off; in psz_init_zone()
1188 *off += size; in psz_init_zone()
[all …]
/fs/xfs/scrub/
A Drtsummary.c239 xfs_fileoff_t off = 0; in xchk_rtsum_compare() local
255 while (off < endoff) { in xchk_rtsum_compare()
264 error = xfs_bmapi_read(ip, off, endoff - off, &map, &nmap, in xchk_rtsum_compare()
266 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, off, &error)) in xchk_rtsum_compare()
270 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, off); in xchk_rtsum_compare()
274 off += map.br_blockcount; in xchk_rtsum_compare()
277 for (off = 0; off < endoff; off++) { in xchk_rtsum_compare()
281 error = xfs_rtsummary_read_buf(&rts->args, off); in xchk_rtsum_compare()
282 if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, off, &error)) in xchk_rtsum_compare()
295 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, off); in xchk_rtsum_compare()
A Dtempfile.c415 xfs_fileoff_t off, in xrep_tempfile_prealloc() argument
425 for (; off < end; off = map.br_startoff + map.br_blockcount) { in xrep_tempfile_prealloc()
432 error = xfs_bmapi_read(sc->tempip, off, end - off, &map, &nmaps, in xrep_tempfile_prealloc()
456 error = xfs_bmapi_write(sc->tp, sc->tempip, off, end - off, in xrep_tempfile_prealloc()
482 xfs_fileoff_t off, in xrep_tempfile_copyin() argument
500 for (; off < end; off++, pos += mp->m_sb.sb_blocksize) { in xrep_tempfile_copyin()
533 if (!(off & flush_mask)) { in xrep_tempfile_copyin()
609 xfs_fileoff_t off, in xrep_tempexch_prep_request() argument
634 req->startoff1 = off; in xrep_tempexch_prep_request()
635 req->startoff2 = off; in xrep_tempexch_prep_request()
[all …]
/fs/freevxfs/
A Dvxfs_bmap.c116 int64_t off; in vxfs_bmap_indir() local
125 off = fs64_to_cpu(sbi, typ->vt_hdr) & VXFS_TYPED_OFFSETMASK; in vxfs_bmap_indir()
127 if (block < off) { in vxfs_bmap_indir()
138 block - off); in vxfs_bmap_indir()
143 if ((block - off) >= fs32_to_cpu(sbi, typ->vt_size)) in vxfs_bmap_indir()
145 pblock = fs32_to_cpu(sbi, typ->vt_block) + block - off; in vxfs_bmap_indir()
196 int64_t off = (hdr & VXFS_TYPED_OFFSETMASK); in vxfs_bmap_typed() local
201 if (iblock < off) in vxfs_bmap_typed()
208 iblock - off); in vxfs_bmap_typed()
213 if ((iblock - off) < fs32_to_cpu(sbi, typ->vt_size)) in vxfs_bmap_typed()
[all …]
/fs/ntfs3/
A Dattrlist.c128 size_t off; in al_enumerate() local
144 off = PtrOffset(ni->attr_list.le, le); in al_enumerate()
145 if (off + le_min_size > ni->attr_list.size) { in al_enumerate()
293 size_t off; in al_add_le() local
310 off = PtrOffset(al->le, le); in al_add_le()
318 memcpy(ptr, al->le, off); in al_add_le()
319 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
320 le = Add2Ptr(ptr, off); in al_add_le()
324 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
367 size_t off; in al_remove_le() local
[all …]
A Dxattr.c50 *off = 0; in find_ea()
54 for (; *off < bytes; *off += ea_size) { in find_ea()
81 u32 size, off, ea_size; in ntfs_read_ea() local
146 for (off = 0; off < size; off += ea_size) { in ntfs_read_ea()
148 u32 bytes = size - off; in ntfs_read_ea()
198 u32 off, size; in ntfs_list_ea() local
213 off = 0; in ntfs_list_ea()
243 off += ea_size; in ntfs_list_ea()
258 u32 off, len; in ntfs_get_ea() local
287 ea = Add2Ptr(ea_all, off); in ntfs_get_ea()
[all …]
A Dfsntfs.c1211 nb->off = off; in ntfs_read_run_nb()
1251 off = 0; in ntfs_read_run_nb()
1308 u32 off; in ntfs_get_bh() local
1325 nb->off = off = lbo & (blocksize - 1); in ntfs_get_bh()
1370 off = 0; in ntfs_get_bh()
1402 u32 off = nb->off; in ntfs_write_bh() local
1526 add = off + len > PAGE_SIZE ? (PAGE_SIZE - off) : len; in ntfs_bio_pages()
1557 off = 0; in ntfs_bio_pages()
1649 u32 off; in ntfs_vbo_to_lbo() local
1849 size_t off; in ntfs_security_init() local
[all …]
/fs/btrfs/
A Daccessors.c13 const void *ptr, unsigned off, int size) in report_setget_bounds() argument
15 unsigned long member_offset = (unsigned long)ptr + off; in report_setget_bounds()
53 const void *ptr, unsigned long off) \
55 const unsigned long member_offset = (unsigned long)ptr + off; \
64 report_setget_bounds(eb, ptr, off, sizeof(u##bits)); \
83 unsigned long off, u##bits val) \
85 const unsigned long member_offset = (unsigned long)ptr + off; \
94 report_setget_bounds(eb, ptr, off, sizeof(u##bits)); \
A Dreflink.c353 u64 prev_extent_end = off; in btrfs_clone()
370 key.offset = off; in btrfs_clone()
463 if (off <= key.offset) in btrfs_clone()
490 datal = off + len - key.offset; in btrfs_clone()
493 if (off > key.offset) { in btrfs_clone()
494 datao += off - key.offset; in btrfs_clone()
495 datal -= off - key.offset; in btrfs_clone()
704 u64 off, u64 olen, u64 destoff) in btrfs_clone_files() argument
722 if (off + len == src->i_size) in btrfs_clone_files()
723 len = ALIGN(src->i_size, bs) - off; in btrfs_clone_files()
[all …]
/fs/xfs/
A Dxfs_stats.h186 #define XFS_STATS_INC_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_DEC_OFF(mp, off) \ argument
194 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]; \
195 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]; \
198 #define XFS_STATS_ADD_OFF(mp, off, inc) \ argument
200 per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off] += (inc); \
201 per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off] += (inc); \
/fs/overlayfs/
A DKconfig21 still possible to turn off redirects globally with the
22 "redirect_dir=off" module option or on a filesystem instance basis
23 with the "redirect_dir=off" mount option.
32 bool "Overlayfs: follow redirects even if redirects are turned off"
53 "index=off" module option or on a filesystem instance basis with the
54 "index=off" mount option.
73 In this case, it is still possible to turn off NFS export support
74 globally with the "nfs_export=off" module option or on a filesystem
75 instance basis with the "nfs_export=off" mount option.
119 possible to turn off this feature globally with the "metacopy=off"
[all …]
/fs/xfs/libxfs/
A Dxfs_types.c237 xfs_fileoff_t off) in xfs_verify_fileoff() argument
239 return off <= XFS_MAX_FILEOFF; in xfs_verify_fileoff()
246 xfs_fileoff_t off, in xfs_verify_fileext() argument
249 if (off + len <= off) in xfs_verify_fileext()
252 if (!xfs_verify_fileoff(mp, off)) in xfs_verify_fileext()
255 return xfs_verify_fileoff(mp, off + len - 1); in xfs_verify_fileext()
/fs/exfat/
A Ddir.c101 ei->hint_bmap.off > 0 && clu_offset >= ei->hint_bmap.off) { in exfat_readdir()
102 clu_offset -= ei->hint_bmap.off; in exfat_readdir()
598 unsigned int off, clu = 0; in exfat_find_location() local
601 off = EXFAT_DEN_TO_B(entry); in exfat_find_location()
608 off = EXFAT_CLU_OFFSET(off, sbi); in exfat_find_location()
611 *offset = EXFAT_BLK_OFFSET(off, sb); in exfat_find_location()
614 *sector = EXFAT_B_TO_BLK(off, sb); in exfat_find_location()
658 int off; in exfat_get_dentry() local
757 unsigned int off; in __exfat_get_dentry_set() local
774 es->start_off = off; in __exfat_get_dentry_set()
[all …]
/fs/ext4/
A Dmballoc-test.c609 uint32_t order, off; in mbt_generate_buddy() local
623 while (off < max) { in mbt_generate_buddy()
627 if (!(off & 1) && !mb_test_bit(off + 1, bb)) { in mbt_generate_buddy()
633 off++; in mbt_generate_buddy()
636 off = mb_find_next_zero_bit(bb, max, off + 1); in mbt_generate_buddy()
646 if (!(off & 1) && !mb_test_bit(off + 1, bb)) { in mbt_generate_buddy()
652 off++; in mbt_generate_buddy()
655 off = mb_find_next_zero_bit(bb, max, off + 1); in mbt_generate_buddy()
661 while (off < max) { in mbt_generate_buddy()
664 off = mb_find_next_bit(bitmap, max, off + 1); in mbt_generate_buddy()
[all …]

Completed in 61 milliseconds

1234567