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
c9067e32
Commit
c9067e32
authored
Nov 07, 2002
by
Art Haas
Committed by
Linus Torvalds
Nov 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 designated initializers for fs/fat
parent
62163fbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
31 deletions
+31
-31
fs/fat/dir.c
fs/fat/dir.c
+4
-4
fs/fat/file.c
fs/fat/file.c
+8
-8
fs/fat/inode.c
fs/fat/inode.c
+19
-19
No files found.
fs/fat/dir.c
View file @
c9067e32
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
struct
file_operations
fat_dir_operations
=
{
struct
file_operations
fat_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
fat_readdir
,
.
readdir
=
fat_readdir
,
ioctl:
fat_dir_ioctl
,
.
ioctl
=
fat_dir_ioctl
,
fsync:
file_fsync
,
.
fsync
=
file_fsync
,
};
};
/*
/*
...
...
fs/fat/file.c
View file @
c9067e32
...
@@ -15,17 +15,17 @@ static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count,
...
@@ -15,17 +15,17 @@ static ssize_t fat_file_write(struct file *filp, const char *buf, size_t count,
loff_t
*
ppos
);
loff_t
*
ppos
);
struct
file_operations
fat_file_operations
=
{
struct
file_operations
fat_file_operations
=
{
llseek:
generic_file_llseek
,
.
llseek
=
generic_file_llseek
,
read:
generic_file_read
,
.
read
=
generic_file_read
,
write:
fat_file_write
,
.
write
=
fat_file_write
,
mmap:
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
fsync:
file_fsync
,
.
fsync
=
file_fsync
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
struct
inode_operations
fat_file_inode_operations
=
{
struct
inode_operations
fat_file_inode_operations
=
{
truncate:
fat_truncate
,
.
truncate
=
fat_truncate
,
setattr:
fat_notify_change
,
.
setattr
=
fat_notify_change
,
};
};
int
fat_get_block
(
struct
inode
*
inode
,
sector_t
iblock
,
int
fat_get_block
(
struct
inode
*
inode
,
sector_t
iblock
,
...
...
fs/fat/inode.c
View file @
c9067e32
...
@@ -701,24 +701,24 @@ void __exit fat_destroy_inodecache(void)
...
@@ -701,24 +701,24 @@ void __exit fat_destroy_inodecache(void)
}
}
static
struct
super_operations
fat_sops
=
{
static
struct
super_operations
fat_sops
=
{
alloc_inode:
fat_alloc_inode
,
.
alloc_inode
=
fat_alloc_inode
,
destroy_inode:
fat_destroy_inode
,
.
destroy_inode
=
fat_destroy_inode
,
write_inode:
fat_write_inode
,
.
write_inode
=
fat_write_inode
,
delete_inode:
fat_delete_inode
,
.
delete_inode
=
fat_delete_inode
,
put_super:
fat_put_super
,
.
put_super
=
fat_put_super
,
statfs:
fat_statfs
,
.
statfs
=
fat_statfs
,
clear_inode:
fat_clear_inode
,
.
clear_inode
=
fat_clear_inode
,
read_inode:
make_bad_inode
,
.
read_inode
=
make_bad_inode
,
show_options:
fat_show_options
,
.
show_options
=
fat_show_options
,
};
};
static
struct
export_operations
fat_export_ops
=
{
static
struct
export_operations
fat_export_ops
=
{
decode_fh:
fat_decode_fh
,
.
decode_fh
=
fat_decode_fh
,
encode_fh:
fat_encode_fh
,
.
encode_fh
=
fat_encode_fh
,
get_dentry:
fat_get_dentry
,
.
get_dentry
=
fat_get_dentry
,
get_parent:
fat_get_parent
,
.
get_parent
=
fat_get_parent
,
};
};
/*
/*
...
@@ -1071,12 +1071,12 @@ static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
...
@@ -1071,12 +1071,12 @@ static sector_t _fat_bmap(struct address_space *mapping, sector_t block)
return
generic_block_bmap
(
mapping
,
block
,
fat_get_block
);
return
generic_block_bmap
(
mapping
,
block
,
fat_get_block
);
}
}
static
struct
address_space_operations
fat_aops
=
{
static
struct
address_space_operations
fat_aops
=
{
readpage:
fat_readpage
,
.
readpage
=
fat_readpage
,
writepage:
fat_writepage
,
.
writepage
=
fat_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
fat_prepare_write
,
.
prepare_write
=
fat_prepare_write
,
commit_write:
fat_commit_write
,
.
commit_write
=
fat_commit_write
,
bmap:
_fat_bmap
.
bmap
=
_fat_bmap
};
};
/* doesn't deal with root inode */
/* doesn't deal with root inode */
...
...
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