diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-25 20:05:55 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-01-25 22:52:50 +0100 |
commit | 9b73fab01bcd62530e8c9a5da44d3ed8a753b3eb (patch) | |
tree | 12f583eab4c1239b4ea1ca8d9461a2cc28f17595 /fs/debugfs | |
parent | debugfs: kill __create_file() (diff) | |
download | linux-9b73fab01bcd62530e8c9a5da44d3ed8a753b3eb.tar.xz linux-9b73fab01bcd62530e8c9a5da44d3ed8a753b3eb.zip |
fold debugfs_link() into caller
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/debugfs')
-rw-r--r-- | fs/debugfs/inode.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 18564b08884c..c69e00d69ff1 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -103,14 +103,6 @@ static int debugfs_mkdir(struct dentry *dentry, umode_t mode) return res; } -static int debugfs_link(struct dentry *dentry, umode_t mode, - void *data) -{ - struct inode *dir = dentry->d_parent->d_inode; - mode = (mode & S_IALLUGO) | S_IFLNK; - return debugfs_mknod(dir, dentry, mode, 0, data, NULL); -} - static int debugfs_create(struct dentry *dentry, umode_t mode, void *data, const struct file_operations *fops) { @@ -466,7 +458,8 @@ struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, return NULL; } - error = debugfs_link(dentry, S_IFLNK | S_IRWXUGO, link); + error = debugfs_mknod(dentry->d_parent->d_inode, dentry, + S_IFLNK | S_IRWXUGO, 0, link, NULL); if (error) kfree(link); |