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
edbb65db
Commit
edbb65db
authored
Oct 20, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://cifs.bkbits.net/linux-2.5cifs
into home.osdl.org:/home/torvalds/v2.5/linux
parents
a9bbd05d
9dd686fa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
drivers/ide/pci/siimage.c
drivers/ide/pci/siimage.c
+3
-2
drivers/md/raid0.c
drivers/md/raid0.c
+4
-3
drivers/media/video/bttv-driver.c
drivers/media/video/bttv-driver.c
+1
-0
fs/nfsd/nfs3xdr.c
fs/nfsd/nfs3xdr.c
+2
-0
No files found.
drivers/ide/pci/siimage.c
View file @
edbb65db
...
@@ -35,13 +35,13 @@
...
@@ -35,13 +35,13 @@
#include "siimage.h"
#include "siimage.h"
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
static
u8
siimage_proc
=
0
;
static
u8
siimage_proc
=
0
;
#define SIIMAGE_MAX_DEVS 16
#define SIIMAGE_MAX_DEVS 16
static
struct
pci_dev
*
siimage_devs
[
SIIMAGE_MAX_DEVS
];
static
struct
pci_dev
*
siimage_devs
[
SIIMAGE_MAX_DEVS
];
static
int
n_siimage_devs
;
static
int
n_siimage_devs
;
#endif
/* defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS) */
/**
/**
* pdev_is_sata - check if device is SATA
* pdev_is_sata - check if device is SATA
...
@@ -121,6 +121,7 @@ static inline unsigned long siimage_seldev(ide_drive_t *drive, int r)
...
@@ -121,6 +121,7 @@ static inline unsigned long siimage_seldev(ide_drive_t *drive, int r)
return
base
;
return
base
;
}
}
#if defined(DISPLAY_SIIMAGE_TIMINGS) && defined(CONFIG_PROC_FS)
/**
/**
* print_siimage_get_info - print minimal proc information
* print_siimage_get_info - print minimal proc information
* @buf: buffer to write into (kernel space)
* @buf: buffer to write into (kernel space)
...
...
drivers/md/raid0.c
View file @
edbb65db
...
@@ -332,7 +332,7 @@ static int raid0_stop (mddev_t *mddev)
...
@@ -332,7 +332,7 @@ static int raid0_stop (mddev_t *mddev)
static
int
raid0_make_request
(
request_queue_t
*
q
,
struct
bio
*
bio
)
static
int
raid0_make_request
(
request_queue_t
*
q
,
struct
bio
*
bio
)
{
{
mddev_t
*
mddev
=
q
->
queuedata
;
mddev_t
*
mddev
=
q
->
queuedata
;
unsigned
int
sect_in_chunk
,
chunksize_bits
,
chunk_size
;
unsigned
int
sect_in_chunk
,
chunksize_bits
,
chunk_size
,
chunk_sects
;
raid0_conf_t
*
conf
=
mddev_to_conf
(
mddev
);
raid0_conf_t
*
conf
=
mddev_to_conf
(
mddev
);
struct
strip_zone
*
zone
;
struct
strip_zone
*
zone
;
mdk_rdev_t
*
tmp_dev
;
mdk_rdev_t
*
tmp_dev
;
...
@@ -340,11 +340,12 @@ static int raid0_make_request (request_queue_t *q, struct bio *bio)
...
@@ -340,11 +340,12 @@ static int raid0_make_request (request_queue_t *q, struct bio *bio)
sector_t
block
,
rsect
;
sector_t
block
,
rsect
;
chunk_size
=
mddev
->
chunk_size
>>
10
;
chunk_size
=
mddev
->
chunk_size
>>
10
;
chunk_sects
=
mddev
->
chunk_size
>>
9
;
chunksize_bits
=
ffz
(
~
chunk_size
);
chunksize_bits
=
ffz
(
~
chunk_size
);
block
=
bio
->
bi_sector
>>
1
;
block
=
bio
->
bi_sector
>>
1
;
if
(
unlikely
(
chunk_s
ize
<
(
block
&
(
chunk_size
-
1
))
+
(
bio
->
bi_size
>>
10
)))
{
if
(
unlikely
(
chunk_s
ects
<
(
bio
->
bi_sector
&
(
chunk_sects
-
1
))
+
(
bio
->
bi_size
>>
9
)))
{
struct
bio_pair
*
bp
;
struct
bio_pair
*
bp
;
/* Sanity check -- queue functions should prevent this happening */
/* Sanity check -- queue functions should prevent this happening */
if
(
bio
->
bi_vcnt
!=
1
||
if
(
bio
->
bi_vcnt
!=
1
||
...
@@ -353,7 +354,7 @@ static int raid0_make_request (request_queue_t *q, struct bio *bio)
...
@@ -353,7 +354,7 @@ static int raid0_make_request (request_queue_t *q, struct bio *bio)
/* This is a one page bio that upper layers
/* This is a one page bio that upper layers
* refuse to split for us, so we need to split it.
* refuse to split for us, so we need to split it.
*/
*/
bp
=
bio_split
(
bio
,
bio_split_pool
,
(
chunk_size
-
(
block
&
(
chunk_size
-
1
)))
<<
1
);
bp
=
bio_split
(
bio
,
bio_split_pool
,
chunk_sects
-
(
bio
->
bi_sector
&
(
chunk_sects
-
1
))
);
if
(
raid0_make_request
(
q
,
&
bp
->
bio1
))
if
(
raid0_make_request
(
q
,
&
bp
->
bio1
))
generic_make_request
(
&
bp
->
bio1
);
generic_make_request
(
&
bp
->
bio1
);
if
(
raid0_make_request
(
q
,
&
bp
->
bio2
))
if
(
raid0_make_request
(
q
,
&
bp
->
bio2
))
...
...
drivers/media/video/bttv-driver.c
View file @
edbb65db
...
@@ -2818,6 +2818,7 @@ static unsigned int bttv_poll(struct file *file, poll_table *wait)
...
@@ -2818,6 +2818,7 @@ static unsigned int bttv_poll(struct file *file, poll_table *wait)
up
(
&
fh
->
cap
.
lock
);
up
(
&
fh
->
cap
.
lock
);
return
POLLERR
;
return
POLLERR
;
}
}
fh
->
cap
.
read_buf
->
memory
=
V4L2_MEMORY_USERPTR
;
field
=
videobuf_next_field
(
&
fh
->
cap
);
field
=
videobuf_next_field
(
&
fh
->
cap
);
if
(
0
!=
fh
->
cap
.
ops
->
buf_prepare
(
file
,
fh
->
cap
.
read_buf
,
field
))
{
if
(
0
!=
fh
->
cap
.
ops
->
buf_prepare
(
file
,
fh
->
cap
.
read_buf
,
field
))
{
up
(
&
fh
->
cap
.
lock
);
up
(
&
fh
->
cap
.
lock
);
...
...
fs/nfsd/nfs3xdr.c
View file @
edbb65db
...
@@ -825,6 +825,8 @@ encode_entry(struct readdir_cd *ccd, const char *name,
...
@@ -825,6 +825,8 @@ encode_entry(struct readdir_cd *ccd, const char *name,
dchild
=
lookup_one_len
(
name
,
dparent
,
namlen
);
dchild
=
lookup_one_len
(
name
,
dparent
,
namlen
);
if
(
IS_ERR
(
dchild
))
if
(
IS_ERR
(
dchild
))
goto
noexec
;
goto
noexec
;
if
(
d_mountpoint
(
dchild
))
goto
noexec
;
if
(
fh_compose
(
&
fh
,
exp
,
dchild
,
&
cd
->
fh
)
!=
0
||
!
dchild
->
d_inode
)
if
(
fh_compose
(
&
fh
,
exp
,
dchild
,
&
cd
->
fh
)
!=
0
||
!
dchild
->
d_inode
)
goto
noexec
;
goto
noexec
;
p
=
encode_post_op_attr
(
cd
->
rqstp
,
p
,
&
fh
);
p
=
encode_post_op_attr
(
cd
->
rqstp
,
p
,
&
fh
);
...
...
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