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
2ce4fd46
Commit
2ce4fd46
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/affs
parent
5fcd220b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
39 deletions
+39
-39
fs/affs/dir.c
fs/affs/dir.c
+12
-12
fs/affs/file.c
fs/affs/file.c
+19
-19
fs/affs/namei.c
fs/affs/namei.c
+4
-4
fs/affs/symlink.c
fs/affs/symlink.c
+4
-4
No files found.
fs/affs/dir.c
View file @
2ce4fd46
...
...
@@ -28,24 +28,24 @@
static
int
affs_readdir
(
struct
file
*
,
void
*
,
filldir_t
);
struct
file_operations
affs_dir_operations
=
{
read:
generic_read_dir
,
readdir:
affs_readdir
,
fsync:
file_fsync
,
.
read
=
generic_read_dir
,
.
readdir
=
affs_readdir
,
.
fsync
=
file_fsync
,
};
/*
* directories can handle most operations...
*/
struct
inode_operations
affs_dir_inode_operations
=
{
create:
affs_create
,
lookup:
affs_lookup
,
link:
affs_link
,
unlink:
affs_unlink
,
symlink:
affs_symlink
,
mkdir:
affs_mkdir
,
rmdir:
affs_rmdir
,
rename:
affs_rename
,
setattr:
affs_notify_change
,
.
create
=
affs_create
,
.
lookup
=
affs_lookup
,
.
link
=
affs_link
,
.
unlink
=
affs_unlink
,
.
symlink
=
affs_symlink
,
.
mkdir
=
affs_mkdir
,
.
rmdir
=
affs_rmdir
,
.
rename
=
affs_rename
,
.
setattr
=
affs_notify_change
,
};
static
int
...
...
fs/affs/file.c
View file @
2ce4fd46
...
...
@@ -44,19 +44,19 @@ static int affs_file_open(struct inode *inode, struct file *filp);
static
int
affs_file_release
(
struct
inode
*
inode
,
struct
file
*
filp
);
struct
file_operations
affs_file_operations
=
{
llseek:
generic_file_llseek
,
read:
generic_file_read
,
write:
affs_file_write
,
mmap:
generic_file_mmap
,
open:
affs_file_open
,
release:
affs_file_release
,
fsync:
file_fsync
,
sendfile:
generic_file_sendfile
,
.
llseek
=
generic_file_llseek
,
.
read
=
generic_file_read
,
.
write
=
affs_file_write
,
.
mmap
=
generic_file_mmap
,
.
open
=
affs_file_open
,
.
release
=
affs_file_release
,
.
fsync
=
file_fsync
,
.
sendfile
=
generic_file_sendfile
,
};
struct
inode_operations
affs_file_inode_operations
=
{
truncate:
affs_truncate
,
setattr:
affs_notify_change
,
.
truncate
=
affs_truncate
,
.
setattr
=
affs_notify_change
,
};
static
int
...
...
@@ -428,12 +428,12 @@ static sector_t _affs_bmap(struct address_space *mapping, sector_t block)
return
generic_block_bmap
(
mapping
,
block
,
affs_get_block
);
}
struct
address_space_operations
affs_aops
=
{
readpage:
affs_readpage
,
writepage:
affs_writepage
,
sync_page:
block_sync_page
,
prepare_write:
affs_prepare_write
,
commit_write:
generic_commit_write
,
bmap:
_affs_bmap
.
readpage
=
affs_readpage
,
.
writepage
=
affs_writepage
,
.
sync_page
=
block_sync_page
,
.
prepare_write
=
affs_prepare_write
,
.
commit_write
=
generic_commit_write
,
.
bmap
=
_affs_bmap
};
static
inline
struct
buffer_head
*
...
...
@@ -795,11 +795,11 @@ static int affs_commit_write_ofs(struct file *file, struct page *page, unsigned
}
struct
address_space_operations
affs_aops_ofs
=
{
readpage:
affs_readpage_ofs
,
.
readpage
=
affs_readpage_ofs
,
//writepage: affs_writepage_ofs,
//sync_page: affs_sync_page_ofs,
prepare_write:
affs_prepare_write_ofs
,
commit_write:
affs_commit_write_ofs
.
prepare_write
=
affs_prepare_write_ofs
,
.
commit_write
=
affs_commit_write_ofs
};
/* Free any preallocated blocks. */
...
...
fs/affs/namei.c
View file @
2ce4fd46
...
...
@@ -33,13 +33,13 @@ static int affs_intl_hash_dentry(struct dentry *, struct qstr *);
static
int
affs_intl_compare_dentry
(
struct
dentry
*
,
struct
qstr
*
,
struct
qstr
*
);
struct
dentry_operations
affs_dentry_operations
=
{
d_hash:
affs_hash_dentry
,
d_compare:
affs_compare_dentry
,
.
d_hash
=
affs_hash_dentry
,
.
d_compare
=
affs_compare_dentry
,
};
struct
dentry_operations
affs_intl_dentry_operations
=
{
d_hash:
affs_intl_hash_dentry
,
d_compare:
affs_intl_compare_dentry
,
.
d_hash
=
affs_intl_hash_dentry
,
.
d_compare
=
affs_intl_compare_dentry
,
};
...
...
fs/affs/symlink.c
View file @
2ce4fd46
...
...
@@ -78,11 +78,11 @@ static int affs_symlink_readpage(struct file *file, struct page *page)
}
struct
address_space_operations
affs_symlink_aops
=
{
readpage:
affs_symlink_readpage
,
.
readpage
=
affs_symlink_readpage
,
};
struct
inode_operations
affs_symlink_inode_operations
=
{
readlink:
page_readlink
,
follow_link:
page_follow_link
,
setattr:
affs_notify_change
,
.
readlink
=
page_readlink
,
.
follow_link
=
page_follow_link
,
.
setattr
=
affs_notify_change
,
};
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