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
2d2a505b
Commit
2d2a505b
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/udf
parent
55bb9c8e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
49 deletions
+49
-49
fs/udf/dir.c
fs/udf/dir.c
+4
-4
fs/udf/file.c
fs/udf/file.c
+14
-14
fs/udf/inode.c
fs/udf/inode.c
+6
-6
fs/udf/namei.c
fs/udf/namei.c
+9
-9
fs/udf/super.c
fs/udf/super.c
+15
-15
fs/udf/symlink.c
fs/udf/symlink.c
+1
-1
No files found.
fs/udf/dir.c
View file @
2d2a505b
...
@@ -48,10 +48,10 @@ static int do_udf_readdir(struct inode *, struct file *, filldir_t, void *);
...
@@ -48,10 +48,10 @@ static int do_udf_readdir(struct inode *, struct file *, filldir_t, void *);
/* readdir and lookup functions */
/* readdir and lookup functions */
struct
file_operations
udf_dir_operations
=
{
struct
file_operations
udf_dir_operations
=
{
read:
generic_read_dir
,
.
read
=
generic_read_dir
,
readdir:
udf_readdir
,
.
readdir
=
udf_readdir
,
ioctl:
udf_ioctl
,
.
ioctl
=
udf_ioctl
,
fsync:
udf_fsync_file
,
.
fsync
=
udf_fsync_file
,
};
};
/*
/*
...
...
fs/udf/file.c
View file @
2d2a505b
...
@@ -144,11 +144,11 @@ static int udf_adinicb_commit_write(struct file *file, struct page *page, unsign
...
@@ -144,11 +144,11 @@ static int udf_adinicb_commit_write(struct file *file, struct page *page, unsign
}
}
struct
address_space_operations
udf_adinicb_aops
=
{
struct
address_space_operations
udf_adinicb_aops
=
{
readpage:
udf_adinicb_readpage
,
.
readpage
=
udf_adinicb_readpage
,
writepage:
udf_adinicb_writepage
,
.
writepage
=
udf_adinicb_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
udf_adinicb_prepare_write
,
.
prepare_write
=
udf_adinicb_prepare_write
,
commit_write:
udf_adinicb_commit_write
,
.
commit_write
=
udf_adinicb_commit_write
,
};
};
static
ssize_t
udf_file_write
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
udf_file_write
(
struct
file
*
file
,
const
char
*
buf
,
...
@@ -358,16 +358,16 @@ static int udf_open_file(struct inode * inode, struct file * filp)
...
@@ -358,16 +358,16 @@ static int udf_open_file(struct inode * inode, struct file * filp)
}
}
struct
file_operations
udf_file_operations
=
{
struct
file_operations
udf_file_operations
=
{
read:
generic_file_read
,
.
read
=
generic_file_read
,
ioctl:
udf_ioctl
,
.
ioctl
=
udf_ioctl
,
open:
udf_open_file
,
.
open
=
udf_open_file
,
mmap:
generic_file_mmap
,
.
mmap
=
generic_file_mmap
,
write:
udf_file_write
,
.
write
=
udf_file_write
,
release:
udf_release_file
,
.
release
=
udf_release_file
,
fsync:
udf_fsync_file
,
.
fsync
=
udf_fsync_file
,
sendfile:
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
struct
inode_operations
udf_file_inode_operations
=
{
struct
inode_operations
udf_file_inode_operations
=
{
truncate:
udf_truncate
,
.
truncate
=
udf_truncate
,
};
};
fs/udf/inode.c
View file @
2d2a505b
...
@@ -152,12 +152,12 @@ static int udf_bmap(struct address_space *mapping, long block)
...
@@ -152,12 +152,12 @@ static int udf_bmap(struct address_space *mapping, long block)
}
}
struct
address_space_operations
udf_aops
=
{
struct
address_space_operations
udf_aops
=
{
readpage:
udf_readpage
,
.
readpage
=
udf_readpage
,
writepage:
udf_writepage
,
.
writepage
=
udf_writepage
,
sync_page:
block_sync_page
,
.
sync_page
=
block_sync_page
,
prepare_write:
udf_prepare_write
,
.
prepare_write
=
udf_prepare_write
,
commit_write:
generic_commit_write
,
.
commit_write
=
generic_commit_write
,
bmap:
udf_bmap
,
.
bmap
=
udf_bmap
,
};
};
void
udf_expand_file_adinicb
(
struct
inode
*
inode
,
int
newsize
,
int
*
err
)
void
udf_expand_file_adinicb
(
struct
inode
*
inode
,
int
newsize
,
int
*
err
)
...
...
fs/udf/namei.c
View file @
2d2a505b
...
@@ -1304,13 +1304,13 @@ static int udf_rename (struct inode * old_dir, struct dentry * old_dentry,
...
@@ -1304,13 +1304,13 @@ static int udf_rename (struct inode * old_dir, struct dentry * old_dentry,
}
}
struct
inode_operations
udf_dir_inode_operations
=
{
struct
inode_operations
udf_dir_inode_operations
=
{
lookup:
udf_lookup
,
.
lookup
=
udf_lookup
,
create:
udf_create
,
.
create
=
udf_create
,
link:
udf_link
,
.
link
=
udf_link
,
unlink:
udf_unlink
,
.
unlink
=
udf_unlink
,
symlink:
udf_symlink
,
.
symlink
=
udf_symlink
,
mkdir:
udf_mkdir
,
.
mkdir
=
udf_mkdir
,
rmdir:
udf_rmdir
,
.
rmdir
=
udf_rmdir
,
mknod:
udf_mknod
,
.
mknod
=
udf_mknod
,
rename:
udf_rename
,
.
rename
=
udf_rename
,
};
};
fs/udf/super.c
View file @
2d2a505b
...
@@ -104,11 +104,11 @@ static struct super_block *udf_get_sb(struct file_system_type *fs_type,
...
@@ -104,11 +104,11 @@ static struct super_block *udf_get_sb(struct file_system_type *fs_type,
}
}
static
struct
file_system_type
udf_fstype
=
{
static
struct
file_system_type
udf_fstype
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
name:
"udf"
,
.
name
=
"udf"
,
get_sb:
udf_get_sb
,
.
get_sb
=
udf_get_sb
,
kill_sb:
kill_block_super
,
.
kill_sb
=
kill_block_super
,
fs_flags:
FS_REQUIRES_DEV
,
.
fs_flags
=
FS_REQUIRES_DEV
,
};
};
static
kmem_cache_t
*
udf_inode_cachep
;
static
kmem_cache_t
*
udf_inode_cachep
;
...
@@ -155,16 +155,16 @@ static void destroy_inodecache(void)
...
@@ -155,16 +155,16 @@ static void destroy_inodecache(void)
/* Superblock operations */
/* Superblock operations */
static
struct
super_operations
udf_sb_ops
=
{
static
struct
super_operations
udf_sb_ops
=
{
alloc_inode:
udf_alloc_inode
,
.
alloc_inode
=
udf_alloc_inode
,
destroy_inode:
udf_destroy_inode
,
.
destroy_inode
=
udf_destroy_inode
,
read_inode:
udf_read_inode
,
.
read_inode
=
udf_read_inode
,
write_inode:
udf_write_inode
,
.
write_inode
=
udf_write_inode
,
put_inode:
udf_put_inode
,
.
put_inode
=
udf_put_inode
,
delete_inode:
udf_delete_inode
,
.
delete_inode
=
udf_delete_inode
,
put_super:
udf_put_super
,
.
put_super
=
udf_put_super
,
write_super:
udf_write_super
,
.
write_super
=
udf_write_super
,
statfs:
udf_statfs
,
.
statfs
=
udf_statfs
,
remount_fs:
udf_remount_fs
,
.
remount_fs
=
udf_remount_fs
,
};
};
struct
udf_options
struct
udf_options
...
...
fs/udf/symlink.c
View file @
2d2a505b
...
@@ -126,5 +126,5 @@ static int udf_symlink_filler(struct file *file, struct page *page)
...
@@ -126,5 +126,5 @@ static int udf_symlink_filler(struct file *file, struct page *page)
* symlinks can't do much...
* symlinks can't do much...
*/
*/
struct
address_space_operations
udf_symlink_aops
=
{
struct
address_space_operations
udf_symlink_aops
=
{
readpage:
udf_symlink_filler
,
.
readpage
=
udf_symlink_filler
,
};
};
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