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
08f85851
Commit
08f85851
authored
Oct 08, 2007
by
Al Viro
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] move block_device_operations to blkdev.h
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
647b3d00
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
fs/ext2/xip.c
fs/ext2/xip.c
+1
-0
include/linux/blkdev.h
include/linux/blkdev.h
+17
-0
include/linux/fs.h
include/linux/fs.h
+1
-14
No files found.
fs/ext2/xip.c
View file @
08f85851
...
...
@@ -11,6 +11,7 @@
#include <linux/buffer_head.h>
#include <linux/ext2_fs_sb.h>
#include <linux/ext2_fs.h>
#include <linux/blkdev.h>
#include "ext2.h"
#include "xip.h"
...
...
include/linux/blkdev.h
View file @
08f85851
...
...
@@ -1057,6 +1057,23 @@ static inline int blk_integrity_rq(struct request *rq)
#endif
/* CONFIG_BLK_DEV_INTEGRITY */
struct
file
;
struct
inode
;
struct
block_device_operations
{
int
(
*
open
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
release
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
ioctl
)
(
struct
inode
*
,
struct
file
*
,
unsigned
,
unsigned
long
);
long
(
*
unlocked_ioctl
)
(
struct
file
*
,
unsigned
,
unsigned
long
);
long
(
*
compat_ioctl
)
(
struct
file
*
,
unsigned
,
unsigned
long
);
int
(
*
direct_access
)
(
struct
block_device
*
,
sector_t
,
void
**
,
unsigned
long
*
);
int
(
*
media_changed
)
(
struct
gendisk
*
);
int
(
*
revalidate_disk
)
(
struct
gendisk
*
);
int
(
*
getgeo
)(
struct
block_device
*
,
struct
hd_geometry
*
);
struct
module
*
owner
;
};
#else
/* CONFIG_BLOCK */
/*
* stubs for when the block layer is configured out
...
...
include/linux/fs.h
View file @
08f85851
...
...
@@ -1270,20 +1270,7 @@ int generic_osync_inode(struct inode *, struct address_space *, int);
* to have different dirent layouts depending on the binary type.
*/
typedef
int
(
*
filldir_t
)(
void
*
,
const
char
*
,
int
,
loff_t
,
u64
,
unsigned
);
struct
block_device_operations
{
int
(
*
open
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
release
)
(
struct
inode
*
,
struct
file
*
);
int
(
*
ioctl
)
(
struct
inode
*
,
struct
file
*
,
unsigned
,
unsigned
long
);
long
(
*
unlocked_ioctl
)
(
struct
file
*
,
unsigned
,
unsigned
long
);
long
(
*
compat_ioctl
)
(
struct
file
*
,
unsigned
,
unsigned
long
);
int
(
*
direct_access
)
(
struct
block_device
*
,
sector_t
,
void
**
,
unsigned
long
*
);
int
(
*
media_changed
)
(
struct
gendisk
*
);
int
(
*
revalidate_disk
)
(
struct
gendisk
*
);
int
(
*
getgeo
)(
struct
block_device
*
,
struct
hd_geometry
*
);
struct
module
*
owner
;
};
struct
block_device_operations
;
/* These macros are for out of kernel modules to test that
* the kernel supports the unlocked_ioctl and compat_ioctl
...
...
Kirill Smelkov
@kirr
mentioned in commit
97240963
·
Feb 26, 2017
mentioned in commit
97240963
mentioned in commit 97240963eb308d8d21a89c0459822f7ea98463b4
Toggle commit list
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