Lines Matching refs:type
102 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_conn_mask_p()
104 else if (conn->type == FSNOTIFY_OBJ_TYPE_VFSMOUNT) in fsnotify_conn_mask_p()
106 else if (conn->type == FSNOTIFY_OBJ_TYPE_SB) in fsnotify_conn_mask_p()
113 if (WARN_ON(!fsnotify_valid_obj_type(conn->type))) in fsnotify_conn_mask()
126 if (!fsnotify_valid_obj_type(conn->type)) in __fsnotify_recalc_mask()
149 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_recalc_mask()
174 unsigned int *type) in fsnotify_detach_connector_from_object() argument
178 *type = conn->type; in fsnotify_detach_connector_from_object()
179 if (conn->type == FSNOTIFY_OBJ_TYPE_DETACHED) in fsnotify_detach_connector_from_object()
182 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) { in fsnotify_detach_connector_from_object()
186 } else if (conn->type == FSNOTIFY_OBJ_TYPE_VFSMOUNT) { in fsnotify_detach_connector_from_object()
188 } else if (conn->type == FSNOTIFY_OBJ_TYPE_SB) { in fsnotify_detach_connector_from_object()
194 conn->type = FSNOTIFY_OBJ_TYPE_DETACHED; in fsnotify_detach_connector_from_object()
210 static void fsnotify_drop_object(unsigned int type, void *objp) in fsnotify_drop_object() argument
218 if (WARN_ON_ONCE(type != FSNOTIFY_OBJ_TYPE_INODE)) in fsnotify_drop_object()
231 unsigned int type = FSNOTIFY_OBJ_TYPE_DETACHED; in fsnotify_put_mark() local
250 objp = fsnotify_detach_connector_from_object(conn, &type); in fsnotify_put_mark()
258 fsnotify_drop_object(type, objp); in fsnotify_put_mark()
330 int type; in fsnotify_prepare_user_wait() local
332 fsnotify_foreach_obj_type(type) { in fsnotify_prepare_user_wait()
334 if (!fsnotify_get_mark_safe(iter_info->marks[type])) { in fsnotify_prepare_user_wait()
350 for (type--; type >= 0; type--) in fsnotify_prepare_user_wait()
351 fsnotify_put_mark_wake(iter_info->marks[type]); in fsnotify_prepare_user_wait()
358 int type; in fsnotify_finish_user_wait() local
361 fsnotify_foreach_obj_type(type) in fsnotify_finish_user_wait()
362 fsnotify_put_mark_wake(iter_info->marks[type]); in fsnotify_finish_user_wait()
477 unsigned int type, in fsnotify_attach_connector_to_object() argument
488 conn->type = type; in fsnotify_attach_connector_to_object()
498 if (conn->type == FSNOTIFY_OBJ_TYPE_INODE) in fsnotify_attach_connector_to_object()
531 if (conn->type == FSNOTIFY_OBJ_TYPE_DETACHED) { in fsnotify_grab_connector()
548 fsnotify_connp_t *connp, unsigned int type, in fsnotify_add_mark_list() argument
556 if (WARN_ON(!fsnotify_valid_obj_type(type))) in fsnotify_add_mark_list()
568 err = fsnotify_attach_connector_to_object(connp, type, fsid); in fsnotify_add_mark_list()
588 "%x.%x != %x.%x\n", __func__, conn->type, in fsnotify_add_mark_list()
641 fsnotify_connp_t *connp, unsigned int type, in fsnotify_add_mark_locked() argument
663 ret = fsnotify_add_mark_list(mark, connp, type, allow_dups, fsid); in fsnotify_add_mark_locked()
684 unsigned int type, int allow_dups, __kernel_fsid_t *fsid) in fsnotify_add_mark() argument
690 ret = fsnotify_add_mark_locked(mark, connp, type, allow_dups, fsid); in fsnotify_add_mark()
747 if ((1U << mark->connector->type) & type_mask) in fsnotify_clear_marks_by_group()
774 unsigned int type; in fsnotify_destroy_marks() local
800 objp = fsnotify_detach_connector_from_object(conn, &type); in fsnotify_destroy_marks()
804 fsnotify_drop_object(type, objp); in fsnotify_destroy_marks()