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
5cdeb2cc
Commit
5cdeb2cc
authored
Oct 28, 2002
by
Alexander Viro
Committed by
James Bottomley
Oct 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dasd fixes
parent
eaa0bfbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
27 deletions
+2
-27
drivers/s390/block/dasd.c
drivers/s390/block/dasd.c
+0
-5
drivers/s390/block/dasd_ioctl.c
drivers/s390/block/dasd_ioctl.c
+2
-22
No files found.
drivers/s390/block/dasd.c
View file @
5cdeb2cc
...
...
@@ -337,11 +337,6 @@ dasd_state_known_to_new(dasd_device_t * device)
/* Forget the discipline information. */
device
->
discipline
=
NULL
;
device
->
state
=
DASD_STATE_NEW
;
/* Forget the block device */
bdev
=
bdget
(
MKDEV
(
device
->
gdp
->
major
,
device
->
gdp
->
first_minor
));
bdput
(
bdev
);
bdput
(
bdev
);
}
/*
...
...
drivers/s390/block/dasd_ioctl.c
View file @
5cdeb2cc
...
...
@@ -88,33 +88,17 @@ int
dasd_ioctl
(
struct
inode
*
inp
,
struct
file
*
filp
,
unsigned
int
no
,
unsigned
long
data
)
{
dasd_devmap_t
*
devmap
;
dasd_device_t
*
device
;
struct
block_device
*
bdev
=
inp
->
i_bdev
;
dasd_device_t
*
device
=
bdev
->
bd_disk
->
private_data
;
dasd_ioctl_list_t
*
ioctl
;
struct
block_device
*
bdev
;
struct
list_head
*
l
;
const
char
*
dir
;
int
rc
;
if
((
!
inp
)
||
kdev_none
(
inp
->
i_rdev
))
return
-
EINVAL
;
if
((
_IOC_DIR
(
no
)
!=
_IOC_NONE
)
&&
(
data
==
0
))
{
PRINT_DEBUG
(
"empty data ptr"
);
return
-
EINVAL
;
}
bdev
=
bdget
(
kdev_t_to_nr
(
inp
->
i_rdev
));
if
(
!
bdev
)
return
-
EINVAL
;
devmap
=
dasd_devmap_from_bdev
(
bdev
);
device
=
(
devmap
!=
NULL
)
?
dasd_get_device
(
devmap
)
:
ERR_PTR
(
-
ENODEV
);
if
(
IS_ERR
(
device
))
{
MESSAGE
(
KERN_WARNING
,
"No device registered as device %s"
,
bdevname
(
bdev
));
bdput
(
bdev
);
return
-
EINVAL
;
}
dir
=
_IOC_DIR
(
no
)
==
_IOC_NONE
?
"0"
:
_IOC_DIR
(
no
)
==
_IOC_READ
?
"r"
:
_IOC_DIR
(
no
)
==
_IOC_WRITE
?
"w"
:
...
...
@@ -134,8 +118,6 @@ dasd_ioctl(struct inode *inp, struct file *filp,
__MOD_DEC_USE_COUNT
(
ioctl
->
owner
);
}
else
rc
=
ioctl
->
handler
(
bdev
,
no
,
data
);
dasd_put_device
(
devmap
);
bdput
(
bdev
);
return
rc
;
}
}
...
...
@@ -143,8 +125,6 @@ dasd_ioctl(struct inode *inp, struct file *filp,
DBF_DEV_EVENT
(
DBF_INFO
,
device
,
"unknown ioctl 0x%08x=%s'0x%x'%d(%d) data %8lx"
,
no
,
dir
,
_IOC_TYPE
(
no
),
_IOC_NR
(
no
),
_IOC_SIZE
(
no
),
data
);
dasd_put_device
(
devmap
);
bdput
(
bdev
);
return
-
ENOTTY
;
}
...
...
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