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
3ea40bc9
Commit
3ea40bc9
authored
Jul 26, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext2: propagate umode_t
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c2837de7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
fs/ext2/dir.c
fs/ext2/dir.c
+1
-1
fs/ext2/ext2.h
fs/ext2/ext2.h
+1
-1
fs/ext2/ialloc.c
fs/ext2/ialloc.c
+1
-1
No files found.
fs/ext2/dir.c
View file @
3ea40bc9
...
...
@@ -279,7 +279,7 @@ static unsigned char ext2_type_by_mode[S_IFMT >> S_SHIFT] = {
static
inline
void
ext2_set_de_type
(
ext2_dirent
*
de
,
struct
inode
*
inode
)
{
mode_t
mode
=
inode
->
i_mode
;
u
mode_t
mode
=
inode
->
i_mode
;
if
(
EXT2_HAS_INCOMPAT_FEATURE
(
inode
->
i_sb
,
EXT2_FEATURE_INCOMPAT_FILETYPE
))
de
->
file_type
=
ext2_type_by_mode
[(
mode
&
S_IFMT
)
>>
S_SHIFT
];
else
...
...
fs/ext2/ext2.h
View file @
3ea40bc9
...
...
@@ -110,7 +110,7 @@ extern struct ext2_dir_entry_2 * ext2_dotdot (struct inode *, struct page **);
extern
void
ext2_set_link
(
struct
inode
*
,
struct
ext2_dir_entry_2
*
,
struct
page
*
,
struct
inode
*
,
int
);
/* ialloc.c */
extern
struct
inode
*
ext2_new_inode
(
struct
inode
*
,
in
t
,
const
struct
qstr
*
);
extern
struct
inode
*
ext2_new_inode
(
struct
inode
*
,
umode_
t
,
const
struct
qstr
*
);
extern
void
ext2_free_inode
(
struct
inode
*
);
extern
unsigned
long
ext2_count_free_inodes
(
struct
super_block
*
);
extern
void
ext2_check_inodes_bitmap
(
struct
super_block
*
);
...
...
fs/ext2/ialloc.c
View file @
3ea40bc9
...
...
@@ -429,7 +429,7 @@ static int find_group_other(struct super_block *sb, struct inode *parent)
return
group
;
}
struct
inode
*
ext2_new_inode
(
struct
inode
*
dir
,
in
t
mode
,
struct
inode
*
ext2_new_inode
(
struct
inode
*
dir
,
umode_
t
mode
,
const
struct
qstr
*
qstr
)
{
struct
super_block
*
sb
;
...
...
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