/** * relayfs_remove_dir - remove a directory in the relay filesystem * @dentry: directory dentry * * Returns 0 if successful, negative otherwise. */ int relayfs_remove_dir(struct dentry *dentry) { if (!dentry) return -EINVAL; return relayfs_remove(dentry); }
/** * relay_remove_buf - remove a channel buffer * * Removes the file from the relayfs fileystem, which also frees the * rchan_buf_struct and the channel buffer. Should only be called from * kref_put(). */ void relay_remove_buf(struct kref *kref) { struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); relayfs_remove(buf->dentry); }