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
0471a9cd
Commit
0471a9cd
authored
Mar 20, 2018
by
Vivek Goyal
Committed by
Miklos Szeredi
Apr 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ovl: cleanup setting OVL_INDEX
Signed-off-by:
Miklos Szeredi
<
mszeredi@redhat.com
>
parent
102b0d11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
fs/overlayfs/export.c
fs/overlayfs/export.c
+0
-3
fs/overlayfs/inode.c
fs/overlayfs/inode.c
+3
-0
fs/overlayfs/namei.c
fs/overlayfs/namei.c
+0
-2
No files found.
fs/overlayfs/export.c
View file @
0471a9cd
...
...
@@ -311,9 +311,6 @@ static struct dentry *ovl_obtain_alias(struct super_block *sb,
return
ERR_CAST
(
inode
);
}
if
(
index
)
ovl_set_flag
(
OVL_INDEX
,
inode
);
dentry
=
d_find_any_alias
(
inode
);
if
(
!
dentry
)
{
dentry
=
d_alloc_anon
(
inode
->
i_sb
);
...
...
fs/overlayfs/inode.c
View file @
0471a9cd
...
...
@@ -770,6 +770,9 @@ struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry,
if
(
upperdentry
&&
ovl_is_impuredir
(
upperdentry
))
ovl_set_flag
(
OVL_IMPURE
,
inode
);
if
(
index
)
ovl_set_flag
(
OVL_INDEX
,
inode
);
/* Check for non-merge dir that may have whiteouts */
if
(
is_dir
)
{
if
(((
upperdentry
&&
lowerdentry
)
||
numlower
>
1
)
||
...
...
fs/overlayfs/namei.c
View file @
0471a9cd
...
...
@@ -1007,8 +1007,6 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry,
goto
out_free_oe
;
OVL_I
(
inode
)
->
redirect
=
upperredirect
;
if
(
index
)
ovl_set_flag
(
OVL_INDEX
,
inode
);
}
revert_creds
(
old_cred
);
...
...
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