Home
last modified time | relevance | path

Searched refs:vnode (Results 1 – 25 of 93) sorted by relevance

1234

/OK3568_Linux_fs/kernel/fs/afs/
H A Dinode.c32 static noinline void dump_vnode(struct afs_vnode *vnode, struct afs_vnode *parent_vnode) in dump_vnode() argument
36 pr_warn("kAFS: AFS vnode with undefined type %u\n", vnode->status.type); in dump_vnode()
38 vnode->status.abort_code, in dump_vnode()
39 vnode->status.mode, in dump_vnode()
40 vnode->status.size, in dump_vnode()
41 vnode->status.data_version); in dump_vnode()
43 vnode->fid.vid, in dump_vnode()
44 vnode->fid.vnode, in dump_vnode()
45 vnode->fid.unique); in dump_vnode()
49 parent_vnode->fid.vnode, in dump_vnode()
[all …]
H A Dflock.c16 static void afs_next_locker(struct afs_vnode *vnode, int error);
25 static inline void afs_set_lock_state(struct afs_vnode *vnode, enum afs_lock_state state) in afs_set_lock_state() argument
27 _debug("STATE %u -> %u", vnode->lock_state, state); in afs_set_lock_state()
28 vnode->lock_state = state; in afs_set_lock_state()
36 void afs_lock_may_be_available(struct afs_vnode *vnode) in afs_lock_may_be_available() argument
38 _enter("{%llx:%llu}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_may_be_available()
40 spin_lock(&vnode->lock); in afs_lock_may_be_available()
41 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in afs_lock_may_be_available()
42 afs_next_locker(vnode, 0); in afs_lock_may_be_available()
43 trace_afs_flock_ev(vnode, NULL, afs_flock_callback_break, 0); in afs_lock_may_be_available()
[all …]
H A Dwrite.c28 static int afs_fill_page(struct afs_vnode *vnode, struct key *key, in afs_fill_page() argument
38 if (pos >= vnode->vfs_inode.i_size) { in afs_fill_page()
59 ret = afs_fetch_data(vnode, key, req); in afs_fill_page()
65 set_bit(AFS_VNODE_DELETED, &vnode->flags); in afs_fill_page()
81 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_begin() local
91 vnode->fid.vid, vnode->fid.vnode, index, from, to); in afs_write_begin()
98 ret = afs_fill_page(vnode, key, pos & PAGE_MASK, PAGE_SIZE, page); in afs_write_begin()
122 trace_afs_page_dirty(vnode, tracepoint_string("alrdy"), in afs_write_begin()
130 if (!test_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags) && in afs_write_begin()
166 struct afs_vnode *vnode = AFS_FS_I(file_inode(file)); in afs_write_end() local
[all …]
H A Dfile.c81 int afs_cache_wb_key(struct afs_vnode *vnode, struct afs_file *af) in afs_cache_wb_key() argument
91 spin_lock(&vnode->wb_lock); in afs_cache_wb_key()
92 list_for_each_entry(p, &vnode->wb_keys, vnode_link) { in afs_cache_wb_key()
98 list_add_tail(&wbk->vnode_link, &vnode->wb_keys); in afs_cache_wb_key()
99 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key()
105 spin_unlock(&vnode->wb_lock); in afs_cache_wb_key()
116 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_open() local
121 _enter("{%llx:%llu},", vnode->fid.vid, vnode->fid.vnode); in afs_open()
123 key = afs_request_key(vnode->volume->cell); in afs_open()
136 ret = afs_validate(vnode, key); in afs_open()
[all …]
H A Dsecurity.c107 void afs_clear_permits(struct afs_vnode *vnode) in afs_clear_permits() argument
111 spin_lock(&vnode->lock); in afs_clear_permits()
112 permits = rcu_dereference_protected(vnode->permit_cache, in afs_clear_permits()
113 lockdep_is_held(&vnode->lock)); in afs_clear_permits()
114 RCU_INIT_POINTER(vnode->permit_cache, NULL); in afs_clear_permits()
115 spin_unlock(&vnode->lock); in afs_clear_permits()
143 void afs_cache_permit(struct afs_vnode *vnode, struct key *key, in afs_cache_permit() argument
153 vnode->fid.vid, vnode->fid.vnode, key_serial(key), caller_access); in afs_cache_permit()
160 permits = rcu_dereference(vnode->permit_cache); in afs_cache_permit()
173 if (afs_cb_is_broken(cb_break, vnode)) { in afs_cache_permit()
[all …]
H A Dfs_operation.c55 struct afs_vnode *vnode = op->file[0].vnode; in afs_get_io_locks() local
56 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_get_io_locks()
61 mutex_lock(&vnode->io_lock); in afs_get_io_locks()
67 if (!vnode2 || !op->file[1].need_io_lock || vnode == vnode2) in afs_get_io_locks()
70 if (vnode2 > vnode) in afs_get_io_locks()
71 swap(vnode, vnode2); in afs_get_io_locks()
73 if (mutex_lock_interruptible(&vnode->io_lock) < 0) { in afs_get_io_locks()
85 mutex_unlock(&vnode->io_lock); in afs_get_io_locks()
99 struct afs_vnode *vnode = op->file[0].vnode; in afs_drop_io_locks() local
100 struct afs_vnode *vnode2 = op->file[1].vnode; in afs_drop_io_locks()
[all …]
H A Dcallback.c40 void __afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) in __afs_break_callback() argument
44 clear_bit(AFS_VNODE_NEW_CONTENT, &vnode->flags); in __afs_break_callback()
45 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) { in __afs_break_callback()
46 vnode->cb_break++; in __afs_break_callback()
47 afs_clear_permits(vnode); in __afs_break_callback()
49 if (vnode->lock_state == AFS_VNODE_LOCK_WAITING_FOR_CB) in __afs_break_callback()
50 afs_lock_may_be_available(vnode); in __afs_break_callback()
52 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback()
54 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, false); in __afs_break_callback()
58 void afs_break_callback(struct afs_vnode *vnode, enum afs_cb_break_reason reason) in afs_break_callback() argument
[all …]
H A Ddir_edit.c186 void afs_edit_dir_add(struct afs_vnode *vnode, in afs_edit_dir_add() argument
202 i_size = i_size_read(&vnode->vfs_inode); in afs_edit_dir_add()
205 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add()
209 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add()
210 page0 = find_or_create_page(vnode->vfs_inode.i_mapping, 0, gfp); in afs_edit_dir_add()
212 clear_bit(AFS_VNODE_DIR_VALID, &vnode->flags); in afs_edit_dir_add()
241 gfp = vnode->vfs_inode.i_mapping->gfp_mask; in afs_edit_dir_add()
242 page = find_or_create_page(vnode->vfs_inode.i_mapping, in afs_edit_dir_add()
252 if (!test_bit(AFS_VNODE_DIR_VALID, &vnode->flags)) in afs_edit_dir_add()
267 afs_set_i_size(vnode, (b + 1) * AFS_DIR_BLOCK_SIZE); in afs_edit_dir_add()
[all …]
H A Ddir.c173 dvnode->fid.vid, dvnode->fid.vnode, in afs_dir_check_pages()
423 ntohl(dire->u.vnode), in afs_dir_iterate_block()
548 cookie->fid.vnode = ino; in afs_lookup_one_filldir()
588 _leave(" = 0 { vn=%llu u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one()
614 cookie->fids[cookie->nr_fids].vnode = ino; in afs_lookup_filldir()
620 cookie->fids[1].vnode = ino; in afs_lookup_filldir()
639 struct afs_vnode *vnode; in afs_do_lookup_success() local
670 if (vp->vnode) { in afs_do_lookup_success()
671 if (!test_bit(AFS_VNODE_UNSET, &vp->vnode->flags)) in afs_do_lookup_success()
676 vnode = AFS_FS_I(inode); in afs_do_lookup_success()
[all …]
H A Dxattr.c42 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_acl() local
46 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_acl()
50 afs_op_set_vnode(op, 0, vnode); in afs_xattr_get_acl()
105 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_set_acl() local
110 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_set_acl()
114 afs_op_set_vnode(op, 0, vnode); in afs_xattr_set_acl()
143 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_get_yfs() local
168 op = afs_alloc_operation(NULL, vnode->volume); in afs_xattr_get_yfs()
172 afs_op_set_vnode(op, 0, vnode); in afs_xattr_get_yfs()
235 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_xattr_set_yfs() local
[all …]
H A Ddir_silly.c26 struct afs_vnode *dvnode = dvp->vnode; in afs_silly_rename_edit_dir()
27 struct afs_vnode *vnode = AFS_FS_I(d_inode(op->dentry)); in afs_silly_rename_edit_dir() local
45 &vnode->fid, afs_edit_dir_for_silly_1); in afs_silly_rename_edit_dir()
60 static int afs_do_silly_rename(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_do_silly_rename() argument
85 trace_afs_silly_rename(vnode, false); in afs_do_silly_rename()
100 int afs_sillyrename(struct afs_vnode *dvnode, struct afs_vnode *vnode, in afs_sillyrename() argument
134 ihold(&vnode->vfs_inode); in afs_sillyrename()
136 ret = afs_do_silly_rename(dvnode, vnode, dentry, sdentry, key); in afs_sillyrename()
140 set_bit(AFS_VNODE_SILLY_DELETED, &vnode->flags); in afs_sillyrename()
151 iput(&vnode->vfs_inode); in afs_sillyrename()
[all …]
H A Dsuper.c658 struct afs_vnode *vnode = _vnode; in afs_i_init_once() local
660 memset(vnode, 0, sizeof(*vnode)); in afs_i_init_once()
661 inode_init_once(&vnode->vfs_inode); in afs_i_init_once()
662 mutex_init(&vnode->io_lock); in afs_i_init_once()
663 init_rwsem(&vnode->validate_lock); in afs_i_init_once()
664 spin_lock_init(&vnode->wb_lock); in afs_i_init_once()
665 spin_lock_init(&vnode->lock); in afs_i_init_once()
666 INIT_LIST_HEAD(&vnode->wb_keys); in afs_i_init_once()
667 INIT_LIST_HEAD(&vnode->pending_locks); in afs_i_init_once()
668 INIT_LIST_HEAD(&vnode->granted_locks); in afs_i_init_once()
[all …]
H A Ddynroot.c31 struct afs_vnode *vnode = AFS_FS_I(inode); in afs_iget5_pseudo_set() local
34 vnode->volume = as->volume; in afs_iget5_pseudo_set()
35 vnode->fid = *fid; in afs_iget5_pseudo_set()
36 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set()
48 struct afs_vnode *vnode; in afs_iget_pseudo_dir() local
57 fid.vnode = 1; in afs_iget_pseudo_dir()
60 fid.vnode = atomic_inc_return(&afs_autocell_ino); in afs_iget_pseudo_dir()
64 inode = iget5_locked(sb, fid.vnode, in afs_iget_pseudo_dir()
72 inode, inode->i_ino, fid.vid, fid.vnode, fid.unique); in afs_iget_pseudo_dir()
74 vnode = AFS_FS_I(inode); in afs_iget_pseudo_dir()
[all …]
H A Dcache.c45 struct afs_vnode *vnode = cookie_netfs_data; in afs_vnode_cache_check_aux() local
49 vnode->fid.vnode, vnode->fid.unique, vnode->status.data_version, in afs_vnode_cache_check_aux()
60 if (vnode->status.data_version != aux.data_version) { in afs_vnode_cache_check_aux()
62 aux.data_version, vnode->status.data_version); in afs_vnode_cache_check_aux()
H A Drotate.c22 struct afs_vnode *vnode) in afs_start_fs_iteration() argument
37 cb_server = vnode->cb_server; in afs_start_fs_iteration()
58 write_seqlock(&vnode->cb_lock); in afs_start_fs_iteration()
59 ASSERTCMP(cb_server, ==, vnode->cb_server); in afs_start_fs_iteration()
60 vnode->cb_server = NULL; in afs_start_fs_iteration()
61 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) in afs_start_fs_iteration()
62 vnode->cb_break++; in afs_start_fs_iteration()
63 write_sequnlock(&vnode->cb_lock); in afs_start_fs_iteration()
113 struct afs_vnode *vnode = op->file[0].vnode; in afs_select_fileserver() local
316 if (!afs_start_fs_iteration(op, vnode)) in afs_select_fileserver()
[all …]
H A Dinternal.h211 struct afs_vnode *vnode; member
663 static inline struct fscache_cookie *afs_vnode_cache(struct afs_vnode *vnode) in afs_vnode_cache() argument
666 return vnode->cache; in afs_vnode_cache()
747 struct afs_vnode *vnode; member
967 static inline unsigned int afs_calc_vnode_cb_break(struct afs_vnode *vnode) in afs_calc_vnode_cb_break() argument
969 return vnode->cb_break + vnode->cb_v_break; in afs_calc_vnode_cb_break()
973 const struct afs_vnode *vnode) in afs_cb_is_broken() argument
975 return cb_break != (vnode->cb_break + vnode->volume->cb_v_break); in afs_cb_is_broken()
1117 struct afs_vnode *vnode) in afs_op_set_vnode() argument
1119 op->file[n].vnode = vnode; in afs_op_set_vnode()
[all …]
H A Dfsclient.c25 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
278 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status()
289 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status()
465 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data64()
501 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data()
573 *bp++ = htonl(dvp->fid.vnode); in afs_fs_create_file()
626 *bp++ = htonl(dvp->fid.vnode); in afs_fs_make_dir()
705 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_file()
752 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_dir()
829 *bp++ = htonl(dvp->fid.vnode); in afs_fs_link()
[all …]
/OK3568_Linux_fs/kernel/include/trace/events/
H A Dafs.h771 __entry->fid.vnode = 0;
779 __entry->fid.vnode,
805 __entry->fid.vnode = 0;
813 __entry->fid.vnode,
840 __entry->fid.vnode = 0;
850 __entry->fid.vnode,
879 __entry->fid.vnode = 0;
891 __entry->fid.vnode,
1006 TP_PROTO(struct afs_vnode *vnode, loff_t off, loff_t i_size),
1008 TP_ARGS(vnode, off, i_size),
[all …]
/OK3568_Linux_fs/kernel/fs/proc/
H A Dbootconfig.c28 struct xbc_node *leaf, *vnode; in copy_xbc_key_value_list() local
46 vnode = xbc_node_get_child(leaf); in copy_xbc_key_value_list()
47 if (vnode) { in copy_xbc_key_value_list()
48 xbc_array_for_each_value(vnode, val) { in copy_xbc_key_value_list()
54 q, val, q, xbc_node_is_array(vnode) ? ", " : "\n"); in copy_xbc_key_value_list()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/ispp/
H A Ddev.c134 source = &stream->vnode.vdev.entity; in rkispp_create_links()
141 source = &ispp_dev->params_vdev[PARAM_VDEV_FEC].vnode.vdev.entity; in rkispp_create_links()
148 source = &ispp_dev->params_vdev[PARAM_VDEV_TNR].vnode.vdev.entity; in rkispp_create_links()
152 source = &ispp_dev->params_vdev[PARAM_VDEV_NR].vnode.vdev.entity; in rkispp_create_links()
159 sink = &ispp_dev->stats_vdev[STATS_VDEV_TNR].vnode.vdev.entity; in rkispp_create_links()
163 sink = &ispp_dev->stats_vdev[STATS_VDEV_NR].vnode.vdev.entity; in rkispp_create_links()
171 sink = &stream->vnode.vdev.entity; in rkispp_create_links()
178 sink = &stream->vnode.vdev.entity; in rkispp_create_links()
185 sink = &stream->vnode.vdev.entity; in rkispp_create_links()
197 sink = &stream->vnode.vdev.entity; in rkispp_create_links()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Ddev.h490 struct rkcif_vdev_node vnode; member
593 struct rkcif_stream *to_rkcif_stream(struct rkcif_vdev_node *vnode) in to_rkcif_stream() argument
595 return container_of(vnode, struct rkcif_stream, vnode); in to_rkcif_stream()
605 struct rkcif_vdev_node *vnode = video_drvdata(file); in to_vb2_queue() local
607 return &vnode->buf_queue; in to_vb2_queue()
682 struct rkcif_vdev_node vnode; member
703 struct rkcif_scale_vdev *to_rkcif_scale_vdev(struct rkcif_vdev_node *vnode) in to_rkcif_scale_vdev() argument
705 return container_of(vnode, struct rkcif_scale_vdev, vnode); in to_rkcif_scale_vdev()
736 struct rkcif_vdev_node vnode; member
754 struct rkcif_tools_vdev *to_rkcif_tools_vdev(struct rkcif_vdev_node *vnode) in to_rkcif_tools_vdev() argument
[all …]
H A Dcif-luma.c94 ret = v4l2_pipeline_pm_get(&params->vnode.vdev.entity); in rkcif_luma_fh_open()
109 v4l2_pipeline_pm_put(&luma->vnode.vdev.entity); in rkcif_luma_fop_release()
217 q->lock = &luma_vdev->vnode.vlock; in rkcif_luma_init_vb2_queue()
242 v4l2_warn(vdev->vnode.vdev.v4l2_dev, in rkcif_stats_send_luma()
250 v4l2_err(vdev->vnode.vdev.v4l2_dev, in rkcif_stats_send_luma()
379 v4l2_err(luma_vdev->vnode.vdev.v4l2_dev, in rkcif_luma_isr()
448 struct rkcif_luma_node *node = &luma_vdev->vnode; in rkcif_register_luma_vdev()
512 struct rkcif_luma_node *node = &luma_vdev->vnode; in rkcif_unregister_luma_vdev()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Disp_mipi_luma.c90 ret = v4l2_pipeline_pm_get(&params->vnode.vdev.entity); in rkisp_luma_fh_open()
105 v4l2_pipeline_pm_put(&luma->vnode.vdev.entity); in rkisp_luma_fop_release()
240 v4l2_warn(vdev->vnode.vdev.v4l2_dev, in rkisp_stats_send_luma()
248 v4l2_err(vdev->vnode.vdev.v4l2_dev, in rkisp_stats_send_luma()
327 v4l2_dbg(1, rkisp_debug, luma_vdev->vnode.vdev.v4l2_dev, in rkisp_luma_isr()
335 v4l2_dbg(1, rkisp_debug, luma_vdev->vnode.vdev.v4l2_dev, in rkisp_luma_isr()
343 v4l2_dbg(1, rkisp_debug, luma_vdev->vnode.vdev.v4l2_dev, in rkisp_luma_isr()
414 v4l2_err(luma_vdev->vnode.vdev.v4l2_dev, in rkisp_luma_isr()
444 struct rkisp_vdev_node *node = &luma_vdev->vnode; in rkisp_register_luma_vdev()
483 sink = &luma_vdev->vnode.vdev.entity; in rkisp_register_luma_vdev()
[all …]
/OK3568_Linux_fs/kernel/tools/bootconfig/
H A Dmain.c38 struct xbc_node *node, *cnode = NULL, *vnode; in xbc_show_compact_tree() local
48 vnode = xbc_node_get_child(cnode); in xbc_show_compact_tree()
60 if (vnode && xbc_node_is_value(vnode) && vnode->next) in xbc_show_compact_tree()
64 cnode = vnode; in xbc_show_compact_tree()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbootconfig.h118 struct xbc_node **vnode);
137 xbc_find_value(const char *key, struct xbc_node **vnode) in xbc_find_value() argument
139 return xbc_node_find_value(NULL, key, vnode); in xbc_find_value()

1234