Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Aufs5 Standalone
Commits
14a3228b
Commit
14a3228b
authored
Jun 21, 2020
by
J. R. Okajima
Browse files
Merge branch 'aufs5.x-rcN/30stdalone' into aufs5.x-rcN/39public
parents
49f8d6ff
9530b203
Changes
2
Hide whitespace changes
Inline
Side-by-side
fs/aufs/branch.c
View file @
14a3228b
...
@@ -1290,11 +1290,10 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex)
...
@@ -1290,11 +1290,10 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex)
spin_unlock
(
&
hf
->
f_lock
);
spin_unlock
(
&
hf
->
f_lock
);
if
(
writer
)
{
if
(
writer
)
{
h_inode
=
file_inode
(
hf
);
h_inode
=
file_inode
(
hf
);
if
(
hf
->
f_mode
&
FMODE_READ
)
i_readcount_inc
(
h_inode
);
put_write_access
(
h_inode
);
put_write_access
(
h_inode
);
__mnt_drop_write
(
hf
->
f_path
.
mnt
);
__mnt_drop_write
(
hf
->
f_path
.
mnt
);
if
((
hf
->
f_mode
&
(
FMODE_READ
|
FMODE_WRITE
))
==
FMODE_READ
)
i_readcount_inc
(
h_inode
);
}
}
}
}
...
...
fs/aufs/vfsub.c
View file @
14a3228b
...
@@ -76,15 +76,8 @@ int vfsub_update_h_iattr(struct path *h_path, int *did)
...
@@ -76,15 +76,8 @@ int vfsub_update_h_iattr(struct path *h_path, int *did)
struct
file
*
vfsub_dentry_open
(
struct
path
*
path
,
int
flags
)
struct
file
*
vfsub_dentry_open
(
struct
path
*
path
,
int
flags
)
{
{
struct
file
*
file
;
return
dentry_open
(
path
,
flags
/* | __FMODE_NONOTIFY */
,
file
=
dentry_open
(
path
,
flags
/* | __FMODE_NONOTIFY */
,
current_cred
());
current_cred
());
if
(
!
IS_ERR_OR_NULL
(
file
)
&&
(
file
->
f_mode
&
(
FMODE_READ
|
FMODE_WRITE
))
==
FMODE_READ
)
i_readcount_inc
(
d_inode
(
path
->
dentry
));
return
file
;
}
}
struct
file
*
vfsub_filp_open
(
const
char
*
path
,
int
oflags
,
int
mode
)
struct
file
*
vfsub_filp_open
(
const
char
*
path
,
int
oflags
,
int
mode
)
...
...
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