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
393a9572
Commit
393a9572
authored
Oct 17, 2002
by
Alexander Viro
Committed by
Linus Torvalds
Oct 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] old methods removal
* old methods have no instances left; removed.
parent
901d4508
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
12 deletions
+3
-12
fs/block_dev.c
fs/block_dev.c
+3
-8
fs/partitions/check.c
fs/partitions/check.c
+0
-2
include/linux/fs.h
include/linux/fs.h
+0
-2
No files found.
fs/block_dev.c
View file @
393a9572
...
@@ -527,12 +527,9 @@ int check_disk_change(struct block_device *bdev)
...
@@ -527,12 +527,9 @@ int check_disk_change(struct block_device *bdev)
struct
block_device_operations
*
bdops
=
bdev
->
bd_op
;
struct
block_device_operations
*
bdops
=
bdev
->
bd_op
;
kdev_t
dev
=
to_kdev_t
(
bdev
->
bd_dev
);
kdev_t
dev
=
to_kdev_t
(
bdev
->
bd_dev
);
if
(
!
bdops
->
media_changed
)
{
if
(
!
bdops
->
media_changed
)
if
(
bdops
->
check_media_change
==
NULL
)
return
0
;
return
0
;
if
(
!
bdops
->
media_changed
(
bdev
->
bd_disk
))
if
(
!
bdops
->
check_media_change
(
dev
))
return
0
;
}
else
if
(
!
bdops
->
media_changed
(
bdev
->
bd_disk
))
return
0
;
return
0
;
if
(
invalidate_device
(
dev
,
0
))
if
(
invalidate_device
(
dev
,
0
))
...
@@ -540,8 +537,6 @@ int check_disk_change(struct block_device *bdev)
...
@@ -540,8 +537,6 @@ int check_disk_change(struct block_device *bdev)
if
(
bdops
->
revalidate_disk
)
if
(
bdops
->
revalidate_disk
)
bdops
->
revalidate_disk
(
bdev
->
bd_disk
);
bdops
->
revalidate_disk
(
bdev
->
bd_disk
);
else
if
(
bdops
->
revalidate
)
bdops
->
revalidate
(
dev
);
if
(
bdev
->
bd_disk
->
minors
>
1
)
if
(
bdev
->
bd_disk
->
minors
>
1
)
bdev
->
bd_invalidated
=
1
;
bdev
->
bd_invalidated
=
1
;
return
1
;
return
1
;
...
...
fs/partitions/check.c
View file @
393a9572
...
@@ -513,8 +513,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
...
@@ -513,8 +513,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
delete_partition
(
disk
,
p
);
delete_partition
(
disk
,
p
);
if
(
bdev
->
bd_op
->
revalidate_disk
)
if
(
bdev
->
bd_op
->
revalidate_disk
)
bdev
->
bd_op
->
revalidate_disk
(
disk
);
bdev
->
bd_op
->
revalidate_disk
(
disk
);
else
if
(
bdev
->
bd_op
->
revalidate
)
bdev
->
bd_op
->
revalidate
(
dev
);
if
(
!
get_capacity
(
disk
)
||
!
(
state
=
check_partition
(
disk
,
bdev
)))
if
(
!
get_capacity
(
disk
)
||
!
(
state
=
check_partition
(
disk
,
bdev
)))
return
res
;
return
res
;
for
(
p
=
1
;
p
<
state
->
limit
;
p
++
)
{
for
(
p
=
1
;
p
<
state
->
limit
;
p
++
)
{
...
...
include/linux/fs.h
View file @
393a9572
...
@@ -730,8 +730,6 @@ struct block_device_operations {
...
@@ -730,8 +730,6 @@ struct block_device_operations {
int
(
*
open
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
open
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
release
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
release
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
ioctl
)
(
struct
inode
*
,
struct
file
*
,
unsigned
,
unsigned
long
);
int
(
*
ioctl
)
(
struct
inode
*
,
struct
file
*
,
unsigned
,
unsigned
long
);
int
(
*
check_media_change
)
(
kdev_t
);
int
(
*
revalidate
)
(
kdev_t
);
int
(
*
media_changed
)
(
struct
gendisk
*
);
int
(
*
media_changed
)
(
struct
gendisk
*
);
int
(
*
revalidate_disk
)
(
struct
gendisk
*
);
int
(
*
revalidate_disk
)
(
struct
gendisk
*
);
struct
module
*
owner
;
struct
module
*
owner
;
...
...
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