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
014289c9
Commit
014289c9
authored
Aug 03, 2019
by
J. R. Okajima
Browse files
Merge branch 'aufs5.x-rcN/00base' into aufs5.x-rcN/01modular
parents
8f6163e9
1d26f910
Changes
2
Show whitespace changes
Inline
Side-by-side
fs/aufs/branch.c
View file @
014289c9
...
...
@@ -1205,6 +1205,7 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex)
unsigned
char
verbose
,
writer
;
struct
file
*
file
,
*
hf
,
**
array
;
struct
au_hfile
*
hfile
;
struct
inode
*
h_inode
;
mnt_flags
=
au_mntflags
(
sb
);
verbose
=
!!
au_opt_test
(
mnt_flags
,
VERBOSE
);
...
...
@@ -1275,8 +1276,12 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex)
hf
->
f_mode
&=
~
(
FMODE_WRITE
|
FMODE_WRITER
);
spin_unlock
(
&
hf
->
f_lock
);
if
(
writer
)
{
put_write_access
(
file_inode
(
hf
));
h_inode
=
file_inode
(
hf
);
put_write_access
(
h_inode
);
__mnt_drop_write
(
hf
->
f_path
.
mnt
);
if
((
hf
->
f_mode
&
(
FMODE_READ
|
FMODE_WRITE
))
==
FMODE_READ
)
i_readcount_inc
(
h_inode
);
}
}
...
...
fs/aufs/i_op.c
View file @
014289c9
...
...
@@ -627,9 +627,7 @@ out:
static
void
au_pin_hdir_set_owner
(
struct
au_pin
*
p
,
struct
task_struct
*
task
)
{
#if !defined(CONFIG_RWSEM_GENERIC_SPINLOCK) && defined(CONFIG_RWSEM_SPIN_ON_OWNER)
p
->
hdir
->
hi_inode
->
i_rwsem
.
owner
=
task
;
#endif
atomic_long_set
(
&
p
->
hdir
->
hi_inode
->
i_rwsem
.
owner
,
(
long
)
task
);
}
void
au_pin_hdir_acquire_nest
(
struct
au_pin
*
p
)
...
...
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