Lines Matching refs:dentry

19 static struct dentry *drbd_debugfs_root;
20 static struct dentry *drbd_debugfs_version;
21 static struct dentry *drbd_debugfs_resources;
22 static struct dentry *drbd_debugfs_minors;
427 struct dentry *parent; in drbd_single_open()
432 parent = file->f_path.dentry->d_parent; in drbd_single_open()
439 if (simple_positive(file->f_path.dentry) in drbd_single_open()
476 struct dentry *dentry; in drbd_debugfs_resource_add() local
480 dentry = debugfs_create_dir(resource->name, drbd_debugfs_resources); in drbd_debugfs_resource_add()
481 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_resource_add()
483 resource->debugfs_res = dentry; in drbd_debugfs_resource_add()
485 dentry = debugfs_create_dir("volumes", resource->debugfs_res); in drbd_debugfs_resource_add()
486 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_resource_add()
488 resource->debugfs_res_volumes = dentry; in drbd_debugfs_resource_add()
490 dentry = debugfs_create_dir("connections", resource->debugfs_res); in drbd_debugfs_resource_add()
491 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_resource_add()
493 resource->debugfs_res_connections = dentry; in drbd_debugfs_resource_add()
495 dentry = debugfs_create_file("in_flight_summary", S_IRUSR|S_IRGRP, in drbd_debugfs_resource_add()
498 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_resource_add()
500 resource->debugfs_res_in_flight_summary = dentry; in drbd_debugfs_resource_add()
508 static void drbd_debugfs_remove(struct dentry **dp) in drbd_debugfs_remove()
646 struct dentry *conns_dir = connection->resource->debugfs_res_connections; in drbd_debugfs_connection_add()
647 struct dentry *dentry; in drbd_debugfs_connection_add() local
654 dentry = debugfs_create_dir("peer", conns_dir); in drbd_debugfs_connection_add()
655 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_connection_add()
657 connection->debugfs_conn = dentry; in drbd_debugfs_connection_add()
659 dentry = debugfs_create_file("callback_history", S_IRUSR|S_IRGRP, in drbd_debugfs_connection_add()
662 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_connection_add()
664 connection->debugfs_conn_callback_history = dentry; in drbd_debugfs_connection_add()
666 dentry = debugfs_create_file("oldest_requests", S_IRUSR|S_IRGRP, in drbd_debugfs_connection_add()
669 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_connection_add()
671 connection->debugfs_conn_oldest_requests = dentry; in drbd_debugfs_connection_add()
802 struct dentry *vols_dir = device->resource->debugfs_res_volumes; in drbd_debugfs_device_attr()
807 struct dentry *dentry; in drbd_debugfs_device_attr() local
812 dentry = debugfs_create_dir(vnr_buf, vols_dir); in drbd_debugfs_device_attr()
813 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_device_attr()
815 device->debugfs_vol = dentry; in drbd_debugfs_device_attr()
822 dentry = debugfs_create_symlink(minor_buf, drbd_debugfs_minors, slink_name); in drbd_debugfs_device_attr()
825 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_device_attr()
827 device->debugfs_minor = dentry; in drbd_debugfs_device_attr()
830 dentry = debugfs_create_file(#name, S_IRUSR|S_IRGRP, \ in drbd_debugfs_device_attr()
833 if (IS_ERR_OR_NULL(dentry)) \ in drbd_debugfs_device_attr()
835 device->debugfs_vol_ ## name = dentry; \ in drbd_debugfs_device_attr()
862 struct dentry *conn_dir = peer_device->connection->debugfs_conn; in drbd_debugfs_peer_device_add()
863 struct dentry *dentry; in drbd_debugfs_peer_device_add() local
870 dentry = debugfs_create_dir(vnr_buf, conn_dir); in drbd_debugfs_peer_device_add()
871 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_peer_device_add()
873 peer_device->debugfs_peer_dev = dentry; in drbd_debugfs_peer_device_add()
921 struct dentry *dentry; in drbd_debugfs_init() local
923 dentry = debugfs_create_dir("drbd", NULL); in drbd_debugfs_init()
924 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_init()
926 drbd_debugfs_root = dentry; in drbd_debugfs_init()
928 dentry = debugfs_create_file("version", 0444, drbd_debugfs_root, NULL, &drbd_version_fops); in drbd_debugfs_init()
929 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_init()
931 drbd_debugfs_version = dentry; in drbd_debugfs_init()
933 dentry = debugfs_create_dir("resources", drbd_debugfs_root); in drbd_debugfs_init()
934 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_init()
936 drbd_debugfs_resources = dentry; in drbd_debugfs_init()
938 dentry = debugfs_create_dir("minors", drbd_debugfs_root); in drbd_debugfs_init()
939 if (IS_ERR_OR_NULL(dentry)) in drbd_debugfs_init()
941 drbd_debugfs_minors = dentry; in drbd_debugfs_init()
946 if (dentry) in drbd_debugfs_init()
947 return PTR_ERR(dentry); in drbd_debugfs_init()