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
632861f0
Commit
632861f0
authored
Jul 26, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pohmelfs: propagate umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
09208d15
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
drivers/staging/pohmelfs/dir.c
drivers/staging/pohmelfs/dir.c
+4
-3
drivers/staging/pohmelfs/netfs.h
drivers/staging/pohmelfs/netfs.h
+1
-1
fs/ramfs/inode.c
fs/ramfs/inode.c
+1
-1
include/linux/ramfs.h
include/linux/ramfs.h
+1
-1
No files found.
drivers/staging/pohmelfs/dir.c
View file @
632861f0
...
@@ -590,13 +590,13 @@ struct dentry *pohmelfs_lookup(struct inode *dir, struct dentry *dentry, struct
...
@@ -590,13 +590,13 @@ struct dentry *pohmelfs_lookup(struct inode *dir, struct dentry *dentry, struct
* during writeback for given inode.
* during writeback for given inode.
*/
*/
struct
pohmelfs_inode
*
pohmelfs_create_entry_local
(
struct
pohmelfs_sb
*
psb
,
struct
pohmelfs_inode
*
pohmelfs_create_entry_local
(
struct
pohmelfs_sb
*
psb
,
struct
pohmelfs_inode
*
parent
,
struct
qstr
*
str
,
u64
start
,
in
t
mode
)
struct
pohmelfs_inode
*
parent
,
struct
qstr
*
str
,
u64
start
,
umode_
t
mode
)
{
{
struct
pohmelfs_inode
*
npi
;
struct
pohmelfs_inode
*
npi
;
int
err
=
-
ENOMEM
;
int
err
=
-
ENOMEM
;
struct
netfs_inode_info
info
;
struct
netfs_inode_info
info
;
dprintk
(
"%s: name: '%s', mode: %o, start: %llu.
\n
"
,
dprintk
(
"%s: name: '%s', mode: %
h
o, start: %llu.
\n
"
,
__func__
,
str
->
name
,
mode
,
start
);
__func__
,
str
->
name
,
mode
,
start
);
info
.
mode
=
mode
;
info
.
mode
=
mode
;
...
@@ -630,7 +630,8 @@ struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
...
@@ -630,7 +630,8 @@ struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
/*
/*
* Create local object and bind it to dentry.
* Create local object and bind it to dentry.
*/
*/
static
int
pohmelfs_create_entry
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
u64
start
,
int
mode
)
static
int
pohmelfs_create_entry
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
u64
start
,
umode_t
mode
)
{
{
struct
pohmelfs_sb
*
psb
=
POHMELFS_SB
(
dir
->
i_sb
);
struct
pohmelfs_sb
*
psb
=
POHMELFS_SB
(
dir
->
i_sb
);
struct
pohmelfs_inode
*
npi
,
*
parent
;
struct
pohmelfs_inode
*
npi
,
*
parent
;
...
...
drivers/staging/pohmelfs/netfs.h
View file @
632861f0
...
@@ -776,7 +776,7 @@ struct pohmelfs_name *pohmelfs_search_hash(struct pohmelfs_inode *pi, u32 hash);
...
@@ -776,7 +776,7 @@ struct pohmelfs_name *pohmelfs_search_hash(struct pohmelfs_inode *pi, u32 hash);
void
pohmelfs_inode_del_inode
(
struct
pohmelfs_sb
*
psb
,
struct
pohmelfs_inode
*
pi
);
void
pohmelfs_inode_del_inode
(
struct
pohmelfs_sb
*
psb
,
struct
pohmelfs_inode
*
pi
);
struct
pohmelfs_inode
*
pohmelfs_create_entry_local
(
struct
pohmelfs_sb
*
psb
,
struct
pohmelfs_inode
*
pohmelfs_create_entry_local
(
struct
pohmelfs_sb
*
psb
,
struct
pohmelfs_inode
*
parent
,
struct
qstr
*
str
,
u64
start
,
in
t
mode
);
struct
pohmelfs_inode
*
parent
,
struct
qstr
*
str
,
u64
start
,
umode_
t
mode
);
int
pohmelfs_write_create_inode
(
struct
pohmelfs_inode
*
pi
);
int
pohmelfs_write_create_inode
(
struct
pohmelfs_inode
*
pi
);
...
...
fs/ramfs/inode.c
View file @
632861f0
...
@@ -52,7 +52,7 @@ static struct backing_dev_info ramfs_backing_dev_info = {
...
@@ -52,7 +52,7 @@ static struct backing_dev_info ramfs_backing_dev_info = {
};
};
struct
inode
*
ramfs_get_inode
(
struct
super_block
*
sb
,
struct
inode
*
ramfs_get_inode
(
struct
super_block
*
sb
,
const
struct
inode
*
dir
,
in
t
mode
,
dev_t
dev
)
const
struct
inode
*
dir
,
umode_
t
mode
,
dev_t
dev
)
{
{
struct
inode
*
inode
=
new_inode
(
sb
);
struct
inode
*
inode
=
new_inode
(
sb
);
...
...
include/linux/ramfs.h
View file @
632861f0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#define _LINUX_RAMFS_H
#define _LINUX_RAMFS_H
struct
inode
*
ramfs_get_inode
(
struct
super_block
*
sb
,
const
struct
inode
*
dir
,
struct
inode
*
ramfs_get_inode
(
struct
super_block
*
sb
,
const
struct
inode
*
dir
,
in
t
mode
,
dev_t
dev
);
umode_
t
mode
,
dev_t
dev
);
extern
struct
dentry
*
ramfs_mount
(
struct
file_system_type
*
fs_type
,
extern
struct
dentry
*
ramfs_mount
(
struct
file_system_type
*
fs_type
,
int
flags
,
const
char
*
dev_name
,
void
*
data
);
int
flags
,
const
char
*
dev_name
,
void
*
data
);
...
...
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