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
89a17c87
Commit
89a17c87
authored
Oct 07, 2002
by
Art Haas
Committed by
Linus Torvalds
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] named initializers for fs/hpfs
parent
aaa52f23
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
46 deletions
+46
-46
fs/hpfs/dentry.c
fs/hpfs/dentry.c
+2
-2
fs/hpfs/file.c
fs/hpfs/file.c
+6
-6
fs/hpfs/inode.c
fs/hpfs/inode.c
+26
-26
fs/hpfs/super.c
fs/hpfs/super.c
+12
-12
No files found.
fs/hpfs/dentry.c
View file @
89a17c87
...
@@ -50,8 +50,8 @@ int hpfs_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b)
...
@@ -50,8 +50,8 @@ int hpfs_compare_dentry(struct dentry *dentry, struct qstr *a, struct qstr *b)
}
}
struct
dentry_operations
hpfs_dentry_operations
=
{
struct
dentry_operations
hpfs_dentry_operations
=
{
d_hash:
hpfs_hash_dentry
,
.
d_hash
=
hpfs_hash_dentry
,
d_compare:
hpfs_compare_dentry
,
.
d_compare
=
hpfs_compare_dentry
,
};
};
void
hpfs_set_dentry_operations
(
struct
dentry
*
dentry
)
void
hpfs_set_dentry_operations
(
struct
dentry
*
dentry
)
...
...
fs/hpfs/file.c
View file @
89a17c87
...
@@ -116,12 +116,12 @@ static int _hpfs_bmap(struct address_space *mapping, long block)
...
@@ -116,12 +116,12 @@ static int _hpfs_bmap(struct address_space *mapping, long block)
return
generic_block_bmap
(
mapping
,
block
,
hpfs_get_block
);
return
generic_block_bmap
(
mapping
,
block
,
hpfs_get_block
);
}
}
struct
address_space_operations
hpfs_aops
=
{
struct
address_space_operations
hpfs_aops
=
{
readpage:
hpfs_readpage
,
.
readpage
=
hpfs_readpage
,
writepage:
hpfs_writepage
,
.
writepage
=
hpfs_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
hpfs_prepare_write
,
.
prepare_write
=
hpfs_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
_hpfs_bmap
.
bmap
=
_hpfs_bmap
};
};
ssize_t
hpfs_file_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
ssize_t
hpfs_file_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
...
...
fs/hpfs/inode.c
View file @
89a17c87
...
@@ -14,47 +14,47 @@
...
@@ -14,47 +14,47 @@
static
struct
file_operations
hpfs_file_ops
=
static
struct
file_operations
hpfs_file_ops
=
{
{
llseek:
generic_file_llseek
,
.
llseek
=
generic_file_llseek
,
read:
generic_file_read
,
.
read
=
generic_file_read
,
write:
hpfs_file_write
,
.
write
=
hpfs_file_write
,
mmap:
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
open:
hpfs_open
,
.
open
=
hpfs_open
,
release:
hpfs_file_release
,
.
release
=
hpfs_file_release
,
fsync:
hpfs_file_fsync
,
.
fsync
=
hpfs_file_fsync
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
static
struct
inode_operations
hpfs_file_iops
=
static
struct
inode_operations
hpfs_file_iops
=
{
{
truncate:
hpfs_truncate
,
.
truncate
=
hpfs_truncate
,
setattr:
hpfs_notify_change
,
.
setattr
=
hpfs_notify_change
,
};
};
static
struct
file_operations
hpfs_dir_ops
=
static
struct
file_operations
hpfs_dir_ops
=
{
{
llseek:
hpfs_dir_lseek
,
.
llseek
=
hpfs_dir_lseek
,
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
hpfs_readdir
,
.
readdir
=
hpfs_readdir
,
open:
hpfs_open
,
.
open
=
hpfs_open
,
release:
hpfs_dir_release
,
.
release
=
hpfs_dir_release
,
fsync:
hpfs_file_fsync
,
.
fsync
=
hpfs_file_fsync
,
};
};
static
struct
inode_operations
hpfs_dir_iops
=
static
struct
inode_operations
hpfs_dir_iops
=
{
{
create:
hpfs_create
,
.
create
=
hpfs_create
,
lookup:
hpfs_lookup
,
.
lookup
=
hpfs_lookup
,
unlink:
hpfs_unlink
,
.
unlink
=
hpfs_unlink
,
symlink:
hpfs_symlink
,
.
symlink
=
hpfs_symlink
,
mkdir:
hpfs_mkdir
,
.
mkdir
=
hpfs_mkdir
,
rmdir:
hpfs_rmdir
,
.
rmdir
=
hpfs_rmdir
,
mknod:
hpfs_mknod
,
.
mknod
=
hpfs_mknod
,
rename:
hpfs_rename
,
.
rename
=
hpfs_rename
,
setattr:
hpfs_notify_change
,
.
setattr
=
hpfs_notify_change
,
};
};
struct
address_space_operations
hpfs_symlink_aops
=
{
struct
address_space_operations
hpfs_symlink_aops
=
{
readpage:
hpfs_symlink_readpage
.
readpage
=
hpfs_symlink_readpage
};
};
void
hpfs_read_inode
(
struct
inode
*
i
)
void
hpfs_read_inode
(
struct
inode
*
i
)
...
...
fs/hpfs/super.c
View file @
89a17c87
...
@@ -206,13 +206,13 @@ static void destroy_inodecache(void)
...
@@ -206,13 +206,13 @@ static void destroy_inodecache(void)
static
struct
super_operations
hpfs_sops
=
static
struct
super_operations
hpfs_sops
=
{
{
alloc_inode:
hpfs_alloc_inode
,
.
alloc_inode
=
hpfs_alloc_inode
,
destroy_inode:
hpfs_destroy_inode
,
.
destroy_inode
=
hpfs_destroy_inode
,
read_inode:
hpfs_read_inode
,
.
read_inode
=
hpfs_read_inode
,
delete_inode:
hpfs_delete_inode
,
.
delete_inode
=
hpfs_delete_inode
,
put_super:
hpfs_put_super
,
.
put_super
=
hpfs_put_super
,
statfs:
hpfs_statfs
,
.
statfs
=
hpfs_statfs
,
remount_fs:
hpfs_remount_fs
,
.
remount_fs
=
hpfs_remount_fs
,
};
};
/*
/*
...
@@ -638,11 +638,11 @@ static struct super_block *hpfs_get_sb(struct file_system_type *fs_type,
...
@@ -638,11 +638,11 @@ static struct super_block *hpfs_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
hpfs_fs_type
=
{
static
struct
file_system_type
hpfs_fs_type
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"hpfs"
,
.
name
=
"hpfs"
,
get_sb:
hpfs_get_sb
,
.
get_sb
=
hpfs_get_sb
,
kill_sb:
kill_block_super
,
.
kill_sb
=
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
};
static
int
__init
init_hpfs_fs
(
void
)
static
int
__init
init_hpfs_fs
(
void
)
...
...
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