Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280240
b: refs/heads/master
c: faef2b6
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 0a91efc commit 386b555
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b91aca0bd462c80cf509cbc1014f803eabdc205
refs/heads/master: faef2b6c9960b5ae288899f461a2218ec6bb7928
2 changes: 1 addition & 1 deletion trunk/Documentation/filesystems/sysfs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ An attribute definition is simply:
struct attribute {
char * name;
struct module *owner;
mode_t mode;
umode_t mode;
};


Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/sysfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ int sysfs_attr_ns(struct kobject *kobj, const struct attribute *attr,
}

int sysfs_add_file_mode(struct sysfs_dirent *dir_sd,
const struct attribute *attr, int type, mode_t amode)
const struct attribute *attr, int type, umode_t amode)
{
umode_t mode = (amode & S_IALLUGO) | S_IFREG;
struct sysfs_addrm_cxt acxt;
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int sysfs_setxattr(struct dentry *dentry, const char *name, const void *value,
return error;
}

static inline void set_default_inode_attr(struct inode * inode, mode_t mode)
static inline void set_default_inode_attr(struct inode * inode, umode_t mode)
{
inode->i_mode = mode;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/sysfs/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct sysfs_dirent {
};

unsigned int s_flags;
unsigned short s_mode;
umode_t s_mode;
ino_t s_ino;
struct sysfs_inode_attrs *s_iattr;
};
Expand Down Expand Up @@ -229,7 +229,7 @@ int sysfs_add_file(struct sysfs_dirent *dir_sd,
const struct attribute *attr, int type);

int sysfs_add_file_mode(struct sysfs_dirent *dir_sd,
const struct attribute *attr, int type, mode_t amode);
const struct attribute *attr, int type, umode_t amode);
/*
* bin.c
*/
Expand Down

0 comments on commit 386b555

Please sign in to comment.