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
7511821e
Commit
7511821e
authored
Dec 04, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Dec 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] remove two dead members from pagebuf_daemon
SGI Modid: 2.5.x-xfs:slinx:134222a
parent
e6a39e62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
fs/xfs/pagebuf/page_buf.c
fs/xfs/pagebuf/page_buf.c
+1
-6
fs/xfs/pagebuf/page_buf_internal.h
fs/xfs/pagebuf/page_buf_internal.h
+0
-2
No files found.
fs/xfs/pagebuf/page_buf.c
View file @
7511821e
...
@@ -1597,9 +1597,8 @@ pagebuf_delwri_queue(
...
@@ -1597,9 +1597,8 @@ pagebuf_delwri_queue(
atomic_dec
(
&
pb
->
pb_hold
);
atomic_dec
(
&
pb
->
pb_hold
);
}
}
list_del
(
&
pb
->
pb_list
);
list_del
(
&
pb
->
pb_list
);
}
else
{
pb_daemon
->
pb_delwri_cnt
++
;
}
}
list_add_tail
(
&
pb
->
pb_list
,
&
pb_daemon
->
pb_delwrite_l
);
list_add_tail
(
&
pb
->
pb_list
,
&
pb_daemon
->
pb_delwrite_l
);
PBP
(
pb
)
->
pb_flushtime
=
jiffies
+
pb_params
.
p_un
.
age_buffer
;
PBP
(
pb
)
->
pb_flushtime
=
jiffies
+
pb_params
.
p_un
.
age_buffer
;
spin_unlock
(
&
pb_daemon
->
pb_delwrite_lock
);
spin_unlock
(
&
pb_daemon
->
pb_delwrite_lock
);
...
@@ -1617,7 +1616,6 @@ pagebuf_delwri_dequeue(
...
@@ -1617,7 +1616,6 @@ pagebuf_delwri_dequeue(
spin_lock
(
&
pb_daemon
->
pb_delwrite_lock
);
spin_lock
(
&
pb_daemon
->
pb_delwrite_lock
);
list_del_init
(
&
pb
->
pb_list
);
list_del_init
(
&
pb
->
pb_list
);
pb
->
pb_flags
&=
~
PBF_DELWRI
;
pb
->
pb_flags
&=
~
PBF_DELWRI
;
pb_daemon
->
pb_delwri_cnt
--
;
spin_unlock
(
&
pb_daemon
->
pb_delwrite_lock
);
spin_unlock
(
&
pb_daemon
->
pb_delwrite_lock
);
}
}
...
@@ -1812,8 +1810,6 @@ pagebuf_daemon_start(void)
...
@@ -1812,8 +1810,6 @@ pagebuf_daemon_start(void)
}
}
pb_daemon
->
active
=
1
;
pb_daemon
->
active
=
1
;
pb_daemon
->
io_active
=
1
;
pb_daemon
->
pb_delwri_cnt
=
0
;
pb_daemon
->
pb_delwrite_lock
=
SPIN_LOCK_UNLOCKED
;
pb_daemon
->
pb_delwrite_lock
=
SPIN_LOCK_UNLOCKED
;
INIT_LIST_HEAD
(
&
pb_daemon
->
pb_delwrite_l
);
INIT_LIST_HEAD
(
&
pb_daemon
->
pb_delwrite_l
);
...
@@ -1840,7 +1836,6 @@ pagebuf_daemon_stop(void)
...
@@ -1840,7 +1836,6 @@ pagebuf_daemon_stop(void)
destroy_workqueue
(
pagebuf_workqueue
);
destroy_workqueue
(
pagebuf_workqueue
);
pb_daemon
->
active
=
0
;
pb_daemon
->
active
=
0
;
pb_daemon
->
io_active
=
0
;
wake_up_interruptible
(
&
pbd_waitq
);
wake_up_interruptible
(
&
pbd_waitq
);
while
(
pb_daemon
->
active
==
0
)
{
while
(
pb_daemon
->
active
==
0
)
{
...
...
fs/xfs/pagebuf/page_buf_internal.h
View file @
7511821e
...
@@ -97,10 +97,8 @@ struct pagebuf_trace_buf {
...
@@ -97,10 +97,8 @@ struct pagebuf_trace_buf {
typedef
struct
pagebuf_daemon
{
typedef
struct
pagebuf_daemon
{
int
active
;
int
active
;
int
io_active
;
spinlock_t
pb_delwrite_lock
;
spinlock_t
pb_delwrite_lock
;
struct
list_head
pb_delwrite_l
;
struct
list_head
pb_delwrite_l
;
int
pb_delwri_cnt
;
}
pagebuf_daemon_t
;
}
pagebuf_daemon_t
;
/*
/*
...
...
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