Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 105) sorted by relevance

12345

/fs/kernfs/
Dfile.c68 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/
Ddir.c24 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/
Dfile.c46 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/
Dxfs_ioctl32.c399 compat_xfs_attr_multiop_t *ops; in xfs_compat_attrmulti_by_handle() local
424 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle()
425 if (IS_ERR(ops)) { in xfs_compat_attrmulti_by_handle()
426 error = PTR_ERR(ops); in xfs_compat_attrmulti_by_handle()
437 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_compat_attrmulti_by_handle()
438 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle()
440 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_compat_attrmulti_by_handle()
442 if (ops[i].am_error < 0) in xfs_compat_attrmulti_by_handle()
445 switch (ops[i].am_opcode) { in xfs_compat_attrmulti_by_handle()
447 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_compat_attrmulti_by_handle()
[all …]
Dxfs_ioctl.c516 xfs_attr_multiop_t *ops; in xfs_attrmulti_by_handle() local
540 ops = memdup_user(am_hreq.ops, size); in xfs_attrmulti_by_handle()
541 if (IS_ERR(ops)) { in xfs_attrmulti_by_handle()
542 error = PTR_ERR(ops); in xfs_attrmulti_by_handle()
553 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_attrmulti_by_handle()
554 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle()
555 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle()
557 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle()
560 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle()
562 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle()
[all …]
Dxfs_buf.h254 const struct xfs_buf_ops *ops);
257 const struct xfs_buf_ops *ops);
276 const struct xfs_buf_ops *ops) in xfs_buf_read() argument
279 return xfs_buf_read_map(target, &map, 1, flags, ops); in xfs_buf_read()
287 const struct xfs_buf_ops *ops) in xfs_buf_readahead() argument
290 return xfs_buf_readahead_map(target, &map, 1, ops); in xfs_buf_readahead()
301 const struct xfs_buf_ops *ops);
/fs/jffs2/
Dwbuf.c1038 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/
Dfatent.c102 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()
410 const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_write() local
413 ops->ent_put(fatent, new); in fat_ent_write()
[all …]
/fs/notify/
Dgroup.c36 if (group->ops->free_group_priv) in fsnotify_final_destroy_group()
37 group->ops->free_group_priv(group); in fsnotify_final_destroy_group()
91 group->ops->free_event(group->overflow_event); in fsnotify_destroy_group()
116 struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) in fsnotify_alloc_group() argument
136 group->ops = ops; in fsnotify_alloc_group()
/fs/
Diomap.c43 struct iomap_ops *ops, void *data, iomap_actor_t actor) in iomap_apply() argument
60 ret = ops->iomap_begin(inode, pos, length, flags, &iomap); in iomap_apply()
84 if (ops->iomap_end) { in iomap_apply()
85 ret = ops->iomap_end(inode, pos, length, in iomap_apply()
237 struct iomap_ops *ops) in iomap_file_buffered_write() argument
244 IOMAP_WRITE, ops, iter, iomap_write_actor); in iomap_file_buffered_write()
320 struct iomap_ops *ops) in iomap_file_dirty() argument
325 ret = iomap_apply(inode, pos, len, IOMAP_WRITE, ops, NULL, in iomap_file_dirty()
400 struct iomap_ops *ops) in iomap_zero_range() argument
406 ops, did_zero, iomap_zero_range_actor); in iomap_zero_range()
[all …]
Dnsfs.c49 ns->ops->put(ns); in nsfs_evict()
68 ns->ops->put(ns); in __ns_get_path()
77 ns->ops->put(ns); in __ns_get_path()
94 dentry->d_fsdata = (void *)ns->ops; in __ns_get_path()
173 if (!ns->ops->get_parent) in ns_ioctl()
175 return open_related_ns(ns, ns->ops->get_parent); in ns_ioctl()
/fs/cifs/
Dxattr.c84 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()
236 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get()
237 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get()
247 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get()
250 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get()
337 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr()
338 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_listxattr()
Ddir.c332 if (!server->ops->open) { in cifs_do_create()
362 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_do_create()
412 if (server->ops->set_lease_key) in cifs_do_create()
413 server->ops->set_lease_key(newinode, fid); in cifs_do_create()
448 if (server->ops->close) in cifs_do_create()
449 server->ops->close(xid, tcon, fid); in cifs_do_create()
517 if (server->ops->new_lease_key) in cifs_atomic_open()
518 server->ops->new_lease_key(&fid); in cifs_atomic_open()
535 if (server->ops->close) in cifs_atomic_open()
536 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
[all …]
Dioctl.c78 if (target_tcon->ses->server->ops->clone_range) in cifs_file_clone_range()
79 rc = target_tcon->ses->server->ops->clone_range(xid, in cifs_file_clone_range()
247 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
248 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
260 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
261 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
280 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl()
281 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
Dconnect.c449 (server->ops->can_echo && !server->ops->can_echo(server)) || in cifs_echo_request()
453 rc = server->ops->echo ? server->ops->echo(server) : -ENOSYS; in cifs_echo_request()
652 if (server->ops->check_trans2 && in handle_mid()
653 server->ops->check_trans2(mid, server, buf, malformed)) in handle_mid()
794 length = server->ops->check_message(buf, server->total_read, server); in standard_receive3()
799 if (server->ops->is_session_expired && in standard_receive3()
800 server->ops->is_session_expired(buf)) { in standard_receive3()
806 if (server->ops->is_status_pending && in standard_receive3()
807 server->ops->is_status_pending(buf, server, length)) in standard_receive3()
877 mid_entry = server->ops->find_mid(server, buf); in cifs_demultiplex_thread()
[all …]
Dfile.c187 if (!server->ops->open) in cifs_nt_open()
243 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
323 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo()
334 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo()
389 if (server->ops->get_lease_key) in cifsFileInfo_put()
390 server->ops->get_lease_key(inode, &fid); in cifsFileInfo_put()
421 if (server->ops->close) in cifsFileInfo_put()
422 server->ops->close(xid, tcon, &cifs_file->fid); in cifsFileInfo_put()
525 if (server->ops->get_lease_key) in cifs_open()
526 server->ops->get_lease_key(inode, &fid); in cifs_open()
[all …]
Dinode.c474 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
488 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
530 tcon->ses->server->ops->close(xid, tcon, &fid);
557 if (tcon->ses->server->ops->query_all_EAs == NULL) {
562 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
665 if (!server->ops->query_file_info)
669 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
751 if (!server->ops->query_path_info) {
761 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path,
816 if (server->ops->get_srv_inum)
[all …]
Dlink.c220 if (tcon->ses->server->ops->create_mf_symlink) in create_mf_symlink()
221 rc = tcon->ses->server->ops->create_mf_symlink(xid, tcon, in create_mf_symlink()
250 if (tcon->ses->server->ops->query_mf_symlink) in query_mf_symlink()
251 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in query_mf_symlink()
288 if (tcon->ses->server->ops->query_mf_symlink) in check_mf_symlink()
289 rc = tcon->ses->server->ops->query_mf_symlink(xid, tcon, in check_mf_symlink()
573 if (!server->ops->create_hardlink) { in cifs_hardlink()
577 rc = server->ops->create_hardlink(xid, tcon, from_name, to_name, in cifs_hardlink()
673 if (rc != 0 && server->ops->query_symlink) in cifs_get_link()
674 rc = server->ops->query_symlink(xid, tcon, full_path, in cifs_get_link()
Dreaddir.c299 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()
578 if (!server->ops->query_dir_first || !server->ops->query_dir_next) in find_cifs_entry()
602 if (server->ops->dir_needs_close(cfile)) { in find_cifs_entry()
605 if (server->ops->close_dir) in find_cifs_entry()
606 server->ops->close_dir(xid, tcon, &cfile->fid); in find_cifs_entry()
637 rc = server->ops->query_dir_next(xid, tcon, &cfile->fid, in find_cifs_entry()
652 server->ops->calc_smb_size( in find_cifs_entry()
833 max_len = tcon->ses->server->ops->calc_smb_size( in cifs_readdir()
/fs/fscache/
Dcache.c183 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()
Dobject.c400 object->cache->ops->grab_object(object)) { in fscache_initialise_object()
475 ret = object->cache->ops->lookup_object(object); in fscache_look_up_object()
590 object->cache->ops->lookup_complete(object); in fscache_object_available()
626 object->cache->ops->lookup_complete(object); in fscache_lookup_failure()
731 cache->ops->drop_object(object); in fscache_drop_object()
763 ret = object->cache->ops->grab_object(object) ? 0 : -EAGAIN; in fscache_get_object()
774 object->cache->ops->put_object(object); in fscache_put_object()
975 fscache_operation_init(op, object->cache->ops->invalidate_object, in _fscache_invalidate_object()
1038 object->cache->ops->update_object(object); in fscache_update_object()
/fs/nfs/
Dnfs4renewd.c57 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()
Dnfs4state.c1427 static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_locks() argument
1449 status = ops->recover_lock(state, fl); in nfs4_reclaim_locks()
1487 …int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_open_state() argument
1505 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state()
1513 status = ops->recover_open(sp, state); in nfs4_reclaim_open_state()
1515 status = nfs4_reclaim_locks(state, ops); in nfs4_reclaim_open_state()
1641 const struct nfs4_state_recovery_ops *ops, in nfs4_reclaim_complete() argument
1645 if (ops->reclaim_complete) in nfs4_reclaim_complete()
1646 return ops->reclaim_complete(clp, cred); in nfs4_reclaim_complete()
1692 const struct nfs4_state_recovery_ops *ops; in nfs4_state_end_reclaim_reboot() local
[all …]
/fs/proc/
Dnamespaces.c128 const struct proc_ns_operations *ops = *entry; in proc_ns_dir_readdir() local
129 if (!proc_fill_cache(file, ctx, ops->name, strlen(ops->name), in proc_ns_dir_readdir()
130 proc_ns_instantiate, task, ops)) in proc_ns_dir_readdir()
/fs/nfsd/
Dblocklayout.c313 const struct pr_ops *ops; in nfsd4_block_get_device_info_scsi() local
332 ops = sb->s_bdev->bd_disk->fops->pr_ops; in nfsd4_block_get_device_info_scsi()
333 if (!ops) { in nfsd4_block_get_device_info_scsi()
339 error = ops->pr_register(sb->s_bdev, 0, NFSD_MDS_PR_KEY, true); in nfsd4_block_get_device_info_scsi()
346 error = ops->pr_reserve(sb->s_bdev, NFSD_MDS_PR_KEY, in nfsd4_block_get_device_info_scsi()

12345