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
d0955a1f
Commit
d0955a1f
authored
Jun 08, 2019
by
J. R. Okajima
Browse files
Merge branch 'aufs5.1/01modular' into aufs5.x-rcN/01modular
parents
1a3d720f
2ccf7d64
Changes
2
Show whitespace changes
Inline
Side-by-side
fs/aufs/dynop.c
View file @
d0955a1f
...
@@ -27,8 +27,8 @@ static struct au_dykey *dy_gfind_get(struct hlist_bl_head *hbl,
...
@@ -27,8 +27,8 @@ static struct au_dykey *dy_gfind_get(struct hlist_bl_head *hbl,
hlist_bl_lock
(
hbl
);
hlist_bl_lock
(
hbl
);
hlist_bl_for_each_entry
(
tmp
,
pos
,
hbl
,
dk_hnode
)
hlist_bl_for_each_entry
(
tmp
,
pos
,
hbl
,
dk_hnode
)
if
(
tmp
->
dk_op
.
dy_hop
==
h_op
)
{
if
(
tmp
->
dk_op
.
dy_hop
==
h_op
)
{
if
(
kref_get_unless_zero
(
&
tmp
->
dk_kref
))
key
=
tmp
;
key
=
tmp
;
kref_get
(
&
key
->
dk_kref
);
break
;
break
;
}
}
hlist_bl_unlock
(
hbl
);
hlist_bl_unlock
(
hbl
);
...
@@ -82,7 +82,7 @@ static struct au_dykey *dy_gadd(struct hlist_bl_head *hbl, struct au_dykey *key)
...
@@ -82,7 +82,7 @@ static struct au_dykey *dy_gadd(struct hlist_bl_head *hbl, struct au_dykey *key)
hlist_bl_lock
(
hbl
);
hlist_bl_lock
(
hbl
);
hlist_bl_for_each_entry
(
tmp
,
pos
,
hbl
,
dk_hnode
)
hlist_bl_for_each_entry
(
tmp
,
pos
,
hbl
,
dk_hnode
)
if
(
tmp
->
dk_op
.
dy_hop
==
h_op
)
{
if
(
tmp
->
dk_op
.
dy_hop
==
h_op
)
{
kref_get
(
&
tmp
->
dk_kref
)
;
if
(
kref_get
_unless_zero
(
&
tmp
->
dk_kref
)
)
found
=
tmp
;
found
=
tmp
;
break
;
break
;
}
}
...
@@ -101,7 +101,7 @@ static void dy_free_rcu(struct rcu_head *rcu)
...
@@ -101,7 +101,7 @@ static void dy_free_rcu(struct rcu_head *rcu)
key
=
container_of
(
rcu
,
struct
au_dykey
,
dk_rcu
);
key
=
container_of
(
rcu
,
struct
au_dykey
,
dk_rcu
);
DyPrSym
(
key
);
DyPrSym
(
key
);
au_
kfree
_rcu
(
key
);
kfree
(
key
);
}
}
static
void
dy_free
(
struct
kref
*
kref
)
static
void
dy_free
(
struct
kref
*
kref
)
...
...
fs/aufs/procfs.c
View file @
d0955a1f
...
@@ -48,7 +48,7 @@ static int au_procfs_plm_write_si(struct file *file, unsigned long id)
...
@@ -48,7 +48,7 @@ static int au_procfs_plm_write_si(struct file *file, unsigned long id)
hlist_bl_lock
(
&
au_sbilist
);
hlist_bl_lock
(
&
au_sbilist
);
hlist_bl_for_each_entry
(
sbinfo
,
pos
,
&
au_sbilist
,
si_list
)
hlist_bl_for_each_entry
(
sbinfo
,
pos
,
&
au_sbilist
,
si_list
)
if
(
id
==
sysaufs_si_id
(
sbinfo
))
{
if
(
id
==
sysaufs_si_id
(
sbinfo
))
{
kobject_get
(
&
sbinfo
->
si_kobj
)
;
if
(
kobject_get
_unless_zero
(
&
sbinfo
->
si_kobj
)
)
sb
=
sbinfo
->
si_sb
;
sb
=
sbinfo
->
si_sb
;
break
;
break
;
}
}
...
...
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