| /fs/xfs/libxfs/ |
| A D | xfs_shared.h | 66 return ops == &xfs_bnobt_ops; in xfs_btree_is_bno() 71 return ops == &xfs_cntbt_ops; in xfs_btree_is_cnt() 76 return ops == &xfs_bmbt_ops; in xfs_btree_is_bmap() 81 return ops == &xfs_inobt_ops; in xfs_btree_is_ino() 86 return ops == &xfs_finobt_ops; in xfs_btree_is_fino() 91 return ops == &xfs_refcountbt_ops; in xfs_btree_is_refcount() 96 return ops == &xfs_rmapbt_ops; in xfs_btree_is_rmap() 102 return ops == &xfs_rmapbt_mem_ops; in xfs_btree_is_mem_rmap() 107 return ops == &xfs_rtrmapbt_mem_ops; in xfs_btree_is_mem_rtrmap() 116 return ops == &xfs_rtrmapbt_ops; in xfs_btree_is_rtrmap() [all …]
|
| A D | xfs_btree_mem.c | 78 const struct xfs_btree_ops *ops) in xfbtree_rec_bytes() argument 88 const struct xfs_btree_ops *ops) in xfbtree_init_leaf_block() argument 101 bp->b_ops = ops->buf_ops; in xfbtree_init_leaf_block() 102 xfs_btree_init_buf(mp, bp, ops, 0, 0, xfbt->owner); in xfbtree_init_leaf_block() 118 const struct xfs_btree_ops *ops) in xfbtree_init() argument 129 if (ops->ptr_len != XFS_BTREE_LONG_PTR_LEN) { in xfbtree_init() 130 ASSERT(ops->ptr_len == XFS_BTREE_LONG_PTR_LEN); in xfbtree_init() 138 keyptr_len = ops->key_len + sizeof(__be64); in xfbtree_init() 139 xfbt->maxrecs[0] = blocklen / ops->rec_len; in xfbtree_init() 147 error = xfbtree_init_leaf_block(mp, xfbt, ops); in xfbtree_init() [all …]
|
| A D | xfs_defer.c | 622 if (ops->finish_cleanup) in xfs_defer_finish_one() 780 const struct xfs_defer_op_type *ops) in xfs_defer_find_last() argument 792 if (dfp->dfp_ops != ops) in xfs_defer_find_last() 804 const struct xfs_defer_op_type *ops) in xfs_defer_can_append() argument 815 if (ops->max_items && dfp->dfp_count >= ops->max_items) in xfs_defer_can_append() 825 const struct xfs_defer_op_type *ops) in xfs_defer_alloc() argument 831 dfp->dfp_ops = ops; in xfs_defer_alloc() 843 const struct xfs_defer_op_type *ops) in xfs_defer_add() argument 849 if (!ops->finish_item) { in xfs_defer_add() 850 ASSERT(ops->finish_item != NULL); in xfs_defer_add() [all …]
|
| A D | xfs_rtgroup.c | 420 const struct xfs_rtginode_ops *ops = &xfs_rtginode_ops[type]; in xfs_rtginode_enabled() local 422 if (!ops->enabled) in xfs_rtginode_enabled() 424 return ops->enabled(rtg_mount(rtg)); in xfs_rtginode_enabled() 433 const struct xfs_rtginode_ops *ops = &xfs_rtginode_ops[type]; in xfs_rtginode_mark_sick() local 435 xfs_group_mark_sick(rtg_group(rtg), ops->sick); in xfs_rtginode_mark_sick() 447 const struct xfs_rtginode_ops *ops = &xfs_rtginode_ops[type]; in xfs_rtginode_load() local 468 error = xfs_trans_metafile_iget(tp, ino, ops->metafile_type, in xfs_rtginode_load() 482 ops->metafile_type, &ip); in xfs_rtginode_load() 526 const struct xfs_rtginode_ops *ops = &xfs_rtginode_ops[type]; in xfs_rtginode_create() local 530 .metafile_type = ops->metafile_type, in xfs_rtginode_create() [all …]
|
| /fs/kernfs/ |
| A D | file.c | 110 return kn->attr.ops; in kernfs_ops() 140 if (ops->seq_stop) in kernfs_seq_stop_active() 250 if (ops->read) in kernfs_file_read_iter() 333 if (ops->write) in kernfs_fop_write_iter() 606 has_read = ops->seq_show || ops->read || ops->mmap; in kernfs_fop_open() 607 has_write = ops->write || ops->mmap; in kernfs_fop_open() 669 if (ops->prealloc && ops->seq_show) in kernfs_fop_open() 704 if (ops->open) { in kernfs_fop_open() 884 if (ops->llseek) in kernfs_fop_llseek() 1044 kn->attr.ops = ops; in __kernfs_create_file() [all …]
|
| /fs/smb/server/ |
| A D | server.c | 170 if (conn->ops->is_transform_hdr && in __handle_ksmbd_work() 172 rc = conn->ops->decrypt_req(work); in __handle_ksmbd_work() 181 rc = conn->ops->init_rsp_hdr(work); in __handle_ksmbd_work() 193 conn->ops->set_rsp_status(work, in __handle_ksmbd_work() 196 conn->ops->set_rsp_status(work, in __handle_ksmbd_work() 203 conn->ops->set_rsp_status(work, in __handle_ksmbd_work() 221 if (conn->ops->set_rsp_credits) { in __handle_ksmbd_work() 226 conn->ops->set_rsp_status(work, in __handle_ksmbd_work() 237 conn->ops->set_sign_rsp(work); in __handle_ksmbd_work() 245 conn->ops->encrypt_resp) { in __handle_ksmbd_work() [all …]
|
| A D | connection.c | 43 conn->transport->ops->free_transport(conn->transport); in ksmbd_conn_free() 121 if (conn->ops->get_cmd_val(work) != SMB2_CANCEL_HE) in ksmbd_conn_enqueue_request() 251 if (conn->transport->ops->rdma_read) in ksmbd_conn_rdma_read() 265 if (conn->transport->ops->rdma_write) in ksmbd_conn_rdma_write() 322 if (t->ops->prepare && t->ops->prepare(t)) in ksmbd_conn_handler_loop() 342 size = t->ops->read(t, hdr_buf, sizeof(hdr_buf), -1); in ksmbd_conn_handler_loop() 427 t->ops->disconnect(t); in ksmbd_conn_handler_loop() 434 default_conn_ops.process_fn = ops->process_fn; in ksmbd_conn_init_server_callbacks() 435 default_conn_ops.terminate_fn = ops->terminate_fn; in ksmbd_conn_init_server_callbacks() 489 if (t->ops->shutdown) { in stop_sessions() [all …]
|
| /fs/nfs_common/ |
| A D | nfs_ssc.c | 27 void nfs42_ssc_register(const struct nfs4_ssc_client_ops *ops) in nfs42_ssc_register() argument 29 nfs_ssc_client_tbl.ssc_nfs4_ops = ops; in nfs42_ssc_register() 41 void nfs42_ssc_unregister(const struct nfs4_ssc_client_ops *ops) in nfs42_ssc_unregister() argument 43 if (nfs_ssc_client_tbl.ssc_nfs4_ops != ops) in nfs42_ssc_unregister() 59 void nfs_ssc_register(const struct nfs_ssc_client_ops *ops) in nfs_ssc_register() argument 61 nfs_ssc_client_tbl.ssc_nfs_ops = ops; in nfs_ssc_register() 73 void nfs_ssc_unregister(const struct nfs_ssc_client_ops *ops) in nfs_ssc_unregister() argument 75 if (nfs_ssc_client_tbl.ssc_nfs_ops != ops) in nfs_ssc_unregister() 82 void nfs_ssc_register(const struct nfs_ssc_client_ops *ops) in nfs_ssc_register() argument 87 void nfs_ssc_unregister(const struct nfs_ssc_client_ops *ops) in nfs_ssc_unregister() argument
|
| /fs/jffs2/ |
| A D | wbuf.c | 1043 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_oob_empty() 1044 ops.datbuf = NULL; 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() 1085 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_nand_cleanmarker() 1086 ops.datbuf = NULL; in jffs2_check_nand_cleanmarker() 1089 if ((ret && !mtd_is_bitflip(ret)) || ops.oobretlen != ops.ooblen) { in jffs2_check_nand_cleanmarker() 1091 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_nand_cleanmarker() 1110 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_write_nand_cleanmarker() 1114 if (ret || ops.oobretlen != ops.ooblen) { in jffs2_write_nand_cleanmarker() [all …]
|
| /fs/bcachefs/ |
| A D | bkey_methods.c | 140 if (!ops->key_validate) in bch2_bkey_val_validate() 320 if (likely(ops->val_to_text)) in bch2_val_to_text() 321 ops->val_to_text(out, c, k); in bch2_val_to_text() 339 if (ops->swab) in bch2_bkey_swab_val() 340 ops->swab(k); in bch2_bkey_swab_val() 347 return ops->key_normalize in bch2_bkey_normalize() 348 ? ops->key_normalize(c, k) in bch2_bkey_normalize() 356 return ops->key_merge && in bch2_bkey_merge() 360 ops->key_merge(c, l, r); in bch2_bkey_merge() 404 const struct bkey_ops *ops; in __bch2_bkey_compat() local [all …]
|
| A D | thread_with_file.c | 163 thr->ops->exit(thr); in thread_with_stdio_release() 272 if (thr->ops->unlocked_ioctl) in thread_with_stdio_ioctl() 273 return thr->ops->unlocked_ioctl(thr, cmd, p); in thread_with_stdio_ioctl() 298 thr->thr.ret = thr->ops->fn(thr); in thread_with_stdio_fn() 305 const struct thread_with_stdio_ops *ops) in bch2_thread_with_stdio_init() argument 309 thr->ops = ops; in bch2_thread_with_stdio_init() 318 const struct thread_with_stdio_ops *ops) in bch2_run_thread_with_stdio() argument 320 bch2_thread_with_stdio_init(thr, ops); in bch2_run_thread_with_stdio() 326 const struct thread_with_stdio_ops *ops) in bch2_run_thread_with_stdout() argument 330 thr->ops = ops; in bch2_run_thread_with_stdout()
|
| /fs/sysfs/ |
| A D | file.c | 54 if (WARN_ON_ONCE(!ops->show)) in sysfs_kf_seq_show() 75 ops->show); in sysfs_kf_seq_show() 304 ops = &sysfs_file_kfops_rw; in sysfs_add_file_mode_ns() 306 ops = &sysfs_file_kfops_ro; in sysfs_add_file_mode_ns() 308 ops = &sysfs_file_kfops_wo; in sysfs_add_file_mode_ns() 311 if (!ops) in sysfs_add_file_mode_ns() 335 const struct kernfs_ops *ops; in sysfs_add_bin_file_mode_ns() local 345 ops = &sysfs_bin_kfops_mmap; in sysfs_add_bin_file_mode_ns() 347 ops = &sysfs_bin_kfops_rw; in sysfs_add_bin_file_mode_ns() 349 ops = &sysfs_bin_kfops_ro; in sysfs_add_bin_file_mode_ns() [all …]
|
| /fs/notify/ |
| A D | group.c | 24 if (group->ops->free_group_priv) in fsnotify_final_destroy_group() 25 group->ops->free_group_priv(group); in fsnotify_final_destroy_group() 91 group->ops->free_event(group, group->overflow_event); in fsnotify_destroy_group() 115 const struct fsnotify_ops *ops, in __fsnotify_alloc_group() argument 136 group->ops = ops; in __fsnotify_alloc_group() 145 struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops, in fsnotify_alloc_group() argument 151 return __fsnotify_alloc_group(ops, flags, gfp); in fsnotify_alloc_group()
|
| /fs/afs/ |
| A D | fs_operation.c | 287 op->ops->issue_yfs_rpc) in afs_wait_for_operation() 288 op->ops->issue_yfs_rpc(op); in afs_wait_for_operation() 290 op->ops->issue_afs_rpc(op); in afs_wait_for_operation() 308 op->ops->success(op); in afs_wait_for_operation() 310 if (op->ops->aborted) in afs_wait_for_operation() 311 op->ops->aborted(op); in afs_wait_for_operation() 313 if (op->ops->failed) in afs_wait_for_operation() 314 op->ops->failed(op); in afs_wait_for_operation() 321 op->ops->edit_dir(op); in afs_wait_for_operation() 336 if (op->ops && op->ops->put) in afs_put_operation() [all …]
|
| /fs/fat/ |
| A D | fatent.c | 116 ops->ent_set_ptr(fatent, offset); in fat_ent_bread() 345 ops->ent_set_ptr(fatent, offset); in fat_ent_update_ptr() 364 ops->ent_blocknr(sb, entry, &offset, &blocknr); in fat_ent_read() 372 return ops->ent_get(fatent); in fat_ent_read() 417 ops->ent_put(fatent, new); in fat_ent_write() 499 if (ops->ent_get(&fatent) == FAT_ENT_FREE) { in fat_alloc_clusters() 503 ops->ent_put(&fatent, FAT_ENT_EOF); in fat_alloc_clusters() 505 ops->ent_put(&prev_ent, entry); in fat_alloc_clusters() 597 ops->ent_put(&fatent, FAT_ENT_FREE); in fat_free_clusters() 741 if (ops->ent_get(&fatent) == FAT_ENT_FREE) in fat_count_free_clusters() [all …]
|
| /fs/ |
| A D | nsfs.c | 33 const struct proc_ns_operations *ns_ops = ns->ops; in ns_dname() 48 ns->ops->put(ns); in nsfs_evict() 201 if (!ns->ops->get_parent) in ns_ioctl() 205 return ns->ops->type; in ns_ioctl() 207 if (ns->ops->type != CLONE_NEWUSER) in ns_ioctl() 217 if (ns->ops->type != CLONE_NEWNS) in ns_ioctl() 232 if (ns->ops->type != CLONE_NEWPID) in ns_ioctl() 279 if (ns->ops->type != CLONE_NEWNS) in ns_ioctl() 300 if (ns->ops->type != CLONE_NEWNS) in ns_ioctl() 410 ns->ops->put(ns); in nsfs_put_data() [all …]
|
| A D | fs_context.c | 145 if (fc->ops->parse_param) { in vfs_parse_fs_param() 146 ret = fc->ops->parse_param(fc, param); in vfs_parse_fs_param() 393 if (!src_fc->ops->dup) in vfs_dup_fs_context() 414 ret = fc->ops->dup(fc, src_fc); in vfs_dup_fs_context() 523 if (fc->need_free && fc->ops && fc->ops->free) in put_fs_context() 524 fc->ops->free(fc); in put_fs_context() 711 fc->ops = &legacy_fs_context_ops; in legacy_init_fs_context() 719 monolithic_mount_data = fc->ops->parse_monolithic; in parse_monolithic_mount_data() 741 if (fc->need_free && fc->ops && fc->ops->free) in vfs_clean_context() 742 fc->ops->free(fc); in vfs_clean_context()
|
| /fs/smb/client/ |
| A D | xattr.c | 61 if (pTcon->ses->server->ops->set_file_info) in cifs_attrib_set() 85 if (pTcon->ses->server->ops->set_file_info) in cifs_creation_time_set() 156 if (pTcon->ses->server->ops->set_EA) { in cifs_xattr_set() 157 rc = pTcon->ses->server->ops->set_EA(xid, pTcon, in cifs_xattr_set() 179 if (pTcon->ses->server->ops->set_acl) { in cifs_xattr_set() 207 rc = pTcon->ses->server->ops->set_acl(pacl, in cifs_xattr_set() 317 if (pTcon->ses->server->ops->query_all_EAs) in cifs_xattr_get() 334 if (pTcon->ses->server->ops->get_acl == NULL) in cifs_xattr_get() 355 pacl = pTcon->ses->server->ops->get_acl(cifs_sb, in cifs_xattr_get() 426 if (pTcon->ses->server->ops->query_all_EAs) in cifs_listxattr() [all …]
|
| A D | dir.c | 305 if (!server->ops->open) { 411 if (server->ops->set_lease_key) 450 if (server->ops->close) 451 server->ops->close(xid, tcon, fid); 522 if (server->ops->new_lease_key) 523 server->ops->new_lease_key(&fid); 539 if (server->ops->close) 555 if (server->ops->close) 609 if (server->ops->new_lease_key) 610 server->ops->new_lease_key(&fid); [all …]
|
| A D | ioctl.c | 57 if (tcon->ses->server->ops->ioctl_query_info) in cifs_ioctl_query_info() 58 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info() 430 if (tcon->ses->server->ops->set_compression) { in cifs_ioctl() 431 rc = tcon->ses->server->ops->set_compression( in cifs_ioctl() 446 if (tcon->ses->server->ops->set_integrity) in cifs_ioctl() 447 rc = tcon->ses->server->ops->set_integrity(xid, in cifs_ioctl() 477 if (tcon->ses->server->ops->enum_snapshots) in cifs_ioctl() 555 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl() 556 rc = tcon->ses->server->ops->notify(xid, in cifs_ioctl() 577 if (tcon && tcon->ses->server->ops->notify) { in cifs_ioctl() [all …]
|
| A D | file.c | 545 if (!server->ops->open) in cifs_nt_open() 806 if (server->ops->close_getattr) in serverclose_work() 808 else if (server->ops->close) in serverclose_work() 882 if (server->ops->get_lease_key) in _cifsFileInfo_put() 918 if (server->ops->close_getattr) in _cifsFileInfo_put() 920 else if (server->ops->close) in _cifsFileInfo_put() 1057 if (server->ops->get_lease_key) in cifs_open() 1063 if (server->ops->get_lease_key) in cifs_open() 1076 if (server->ops->close) in cifs_open() 1252 if (server->ops->get_lease_key) in cifs_reopen_file() [all …]
|
| /fs/xfs/ |
| A D | xfs_ioctl32.c | 372 compat_xfs_attr_multiop_t *ops; in xfs_compat_attrmulti_by_handle() local 396 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle() 397 if (IS_ERR(ops)) { in xfs_compat_attrmulti_by_handle() 398 error = PTR_ERR(ops); in xfs_compat_attrmulti_by_handle() 404 ops[i].am_error = xfs_ioc_attrmulti_one(parfilp, in xfs_compat_attrmulti_by_handle() 405 d_inode(dentry), ops[i].am_opcode, in xfs_compat_attrmulti_by_handle() 406 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle() 407 compat_ptr(ops[i].am_attrvalue), in xfs_compat_attrmulti_by_handle() 408 &ops[i].am_length, ops[i].am_flags); in xfs_compat_attrmulti_by_handle() 411 if (copy_to_user(compat_ptr(am_hreq.ops), ops, size)) in xfs_compat_attrmulti_by_handle() [all …]
|
| A D | xfs_buf.h | 218 const struct xfs_buf_ops *ops, xfs_failaddr_t fa); 221 const struct xfs_buf_ops *ops); 255 const struct xfs_buf_ops *ops) in xfs_buf_read() argument 259 return xfs_buf_read_map(target, &map, 1, flags, bpp, ops, in xfs_buf_read() 268 const struct xfs_buf_ops *ops) in xfs_buf_readahead() argument 271 return xfs_buf_readahead_map(target, &map, 1, ops); in xfs_buf_readahead() 278 const struct xfs_buf_ops *ops); 379 int xfs_buf_reverify(struct xfs_buf *bp, const struct xfs_buf_ops *ops);
|
| /fs/iomap/ |
| A D | iter.c | 59 int iomap_iter(struct iomap_iter *iter, const struct iomap_ops *ops) in iomap_iter() argument 66 trace_iomap_iter(iter, ops, _RET_IP_); in iomap_iter() 78 if (ops->iomap_end) { in iomap_iter() 79 ret = ops->iomap_end(iter->inode, iter->iter_start_pos, in iomap_iter() 108 ret = ops->iomap_begin(iter->inode, iter->pos, iter->len, iter->flags, in iomap_iter()
|
| /fs/nfs/ |
| A D | pnfs.h | 486 return fl_cinfo->ops->commit_pagelist(inode, mds_pages, how, cinfo); in pnfs_commit_list() 504 fl_cinfo->ops = inode_cinfo->ops; in pnfs_init_ds_commit_info_ops() 511 fl_cinfo->ops = NULL; in pnfs_init_ds_commit_info() 517 if (fl_cinfo->ops != NULL && fl_cinfo->ops->release_ds_info != NULL) in pnfs_release_ds_info() 518 fl_cinfo->ops->release_ds_info(fl_cinfo, inode); in pnfs_release_ds_info() 533 if (!lseg || !fl_cinfo->ops || !fl_cinfo->ops->mark_request_commit) in pnfs_mark_request_commit() 535 fl_cinfo->ops->mark_request_commit(req, lseg, cinfo, ds_commit_idx); in pnfs_mark_request_commit() 544 if (!fl_cinfo || !fl_cinfo->ops || !fl_cinfo->ops->clear_request_commit) in pnfs_clear_request_commit() 546 fl_cinfo->ops->clear_request_commit(req, cinfo); in pnfs_clear_request_commit() 558 return fl_cinfo->ops->scan_commit_lists(cinfo, max); in pnfs_scan_commit_lists() [all …]
|