Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
43947514
Commit
43947514
authored
Jul 25, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configfs: convert to umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
fbd48a69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
Documentation/filesystems/configfs/configfs.txt
Documentation/filesystems/configfs/configfs.txt
+1
-1
fs/configfs/configfs_internal.h
fs/configfs/configfs_internal.h
+2
-2
fs/configfs/inode.c
fs/configfs/inode.c
+3
-3
include/linux/configfs.h
include/linux/configfs.h
+1
-1
No files found.
Documentation/filesystems/configfs/configfs.txt
View file @
43947514
...
...
@@ -192,7 +192,7 @@ attribute value uses the store_attribute() method.
struct configfs_attribute {
char *ca_name;
struct module *ca_owner;
mode_t ca_mode;
u
mode_t ca_mode;
};
When a config_item wants an attribute to appear as a file in the item's
...
...
fs/configfs/configfs_internal.h
View file @
43947514
...
...
@@ -63,8 +63,8 @@ extern struct kmem_cache *configfs_dir_cachep;
extern
int
configfs_is_root
(
struct
config_item
*
item
);
extern
struct
inode
*
configfs_new_inode
(
mode_t
mode
,
struct
configfs_dirent
*
);
extern
int
configfs_create
(
struct
dentry
*
,
in
t
mode
,
int
(
*
init
)(
struct
inode
*
));
extern
struct
inode
*
configfs_new_inode
(
u
mode_t
mode
,
struct
configfs_dirent
*
);
extern
int
configfs_create
(
struct
dentry
*
,
umode_
t
mode
,
int
(
*
init
)(
struct
inode
*
));
extern
int
configfs_inode_init
(
void
);
extern
void
configfs_inode_exit
(
void
);
...
...
fs/configfs/inode.c
View file @
43947514
...
...
@@ -116,7 +116,7 @@ int configfs_setattr(struct dentry * dentry, struct iattr * iattr)
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
,
u
mode_t
mode
)
{
inode
->
i_mode
=
mode
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
...
...
@@ -132,7 +132,7 @@ static inline void set_inode_attr(struct inode * inode, struct iattr * iattr)
inode
->
i_ctime
=
iattr
->
ia_ctime
;
}
struct
inode
*
configfs_new_inode
(
mode_t
mode
,
struct
configfs_dirent
*
sd
)
struct
inode
*
configfs_new_inode
(
u
mode_t
mode
,
struct
configfs_dirent
*
sd
)
{
struct
inode
*
inode
=
new_inode
(
configfs_sb
);
if
(
inode
)
{
...
...
@@ -185,7 +185,7 @@ static void configfs_set_inode_lock_class(struct configfs_dirent *sd,
#endif
/* CONFIG_LOCKDEP */
int
configfs_create
(
struct
dentry
*
dentry
,
in
t
mode
,
int
(
*
init
)(
struct
inode
*
))
int
configfs_create
(
struct
dentry
*
dentry
,
umode_
t
mode
,
int
(
*
init
)(
struct
inode
*
))
{
int
error
=
0
;
struct
inode
*
inode
=
NULL
;
...
...
include/linux/configfs.h
View file @
43947514
...
...
@@ -124,7 +124,7 @@ extern struct config_item *config_group_find_item(struct config_group *,
struct
configfs_attribute
{
const
char
*
ca_name
;
struct
module
*
ca_owner
;
mode_t
ca_mode
;
u
mode_t
ca_mode
;
};
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment