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
4f5f78e6
Commit
4f5f78e6
authored
Sep 21, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Sep 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] misc cleanups
assorted minor cleanups
parent
16a974dc
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
37 deletions
+7
-37
drivers/block/paride/pcd.c
drivers/block/paride/pcd.c
+0
-2
drivers/block/paride/pf.c
drivers/block/paride/pf.c
+0
-1
drivers/mtd/ftl.c
drivers/mtd/ftl.c
+0
-6
drivers/mtd/nftlcore.c
drivers/mtd/nftlcore.c
+0
-2
drivers/sbus/char/jsflash.c
drivers/sbus/char/jsflash.c
+1
-9
drivers/scsi/sr_ioctl.c
drivers/scsi/sr_ioctl.c
+1
-10
fs/block_dev.c
fs/block_dev.c
+3
-2
fs/udf/lowlevel.c
fs/udf/lowlevel.c
+2
-5
No files found.
drivers/block/paride/pcd.c
View file @
4f5f78e6
...
@@ -176,8 +176,6 @@ MODULE_PARM(drive3, "1-6i");
...
@@ -176,8 +176,6 @@ MODULE_PARM(drive3, "1-6i");
/* set up defines for blk.h, why don't all drivers do it this way ? */
/* set up defines for blk.h, why don't all drivers do it this way ? */
#define MAJOR_NR major
#define MAJOR_NR major
#define DEVICE_NR(device) (minor(device))
#define DEVICE_OFF(device)
#include <linux/blk.h>
#include <linux/blk.h>
...
...
drivers/block/paride/pf.c
View file @
4f5f78e6
...
@@ -199,7 +199,6 @@ MODULE_PARM(drive3,"1-7i");
...
@@ -199,7 +199,6 @@ MODULE_PARM(drive3,"1-7i");
#define MAJOR_NR major
#define MAJOR_NR major
#define DEVICE_NR(device) minor(device)
#define DEVICE_NR(device) minor(device)
#define DEVICE_OFF(device)
#include <linux/blk.h>
#include <linux/blk.h>
#include <linux/blkpg.h>
#include <linux/blkpg.h>
...
...
drivers/mtd/ftl.c
View file @
4f5f78e6
...
@@ -94,12 +94,6 @@ MODULE_PARM(shuffle_freq, "i");
...
@@ -94,12 +94,6 @@ MODULE_PARM(shuffle_freq, "i");
/* Funky stuff for setting up a block device */
/* Funky stuff for setting up a block device */
#define MAJOR_NR FTL_MAJOR
#define MAJOR_NR FTL_MAJOR
#define DEVICE_OFF(device)
#define DEVICE_NR(minor) ((minor)>>5)
#define REGION_NR(minor) (((minor)>>3)&3)
#define PART_NR(minor) ((minor)&7)
#define MINOR_NR(dev,reg,part) (((dev)<<5)+((reg)<<3)+(part))
#include <linux/blk.h>
#include <linux/blk.h>
...
...
drivers/mtd/nftlcore.c
View file @
4f5f78e6
...
@@ -41,8 +41,6 @@
...
@@ -41,8 +41,6 @@
/* NFTL block device stuff */
/* NFTL block device stuff */
#define MAJOR_NR NFTL_MAJOR
#define MAJOR_NR NFTL_MAJOR
#define DEVICE_OFF(device)
#include <linux/blk.h>
#include <linux/blk.h>
#include <linux/hdreg.h>
#include <linux/hdreg.h>
...
...
drivers/sbus/char/jsflash.c
View file @
4f5f78e6
...
@@ -42,15 +42,7 @@
...
@@ -42,15 +42,7 @@
*/
*/
#define MAJOR_NR JSFD_MAJOR
#define MAJOR_NR JSFD_MAJOR
#define DEVICE_REQUEST jsfd_do_request
#define DEVICE_NR(device) (MINOR(device))
#define DEVICE_ON(device)
#define DEVICE_OFF(device)
#define DEVICE_NO_RANDOM
#include <linux/blk.h>
#include <linux/blk.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/io.h>
#include <asm/io.h>
...
@@ -657,7 +649,7 @@ int jsfd_init(void) {
...
@@ -657,7 +649,7 @@ int jsfd_init(void) {
blk_size
[
JSFD_MAJOR
]
=
jsfd_sizes
;
blk_size
[
JSFD_MAJOR
]
=
jsfd_sizes
;
blk_init_queue
(
BLK_DEFAULT_QUEUE
(
MAJOR_NR
),
DEVICE_REQUEST
);
blk_init_queue
(
BLK_DEFAULT_QUEUE
(
MAJOR_NR
),
jsf_do_request
);
for
(
i
=
0
;
i
<
JSF_MAX
;
i
++
)
{
for
(
i
=
0
;
i
<
JSF_MAX
;
i
++
)
{
if
((
i
&
JSF_PART_MASK
)
>=
JSF_NPART
)
continue
;
if
((
i
&
JSF_PART_MASK
)
>=
JSF_NPART
)
continue
;
jsf
=
&
jsf0
;
/* actually, &jsfv[i >> JSF_PART_BITS] */
jsf
=
&
jsf0
;
/* actually, &jsfv[i >> JSF_PART_BITS] */
...
...
drivers/scsi/sr_ioctl.c
View file @
4f5f78e6
...
@@ -545,16 +545,7 @@ int sr_dev_ioctl(struct cdrom_device_info *cdi,
...
@@ -545,16 +545,7 @@ int sr_dev_ioctl(struct cdrom_device_info *cdi,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
Scsi_CD
*
cd
=
cdi
->
handle
;
Scsi_CD
*
cd
=
cdi
->
handle
;
return
scsi_ioctl
(
cd
->
device
,
cmd
,
(
void
*
)
arg
);
switch
(
cmd
)
{
case
BLKGETSIZE
:
return
put_user
(
cd
->
capacity
,
(
unsigned
long
*
)
arg
);
case
BLKGETSIZE64
:
return
put_user
((
u64
)
cd
->
capacity
<<
9
,
(
u64
*
)
arg
);
default:
return
scsi_ioctl
(
cd
->
device
,
cmd
,
(
void
*
)
arg
);
}
}
}
/*
/*
...
...
fs/block_dev.c
View file @
4f5f78e6
...
@@ -843,6 +843,9 @@ static int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
...
@@ -843,6 +843,9 @@ static int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
case
BLKPG
:
case
BLKPG
:
ret
=
blk_ioctl
(
bdev
,
cmd
,
arg
);
ret
=
blk_ioctl
(
bdev
,
cmd
,
arg
);
break
;
break
;
case
BLKRRPART
:
ret
=
blkdev_reread_part
(
bdev
);
break
;
default:
default:
if
(
bdev
->
bd_op
->
ioctl
)
if
(
bdev
->
bd_op
->
ioctl
)
ret
=
bdev
->
bd_op
->
ioctl
(
inode
,
file
,
cmd
,
arg
);
ret
=
bdev
->
bd_op
->
ioctl
(
inode
,
file
,
cmd
,
arg
);
...
@@ -854,8 +857,6 @@ static int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
...
@@ -854,8 +857,6 @@ static int blkdev_ioctl(struct inode *inode, struct file *file, unsigned cmd,
case
BLKROSET
:
case
BLKROSET
:
ret
=
blk_ioctl
(
bdev
,
cmd
,
arg
);
ret
=
blk_ioctl
(
bdev
,
cmd
,
arg
);
break
;
break
;
case
BLKRRPART
:
ret
=
blkdev_reread_part
(
bdev
);
}
}
}
}
}
}
...
...
fs/udf/lowlevel.c
View file @
4f5f78e6
...
@@ -78,13 +78,10 @@ udf_get_last_block(struct super_block *sb)
...
@@ -78,13 +78,10 @@ udf_get_last_block(struct super_block *sb)
if
(
ret
)
/* Hard Disk */
if
(
ret
)
/* Hard Disk */
{
{
ret
=
ioctl_by_bdev
(
bdev
,
BLKGETSIZE
,
(
unsigned
long
)
&
lblock
);
lblock
=
bdev
->
bd_inode
->
i_size
/
sb
->
s_blocksize
;
if
(
!
ret
&&
lblock
!=
0x7FFFFFFF
)
lblock
=
((
512
*
lblock
)
/
sb
->
s_blocksize
);
}
}
if
(
!
ret
&&
lblock
)
if
(
lblock
)
return
lblock
-
1
;
return
lblock
-
1
;
else
else
return
0
;
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