/fs/ |
D | binfmt_elf_fdpic.c | 737 struct elf32_fdpic_loadseg *seg; in elf_fdpic_map_file() local 753 size = sizeof(*loadmap) + nloads * sizeof(*seg); in elf_fdpic_map_file() 764 seg = loadmap->segs; in elf_fdpic_map_file() 785 seg = loadmap->segs; in elf_fdpic_map_file() 786 for (loop = loadmap->nsegs; loop > 0; loop--, seg++) { in elf_fdpic_map_file() 787 if (params->hdr.e_entry >= seg->p_vaddr && in elf_fdpic_map_file() 788 params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) { in elf_fdpic_map_file() 790 (params->hdr.e_entry - seg->p_vaddr) + in elf_fdpic_map_file() 791 seg->addr; in elf_fdpic_map_file() 810 seg = loadmap->segs; in elf_fdpic_map_file() [all …]
|
D | read_write.c | 772 unsigned long seg; in rw_copy_check_uvector() local 816 for (seg = 0; seg < nr_segs; seg++) { in rw_copy_check_uvector() 817 void __user *buf = iov[seg].iov_base; in rw_copy_check_uvector() 818 ssize_t len = (ssize_t)iov[seg].iov_len; in rw_copy_check_uvector() 833 iov[seg].iov_len = len; in rw_copy_check_uvector() 851 int seg; in compat_rw_copy_check_uvector() local 886 for (seg = 0; seg < nr_segs; seg++) { in compat_rw_copy_check_uvector()
|
/fs/nfsd/ |
D | flexfilelayout.c | 25 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_ff_proc_layoutget() local 52 if (seg->iomode == IOMODE_READ) { in nfsd4_ff_proc_layoutget() 67 seg->offset = 0; in nfsd4_ff_proc_layoutget() 68 seg->length = NFS4_MAX_UINT64; in nfsd4_ff_proc_layoutget() 70 dprintk("GET: 0x%llx:0x%llx %d\n", seg->offset, seg->length, in nfsd4_ff_proc_layoutget() 71 seg->iomode); in nfsd4_ff_proc_layoutget() 75 seg->length = 0; in nfsd4_ff_proc_layoutget()
|
D | blocklayout.c | 27 struct nfsd4_layout_seg *seg = &args->lg_seg; in nfsd4_block_proc_layoutget() local 35 if (seg->offset & (block_size - 1)) { in nfsd4_block_proc_layoutget() 50 error = sb->s_export_op->map_blocks(inode, seg->offset, seg->length, in nfsd4_block_proc_layoutget() 51 &iomap, seg->iomode != IOMODE_READ, in nfsd4_block_proc_layoutget() 66 if (seg->iomode == IOMODE_READ) in nfsd4_block_proc_layoutget() 73 if (seg->iomode & IOMODE_RW) { in nfsd4_block_proc_layoutget() 88 if (seg->iomode == IOMODE_READ) { in nfsd4_block_proc_layoutget() 105 seg->offset = iomap.offset; in nfsd4_block_proc_layoutget() 106 seg->length = iomap.length; in nfsd4_block_proc_layoutget() 112 seg->length = 0; in nfsd4_block_proc_layoutget() [all …]
|
D | nfs4layouts.c | 340 layout_end(struct nfsd4_layout_seg *seg) in layout_end() argument 342 u64 end = seg->offset + seg->length; in layout_end() 343 return end >= seg->offset ? end : NFS4_MAX_UINT64; in layout_end() 404 struct nfsd4_layout_seg *seg = &lgp->lg_seg; in nfsd4_insert_layout() local 415 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout() 424 memcpy(&new->lo_seg, seg, sizeof(lp->lo_seg)); in nfsd4_insert_layout() 433 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout() 464 nfsd4_return_file_layout(struct nfs4_layout *lp, struct nfsd4_layout_seg *seg, in nfsd4_return_file_layout() argument 470 if (seg->offset <= lo->offset) { in nfsd4_return_file_layout() 471 if (layout_end(seg) >= end) { in nfsd4_return_file_layout() [all …]
|
D | nfs4proc.c | 1688 const struct nfsd4_layout_seg *seg = &lcp->lc_seg; in nfsd4_layoutcommit() local 1707 if (new_size <= seg->offset) { in nfsd4_layoutcommit() 1711 if (new_size > seg->offset + seg->length) { in nfsd4_layoutcommit()
|
/fs/cachefiles/ |
D | key.c | 38 int loop, len, max, seg, mark, print; in cachefiles_cook_key() local 97 seg = 250; in cachefiles_cook_key() 99 if (seg <= 0) { in cachefiles_cook_key() 103 seg = 252; in cachefiles_cook_key() 116 seg = 252; in cachefiles_cook_key() 118 if (seg <= 0) { in cachefiles_cook_key() 122 seg = 252; in cachefiles_cook_key()
|
/fs/nilfs2/ |
D | sufile.c | 164 __u64 *seg; in nilfs_sufile_updatev() local 172 for (seg = segnumv; seg < segnumv + nsegs; seg++) { in nilfs_sufile_updatev() 173 if (unlikely(*seg >= nilfs_sufile_get_nsegments(sufile))) { in nilfs_sufile_updatev() 176 __func__, (unsigned long long)*seg); in nilfs_sufile_updatev() 189 seg = segnumv; in nilfs_sufile_updatev() 190 blkoff = nilfs_sufile_get_blkoff(sufile, *seg); in nilfs_sufile_updatev() 196 dofunc(sufile, *seg, header_bh, bh); in nilfs_sufile_updatev() 198 if (++seg >= segnumv + nsegs) in nilfs_sufile_updatev() 201 blkoff = nilfs_sufile_get_blkoff(sufile, *seg); in nilfs_sufile_updatev() 214 n = seg - segnumv; in nilfs_sufile_updatev()
|
/fs/f2fs/ |
D | segment.h | 31 #define IS_CURSEG(sbi, seg) \ argument 32 (((seg) == CURSEG_I(sbi, CURSEG_HOT_DATA)->segno) || \ 33 ((seg) == CURSEG_I(sbi, CURSEG_WARM_DATA)->segno) || \ 34 ((seg) == CURSEG_I(sbi, CURSEG_COLD_DATA)->segno) || \ 35 ((seg) == CURSEG_I(sbi, CURSEG_HOT_NODE)->segno) || \ 36 ((seg) == CURSEG_I(sbi, CURSEG_WARM_NODE)->segno) || \ 37 ((seg) == CURSEG_I(sbi, CURSEG_COLD_NODE)->segno))
|
D | segment.c | 2530 struct curseg_info *seg, block_t start) in __next_free_blkoff() argument 2532 struct seg_entry *se = get_seg_entry(sbi, seg->segno); in __next_free_blkoff() 2544 seg->next_blkoff = pos; in __next_free_blkoff() 2553 struct curseg_info *seg) in __refresh_next_blkoff() argument 2555 if (seg->alloc_type == SSR) in __refresh_next_blkoff() 2556 __next_free_blkoff(sbi, seg, seg->next_blkoff + 1); in __refresh_next_blkoff() 2558 seg->next_blkoff++; in __refresh_next_blkoff()
|
/fs/btrfs/ |
D | inode.c | 8625 int seg; in check_direct_IO() local 8644 for (seg = 0; seg < iter->nr_segs; seg++) { in check_direct_IO() 8645 for (i = seg + 1; i < iter->nr_segs; i++) { in check_direct_IO() 8646 if (iter->iov[seg].iov_base == iter->iov[i].iov_base) in check_direct_IO()
|