mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
switch debugfs to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
48176a973d
commit
f4ae40a6a5
25 changed files with 82 additions and 82 deletions
|
@ -30,7 +30,7 @@ static struct vfsmount *debugfs_mount;
|
|||
static int debugfs_mount_count;
|
||||
static bool debugfs_registered;
|
||||
|
||||
static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t dev,
|
||||
static struct inode *debugfs_get_inode(struct super_block *sb, umode_t mode, dev_t dev,
|
||||
void *data, const struct file_operations *fops)
|
||||
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ static struct inode *debugfs_get_inode(struct super_block *sb, int mode, dev_t d
|
|||
|
||||
/* SMP-safe */
|
||||
static int debugfs_mknod(struct inode *dir, struct dentry *dentry,
|
||||
int mode, dev_t dev, void *data,
|
||||
umode_t mode, dev_t dev, void *data,
|
||||
const struct file_operations *fops)
|
||||
{
|
||||
struct inode *inode;
|
||||
|
@ -87,7 +87,7 @@ static int debugfs_mknod(struct inode *dir, struct dentry *dentry,
|
|||
return error;
|
||||
}
|
||||
|
||||
static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode,
|
||||
static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode,
|
||||
void *data, const struct file_operations *fops)
|
||||
{
|
||||
int res;
|
||||
|
@ -101,14 +101,14 @@ static int debugfs_mkdir(struct inode *dir, struct dentry *dentry, int mode,
|
|||
return res;
|
||||
}
|
||||
|
||||
static int debugfs_link(struct inode *dir, struct dentry *dentry, int mode,
|
||||
static int debugfs_link(struct inode *dir, struct dentry *dentry, umode_t mode,
|
||||
void *data, const struct file_operations *fops)
|
||||
{
|
||||
mode = (mode & S_IALLUGO) | S_IFLNK;
|
||||
return debugfs_mknod(dir, dentry, mode, 0, data, fops);
|
||||
}
|
||||
|
||||
static int debugfs_create(struct inode *dir, struct dentry *dentry, int mode,
|
||||
static int debugfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
|
||||
void *data, const struct file_operations *fops)
|
||||
{
|
||||
int res;
|
||||
|
@ -146,7 +146,7 @@ static struct file_system_type debug_fs_type = {
|
|||
.kill_sb = kill_litter_super,
|
||||
};
|
||||
|
||||
static int debugfs_create_by_name(const char *name, mode_t mode,
|
||||
static int debugfs_create_by_name(const char *name, umode_t mode,
|
||||
struct dentry *parent,
|
||||
struct dentry **dentry,
|
||||
void *data,
|
||||
|
@ -214,7 +214,7 @@ static int debugfs_create_by_name(const char *name, mode_t mode,
|
|||
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
|
||||
* returned.
|
||||
*/
|
||||
struct dentry *debugfs_create_file(const char *name, mode_t mode,
|
||||
struct dentry *debugfs_create_file(const char *name, umode_t mode,
|
||||
struct dentry *parent, void *data,
|
||||
const struct file_operations *fops)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue