Home
last modified time | relevance | path

Searched refs:mark (Results 1 – 18 of 18) sorted by relevance

/fs/notify/
Dmark.c94 void fsnotify_get_mark(struct fsnotify_mark *mark) in fsnotify_get_mark() argument
96 WARN_ON_ONCE(!refcount_read(&mark->refcnt)); in fsnotify_get_mark()
97 refcount_inc(&mark->refcnt); in fsnotify_get_mark()
160 struct fsnotify_mark *mark; in __fsnotify_recalc_mask() local
166 hlist_for_each_entry(mark, &conn->list, obj_list) { in __fsnotify_recalc_mask()
167 if (!(mark->flags & FSNOTIFY_MARK_FLAG_ATTACHED)) in __fsnotify_recalc_mask()
169 new_mask |= fsnotify_calc_mask(mark); in __fsnotify_recalc_mask()
171 !(mark->flags & FSNOTIFY_MARK_FLAG_NO_IREF)) in __fsnotify_recalc_mask()
272 static void fsnotify_final_mark_destroy(struct fsnotify_mark *mark) in fsnotify_final_mark_destroy() argument
274 struct fsnotify_group *group = mark->group; in fsnotify_final_mark_destroy()
[all …]
Dfdinfo.c27 struct fsnotify_mark *mark)) in show_fdinfo() argument
30 struct fsnotify_mark *mark; in show_fdinfo() local
33 list_for_each_entry(mark, &group->marks_list, g_list) { in show_fdinfo()
34 show(m, mark); in show_fdinfo()
76 static void inotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in inotify_fdinfo() argument
81 if (mark->connector->type != FSNOTIFY_OBJ_TYPE_INODE) in inotify_fdinfo()
84 inode_mark = container_of(mark, struct inotify_inode_mark, fsn_mark); in inotify_fdinfo()
85 inode = igrab(fsnotify_conn_inode(mark->connector)); in inotify_fdinfo()
89 inotify_mark_user_mask(mark)); in inotify_fdinfo()
105 static void fanotify_fdinfo(struct seq_file *m, struct fsnotify_mark *mark) in fanotify_fdinfo() argument
[all …]
Dfsnotify.c329 struct fsnotify_mark *mark; in send_to_group() local
337 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group()
338 if (!(mark->flags & in send_to_group()
340 mark->ignore_mask = 0; in send_to_group()
345 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in send_to_group()
346 group = mark->group; in send_to_group()
347 marks_mask |= mark->mask; in send_to_group()
349 fsnotify_effective_ignore_mask(mark, is_dir, type); in send_to_group()
380 static struct fsnotify_mark *fsnotify_next_mark(struct fsnotify_mark *mark) in fsnotify_next_mark() argument
384 if (mark) in fsnotify_next_mark()
[all …]
DMakefile2 obj-$(CONFIG_FSNOTIFY) += fsnotify.o notification.o group.o mark.o \
/fs/dlm/
Dconfig.c228 CLUSTER_ATTR(mark, NULL);
294 unsigned int mark; member
541 cm->mark = 0; in make_comm()
739 return sprintf(buf, "%u\n", config_item_to_comm(item)->mark); in comm_mark_show()
746 unsigned int mark; in comm_mark_store() local
749 rc = kstrtouint(buf, 0, &mark); in comm_mark_store()
753 if (mark == 0) in comm_mark_store()
754 mark = dlm_config.ci_mark; in comm_mark_store()
757 rc = dlm_lowcomms_nodes_set_mark(comm->nodeid, mark); in comm_mark_store()
761 comm->mark = mark; in comm_mark_store()
[all …]
Dlowcomms.c142 int mark; member
365 unsigned int *mark) in nodeid_to_addr() argument
393 *mark = na->mark; in nodeid_to_addr()
415 unsigned int *mark) in addr_to_nodeid() argument
429 *mark = na->mark; in addr_to_nodeid()
478 new_node->mark = dlm_config.ci_mark; in dlm_lowcomms_addr()
591 int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark) in dlm_lowcomms_nodes_set_mark() argument
602 na->mark = mark; in dlm_lowcomms_nodes_set_mark()
1011 unsigned int mark; in accept_from_sock() local
1030 if (addr_to_nodeid(&peeraddr, &nodeid, &mark)) { in accept_from_sock()
[all …]
Dlowcomms.h48 int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark);
/fs/f2fs/
Dnode.h415 static inline void set_mark(struct page *page, int mark, int type) in set_mark() argument
419 if (mark) in set_mark()
429 #define set_dentry_mark(page, mark) set_mark(page, mark, DENT_BIT_SHIFT) argument
430 #define set_fsync_mark(page, mark) set_mark(page, mark, FSYNC_BIT_SHIFT) argument
/fs/unicode/
Dmkutf8data.c364 int mark; member
504 node->mark = 0; in alloc_node()
841 while (n && !n->mark) { in mark_nodes()
843 n->mark = 1; in mark_nodes()
859 while (n && !n->mark) { in mark_nodes()
861 n->mark = 1; in mark_nodes()
889 while (n && !n->mark) { in mark_nodes()
891 n->mark = 1; in mark_nodes()
898 if (!node->mark && node->parent->mark) { in mark_nodes()
900 node->mark = 1; in mark_nodes()
[all …]
/fs/nfsd/
Dfilecache.c207 nfsd_file_mark_free(struct fsnotify_mark *mark) in nfsd_file_mark_free() argument
209 struct nfsd_file_mark *nfm = container_of(mark, struct nfsd_file_mark, in nfsd_file_mark_free()
236 struct fsnotify_mark *mark; in nfsd_file_mark_find_or_create() local
241 mark = fsnotify_find_mark(&inode->i_fsnotify_marks, in nfsd_file_mark_find_or_create()
243 if (mark) { in nfsd_file_mark_find_or_create()
244 nfm = nfsd_file_mark_get(container_of(mark, in nfsd_file_mark_find_or_create()
249 fsnotify_put_mark(mark); in nfsd_file_mark_find_or_create()
253 fsnotify_destroy_mark(mark, nfsd_file_fsnotify_group); in nfsd_file_mark_find_or_create()
254 fsnotify_put_mark(mark); in nfsd_file_mark_find_or_create()
769 nfsd_file_fsnotify_handle_event(struct fsnotify_mark *mark, u32 mask, in nfsd_file_fsnotify_handle_event() argument
/fs/notify/fanotify/
Dfanotify.c303 struct fsnotify_mark *mark; in fanotify_group_event_mask() local
323 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in fanotify_group_event_mask()
328 fsnotify_effective_ignore_mask(mark, ondir, type); in fanotify_group_event_mask()
333 if (!fsnotify_mask_applicable(mark->mask, ondir, type)) in fanotify_group_event_mask()
336 marks_mask |= mark->mask; in fanotify_group_event_mask()
843 struct fsnotify_mark *mark; in fanotify_get_fsid() local
847 fsnotify_foreach_iter_mark_type(iter_info, mark, type) { in fanotify_get_fsid()
850 conn = READ_ONCE(mark->connector); in fanotify_get_fsid()
1058 static void fanotify_freeing_mark(struct fsnotify_mark *mark, in fanotify_freeing_mark() argument
Dfanotify.h488 static inline unsigned int fanotify_mark_user_flags(struct fsnotify_mark *mark) in fanotify_mark_user_flags() argument
492 if (mark->flags & FSNOTIFY_MARK_FLAG_IGNORED_SURV_MODIFY) in fanotify_mark_user_flags()
494 if (mark->flags & FSNOTIFY_MARK_FLAG_NO_IREF) in fanotify_mark_user_flags()
496 if (mark->flags & FSNOTIFY_MARK_FLAG_HAS_IGNORE_FLAGS) in fanotify_mark_user_flags()
Dfanotify_user.c1153 struct fsnotify_mark *mark; in fanotify_add_new_mark() local
1165 mark = kmem_cache_alloc(fanotify_mark_cache, GFP_KERNEL); in fanotify_add_new_mark()
1166 if (!mark) { in fanotify_add_new_mark()
1171 fsnotify_init_mark(mark, group); in fanotify_add_new_mark()
1173 mark->flags |= FSNOTIFY_MARK_FLAG_NO_IREF; in fanotify_add_new_mark()
1175 ret = fsnotify_add_mark_locked(mark, connp, obj_type, 0, fsid); in fanotify_add_new_mark()
1177 fsnotify_put_mark(mark); in fanotify_add_new_mark()
1181 return mark; in fanotify_add_new_mark()
/fs/btrfs/
Dtransaction.h229 struct extent_io_tree *dirty_pages, int mark);
230 int btrfs_wait_tree_log_extents(struct btrfs_root *root, int mark);
Dtransaction.c1064 struct extent_io_tree *dirty_pages, int mark) in btrfs_write_marked_extents() argument
1075 mark, &cached_state)) { in btrfs_write_marked_extents()
1080 mark, &cached_state); in btrfs_write_marked_extents()
1172 int btrfs_wait_tree_log_extents(struct btrfs_root *log_root, int mark) in btrfs_wait_tree_log_extents() argument
1182 if ((mark & EXTENT_DIRTY) && in btrfs_wait_tree_log_extents()
1186 if ((mark & EXTENT_NEW) && in btrfs_wait_tree_log_extents()
Dtree-log.c2912 int mark; in btrfs_sync_log() local
2966 mark = EXTENT_DIRTY; in btrfs_sync_log()
2968 mark = EXTENT_NEW; in btrfs_sync_log()
2974 ret = btrfs_write_marked_extents(fs_info, &log->dirty_log_pages, mark); in btrfs_sync_log()
3056 btrfs_wait_tree_log_extents(log, mark); in btrfs_sync_log()
3072 ret = btrfs_wait_tree_log_extents(log, mark); in btrfs_sync_log()
3094 btrfs_wait_tree_log_extents(log, mark); in btrfs_sync_log()
3111 btrfs_wait_tree_log_extents(log, mark); in btrfs_sync_log()
3119 ret = btrfs_wait_tree_log_extents(log, mark); in btrfs_sync_log()
Ddisk-io.c60 int mark);
5092 int mark) in btrfs_destroy_marked_extents() argument
5101 mark, NULL); in btrfs_destroy_marked_extents()
5105 clear_extent_bits(dirty_pages, start, end, mark); in btrfs_destroy_marked_extents()
/fs/nfs/
Ddelegation.c107 nfs4_do_check_delegation(struct inode *inode, fmode_t flags, bool mark) in nfs4_do_check_delegation() argument
116 if (mark) in nfs4_do_check_delegation()