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
18fbbfc2
Commit
18fbbfc2
authored
Apr 30, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omfs_lookup(): report IO errors, use d_splice_alias()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
04bb1ba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fs/omfs/dir.c
fs/omfs/dir.c
+3
-4
No files found.
fs/omfs/dir.c
View file @
18fbbfc2
...
@@ -305,11 +305,10 @@ static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry,
...
@@ -305,11 +305,10 @@ static struct dentry *omfs_lookup(struct inode *dir, struct dentry *dentry,
ino_t
ino
=
be64_to_cpu
(
oi
->
i_head
.
h_self
);
ino_t
ino
=
be64_to_cpu
(
oi
->
i_head
.
h_self
);
brelse
(
bh
);
brelse
(
bh
);
inode
=
omfs_iget
(
dir
->
i_sb
,
ino
);
inode
=
omfs_iget
(
dir
->
i_sb
,
ino
);
if
(
IS_ERR
(
inode
))
}
else
if
(
bh
!=
ERR_PTR
(
-
ENOENT
))
{
return
ERR_CAST
(
inode
);
inode
=
ERR_CAST
(
bh
);
}
}
d_add
(
dentry
,
inode
);
return
d_splice_alias
(
inode
,
dentry
);
return
NULL
;
}
}
/* sanity check block's self pointer */
/* sanity check block's self pointer */
...
...
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