• Home
  • Raw
  • Download

Lines Matching refs:dentry

20 static struct dentry *drbd_debugfs_root;
21 static struct dentry *drbd_debugfs_version;
22 static struct dentry *drbd_debugfs_resources;
23 static struct dentry *drbd_debugfs_minors;
422 struct dentry *parent; in drbd_single_open()
427 parent = file->f_path.dentry->d_parent; in drbd_single_open()
431 if (simple_positive(file->f_path.dentry) in drbd_single_open()
467 struct dentry *dentry; in drbd_debugfs_resource_add() local
469 dentry = debugfs_create_dir(resource->name, drbd_debugfs_resources); in drbd_debugfs_resource_add()
470 resource->debugfs_res = dentry; in drbd_debugfs_resource_add()
472 dentry = debugfs_create_dir("volumes", resource->debugfs_res); in drbd_debugfs_resource_add()
473 resource->debugfs_res_volumes = dentry; in drbd_debugfs_resource_add()
475 dentry = debugfs_create_dir("connections", resource->debugfs_res); in drbd_debugfs_resource_add()
476 resource->debugfs_res_connections = dentry; in drbd_debugfs_resource_add()
478 dentry = debugfs_create_file("in_flight_summary", 0440, in drbd_debugfs_resource_add()
481 resource->debugfs_res_in_flight_summary = dentry; in drbd_debugfs_resource_add()
484 static void drbd_debugfs_remove(struct dentry **dp) in drbd_debugfs_remove()
622 struct dentry *conns_dir = connection->resource->debugfs_res_connections; in drbd_debugfs_connection_add()
623 struct dentry *dentry; in drbd_debugfs_connection_add() local
628 dentry = debugfs_create_dir("peer", conns_dir); in drbd_debugfs_connection_add()
629 connection->debugfs_conn = dentry; in drbd_debugfs_connection_add()
631 dentry = debugfs_create_file("callback_history", 0440, in drbd_debugfs_connection_add()
634 connection->debugfs_conn_callback_history = dentry; in drbd_debugfs_connection_add()
636 dentry = debugfs_create_file("oldest_requests", 0440, in drbd_debugfs_connection_add()
639 connection->debugfs_conn_oldest_requests = dentry; in drbd_debugfs_connection_add()
773 struct dentry *vols_dir = device->resource->debugfs_res_volumes; in drbd_debugfs_device_attr()
778 struct dentry *dentry; in drbd_debugfs_device_attr() local
783 dentry = debugfs_create_dir(vnr_buf, vols_dir); in drbd_debugfs_device_attr()
784 device->debugfs_vol = dentry; in drbd_debugfs_device_attr()
791 dentry = debugfs_create_symlink(minor_buf, drbd_debugfs_minors, slink_name); in drbd_debugfs_device_attr()
792 device->debugfs_minor = dentry; in drbd_debugfs_device_attr()
797 dentry = debugfs_create_file(#name, 0440, \ in drbd_debugfs_device_attr()
800 device->debugfs_vol_ ## name = dentry; \ in drbd_debugfs_device_attr()
829 struct dentry *conn_dir = peer_device->connection->debugfs_conn; in drbd_debugfs_peer_device_add()
830 struct dentry *dentry; in drbd_debugfs_peer_device_add() local
834 dentry = debugfs_create_dir(vnr_buf, conn_dir); in drbd_debugfs_peer_device_add()
835 peer_device->debugfs_peer_dev = dentry; in drbd_debugfs_peer_device_add()
878 struct dentry *dentry; in drbd_debugfs_init() local
880 dentry = debugfs_create_dir("drbd", NULL); in drbd_debugfs_init()
881 drbd_debugfs_root = dentry; in drbd_debugfs_init()
883 dentry = debugfs_create_file("version", 0444, drbd_debugfs_root, NULL, &drbd_version_fops); in drbd_debugfs_init()
884 drbd_debugfs_version = dentry; in drbd_debugfs_init()
886 dentry = debugfs_create_dir("resources", drbd_debugfs_root); in drbd_debugfs_init()
887 drbd_debugfs_resources = dentry; in drbd_debugfs_init()
889 dentry = debugfs_create_dir("minors", drbd_debugfs_root); in drbd_debugfs_init()
890 drbd_debugfs_minors = dentry; in drbd_debugfs_init()