/fs/kernfs/ |
D | file.c | 68 return kn->attr.ops; in kernfs_ops() 96 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_stop_active() local 98 if (ops->seq_stop) in kernfs_seq_stop_active() 99 ops->seq_stop(sf, v); in kernfs_seq_stop_active() 106 const struct kernfs_ops *ops; in kernfs_seq_start() local 116 ops = kernfs_ops(of->kn); in kernfs_seq_start() 117 if (ops->seq_start) { in kernfs_seq_start() 118 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start() 135 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_next() local 137 if (ops->seq_next) { in kernfs_seq_next() [all …]
|
/fs/adfs/ |
D | dir.c | 24 const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_readdir() local 32 ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); in adfs_readdir() 49 ret = ops->setpos(&dir, ctx->pos - 2); in adfs_readdir() 52 while (ops->getnext(&dir, &obj) == 0) { in adfs_readdir() 63 ops->free(&dir); in adfs_readdir() 72 const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_dir_update() local 78 if (!ops->update) { in adfs_dir_update() 83 ret = ops->read(sb, obj->parent_id, 0, &dir); in adfs_dir_update() 88 ret = ops->update(&dir, obj); in adfs_dir_update() 92 int err = ops->sync(&dir); in adfs_dir_update() [all …]
|
/fs/sysfs/ |
D | file.c | 46 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show() local 62 if (ops->show) { in sysfs_kf_seq_show() 63 count = ops->show(kobj, of->kn->priv, buf); in sysfs_kf_seq_show() 74 (unsigned long)ops->show); in sysfs_kf_seq_show() 109 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_read() local 119 len = ops->show(kobj, of->kn->priv, buf); in sysfs_kf_read() 135 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_write() local 141 return ops->store(kobj, of->kn->priv, buf, count); in sysfs_kf_write() 253 const struct kernfs_ops *ops; in sysfs_add_file_mode_ns() local 269 ops = &sysfs_prealloc_kfops_rw; in sysfs_add_file_mode_ns() [all …]
|
/fs/xfs/ |
D | xfs_ioctl32.c | 432 compat_xfs_attr_multiop_t *ops; in xfs_compat_attrmulti_by_handle() local 457 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle() 458 if (IS_ERR(ops)) { in xfs_compat_attrmulti_by_handle() 459 error = PTR_ERR(ops); in xfs_compat_attrmulti_by_handle() 470 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_compat_attrmulti_by_handle() 471 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle() 473 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_compat_attrmulti_by_handle() 475 if (ops[i].am_error < 0) in xfs_compat_attrmulti_by_handle() 478 switch (ops[i].am_opcode) { in xfs_compat_attrmulti_by_handle() 480 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_compat_attrmulti_by_handle() [all …]
|
D | xfs_ioctl.c | 519 xfs_attr_multiop_t *ops; in xfs_attrmulti_by_handle() local 543 ops = memdup_user(am_hreq.ops, size); in xfs_attrmulti_by_handle() 544 if (IS_ERR(ops)) { in xfs_attrmulti_by_handle() 545 error = PTR_ERR(ops); in xfs_attrmulti_by_handle() 556 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_attrmulti_by_handle() 557 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle() 558 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle() 560 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle() 563 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle() 565 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle() [all …]
|
D | xfs_buf.h | 255 const struct xfs_buf_ops *ops); 258 const struct xfs_buf_ops *ops); 277 const struct xfs_buf_ops *ops) in xfs_buf_read() argument 280 return xfs_buf_read_map(target, &map, 1, flags, ops); in xfs_buf_read() 288 const struct xfs_buf_ops *ops) in xfs_buf_readahead() argument 291 return xfs_buf_readahead_map(target, &map, 1, ops); in xfs_buf_readahead() 301 const struct xfs_buf_ops *ops);
|
/fs/jffs2/ |
D | wbuf.c | 1038 struct mtd_oob_ops ops; in jffs2_check_oob_empty() local 1040 ops.mode = MTD_OPS_AUTO_OOB; in jffs2_check_oob_empty() 1041 ops.ooblen = NR_OOB_SCAN_PAGES * c->oobavail; in jffs2_check_oob_empty() 1042 ops.oobbuf = c->oobbuf; in jffs2_check_oob_empty() 1043 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_oob_empty() 1044 ops.datbuf = NULL; in jffs2_check_oob_empty() 1046 ret = mtd_read_oob(c->mtd, jeb->offset, &ops); in jffs2_check_oob_empty() 1047 if ((ret && !mtd_is_bitflip(ret)) || ops.oobretlen != ops.ooblen) { in jffs2_check_oob_empty() 1049 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_oob_empty() 1055 for(i = 0; i < ops.ooblen; i++) { in jffs2_check_oob_empty() [all …]
|
/fs/fat/ |
D | fatent.c | 102 const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_bread() local 113 ops->ent_set_ptr(fatent, offset); in fat_ent_bread() 323 const struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_update_ptr() local 344 ops->ent_set_ptr(fatent, offset); in fat_ent_update_ptr() 352 const struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_read() local 363 ops->ent_blocknr(sb, entry, &offset, &blocknr); in fat_ent_read() 367 err = ops->ent_bread(sb, fatent, offset, blocknr); in fat_ent_read() 371 return ops->ent_get(fatent); in fat_ent_read() 413 const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_write() local 416 ops->ent_put(fatent, new); in fat_ent_write() [all …]
|
/fs/notify/ |
D | group.c | 36 if (group->ops->free_group_priv) in fsnotify_final_destroy_group() 37 group->ops->free_group_priv(group); in fsnotify_final_destroy_group() 100 group->ops->free_event(group->overflow_event); in fsnotify_destroy_group() 125 struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) in fsnotify_alloc_group() argument 146 group->ops = ops; in fsnotify_alloc_group()
|
/fs/cifs/ |
D | xattr.c | 84 if (pTcon->ses->server->ops->set_EA) in cifs_xattr_set() 85 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_xattr_set() 102 pTcon->ses->server->ops->set_acl) in cifs_xattr_set() 103 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set() 234 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get() 235 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get() 244 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get() 247 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 334 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr() 335 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_listxattr()
|
D | dir.c | 343 if (!server->ops->open) { in cifs_do_create() 373 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_do_create() 423 if (server->ops->set_lease_key) in cifs_do_create() 424 server->ops->set_lease_key(newinode, fid); in cifs_do_create() 459 if (server->ops->close) in cifs_do_create() 460 server->ops->close(xid, tcon, fid); in cifs_do_create() 528 if (server->ops->new_lease_key) in cifs_atomic_open() 529 server->ops->new_lease_key(&fid); in cifs_atomic_open() 546 if (server->ops->close) in cifs_atomic_open() 547 server->ops->close(xid, tcon, &fid); in cifs_atomic_open() [all …]
|
D | connect.c | 507 (server->ops->can_echo && !server->ops->can_echo(server)) || in cifs_echo_request() 511 rc = server->ops->echo ? server->ops->echo(server) : -ENOSYS; in cifs_echo_request() 732 if (server->ops->check_trans2 && in handle_mid() 733 server->ops->check_trans2(mid, server, buf, malformed)) in handle_mid() 883 length = server->ops->check_message(buf, server->total_read, server); in cifs_handle_standard() 888 if (server->ops->is_session_expired && in cifs_handle_standard() 889 server->ops->is_session_expired(buf)) { in cifs_handle_standard() 895 if (server->ops->is_status_pending && in cifs_handle_standard() 896 server->ops->is_status_pending(buf, server, length)) in cifs_handle_standard() 968 if (server->ops->is_transform_hdr && in cifs_demultiplex_thread() [all …]
|
D | ioctl.c | 190 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl() 191 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl() 203 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl() 204 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl() 223 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl() 224 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
|
D | file.c | 187 if (!server->ops->open) in cifs_nt_open() 243 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 256 server->ops->close(xid, tcon, fid); in cifs_nt_open() 333 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo() 348 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo() 421 if (server->ops->get_lease_key) in _cifsFileInfo_put() 422 server->ops->get_lease_key(inode, &fid); in _cifsFileInfo_put() 454 if (server->ops->close) in _cifsFileInfo_put() 455 server->ops->close(xid, tcon, &cifs_file->fid); in _cifsFileInfo_put() 558 if (server->ops->get_lease_key) in cifs_open() [all …]
|
D | link.c | 198 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink() 199 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink() 228 if (tcon->ses->server->ops->query_mf_symlink) in query_mf_symlink() 229 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in query_mf_symlink() 266 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink() 267 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink() 549 if (!server->ops->create_hardlink) { in cifs_hardlink() 553 rc = server->ops->create_hardlink(xid, tcon, from_name, to_name, in cifs_hardlink() 649 if (rc != 0 && server->ops->query_symlink) in cifs_get_link() 650 rc = server->ops->query_symlink(xid, tcon, full_path, in cifs_get_link()
|
D | inode.c | 483 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL); 497 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, 539 tcon->ses->server->ops->close(xid, tcon, &fid); 566 if (tcon->ses->server->ops->query_all_EAs == NULL) { 571 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path, 675 if (!server->ops->query_file_info) 679 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data); 761 if (!server->ops->query_path_info) { 771 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path, 841 if (server->ops->get_srv_inum) [all …]
|
D | cifsacl.c | 1138 struct smb_version_operations *ops; in cifs_acl_to_fattr() local 1145 ops = tlink_tcon(tlink)->ses->server->ops; in cifs_acl_to_fattr() 1147 if (pfid && (ops->get_acl_by_fid)) in cifs_acl_to_fattr() 1148 pntsd = ops->get_acl_by_fid(cifs_sb, pfid, &acllen); in cifs_acl_to_fattr() 1149 else if (ops->get_acl) in cifs_acl_to_fattr() 1150 pntsd = ops->get_acl(cifs_sb, inode, path, &acllen); in cifs_acl_to_fattr() 1183 struct smb_version_operations *ops; in id_mode_to_cifs_acl() local 1188 ops = tlink_tcon(tlink)->ses->server->ops; in id_mode_to_cifs_acl() 1194 if (ops->get_acl == NULL) { in id_mode_to_cifs_acl() 1199 pntsd = ops->get_acl(cifs_sb, inode, path, &secdesclen); in id_mode_to_cifs_acl() [all …]
|
D | readdir.c | 299 if (!server->ops->query_dir_first) { in initiate_cifs_search() 334 rc = server->ops->query_dir_first(xid, tcon, full_path, cifs_sb, in initiate_cifs_search() 585 if (!server->ops->query_dir_first || !server->ops->query_dir_next) in find_cifs_entry() 609 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry() 612 if (server->ops->close_dir) in find_cifs_entry() 613 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry() 644 rc = server->ops->query_dir_next(xid, tcon, &cfile->fid, in find_cifs_entry() 666 server->ops->calc_smb_size( in find_cifs_entry() 847 max_len = tcon->ses->server->ops->calc_smb_size( in cifs_readdir()
|
/fs/ |
D | iomap.c | 46 const struct iomap_ops *ops, void *data, iomap_actor_t actor) in iomap_apply() argument 63 ret = ops->iomap_begin(inode, pos, length, flags, &iomap); in iomap_apply() 87 if (ops->iomap_end) { in iomap_apply() 88 ret = ops->iomap_end(inode, pos, length, in iomap_apply() 234 const struct iomap_ops *ops) in iomap_file_buffered_write() argument 241 IOMAP_WRITE, ops, iter, iomap_write_actor); in iomap_file_buffered_write() 316 const struct iomap_ops *ops) in iomap_file_dirty() argument 321 ret = iomap_apply(inode, pos, len, IOMAP_WRITE, ops, NULL, in iomap_file_dirty() 397 const struct iomap_ops *ops) in iomap_zero_range() argument 403 ops, did_zero, iomap_zero_range_actor); in iomap_zero_range() [all …]
|
D | nsfs.c | 51 ns->ops->put(ns); in nsfs_evict() 69 ns->ops->put(ns); in __ns_get_path() 78 ns->ops->put(ns); in __ns_get_path() 95 dentry->d_fsdata = (void *)ns->ops; in __ns_get_path() 177 if (!ns->ops->get_parent) in ns_ioctl() 179 return open_related_ns(ns, ns->ops->get_parent); in ns_ioctl() 181 return ns->ops->type; in ns_ioctl() 183 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl()
|
/fs/fscache/ |
D | cache.c | 183 const struct fscache_cache_ops *ops, in fscache_init_cache() argument 191 cache->ops = ops; in fscache_init_cache() 223 BUG_ON(!cache->ops); in fscache_add_cache() 237 _enter("{%s.%s},,%s", cache->ops->name, cache->identifier, tagname); in fscache_add_cache() 284 cache->tag->name, cache->ops->name); in fscache_add_cache() 321 cache->ops->name); in fscache_io_error() 386 cache->ops->sync_cache(cache); in fscache_withdraw_cache() 392 cache->ops->dissociate_pages(cache); in fscache_withdraw_cache()
|
/fs/nfs/ |
D | nfs4renewd.c | 57 const struct nfs4_state_maintenance_ops *ops; in nfs4_renew_state() local 65 ops = clp->cl_mvops->state_renewal_ops; in nfs4_renew_state() 82 cred = ops->get_state_renewal_cred_locked(clp); in nfs4_renew_state() 94 ret = ops->sched_state_renewal(clp, cred, renew_flags); in nfs4_renew_state()
|
D | nfs4state.c | 1466 static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_locks() argument 1489 status = ops->recover_lock(state, fl); in nfs4_reclaim_locks() 1529 …int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_open_state() argument 1547 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state() 1555 status = ops->recover_open(sp, state); in nfs4_reclaim_open_state() 1557 status = nfs4_reclaim_locks(state, ops); in nfs4_reclaim_open_state() 1683 const struct nfs4_state_recovery_ops *ops, in nfs4_reclaim_complete() argument 1687 if (ops->reclaim_complete) in nfs4_reclaim_complete() 1688 return ops->reclaim_complete(clp, cred); in nfs4_reclaim_complete() 1734 const struct nfs4_state_recovery_ops *ops; in nfs4_state_end_reclaim_reboot() local [all …]
|
/fs/proc/ |
D | namespaces.c | 129 const struct proc_ns_operations *ops = *entry; in proc_ns_dir_readdir() local 130 if (!proc_fill_cache(file, ctx, ops->name, strlen(ops->name), in proc_ns_dir_readdir() 131 proc_ns_instantiate, task, ops)) in proc_ns_dir_readdir()
|
/fs/xfs/libxfs/ |
D | xfs_dir2_data.c | 64 const struct xfs_dir_ops *ops; in __xfs_dir3_data_check() local 74 ops = xfs_dir_get_ops(mp, dp); in __xfs_dir3_data_check() 77 p = (char *)ops->data_entry_p(hdr); in __xfs_dir3_data_check() 108 bf = ops->data_bestfree_p(hdr); in __xfs_dir3_data_check() 170 p + ops->data_entsize(dep->namelen)); in __xfs_dir3_data_check() 172 be16_to_cpu(*ops->data_entry_tag_p(dep)) == in __xfs_dir3_data_check() 175 ops->data_get_ftype(dep) < XFS_DIR3_FT_MAX); in __xfs_dir3_data_check() 194 p += ops->data_entsize(dep->namelen); in __xfs_dir3_data_check() 514 const struct xfs_dir_ops *ops, in xfs_dir2_data_freescan_int() argument 533 bf = ops->data_bestfree_p(hdr); in xfs_dir2_data_freescan_int() [all …]
|