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
e884bce1
Commit
e884bce1
authored
Oct 10, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ext4: don't open-code ERR_CAST
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
5b394b2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fs/ext4/ialloc.c
fs/ext4/ialloc.c
+1
-1
fs/ext4/namei.c
fs/ext4/namei.c
+2
-2
No files found.
fs/ext4/ialloc.c
View file @
e884bce1
...
...
@@ -1216,7 +1216,7 @@ struct inode *ext4_orphan_get(struct super_block *sb, unsigned long ino)
bit
=
(
ino
-
1
)
%
EXT4_INODES_PER_GROUP
(
sb
);
bitmap_bh
=
ext4_read_inode_bitmap
(
sb
,
block_group
);
if
(
IS_ERR
(
bitmap_bh
))
return
(
struct
inode
*
)
bitmap_bh
;
return
ERR_CAST
(
bitmap_bh
)
;
/* Having the inode bit set should be a 100% indicator that this
* is a valid orphan (no e2fsck run on fs). Orphans also include
...
...
fs/ext4/namei.c
View file @
e884bce1
...
...
@@ -1556,7 +1556,7 @@ static struct dentry *ext4_lookup(struct inode *dir, struct dentry *dentry, unsi
bh
=
ext4_find_entry
(
dir
,
&
dentry
->
d_name
,
&
de
,
NULL
);
if
(
IS_ERR
(
bh
))
return
(
struct
dentry
*
)
bh
;
return
ERR_CAST
(
bh
)
;
inode
=
NULL
;
if
(
bh
)
{
__u32
ino
=
le32_to_cpu
(
de
->
inode
);
...
...
@@ -1600,7 +1600,7 @@ struct dentry *ext4_get_parent(struct dentry *child)
bh
=
ext4_find_entry
(
d_inode
(
child
),
&
dotdot
,
&
de
,
NULL
);
if
(
IS_ERR
(
bh
))
return
(
struct
dentry
*
)
bh
;
return
ERR_CAST
(
bh
)
;
if
(
!
bh
)
return
ERR_PTR
(
-
ENOENT
);
ino
=
le32_to_cpu
(
de
->
inode
);
...
...
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