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
886f56f9
Commit
886f56f9
authored
Dec 05, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f2fs: it's umode_t, not mode_t...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
57e3715c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
fs/f2fs/f2fs.h
fs/f2fs/f2fs.h
+2
-4
No files found.
fs/f2fs/f2fs.h
View file @
886f56f9
...
...
@@ -1602,13 +1602,11 @@ static inline bool is_dot_dotdot(const struct qstr *str)
static
inline
bool
f2fs_may_extent_tree
(
struct
inode
*
inode
)
{
mode_t
mode
=
inode
->
i_mode
;
if
(
!
test_opt
(
F2FS_I_SB
(
inode
),
EXTENT_CACHE
)
||
is_inode_flag_set
(
F2FS_I
(
inode
),
FI_NO_EXTENT
))
return
false
;
return
S_ISREG
(
mode
);
return
S_ISREG
(
inode
->
i_
mode
);
}
static
inline
void
*
f2fs_kvmalloc
(
size_t
size
,
gfp_t
flags
)
...
...
@@ -2121,7 +2119,7 @@ static inline int f2fs_sb_has_crypto(struct super_block *sb)
static
inline
bool
f2fs_may_encrypt
(
struct
inode
*
inode
)
{
#ifdef CONFIG_F2FS_FS_ENCRYPTION
mode_t
mode
=
inode
->
i_mode
;
u
mode_t
mode
=
inode
->
i_mode
;
return
(
S_ISREG
(
mode
)
||
S_ISDIR
(
mode
)
||
S_ISLNK
(
mode
));
#else
...
...
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