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
7dc429b6
Commit
7dc429b6
authored
Aug 06, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
parents
9bba0d1c
63fb0aa4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
13 deletions
+6
-13
arch/i386/kernel/cpu/mcheck/k7.c
arch/i386/kernel/cpu/mcheck/k7.c
+1
-1
drivers/block/ll_rw_blk.c
drivers/block/ll_rw_blk.c
+1
-1
fs/buffer.c
fs/buffer.c
+1
-2
include/linux/sched.h
include/linux/sched.h
+0
-1
mm/readahead.c
mm/readahead.c
+3
-8
No files found.
arch/i386/kernel/cpu/mcheck/k7.c
View file @
7dc429b6
...
...
@@ -81,7 +81,7 @@ void __init amd_mcheck_init(struct cpuinfo_x86 *c)
wrmsr
(
MSR_IA32_MCG_CTL
,
0xffffffff
,
0xffffffff
);
nr_mce_banks
=
l
&
0xff
;
for
(
i
=
0
;
i
<
nr_mce_banks
;
i
++
)
{
for
(
i
=
1
;
i
<
nr_mce_banks
;
i
++
)
{
wrmsr
(
MSR_IA32_MC0_CTL
+
4
*
i
,
0xffffffff
,
0xffffffff
);
wrmsr
(
MSR_IA32_MC0_STATUS
+
4
*
i
,
0x0
,
0x0
);
}
...
...
drivers/block/ll_rw_blk.c
View file @
7dc429b6
...
...
@@ -1833,7 +1833,7 @@ static int __make_request(request_queue_t *q, struct bio *bio)
barrier
=
test_bit
(
BIO_RW_BARRIER
,
&
bio
->
bi_rw
);
ra
=
bio
_flagged
(
bio
,
BIO_RW_AHEAD
)
||
current
->
flags
&
PF_READAHEAD
;
ra
=
bio
->
bi_rw
&
(
1
<<
BIO_RW_AHEAD
)
;
again:
insert_here
=
NULL
;
...
...
fs/buffer.c
View file @
7dc429b6
...
...
@@ -506,7 +506,6 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
set_buffer_uptodate
(
bh
);
}
else
{
clear_buffer_uptodate
(
bh
);
if
(
!
(
current
->
flags
&
PF_READAHEAD
))
buffer_io_error
(
bh
);
SetPageError
(
page
);
}
...
...
include/linux/sched.h
View file @
7dc429b6
...
...
@@ -487,7 +487,6 @@ do { if (atomic_dec_and_test(&(tsk)->usage)) __put_task_struct(tsk); } while(0)
#define PF_SWAPOFF 0x00080000
/* I am in swapoff */
#define PF_LESS_THROTTLE 0x00100000
/* Throttle me less: I clean memory */
#define PF_SYNCWRITE 0x00200000
/* I am doing a sync write */
#define PF_READAHEAD 0x00400000
/* I am doing read-ahead */
#ifdef CONFIG_SMP
extern
int
set_cpus_allowed
(
task_t
*
p
,
unsigned
long
new_mask
);
...
...
mm/readahead.c
View file @
7dc429b6
...
...
@@ -298,15 +298,10 @@ int force_page_cache_readahead(struct address_space *mapping, struct file *filp,
int
do_page_cache_readahead
(
struct
address_space
*
mapping
,
struct
file
*
filp
,
unsigned
long
offset
,
unsigned
long
nr_to_read
)
{
int
ret
=
0
;
if
(
!
bdi_read_congested
(
mapping
->
backing_dev_info
))
{
current
->
flags
|=
PF_READAHEAD
;
ret
=
__do_page_cache_readahead
(
mapping
,
filp
,
if
(
!
bdi_read_congested
(
mapping
->
backing_dev_info
))
return
__do_page_cache_readahead
(
mapping
,
filp
,
offset
,
nr_to_read
);
current
->
flags
&=
~
PF_READAHEAD
;
}
return
ret
;
return
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