/fs/ |
D | binfmt_elf_fdpic.c | 731 struct elf32_fdpic_loadseg *seg; in elf_fdpic_map_file() local 747 size = sizeof(*loadmap) + nloads * sizeof(*seg); in elf_fdpic_map_file() 758 seg = loadmap->segs; in elf_fdpic_map_file() 779 seg = loadmap->segs; in elf_fdpic_map_file() 780 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 781 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 782 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 784 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 785 seg->addr; in elf_fdpic_map_file() 804 seg = loadmap->segs; in elf_fdpic_map_file() [all …]
|
D | read_write.c | 658 unsigned long seg = 0; in iov_shorten() local 661 while (seg < nr_segs) { in iov_shorten() 662 seg++; in iov_shorten() 670 return seg; in iov_shorten() 773 unsigned long seg; in rw_copy_check_uvector() local 817 for (seg = 0; seg < nr_segs; seg++) { in rw_copy_check_uvector() 818 void __user *buf = iov[seg].iov_base; in rw_copy_check_uvector() 819 ssize_t len = (ssize_t)iov[seg].iov_len; in rw_copy_check_uvector() 834 iov[seg].iov_len = len; in rw_copy_check_uvector()
|
D | compat.c | 540 int seg; in compat_rw_copy_check_uvector() local 575 for (seg = 0; seg < nr_segs; seg++) { in compat_rw_copy_check_uvector()
|
/fs/nfsd/ |
D | flexfilelayout.c | 24 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_ff_proc_layoutget() local 51 if (seg->iomode == IOMODE_READ) { in nfsd4_ff_proc_layoutget() 66 seg->offset = 0; in nfsd4_ff_proc_layoutget() 67 seg->length = NFS4_MAX_UINT64; in nfsd4_ff_proc_layoutget() 69 dprintk("GET: 0x%llx:0x%llx %d\n", seg->offset, seg->length, in nfsd4_ff_proc_layoutget() 70 seg->iomode); in nfsd4_ff_proc_layoutget() 74 seg->length = 0; in nfsd4_ff_proc_layoutget()
|
D | blocklayout.c | 24 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_block_proc_layoutget() local 32 if (seg->offset & (block_size - 1)) { in nfsd4_block_proc_layoutget() 47 error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length, in nfsd4_block_proc_layoutget() 48 &iomap, seg->iomode != IOMODE_READ, in nfsd4_block_proc_layoutget() 63 if (seg->iomode == IOMODE_READ) in nfsd4_block_proc_layoutget() 70 if (seg->iomode & IOMODE_RW) { in nfsd4_block_proc_layoutget() 85 if (seg->iomode == IOMODE_READ) { in nfsd4_block_proc_layoutget() 102 seg->offset = iomap.offset; in nfsd4_block_proc_layoutget() 103 seg->length = iomap.length; in nfsd4_block_proc_layoutget() 109 seg->length = 0; in nfsd4_block_proc_layoutget() [all …]
|
D | nfs4layouts.c | 346 layout_end(struct nfsd4_layout_seg *seg) in layout_end() argument 348 u64 end = seg->offset + seg->length; in layout_end() 349 return end >= seg->offset ? end : NFS4_MAX_UINT64; in layout_end() 410 struct nfsd4_layout_seg *seg = &lgp->lg_seg; in nfsd4_insert_layout() local 421 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout() 430 memcpy(&new->lo_seg, seg, sizeof(lp->lo_seg)); in nfsd4_insert_layout() 439 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout() 470 nfsd4_return_file_layout(struct nfs4_layout *lp, struct nfsd4_layout_seg *seg, in nfsd4_return_file_layout() argument 476 if (seg->offset <= lo->offset) { in nfsd4_return_file_layout() 477 if (layout_end(seg) >= end) { in nfsd4_return_file_layout() [all …]
|
D | nfs4proc.c | 1417 const struct nfsd4_layout_seg *seg = &lcp->lc_seg; in nfsd4_layoutcommit() local 1436 if (new_size <= seg->offset) { in nfsd4_layoutcommit() 1440 if (new_size > seg->offset + seg->length) { in nfsd4_layoutcommit()
|
/fs/cachefiles/ |
D | key.c | 42 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local 101 seg = 250; in cachefiles_cook_key() 103 if (seg <= 0) { in cachefiles_cook_key() 107 seg = 252; in cachefiles_cook_key() 120 seg = 252; in cachefiles_cook_key() 122 if (seg <= 0) { in cachefiles_cook_key() 126 seg = 252; in cachefiles_cook_key()
|
/fs/nilfs2/ |
D | sufile.c | 173 __u64 *seg; in nilfs_sufile_updatev() local 181 for (seg = segnumv; seg < segnumv + nsegs; seg++) { in nilfs_sufile_updatev() 182 if (unlikely(*seg >= nilfs_sufile_get_nsegments(sufile))) { in nilfs_sufile_updatev() 185 __func__, (unsigned long long)*seg); in nilfs_sufile_updatev() 198 seg = segnumv; in nilfs_sufile_updatev() 199 blkoff = nilfs_sufile_get_blkoff(sufile, *seg); in nilfs_sufile_updatev() 205 dofunc(sufile, *seg, header_bh, bh); in nilfs_sufile_updatev() 207 if (++seg >= segnumv + nsegs) in nilfs_sufile_updatev() 210 blkoff = nilfs_sufile_get_blkoff(sufile, *seg); in nilfs_sufile_updatev() 223 n = seg - segnumv; in nilfs_sufile_updatev()
|
/fs/f2fs/ |
D | segment.h | 34 #define IS_CURSEG(sbi, seg) \ argument 35 (((seg) == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno) || \ 36 ((seg) == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno) || \ 37 ((seg) == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno) || \ 38 ((seg) == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno) || \ 39 ((seg) == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno) || \ 40 ((seg) == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno))
|
D | segment.c | 2206 struct curseg_info *seg, block_t start) in __next_free_blkoff() argument 2208 struct seg_entry *se = get_seg_entry(sbi, seg->segno); in __next_free_blkoff() 2220 seg->next_blkoff = pos; in __next_free_blkoff() 2229 struct curseg_info *seg) in __refresh_next_blkoff() argument 2231 if (seg->alloc_type == SSR) in __refresh_next_blkoff() 2232 __next_free_blkoff(sbi, seg, seg->next_blkoff + 1); in __refresh_next_blkoff() 2234 seg->next_blkoff++; in __refresh_next_blkoff()
|
/fs/btrfs/ |
D | inode.c | 8669 int seg; in check_direct_IO() local 8688 for (seg = 0; seg < iter->nr_segs; seg++) { in check_direct_IO() 8689 for (i = seg + 1; i < iter->nr_segs; i++) { in check_direct_IO() 8690 if (iter->iov[seg].iov_base == iter->iov[i].iov_base) in check_direct_IO()
|