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
b33c14c8
Commit
b33c14c8
authored
Nov 18, 2023
by
Al Viro
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'no-rebase-overlayfs' into work.dcache-misc
parents
698f1e2b
484d4fbf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
22 deletions
+1
-22
fs/overlayfs/export.c
fs/overlayfs/export.c
+1
-22
No files found.
fs/overlayfs/export.c
View file @
b33c14c8
...
...
@@ -289,7 +289,6 @@ static struct dentry *ovl_obtain_alias(struct super_block *sb,
{
struct
dentry
*
lower
=
lowerpath
?
lowerpath
->
dentry
:
NULL
;
struct
dentry
*
upper
=
upper_alias
?:
index
;
struct
dentry
*
dentry
;
struct
inode
*
inode
=
NULL
;
struct
ovl_entry
*
oe
;
struct
ovl_inode_params
oip
=
{
...
...
@@ -320,27 +319,7 @@ static struct dentry *ovl_obtain_alias(struct super_block *sb,
if
(
upper
)
ovl_set_flag
(
OVL_UPPERDATA
,
inode
);
dentry
=
d_find_any_alias
(
inode
);
if
(
dentry
)
goto
out_iput
;
dentry
=
d_alloc_anon
(
inode
->
i_sb
);
if
(
unlikely
(
!
dentry
))
goto
nomem
;
if
(
upper_alias
)
ovl_dentry_set_upper_alias
(
dentry
);
ovl_dentry_init_reval
(
dentry
,
upper
,
OVL_I_E
(
inode
));
return
d_instantiate_anon
(
dentry
,
inode
);
nomem:
dput
(
dentry
);
dentry
=
ERR_PTR
(
-
ENOMEM
);
out_iput:
iput
(
inode
);
return
dentry
;
return
d_obtain_alias
(
inode
);
}
/* Get the upper or lower dentry in stack whose on layer @idx */
...
...
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