Home
last modified time | relevance | path

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

/fs/nfs/
Dpnfs_nfs.c73 cinfo->ds->nwritten--; in pnfs_generic_clear_request_commit()
101 cinfo->ds->nwritten -= ret; in pnfs_generic_scan_ds_commit_list()
102 cinfo->ds->ncommitting += ret; in pnfs_generic_scan_ds_commit_list()
122 for (i = 0; i < cinfo->ds->nbuckets && max != 0; i++) { in pnfs_generic_scan_commit_lists()
123 cnt = pnfs_generic_scan_ds_commit_list(&cinfo->ds->buckets[i], in pnfs_generic_scan_commit_lists()
143 for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) { in pnfs_generic_recover_commit_reqs()
147 cinfo->ds->nwritten -= nwritten; in pnfs_generic_recover_commit_reqs()
160 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_retry_commit()
175 cinfo->ds->ncommitting--; in pnfs_generic_retry_commit()
195 fl_cinfo = cinfo->ds; in pnfs_generic_alloc_ds_commits()
[all …]
Dpnfs.h361 void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds);
365 int nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds,
419 if (cinfo->ds == NULL || cinfo->ds->ncommitting == 0) in pnfs_commit_list()
469 if (cinfo->ds == NULL || cinfo->ds->nwritten == 0) in pnfs_scan_commit_lists()
Ddirect.c307 cinfo->ds = &dreq->ds_cinfo; in nfs_init_cinfo_from_dreq()
643 if (cinfo->ds != NULL && cinfo->ds->nwritten != 0) in nfs_direct_write_scan_commit_list()
Dwrite.c917 cinfo->ds = pnfs_get_ds_info(inode); in nfs_init_cinfo_from_inode()
/fs/9p/
Dfid.c98 struct dentry *ds; in build_path_from_dentry() local
100 for (ds = dentry; !IS_ROOT(ds); ds = ds->d_parent) in build_path_from_dentry()
107 for (ds = dentry, i = (n-1); i >= 0; i--, ds = ds->d_parent) in build_path_from_dentry()
108 wnames[i] = ds->d_name.name; in build_path_from_dentry()
119 struct dentry *ds; in v9fs_fid_lookup_with_uid() local
136 ds = dentry->d_parent; in v9fs_fid_lookup_with_uid()
137 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.c135 befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; in befs_get_block() local
149 res = befs_fblock2brun(sb, ds, block, &run); in befs_get_block()
174 const befs_data_stream *ds = &BEFS_I(dir)->i_data.ds; in befs_lookup() local
192 ret = befs_btree_find(sb, ds, utfname, &offset); in befs_lookup()
196 ret = befs_btree_find(sb, ds, name, &offset); in befs_lookup()
225 const befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; in befs_readdir() local
235 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, in befs_readdir()
394 befs_ino->i_data.ds = in befs_iget()
397 num_blks = befs_count_blocks(sb, &befs_ino->i_data.ds); in befs_iget()
400 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, atomic_read(&ds->ds_clp->cl_count)); in filelayout_read_pagelist()
477 atomic_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.c625 int ds = dend + 1; /* Number of elements in drl & srl */ in ntfs_runlists_merge() local
643 ntfs_debug("ds = %i, ss = %i, dins = %i", ds, ss, dins); in ntfs_runlists_merge()
647 drl = ntfs_rl_replace(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
649 drl = ntfs_rl_insert(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
652 drl = ntfs_rl_append(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
654 drl = ntfs_rl_split(drl, ds, srl + sstart, ss, dins); in ntfs_runlists_merge()
663 for (ds = dend; drl[ds].length; ds++) in ntfs_runlists_merge()
666 if (drl[ds].vcn <= marker_vcn) { in ntfs_runlists_merge()
669 if (drl[ds].vcn == marker_vcn) { in ntfs_runlists_merge()
673 drl[ds].lcn); in ntfs_runlists_merge()
[all …]
/fs/nfs/flexfilelayout/
Dflexfilelayout.c749 if (cinfo->ds->nbuckets != 0) { in ff_layout_alloc_commit_info()
768 if (cinfo->ds->nbuckets != 0) in ff_layout_alloc_commit_info()
771 cinfo->ds->buckets = buckets; in ff_layout_alloc_commit_info()
772 cinfo->ds->nbuckets = size; in ff_layout_alloc_commit_info()
792 struct nfs4_pnfs_ds *ds; in ff_layout_choose_best_ds_for_read() local
800 ds = nfs4_ff_layout_prepare_ds(lseg, idx, fail_return); in ff_layout_choose_best_ds_for_read()
801 if (ds) { in ff_layout_choose_best_ds_for_read()
803 return ds; in ff_layout_choose_best_ds_for_read()
846 struct nfs4_pnfs_ds *ds; in ff_layout_pg_init_read() local
861 ds = ff_layout_choose_best_ds_for_read(pgio->pg_lseg, 0, &ds_idx); in ff_layout_pg_init_read()
[all …]
Dflexfilelayoutdev.c35 nfs4_pnfs_ds_put(mirror_ds->ds); in nfs4_ff_layout_free_deviceid()
149 new_ds->ds = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); in nfs4_ff_alloc_deviceid_node()
150 if (!new_ds->ds) in nfs4_ff_alloc_deviceid_node()
223 if (mirror->mirror_ds->ds == NULL) { in ff_layout_mirror_valid()
413 struct nfs4_pnfs_ds *ds = NULL; in nfs4_ff_layout_prepare_ds() local
430 ds = mirror->mirror_ds->ds; in nfs4_ff_layout_prepare_ds()
433 if (ds->ds_clp) in nfs4_ff_layout_prepare_ds()
439 status = nfs4_pnfs_ds_connect(s, ds, devid, dataserver_timeo, in nfs4_ff_layout_prepare_ds()
447 nfs_block_size(rpc_max_payload(ds->ds_clp->cl_rpcclient), in nfs4_ff_layout_prepare_ds()
462 ds = NULL; in nfs4_ff_layout_prepare_ds()
[all …]
Dflexfilelayout.h40 struct nfs4_pnfs_ds *ds; member
/fs/btrfs/
Dcheck-integrity.c270 static void btrfsic_dev_state_init(struct btrfsic_dev_state *ds);
272 static void btrfsic_dev_state_free(struct btrfsic_dev_state *ds);
296 struct btrfsic_dev_state *ds,
298 static void btrfsic_dev_state_hashtable_remove(struct btrfsic_dev_state *ds);
470 static void btrfsic_dev_state_init(struct btrfsic_dev_state *ds) in btrfsic_dev_state_init() argument
472 ds->magic_num = BTRFSIC_DEV2STATE_MAGIC_NUMBER; in btrfsic_dev_state_init()
473 ds->bdev = NULL; in btrfsic_dev_state_init()
474 ds->state = NULL; in btrfsic_dev_state_init()
475 ds->name[0] = '\0'; in btrfsic_dev_state_init()
476 INIT_LIST_HEAD(&ds->collision_resolving_node); in btrfsic_dev_state_init()
[all …]
Dtree-log.c3835 u64 ds, dl, cs, cl; in copy_items() local
3836 ds = btrfs_file_extent_disk_bytenr(src, in copy_items()
3839 if (ds == 0) in copy_items()
3855 ds + cs, ds + cs + cl - 1, in copy_items()
/fs/fat/
Ddir.c283 struct msdos_dir_slot *ds; in fat_parse_long() local
295 ds = (struct msdos_dir_slot *)*de; in fat_parse_long()
296 id = ds->id; in fat_parse_long()
303 alias_checksum = ds->alias_checksum; in fat_parse_long()
311 fat16_towchar(*unicode + offset, ds->name0_4, 5); in fat_parse_long()
312 fat16_towchar(*unicode + offset + 5, ds->name5_10, 6); in fat_parse_long()
313 fat16_towchar(*unicode + offset + 11, ds->name11_12, 2); in fat_parse_long()
315 if (ds->id & 0x40) in fat_parse_long()
321 ds = (struct msdos_dir_slot *)*de; in fat_parse_long()
322 if (ds->attr != ATTR_EXT) in fat_parse_long()
[all …]
/fs/affs/
Damigaffs.c371 affs_secs_to_datestamp(time64_t secs, struct affs_date *ds) in affs_secs_to_datestamp() argument
384 ds->days = cpu_to_be32(days); in affs_secs_to_datestamp()
385 ds->mins = cpu_to_be32(minute); in affs_secs_to_datestamp()
386 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);