Home
last modified time | relevance | path

Searched refs:ds (Results 1 – 25 of 27) sorted by relevance

12

/fs/xfs/scrub/
Ddabtree.c31 struct xchk_da_btree *ds, in xchk_da_process_error() argument
35 struct xfs_scrub *sc = ds->sc; in xchk_da_process_error()
52 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error()
53 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_process_error()
54 ds->state->path.blk[level].blkno), in xchk_da_process_error()
67 struct xchk_da_btree *ds, in xchk_da_set_corrupt() argument
70 struct xfs_scrub *sc = ds->sc; in xchk_da_set_corrupt()
74 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt()
75 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_set_corrupt()
76 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt()
[all …]
Dattr.c243 struct xchk_da_btree *ds, in xchk_xattr_entry() argument
253 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_entry()
254 unsigned long *usedmap = xchk_xattr_usedmap(ds->sc); in xchk_xattr_entry()
262 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
266 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
272 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
283 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
289 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
292 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
294 if (!xchk_xattr_set_map(ds->sc, usedmap, nameidx, namesize)) in xchk_xattr_entry()
[all …]
Ddabtree.h31 typedef int (*xchk_da_btree_rec_fn)(struct xchk_da_btree *ds,
35 bool xchk_da_process_error(struct xchk_da_btree *ds, int level, int *error);
38 void xchk_da_set_corrupt(struct xchk_da_btree *ds, int level);
40 int xchk_da_btree_hash(struct xchk_da_btree *ds, int level, __be32 *hashp);
Ddir.c184 struct xchk_da_btree *ds, in xchk_dir_rec() argument
188 struct xfs_mount *mp = ds->state->mp; in xchk_dir_rec()
190 struct xfs_inode *dp = ds->dargs.dp; in xchk_dir_rec()
205 error = xchk_da_btree_hash(ds, level, &ent->hashval); in xchk_dir_rec()
220 xchk_da_set_corrupt(ds, level); in xchk_dir_rec()
223 error = xfs_dir3_data_read(ds->dargs.trans, dp, rec_bno, -2, &bp); in xchk_dir_rec()
224 if (!xchk_fblock_process_error(ds->sc, XFS_DATA_FORK, rec_bno, in xchk_dir_rec()
228 xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); in xchk_dir_rec()
231 xchk_buffer_recheck(ds->sc, bp); in xchk_dir_rec()
233 if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_dir_rec()
[all …]
/fs/nfs/
Dpnfs_nfs.c74 cinfo->ds->nwritten--; in pnfs_generic_clear_request_commit()
102 cinfo->ds->nwritten -= ret; in pnfs_generic_scan_ds_commit_list()
103 cinfo->ds->ncommitting += ret; in pnfs_generic_scan_ds_commit_list()
123 for (i = 0; i < cinfo->ds->nbuckets && max != 0; i++) { in pnfs_generic_scan_commit_lists()
124 cnt = pnfs_generic_scan_ds_commit_list(&cinfo->ds->buckets[i], in pnfs_generic_scan_commit_lists()
144 for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) { in pnfs_generic_recover_commit_reqs()
148 cinfo->ds->nwritten -= nwritten; in pnfs_generic_recover_commit_reqs()
161 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_retry_commit()
176 cinfo->ds->ncommitting--; in pnfs_generic_retry_commit()
196 fl_cinfo = cinfo->ds; in pnfs_generic_alloc_ds_commits()
[all …]
Dpnfs.h379 void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds);
383 int nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds,
442 if (cinfo->ds == NULL || cinfo->ds->ncommitting == 0) in pnfs_commit_list()
492 if (cinfo->ds == NULL || cinfo->ds->nwritten == 0) in pnfs_scan_commit_lists()
Ddirect.c291 cinfo->ds = &dreq->ds_cinfo; in nfs_init_cinfo_from_dreq()
619 if (cinfo->ds != NULL && cinfo->ds->nwritten != 0) in nfs_direct_write_scan_commit_list()
/fs/9p/
Dfid.c83 struct dentry *ds; in build_path_from_dentry() local
85 for (ds = dentry; !IS_ROOT(ds); ds = ds->d_parent) in build_path_from_dentry()
92 for (ds = dentry, i = (n-1); i >= 0; i--, ds = ds->d_parent) in build_path_from_dentry()
93 wnames[i] = ds->d_name.name; in build_path_from_dentry()
104 struct dentry *ds; in v9fs_fid_lookup_with_uid() local
121 ds = dentry->d_parent; in v9fs_fid_lookup_with_uid()
122 fid = v9fs_fid_find(ds, uid, any); in v9fs_fid_lookup_with_uid()
/fs/befs/
Ddatastream.c49 befs_read_datastream(struct super_block *sb, const befs_data_stream *ds, in befs_read_datastream() argument
61 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream()
130 befs_read_lsymlink(struct super_block *sb, const befs_data_stream *ds, in befs_read_lsymlink() argument
140 bh = befs_read_datastream(sb, ds, bytes_read, NULL); in befs_read_lsymlink()
172 befs_count_blocks(struct super_block *sb, const befs_data_stream *ds) in befs_count_blocks() argument
181 datablocks = ds->size >> befs_sb->block_shift; in befs_count_blocks()
182 if (ds->size & (befs_sb->block_size - 1)) in befs_count_blocks()
188 if (ds->size > ds->max_direct_range) in befs_count_blocks()
189 metablocks += ds->indirect.len; in befs_count_blocks()
200 if (ds->size > ds->max_indirect_range && ds->max_indirect_range != 0) { in befs_count_blocks()
[all …]
Dbtree.c91 static int befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds,
96 static int befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds,
99 static int befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds,
134 befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, in befs_bt_read_super() argument
142 bh = befs_read_datastream(sb, ds, 0, NULL); in befs_bt_read_super()
191 befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds, in befs_bt_read_node() argument
201 node->bh = befs_read_datastream(sb, ds, node_off, &off); in befs_bt_read_node()
245 befs_btree_find(struct super_block *sb, const befs_data_stream *ds, in befs_btree_find() argument
255 if (befs_bt_read_super(sb, ds, &bt_super) != BEFS_OK) { in befs_btree_find()
273 if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) { in befs_btree_find()
[all …]
Dlinuxvfs.c136 befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; in befs_get_block() local
150 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block()
175 const befs_data_stream *ds = &BEFS_I(dir)->i_data.ds; in befs_lookup() local
193 ret = befs_btree_find(sb, ds, utfname, &offset); in befs_lookup()
197 ret = befs_btree_find(sb, ds, name, &offset); in befs_lookup()
219 const befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; in befs_readdir() local
229 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, in befs_readdir()
382 befs_ino->i_data.ds = in befs_iget()
385 num_blks = befs_count_blocks(sb, &befs_ino->i_data.ds); in befs_iget()
388 inode->i_size = befs_ino->i_data.ds.size; in befs_iget()
[all …]
Dbtree.h7 int befs_btree_find(struct super_block *sb, const befs_data_stream *ds,
10 int befs_btree_read(struct super_block *sb, const befs_data_stream *ds,
Ddatastream.h8 const befs_data_stream *ds,
18 const befs_data_stream *ds);
Dbefs.h72 befs_data_stream ds; member
/fs/nfs/filelayout/
Dfilelayout.c452 struct nfs4_pnfs_ds *ds; in filelayout_read_pagelist() local
465 ds = nfs4_fl_prepare_ds(lseg, idx); in filelayout_read_pagelist()
466 if (!ds) in filelayout_read_pagelist()
469 ds_clnt = nfs4_find_or_create_ds_client(ds->ds_clp, hdr->inode); in filelayout_read_pagelist()
474 ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count)); in filelayout_read_pagelist()
477 refcount_inc(&ds->ds_clp->cl_count); in filelayout_read_pagelist()
478 hdr->ds_clp = ds->ds_clp; in filelayout_read_pagelist()
499 struct nfs4_pnfs_ds *ds; in filelayout_write_pagelist() local
508 ds = nfs4_fl_prepare_ds(lseg, idx); in filelayout_write_pagelist()
509 if (!ds) in filelayout_write_pagelist()
[all …]
Dfilelayoutdev.c47 struct nfs4_pnfs_ds *ds; in nfs4_fl_free_deviceid() local
53 ds = dsaddr->ds_list[i]; in nfs4_fl_free_deviceid()
54 if (ds != NULL) in nfs4_fl_free_deviceid()
55 nfs4_pnfs_ds_put(ds); in nfs4_fl_free_deviceid()
265 struct nfs4_pnfs_ds *ds = dsaddr->ds_list[ds_idx]; in nfs4_fl_prepare_ds() local
267 struct nfs4_pnfs_ds *ret = ds; in nfs4_fl_prepare_ds()
271 if (ds == NULL) { in nfs4_fl_prepare_ds()
278 if (ds->ds_clp) in nfs4_fl_prepare_ds()
281 status = nfs4_pnfs_ds_connect(s, ds, devid, dataserver_timeo, in nfs4_fl_prepare_ds()
/fs/ntfs/
Drunlist.c611 int ds = dend + 1; /* Number of elements in drl & srl */ in ntfs_runlists_merge() local
629 ntfs_debug("ds = %i, ss = %i, dins = %i", ds, ss, dins); in ntfs_runlists_merge()
633 drl = ntfs_rl_replace(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
635 drl = ntfs_rl_insert(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
638 drl = ntfs_rl_append(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
640 drl = ntfs_rl_split(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
649 for (ds = dend; drl[ds].length; ds++) in ntfs_runlists_merge()
652 if (drl[ds].vcn <= marker_vcn) { in ntfs_runlists_merge()
655 if (drl[ds].vcn == marker_vcn) { in ntfs_runlists_merge()
659 drl[ds].lcn); in ntfs_runlists_merge()
[all …]
/fs/nfs/flexfilelayout/
Dflexfilelayout.c758 if (cinfo->ds->nbuckets != 0) { in ff_layout_alloc_commit_info()
777 if (cinfo->ds->nbuckets != 0) in ff_layout_alloc_commit_info()
780 cinfo->ds->buckets = buckets; in ff_layout_alloc_commit_info()
781 cinfo->ds->nbuckets = size; in ff_layout_alloc_commit_info()
820 struct nfs4_pnfs_ds *ds; in ff_layout_choose_ds_for_read() local
830 ds = nfs4_ff_layout_prepare_ds(lseg, mirror, fail_return); in ff_layout_choose_ds_for_read()
831 if (!ds) in ff_layout_choose_ds_for_read()
839 return ds; in ff_layout_choose_ds_for_read()
863 struct nfs4_pnfs_ds *ds; in ff_layout_choose_best_ds_for_read() local
865 ds = ff_layout_choose_valid_ds_for_read(lseg, start_idx, best_idx); in ff_layout_choose_best_ds_for_read()
[all …]
Dflexfilelayoutdev.c35 nfs4_pnfs_ds_put(mirror_ds->ds); in nfs4_ff_layout_free_deviceid()
150 new_ds->ds = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_ff_alloc_deviceid_node()
151 if (!new_ds->ds) in nfs4_ff_alloc_deviceid_node()
371 struct nfs4_pnfs_ds *ds = NULL; in nfs4_ff_layout_prepare_ds() local
380 ds = mirror->mirror_ds->ds; in nfs4_ff_layout_prepare_ds()
381 if (READ_ONCE(ds->ds_clp)) in nfs4_ff_layout_prepare_ds()
389 status = nfs4_pnfs_ds_connect(s, ds, &mirror->mirror_ds->id_node, in nfs4_ff_layout_prepare_ds()
397 nfs_block_size(rpc_max_payload(ds->ds_clp->cl_rpcclient), in nfs4_ff_layout_prepare_ds()
413 ds = NULL; in nfs4_ff_layout_prepare_ds()
415 return ds; in nfs4_ff_layout_prepare_ds()
Dflexfilelayout.h41 struct nfs4_pnfs_ds *ds; member
/fs/btrfs/
Dcheck-integrity.c257 static void btrfsic_dev_state_init(struct btrfsic_dev_state *ds);
259 static void btrfsic_dev_state_free(struct btrfsic_dev_state *ds);
283 struct btrfsic_dev_state *ds,
285 static void btrfsic_dev_state_hashtable_remove(struct btrfsic_dev_state *ds);
457 static void btrfsic_dev_state_init(struct btrfsic_dev_state *ds) in btrfsic_dev_state_init() argument
459 ds->magic_num = BTRFSIC_DEV2STATE_MAGIC_NUMBER; in btrfsic_dev_state_init()
460 ds->bdev = NULL; in btrfsic_dev_state_init()
461 ds->state = NULL; in btrfsic_dev_state_init()
462 ds->name[0] = '\0'; in btrfsic_dev_state_init()
463 INIT_LIST_HEAD(&ds->collision_resolving_node); in btrfsic_dev_state_init()
[all …]
Dtree-log.c4071 u64 ds, dl, cs, cl; in copy_items() local
4072 ds = btrfs_file_extent_disk_bytenr(src, in copy_items()
4075 if (ds == 0) in copy_items()
4091 ds + cs, ds + cs + cl - 1, in copy_items()
/fs/fat/
Ddir.c283 struct msdos_dir_slot *ds; in fat_parse_long() local
294 ds = (struct msdos_dir_slot *)*de; in fat_parse_long()
295 id = ds->id; in fat_parse_long()
302 alias_checksum = ds->alias_checksum; in fat_parse_long()
310 fat16_towchar(*unicode + offset, ds->name0_4, 5); in fat_parse_long()
311 fat16_towchar(*unicode + offset + 5, ds->name5_10, 6); in fat_parse_long()
312 fat16_towchar(*unicode + offset + 11, ds->name11_12, 2); in fat_parse_long()
314 if (ds->id & 0x40) in fat_parse_long()
320 ds = (struct msdos_dir_slot *)*de; in fat_parse_long()
321 if (ds->attr != ATTR_EXT) in fat_parse_long()
[all …]
/fs/affs/
Damigaffs.c372 affs_secs_to_datestamp(time64_t secs, struct affs_date *ds) in affs_secs_to_datestamp() argument
385 ds->days = cpu_to_be32(days); in affs_secs_to_datestamp()
386 ds->mins = cpu_to_be32(minute); in affs_secs_to_datestamp()
387 ds->ticks = cpu_to_be32(rem * 50); in affs_secs_to_datestamp()
Daffs.h142 extern void affs_secs_to_datestamp(time64_t secs, struct affs_date *ds);

12