Home
last modified time | relevance | path

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

123456

/fs/kernfs/
Dfile.c67 return kn->attr.ops; in kernfs_ops()
95 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_stop_active() local
97 if (ops->seq_stop) in kernfs_seq_stop_active()
98 ops->seq_stop(sf, v); in kernfs_seq_stop_active()
105 const struct kernfs_ops *ops; in kernfs_seq_start() local
115 ops = kernfs_ops(of->kn); in kernfs_seq_start()
116 if (ops->seq_start) { in kernfs_seq_start()
117 void *next = ops->seq_start(sf, ppos); in kernfs_seq_start()
134 const struct kernfs_ops *ops = kernfs_ops(of->kn); in kernfs_seq_next() local
136 if (ops->seq_next) { in kernfs_seq_next()
[all …]
/fs/xfs/libxfs/
Dxfs_defer.c192 const struct xfs_defer_op_type *ops; in xfs_defer_create_intents() local
195 ops = defer_op_types[dfp->dfp_type]; in xfs_defer_create_intents()
196 dfp->dfp_intent = ops->create_intent(tp, dfp->dfp_count); in xfs_defer_create_intents()
198 list_sort(tp->t_mountp, &dfp->dfp_work, ops->diff_items); in xfs_defer_create_intents()
200 ops->log_item(tp, dfp->dfp_intent, li); in xfs_defer_create_intents()
211 const struct xfs_defer_op_type *ops; in xfs_defer_trans_abort() local
217 ops = defer_op_types[dfp->dfp_type]; in xfs_defer_trans_abort()
220 ops->abort_intent(dfp->dfp_intent); in xfs_defer_trans_abort()
328 const struct xfs_defer_op_type *ops; in xfs_defer_cancel_list() local
335 ops = defer_op_types[dfp->dfp_type]; in xfs_defer_cancel_list()
[all …]
Dxfs_ag.c31 const struct xfs_buf_ops *ops) in xfs_get_aghdr_buf() argument
42 bp->b_ops = ops; in xfs_get_aghdr_buf()
342 const struct xfs_buf_ops *ops) in xfs_ag_init_hdr() argument
347 bp = xfs_get_aghdr_buf(mp, id->daddr, id->numblks, ops); in xfs_ag_init_hdr()
361 const struct xfs_buf_ops *ops; member
387 .ops = &xfs_sb_buf_ops, in xfs_ag_init_headers()
394 .ops = &xfs_agf_buf_ops, in xfs_ag_init_headers()
401 .ops = &xfs_agfl_buf_ops, in xfs_ag_init_headers()
408 .ops = &xfs_agi_buf_ops, in xfs_ag_init_headers()
415 .ops = &xfs_bnobt_buf_ops, in xfs_ag_init_headers()
[all …]
/fs/adfs/
Ddir.c59 const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_readdir() local
67 ret = ops->read(sb, inode->i_ino, inode->i_size, &dir); in adfs_readdir()
84 ret = ops->setpos(&dir, ctx->pos - 2); in adfs_readdir()
87 while (ops->getnext(&dir, &obj) == 0) { in adfs_readdir()
98 ops->free(&dir); in adfs_readdir()
107 const struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_dir_update() local
113 if (!ops->update) { in adfs_dir_update()
118 ret = ops->read(sb, obj->parent_id, 0, &dir); in adfs_dir_update()
123 ret = ops->update(&dir, obj); in adfs_dir_update()
127 int err = ops->sync(&dir); in adfs_dir_update()
[all …]
/fs/sysfs/
Dfile.c43 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_seq_show() local
59 if (ops->show) { in sysfs_kf_seq_show()
60 count = ops->show(kobj, of->kn->priv, buf); in sysfs_kf_seq_show()
71 ops->show); in sysfs_kf_seq_show()
106 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_read() local
116 len = ops->show(kobj, of->kn->priv, buf); in sysfs_kf_read()
132 const struct sysfs_ops *ops = sysfs_file_ops(of->kn); in sysfs_kf_write() local
138 return ops->store(kobj, of->kn->priv, buf, count); in sysfs_kf_write()
250 const struct kernfs_ops *ops; in sysfs_add_file_mode_ns() local
266 ops = &sysfs_prealloc_kfops_rw; in sysfs_add_file_mode_ns()
[all …]
/fs/xfs/
Dxfs_ioctl32.c415 compat_xfs_attr_multiop_t *ops; in xfs_compat_attrmulti_by_handle() local
440 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle()
441 if (IS_ERR(ops)) { in xfs_compat_attrmulti_by_handle()
442 error = PTR_ERR(ops); in xfs_compat_attrmulti_by_handle()
453 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_compat_attrmulti_by_handle()
454 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle()
456 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_compat_attrmulti_by_handle()
458 if (ops[i].am_error < 0) in xfs_compat_attrmulti_by_handle()
461 switch (ops[i].am_opcode) { in xfs_compat_attrmulti_by_handle()
463 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_compat_attrmulti_by_handle()
[all …]
Dxfs_buf.h201 const struct xfs_buf_ops *ops);
204 const struct xfs_buf_ops *ops);
222 const struct xfs_buf_ops *ops) in xfs_buf_read() argument
225 return xfs_buf_read_map(target, &map, 1, flags, ops); in xfs_buf_read()
233 const struct xfs_buf_ops *ops) in xfs_buf_readahead() argument
236 return xfs_buf_readahead_map(target, &map, 1, ops); in xfs_buf_readahead()
243 const struct xfs_buf_ops *ops);
359 int xfs_buf_reverify(struct xfs_buf *bp, const struct xfs_buf_ops *ops);
Dxfs_ioctl.c502 xfs_attr_multiop_t *ops; in xfs_attrmulti_by_handle() local
526 ops = memdup_user(am_hreq.ops, size); in xfs_attrmulti_by_handle()
527 if (IS_ERR(ops)) { in xfs_attrmulti_by_handle()
528 error = PTR_ERR(ops); in xfs_attrmulti_by_handle()
539 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_attrmulti_by_handle()
540 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle()
541 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle()
543 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle()
546 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle()
548 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle()
[all …]
/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.c103 const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_bread() local
114 ops->ent_set_ptr(fatent, offset); in fat_ent_bread()
322 const struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_update_ptr() local
343 ops->ent_set_ptr(fatent, offset); in fat_ent_update_ptr()
351 const struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_read() local
362 ops->ent_blocknr(sb, entry, &offset, &blocknr); in fat_ent_read()
366 err = ops->ent_bread(sb, fatent, offset, blocknr); in fat_ent_read()
370 return ops->ent_get(fatent); in fat_ent_read()
412 const struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_write() local
415 ops->ent_put(fatent, new); in fat_ent_write()
[all …]
/fs/notify/
Dgroup.c24 if (group->ops->free_group_priv) in fsnotify_final_destroy_group()
25 group->ops->free_group_priv(group); in fsnotify_final_destroy_group()
90 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
137 group->ops = ops; in fsnotify_alloc_group()
/fs/cifs/
Dxattr.c92 if (pTcon->ses->server->ops->set_EA) in cifs_xattr_set()
93 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_xattr_set()
109 pTcon->ses->server->ops->set_acl) in cifs_xattr_set()
110 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set()
242 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get()
243 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_xattr_get()
251 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get()
254 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get()
340 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr()
341 rc = pTcon->ses->server->ops->query_all_EAs(xid, pTcon, in cifs_listxattr()
Ddir.c342 if (!server->ops->open) { in cifs_do_create()
372 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_do_create()
422 if (server->ops->set_lease_key) in cifs_do_create()
423 server->ops->set_lease_key(newinode, fid); in cifs_do_create()
458 if (server->ops->close) in cifs_do_create()
459 server->ops->close(xid, tcon, fid); in cifs_do_create()
526 if (server->ops->new_lease_key) in cifs_atomic_open()
527 server->ops->new_lease_key(&fid); in cifs_atomic_open()
544 if (server->ops->close) in cifs_atomic_open()
545 server->ops->close(xid, tcon, &fid); in cifs_atomic_open()
[all …]
Dioctl.c66 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info()
67 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info()
232 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl()
233 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl()
248 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl()
249 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl()
268 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl()
269 rc = tcon->ses->server->ops->enum_snapshots(xid, tcon, in cifs_ioctl()
Dinode.c487 rc = tcon->ses->server->ops->open(xid, &oparms, &oplock, NULL);
501 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms,
543 tcon->ses->server->ops->close(xid, tcon, &fid);
570 if (tcon->ses->server->ops->query_all_EAs == NULL) {
575 rc = tcon->ses->server->ops->query_all_EAs(xid, tcon, path,
679 if (!server->ops->query_file_info)
683 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data);
765 if (!server->ops->query_path_info) {
775 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path,
843 if (server->ops->get_srv_inum)
[all …]
Dconnect.c698 (server->ops->can_echo && !server->ops->can_echo(server)) || in cifs_echo_request()
702 rc = server->ops->echo ? server->ops->echo(server) : -ENOSYS; in cifs_echo_request()
950 if (server->ops->check_trans2 && in handle_mid()
951 server->ops->check_trans2(mid, server, buf, malformed)) in handle_mid()
1109 length = server->ops->check_message(buf, server->total_read, server); in cifs_handle_standard()
1114 if (server->ops->is_session_expired && in cifs_handle_standard()
1115 server->ops->is_session_expired(buf)) { in cifs_handle_standard()
1121 if (server->ops->is_status_pending && in cifs_handle_standard()
1122 server->ops->is_status_pending(buf, server)) in cifs_handle_standard()
1224 if (server->ops->next_header) { in cifs_demultiplex_thread()
[all …]
Dfile.c188 if (!server->ops->open) in cifs_nt_open()
244 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
257 server->ops->close(xid, tcon, fid); in cifs_nt_open()
337 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo()
352 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo()
464 if (server->ops->get_lease_key) in _cifsFileInfo_put()
465 server->ops->get_lease_key(inode, &fid); in _cifsFileInfo_put()
499 if (server->ops->close) in _cifsFileInfo_put()
500 server->ops->close(xid, tcon, &cifs_file->fid); in _cifsFileInfo_put()
589 if (server->ops->get_lease_key) in cifs_open()
[all …]
Dlink.c198 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()
551 if (!server->ops->create_hardlink) { in cifs_hardlink()
555 rc = server->ops->create_hardlink(xid, tcon, from_name, to_name, in cifs_hardlink()
651 if (rc != 0 && server->ops->query_symlink) { in cifs_get_link()
658 rc = server->ops->query_symlink(xid, tcon, cifs_sb, full_path, in cifs_get_link()
/fs/iomap/
Dseek.c21 const struct address_space_operations *ops = inode->i_mapping->a_ops; in page_seek_hole_data() local
42 if (bsize == PAGE_SIZE || !ops->is_partially_uptodate) in page_seek_hole_data()
52 if (ops->is_partially_uptodate(page, off, bsize) == seek_data) { in page_seek_hole_data()
140 iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_hole() argument
151 ret = iomap_apply(inode, offset, length, IOMAP_REPORT, ops, in iomap_seek_hole()
186 iomap_seek_data(struct inode *inode, loff_t offset, const struct iomap_ops *ops) in iomap_seek_data() argument
197 ret = iomap_apply(inode, offset, length, IOMAP_REPORT, ops, in iomap_seek_data()
Dapply.c24 const struct iomap_ops *ops, void *data, iomap_actor_t actor) in iomap_apply() argument
41 ret = ops->iomap_begin(inode, pos, length, flags, &iomap); in iomap_apply()
67 if (ops->iomap_end) { in iomap_apply()
68 ret = ops->iomap_end(inode, pos, length, in iomap_apply()
/fs/
Dnsfs.c52 ns->ops->put(ns); in nsfs_evict()
70 ns->ops->put(ns); in __ns_get_path()
79 ns->ops->put(ns); in __ns_get_path()
95 dentry->d_fsdata = (void *)ns->ops; in __ns_get_path()
198 if (!ns->ops->get_parent) in ns_ioctl()
200 return open_related_ns(ns, ns->ops->get_parent); in ns_ioctl()
202 return ns->ops->type; in ns_ioctl()
204 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl()
268 ctx->ops = &nsfs_ops; in nsfs_init_fs_context()
Dfs_context.c144 if (fc->ops->parse_param) { in vfs_parse_fs_param()
145 ret = fc->ops->parse_param(fc, param); in vfs_parse_fs_param()
347 if (!src_fc->ops->dup) in vfs_dup_fs_context()
368 ret = fc->ops->dup(fc, src_fc); in vfs_dup_fs_context()
500 if (fc->need_free && fc->ops && fc->ops->free) in put_fs_context()
501 fc->ops->free(fc); in put_fs_context()
692 fc->ops = &legacy_fs_context_ops; in legacy_init_fs_context()
700 monolithic_mount_data = fc->ops->parse_monolithic; in parse_monolithic_mount_data()
722 if (fc->need_free && fc->ops && fc->ops->free) in vfs_clean_context()
723 fc->ops->free(fc); in vfs_clean_context()
/fs/fscache/
Dcache.c179 const struct fscache_cache_ops *ops, in fscache_init_cache() argument
187 cache->ops = ops; in fscache_init_cache()
220 BUG_ON(!cache->ops); in fscache_add_cache()
234 _enter("{%s.%s},,%s", cache->ops->name, cache->identifier, tagname); in fscache_add_cache()
280 cache->tag->name, cache->ops->name); in fscache_add_cache()
317 cache->ops->name); in fscache_io_error()
382 cache->ops->sync_cache(cache); in fscache_withdraw_cache()
388 cache->ops->dissociate_pages(cache); in fscache_withdraw_cache()
/fs/xfs/scrub/
Dscrub.c363 const struct xchk_meta_ops *ops; in xchk_validate_inputs() local
378 ops = &meta_scrub_ops[sm->sm_type]; in xchk_validate_inputs()
379 if (ops->setup == NULL || ops->scrub == NULL) in xchk_validate_inputs()
382 if (ops->has && !ops->has(&mp->m_sb)) in xchk_validate_inputs()
387 switch (ops->type) { in xchk_validate_inputs()
489 sc.ops = &meta_scrub_ops[sm->sm_type]; in xfs_scrub_metadata()
493 error = sc.ops->setup(&sc, ip); in xfs_scrub_metadata()
498 error = sc.ops->scrub(&sc); in xfs_scrub_metadata()
/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()
81 cred = ops->get_state_renewal_cred(clp); in nfs4_renew_state()
92 ret = ops->sched_state_renewal(clp, cred, renew_flags); in nfs4_renew_state()

123456