/fs/adfs/ |
D | dir.c | 24 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() 53 ret = ops->setpos(&dir, filp->f_pos - 2); in adfs_readdir() 56 while (ops->getnext(&dir, &obj) == 0) { in adfs_readdir() 67 ops->free(&dir); in adfs_readdir() 78 struct adfs_dir_ops *ops = ADFS_SB(sb)->s_dir; in adfs_dir_update() local 84 if (!ops->update) { in adfs_dir_update() 89 ret = ops->read(sb, obj->parent_id, 0, &dir); in adfs_dir_update() 94 ret = ops->update(&dir, obj); in adfs_dir_update() 98 int err = ops->sync(&dir); in adfs_dir_update() [all …]
|
/fs/xfs/ |
D | xfs_ioctl32.c | 408 compat_xfs_attr_multiop_t *ops; in xfs_compat_attrmulti_by_handle() local 433 ops = memdup_user(compat_ptr(am_hreq.ops), size); in xfs_compat_attrmulti_by_handle() 434 if (IS_ERR(ops)) { in xfs_compat_attrmulti_by_handle() 435 error = PTR_ERR(ops); in xfs_compat_attrmulti_by_handle() 445 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_compat_attrmulti_by_handle() 446 compat_ptr(ops[i].am_attrname), in xfs_compat_attrmulti_by_handle() 448 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_compat_attrmulti_by_handle() 450 if (ops[i].am_error < 0) in xfs_compat_attrmulti_by_handle() 453 switch (ops[i].am_opcode) { in xfs_compat_attrmulti_by_handle() 455 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_compat_attrmulti_by_handle() [all …]
|
D | xfs_ioctl.c | 528 xfs_attr_multiop_t *ops; in xfs_attrmulti_by_handle() local 552 ops = memdup_user(am_hreq.ops, size); in xfs_attrmulti_by_handle() 553 if (IS_ERR(ops)) { in xfs_attrmulti_by_handle() 554 error = PTR_ERR(ops); in xfs_attrmulti_by_handle() 564 ops[i].am_error = strncpy_from_user((char *)attr_name, in xfs_attrmulti_by_handle() 565 ops[i].am_attrname, MAXNAMELEN); in xfs_attrmulti_by_handle() 566 if (ops[i].am_error == 0 || ops[i].am_error == MAXNAMELEN) in xfs_attrmulti_by_handle() 568 if (ops[i].am_error < 0) in xfs_attrmulti_by_handle() 571 switch (ops[i].am_opcode) { in xfs_attrmulti_by_handle() 573 ops[i].am_error = xfs_attrmulti_attr_get( in xfs_attrmulti_by_handle() [all …]
|
D | xfs_buf.h | 206 const struct xfs_buf_ops *ops); 209 const struct xfs_buf_ops *ops); 228 const struct xfs_buf_ops *ops) in xfs_buf_read() argument 231 return xfs_buf_read_map(target, &map, 1, flags, ops); in xfs_buf_read() 239 const struct xfs_buf_ops *ops) in xfs_buf_readahead() argument 242 return xfs_buf_readahead_map(target, &map, 1, ops); in xfs_buf_readahead() 253 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/configfs/ |
D | file.c | 48 struct configfs_item_operations * ops; member 68 struct configfs_item_operations * ops = buffer->ops; in fill_read_buffer() local 77 count = ops->show_attribute(item,attr,buffer->page); in fill_read_buffer() 174 struct configfs_item_operations * ops = buffer->ops; in flush_write_buffer() local 176 return ops->store_attribute(item,attr,buffer->page,count); in flush_write_buffer() 218 struct configfs_item_operations * ops = NULL; in check_perm() local 231 ops = item->ci_type->ct_item_ops; in check_perm() 241 if (!(inode->i_mode & S_IWUGO) || !ops->store_attribute) in check_perm() 251 if (!(inode->i_mode & S_IRUGO) || !ops->show_attribute) in check_perm() 265 buffer->ops = ops; in check_perm()
|
/fs/sysfs/ |
D | file.c | 49 const struct sysfs_ops * ops; member 71 const struct sysfs_ops * ops = buffer->ops; in fill_read_buffer() local 85 count = ops->show(kobj, attr_sd->s_attr.attr, buffer->page); in fill_read_buffer() 95 (unsigned long)ops->show); in fill_read_buffer() 195 const struct sysfs_ops * ops = buffer->ops; in flush_write_buffer() local 202 rc = ops->store(kobj, attr_sd->s_attr.attr, buffer->page, count); in flush_write_buffer() 331 const struct sysfs_ops *ops; in sysfs_open_file() local 340 ops = kobj->ktype->sysfs_ops; in sysfs_open_file() 352 if (!(inode->i_mode & S_IWUGO) || !ops->store) in sysfs_open_file() 361 if (!(inode->i_mode & S_IRUGO) || !ops->show) in sysfs_open_file() [all …]
|
/fs/fat/ |
D | fatent.c | 105 struct fatent_operations *ops = MSDOS_SB(sb)->fatent_ops; in fat_ent_bread() local 116 ops->ent_set_ptr(fatent, offset); in fat_ent_bread() 326 struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_update_ptr() local 347 ops->ent_set_ptr(fatent, offset); in fat_ent_update_ptr() 355 struct fatent_operations *ops = sbi->fatent_ops; in fat_ent_read() local 366 ops->ent_blocknr(sb, entry, &offset, &blocknr); in fat_ent_read() 370 err = ops->ent_bread(sb, fatent, offset, blocknr); in fat_ent_read() 374 return ops->ent_get(fatent); in fat_ent_read() 413 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() 81 struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) in fsnotify_alloc_group() argument 101 group->ops = ops; in fsnotify_alloc_group()
|
/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() 235 _enter("{%s.%s},,%s", cache->ops->name, cache->identifier, tagname); in fscache_add_cache() 282 cache->tag->name, cache->ops->name); in fscache_add_cache() 320 cache->ops->name); in fscache_io_error() 385 cache->ops->sync_cache(cache); in fscache_withdraw_cache() 391 cache->ops->dissociate_pages(cache); in fscache_withdraw_cache()
|
D | object.c | 158 object->cache->ops->update_object(object); in fscache_object_state_machine() 166 object->cache->ops->lookup_complete(object); in fscache_object_state_machine() 435 object->cache->ops->grab_object(object); in fscache_initialise_object() 500 ret = object->cache->ops->lookup_object(object); in fscache_lookup_object() 632 object->cache->ops->lookup_complete(object); in fscache_object_available() 660 cache->ops->drop_object(object); in fscache_drop_object() 768 ret = object->cache->ops->grab_object(object) ? 0 : -EAGAIN; in fscache_get_object() 779 object->cache->ops->put_object(object); in fscache_put_object() 950 fscache_operation_init(op, object->cache->ops->invalidate_object, NULL); in fscache_invalidate_object()
|
D | page.c | 168 ret = object->cache->ops->attr_changed(object); in fscache_attr_changed_op() 438 ret = object->cache->ops->allocate_page(op, page, gfp); in __fscache_read_or_alloc_page() 444 ret = object->cache->ops->read_or_alloc_page(op, page, gfp); in __fscache_read_or_alloc_page() 562 ret = object->cache->ops->allocate_pages( in __fscache_read_or_alloc_pages() 567 ret = object->cache->ops->read_or_alloc_pages( in __fscache_read_or_alloc_pages() 661 ret = object->cache->ops->allocate_page(op, page, gfp); in __fscache_alloc_page() 764 ret = object->cache->ops->write_page(op, page); in fscache_write_op() 1010 object->cache->ops->uncache_page) { in __fscache_uncache_page() 1013 object->cache->ops->uncache_page(object, page); in __fscache_uncache_page()
|
/fs/cifs/ |
D | dir.c | 301 if (!server->ops->open) { in cifs_do_create() 322 rc = server->ops->open(xid, tcon, full_path, disposition, in cifs_do_create() 375 if (server->ops->set_lease_key) in cifs_do_create() 376 server->ops->set_lease_key(newinode, fid); in cifs_do_create() 394 if (server->ops->close) in cifs_do_create() 395 server->ops->close(xid, tcon, fid); in cifs_do_create() 468 if (server->ops->new_lease_key) in cifs_atomic_open() 469 server->ops->new_lease_key(&fid); in cifs_atomic_open() 483 if (server->ops->close) in cifs_atomic_open() 484 server->ops->close(xid, tcon, &fid); in cifs_atomic_open() [all …]
|
D | connect.c | 409 if (!server->ops->need_neg || server->ops->need_neg(server) || in cifs_echo_request() 410 (server->ops->can_echo && !server->ops->can_echo(server)) || in cifs_echo_request() 414 rc = server->ops->echo ? server->ops->echo(server) : -ENOSYS; in cifs_echo_request() 669 if (server->ops->check_trans2 && in handle_mid() 670 server->ops->check_trans2(mid, server, buf, malformed)) in handle_mid() 813 length = server->ops->check_message(buf, server->total_read); in standard_receive3() 818 if (server->ops->is_status_pending && in standard_receive3() 819 server->ops->is_status_pending(buf, server, length)) in standard_receive3() 890 mid_entry = server->ops->find_mid(server, buf); in cifs_demultiplex_thread() 907 } else if (!server->ops->is_oplock_break || in cifs_demultiplex_thread() [all …]
|
D | file.c | 187 if (!server->ops->open) in cifs_nt_open() 227 rc = server->ops->open(xid, tcon, full_path, disposition, in cifs_nt_open() 319 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo() 365 if (server->ops->get_lease_key) in cifsFileInfo_put() 366 server->ops->get_lease_key(inode, &fid); in cifsFileInfo_put() 396 if (server->ops->close) in cifsFileInfo_put() 397 server->ops->close(xid, tcon, &cifs_file->fid); in cifsFileInfo_put() 489 if (server->ops->get_lease_key) in cifs_open() 490 server->ops->get_lease_key(inode, &fid); in cifs_open() 495 if (server->ops->get_lease_key) in cifs_open() [all …]
|
D | inode.c | 580 if (!server->ops->query_file_info) 584 rc = server->ops->query_file_info(xid, tcon, &cfile->fid, &find_data); 652 if (!server->ops->query_path_info) { 662 rc = server->ops->query_path_info(xid, tcon, cifs_sb, full_path, 715 if (server->ops->get_srv_inum) 716 tmprc = server->ops->get_srv_inum(xid, 941 if (!server->ops->set_file_info) 974 return server->ops->set_file_info(inode, full_path, &info_buf, xid); 1163 if (!server->ops->unlink) { 1168 rc = server->ops->unlink(xid, tcon, full_path, cifs_sb); [all …]
|
D | readdir.c | 274 if (!server->ops->query_dir_first) { in initiate_cifs_search() 309 rc = server->ops->query_dir_first(xid, tcon, full_path, cifs_sb, in initiate_cifs_search() 553 if (!server->ops->query_dir_first || !server->ops->query_dir_next) in find_cifs_entry() 580 if (server->ops->close) in find_cifs_entry() 581 server->ops->close(xid, tcon, &cfile->fid); in find_cifs_entry() 612 rc = server->ops->query_dir_next(xid, tcon, &cfile->fid, in find_cifs_entry() 627 server->ops->calc_smb_size( in find_cifs_entry() 829 max_len = tcon->ses->server->ops->calc_smb_size( in cifs_readdir()
|
D | transport.c | 414 server->ops->get_credits_field(server, optype)); in wait_for_free_request() 502 mid = server->ops->setup_async_request(server, rqst); in cifs_call_async() 602 return server->ops->send_cancel ? in send_cancel() 603 server->ops->send_cancel(server, buf, mid) : 0; in send_cancel() 702 midQ = ses->server->ops->setup_request(ses, &rqst); in SendReceive2() 767 credits = ses->server->ops->get_credits(midQ); in SendReceive2() 769 rc = ses->server->ops->check_receive(midQ, ses->server, in SendReceive2()
|
/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() 92 ops->sched_state_renewal(clp, cred, renew_flags); in nfs4_renew_state()
|
D | nfs4state.c | 1363 static int nfs4_reclaim_locks(struct nfs4_state *state, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_locks() argument 1383 status = ops->recover_lock(state, fl); in nfs4_reclaim_locks() 1417 …int nfs4_reclaim_open_state(struct nfs4_state_owner *sp, const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_open_state() argument 1435 if (!test_and_clear_bit(ops->state_flag_bit, &state->flags)) in nfs4_reclaim_open_state() 1443 status = ops->recover_open(sp, state); in nfs4_reclaim_open_state() 1445 status = nfs4_reclaim_locks(state, ops); in nfs4_reclaim_open_state() 1566 const struct nfs4_state_recovery_ops *ops) in nfs4_reclaim_complete() argument 1569 if (ops->reclaim_complete) in nfs4_reclaim_complete() 1570 (void)ops->reclaim_complete(clp); in nfs4_reclaim_complete() 1675 static int nfs4_do_reclaim(struct nfs_client *clp, const struct nfs4_state_recovery_ops *ops) in nfs4_do_reclaim() argument [all …]
|
/fs/ |
D | pipe.c | 400 const struct pipe_buf_operations *ops = buf->ops; in pipe_read() local 409 error = ops->confirm(pipe, buf); in pipe_read() 420 addr = ops->map(pipe, buf, atomic); in pipe_read() 423 ops->unmap(pipe, buf, addr); in pipe_read() 447 buf->ops = NULL; in pipe_read() 448 ops->release(pipe, buf); in pipe_read() 536 const struct pipe_buf_operations *ops = buf->ops; in pipe_write() local 539 if (ops->can_merge && offset + chars <= PAGE_SIZE) { in pipe_write() 544 error = ops->confirm(pipe, buf); in pipe_write() 550 addr = ops->map(pipe, buf, atomic); in pipe_write() [all …]
|
D | splice.c | 214 buf->ops = spd->ops; in splice_to_pipe() 324 .ops = &page_cache_pipe_buf_ops, in __generic_file_splice_read() 609 .ops = &default_pipe_buf_ops, in default_file_splice_read() 752 char *src = buf->ops->map(pipe, buf, 1); in pipe_to_file() 758 buf->ops->unmap(pipe, buf, src); in pipe_to_file() 802 const struct pipe_buf_operations *ops = buf->ops; in splice_from_pipe_feed() local 808 ret = buf->ops->confirm(pipe, buf); in splice_from_pipe_feed() 828 buf->ops = NULL; in splice_from_pipe_feed() 829 ops->release(pipe, buf); in splice_from_pipe_feed() 1052 data = buf->ops->map(pipe, buf, 0); in write_pipe_buf() [all …]
|
/fs/ext2/ |
D | xip.c | 21 const struct block_device_operations *ops = bdev->bd_disk->fops; in __inode_direct_access() local 26 BUG_ON(!ops->direct_access); in __inode_direct_access() 27 return ops->direct_access(bdev, sector, kaddr, pfn); in __inode_direct_access()
|
/fs/btrfs/ |
D | extent_io.c | 168 tree->ops = NULL; in extent_io_tree_init() 288 if (tree->ops && tree->ops->merge_extent_hook) in merge_cb() 289 tree->ops->merge_extent_hook(tree->mapping->host, new, in merge_cb() 340 if (tree->ops && tree->ops->set_bit_hook) in set_state_cb() 341 tree->ops->set_bit_hook(tree->mapping->host, state, bits); in set_state_cb() 347 if (tree->ops && tree->ops->clear_bit_hook) in clear_state_cb() 348 tree->ops->clear_bit_hook(tree->mapping->host, state, bits); in clear_state_cb() 397 if (tree->ops && tree->ops->split_extent_hook) in split_cb() 398 tree->ops->split_extent_hook(tree->mapping->host, orig, split); in split_cb() 2347 ret = tree->ops->submit_bio_hook(inode, read_mode, bio, in bio_readpage_error() [all …]
|
/fs/proc/ |
D | namespaces.c | 218 const struct proc_ns_operations *ops) in proc_ns_fill_cache() argument 221 ops->name, strlen(ops->name), in proc_ns_fill_cache() 222 proc_ns_instantiate, task, ops); in proc_ns_fill_cache()
|