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
nexedi
linux
Commits
690869a3
Commit
690869a3
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] rename pagebuf_run_task_queue to pagebuf_run_queues
SGI Modid: 2.5.x-xfs:slinx:134187a
parent
0a358d0e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
13 deletions
+10
-13
fs/xfs/pagebuf/page_buf.c
fs/xfs/pagebuf/page_buf.c
+4
-5
fs/xfs/pagebuf/page_buf.h
fs/xfs/pagebuf/page_buf.h
+3
-5
fs/xfs/pagebuf/page_buf_locking.c
fs/xfs/pagebuf/page_buf_locking.c
+1
-1
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf.h
+2
-2
No files found.
fs/xfs/pagebuf/page_buf.c
View file @
690869a3
...
@@ -575,7 +575,6 @@ _pagebuf_lookup_pages(
...
@@ -575,7 +575,6 @@ _pagebuf_lookup_pages(
return
rval
;
return
rval
;
}
}
/*
/*
* Finding and Reading Buffers
* Finding and Reading Buffers
*/
*/
...
@@ -1121,7 +1120,7 @@ _pagebuf_wait_unpin(
...
@@ -1121,7 +1120,7 @@ _pagebuf_wait_unpin(
if
(
atomic_read
(
&
PBP
(
pb
)
->
pb_pin_count
)
==
0
)
{
if
(
atomic_read
(
&
PBP
(
pb
)
->
pb_pin_count
)
==
0
)
{
break
;
break
;
}
}
pagebuf_run_
task_queue
(
pb
);
pagebuf_run_
queues
(
pb
);
schedule
();
schedule
();
}
}
remove_wait_queue
(
&
PBP
(
pb
)
->
pb_waiters
,
&
wait
);
remove_wait_queue
(
&
PBP
(
pb
)
->
pb_waiters
,
&
wait
);
...
@@ -1465,7 +1464,7 @@ pagebuf_iowait(
...
@@ -1465,7 +1464,7 @@ pagebuf_iowait(
page_buf_t
*
pb
)
page_buf_t
*
pb
)
{
{
PB_TRACE
(
pb
,
PB_TRACE_REC
(
iowait
),
0
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
iowait
),
0
);
pagebuf_run_
task_queue
(
pb
);
pagebuf_run_
queues
(
pb
);
down
(
&
pb
->
pb_iodonesema
);
down
(
&
pb
->
pb_iodonesema
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
iowaited
),
(
int
)
pb
->
pb_error
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
iowaited
),
(
int
)
pb
->
pb_error
);
return
pb
->
pb_error
;
return
pb
->
pb_error
;
...
@@ -1712,7 +1711,7 @@ pagebuf_daemon(
...
@@ -1712,7 +1711,7 @@ pagebuf_daemon(
if
(
as_list_len
>
0
)
if
(
as_list_len
>
0
)
purge_addresses
();
purge_addresses
();
if
(
count
)
if
(
count
)
pagebuf_run_
task_queue
(
NULL
);
pagebuf_run_
queues
(
NULL
);
force_flush
=
0
;
force_flush
=
0
;
}
while
(
pb_daemon
->
active
==
1
);
}
while
(
pb_daemon
->
active
==
1
);
...
@@ -1783,7 +1782,7 @@ pagebuf_delwri_flush(
...
@@ -1783,7 +1782,7 @@ pagebuf_delwri_flush(
spin_unlock
(
&
pb_daemon
->
pb_delwrite_lock
);
spin_unlock
(
&
pb_daemon
->
pb_delwrite_lock
);
pagebuf_run_
task_queue
(
NULL
);
pagebuf_run_
queues
(
NULL
);
if
(
pinptr
)
if
(
pinptr
)
*
pinptr
=
pincount
;
*
pinptr
=
pincount
;
...
...
fs/xfs/pagebuf/page_buf.h
View file @
690869a3
...
@@ -378,12 +378,10 @@ static __inline__ int __pagebuf_iorequest(page_buf_t *pb)
...
@@ -378,12 +378,10 @@ static __inline__ int __pagebuf_iorequest(page_buf_t *pb)
return
pagebuf_iorequest
(
pb
);
return
pagebuf_iorequest
(
pb
);
}
}
static
__inline__
void
pagebuf_run_
task_queue
(
page_buf_t
*
pb
)
static
__inline__
void
pagebuf_run_
queues
(
page_buf_t
*
pb
)
{
{
if
(
pb
&&
(
atomic_read
(
&
pb
->
pb_io_remaining
)
==
0
))
if
(
!
pb
||
atomic_read
(
&
pb
->
pb_io_remaining
))
return
;
blk_run_queues
();
blk_run_queues
();
}
}
#endif
/* __PAGE_BUF_H__ */
#endif
/* __PAGE_BUF_H__ */
fs/xfs/pagebuf/page_buf_locking.c
View file @
690869a3
...
@@ -113,7 +113,7 @@ pagebuf_lock(
...
@@ -113,7 +113,7 @@ pagebuf_lock(
ASSERT
(
pb
->
pb_flags
&
_PBF_LOCKABLE
);
ASSERT
(
pb
->
pb_flags
&
_PBF_LOCKABLE
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
lock
),
0
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
lock
),
0
);
pagebuf_run_
task_queue
(
pb
);
pagebuf_run_
queues
(
pb
);
down
(
&
PBP
(
pb
)
->
pb_sema
);
down
(
&
PBP
(
pb
)
->
pb_sema
);
PB_SET_OWNER
(
pb
);
PB_SET_OWNER
(
pb
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
locked
),
0
);
PB_TRACE
(
pb
,
PB_TRACE_REC
(
locked
),
0
);
...
...
fs/xfs/xfs_buf.h
View file @
690869a3
...
@@ -210,7 +210,7 @@ static inline int xfs_bawrite(void *mp, page_buf_t *bp)
...
@@ -210,7 +210,7 @@ static inline int xfs_bawrite(void *mp, page_buf_t *bp)
bp
->
pb_strat
=
xfs_bdstrat_cb
;
bp
->
pb_strat
=
xfs_bdstrat_cb
;
xfs_buf_undelay
(
bp
);
xfs_buf_undelay
(
bp
);
if
((
ret
=
pagebuf_iostart
(
bp
,
PBF_WRITE
|
PBF_ASYNC
))
==
0
)
if
((
ret
=
pagebuf_iostart
(
bp
,
PBF_WRITE
|
PBF_ASYNC
))
==
0
)
pagebuf_run_
task_queue
(
bp
);
pagebuf_run_
queues
(
bp
);
return
ret
;
return
ret
;
}
}
...
@@ -265,7 +265,7 @@ static inline int XFS_bwrite(page_buf_t *pb)
...
@@ -265,7 +265,7 @@ static inline int XFS_bwrite(page_buf_t *pb)
error
=
pagebuf_iowait
(
pb
);
error
=
pagebuf_iowait
(
pb
);
xfs_buf_relse
(
pb
);
xfs_buf_relse
(
pb
);
}
else
{
}
else
{
pagebuf_run_
task_queue
(
pb
);
pagebuf_run_
queues
(
pb
);
error
=
0
;
error
=
0
;
}
}
...
...
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