Commit 2546e17c authored by Oleg Drokin's avatar Oleg Drokin

super.c, item_ops.c, file.c:

  C99 struct initialisers
parent 984e13d3
...@@ -141,19 +141,19 @@ static int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) { ...@@ -141,19 +141,19 @@ static int reiserfs_setattr(struct dentry *dentry, struct iattr *attr) {
} }
struct file_operations reiserfs_file_operations = { struct file_operations reiserfs_file_operations = {
read: generic_file_read, .read = generic_file_read,
write: generic_file_write, .write = generic_file_write,
ioctl: reiserfs_ioctl, .ioctl = reiserfs_ioctl,
mmap: generic_file_mmap, .mmap = generic_file_mmap,
release: reiserfs_file_release, .release = reiserfs_file_release,
fsync: reiserfs_sync_file, .fsync = reiserfs_sync_file,
sendfile: generic_file_sendfile, .sendfile = generic_file_sendfile,
}; };
struct inode_operations reiserfs_file_inode_operations = { struct inode_operations reiserfs_file_inode_operations = {
truncate: reiserfs_vfs_truncate_file, .truncate = reiserfs_vfs_truncate_file,
setattr: reiserfs_setattr, .setattr = reiserfs_setattr,
}; };
...@@ -111,18 +111,18 @@ static void sd_print_vi (struct virtual_item * vi) ...@@ -111,18 +111,18 @@ static void sd_print_vi (struct virtual_item * vi)
} }
struct item_operations stat_data_ops = { struct item_operations stat_data_ops = {
bytes_number: sd_bytes_number, .bytes_number = sd_bytes_number,
decrement_key: sd_decrement_key, .decrement_key = sd_decrement_key,
is_left_mergeable: sd_is_left_mergeable, .is_left_mergeable = sd_is_left_mergeable,
print_item: sd_print_item, .print_item = sd_print_item,
check_item: sd_check_item, .check_item = sd_check_item,
create_vi: sd_create_vi, .create_vi = sd_create_vi,
check_left: sd_check_left, .check_left = sd_check_left,
check_right: sd_check_right, .check_right = sd_check_right,
part_size: sd_part_size, .part_size = sd_part_size,
unit_num: sd_unit_num, .unit_num = sd_unit_num,
print_vi: sd_print_vi .print_vi = sd_print_vi
}; };
...@@ -214,18 +214,18 @@ static void direct_print_vi (struct virtual_item * vi) ...@@ -214,18 +214,18 @@ static void direct_print_vi (struct virtual_item * vi)
} }
struct item_operations direct_ops = { struct item_operations direct_ops = {
bytes_number: direct_bytes_number, .bytes_number = direct_bytes_number,
decrement_key: direct_decrement_key, .decrement_key = direct_decrement_key,
is_left_mergeable: direct_is_left_mergeable, .is_left_mergeable = direct_is_left_mergeable,
print_item: direct_print_item, .print_item = direct_print_item,
check_item: direct_check_item, .check_item = direct_check_item,
create_vi: direct_create_vi, .create_vi = direct_create_vi,
check_left: direct_check_left, .check_left = direct_check_left,
check_right: direct_check_right, .check_right = direct_check_right,
part_size: direct_part_size, .part_size = direct_part_size,
unit_num: direct_unit_num, .unit_num = direct_unit_num,
print_vi: direct_print_vi .print_vi = direct_print_vi
}; };
...@@ -368,18 +368,18 @@ static void indirect_print_vi (struct virtual_item * vi) ...@@ -368,18 +368,18 @@ static void indirect_print_vi (struct virtual_item * vi)
} }
struct item_operations indirect_ops = { struct item_operations indirect_ops = {
bytes_number: indirect_bytes_number, .bytes_number = indirect_bytes_number,
decrement_key: indirect_decrement_key, .decrement_key = indirect_decrement_key,
is_left_mergeable: indirect_is_left_mergeable, .is_left_mergeable = indirect_is_left_mergeable,
print_item: indirect_print_item, .print_item = indirect_print_item,
check_item: indirect_check_item, .check_item = indirect_check_item,
create_vi: indirect_create_vi, .create_vi = indirect_create_vi,
check_left: indirect_check_left, .check_left = indirect_check_left,
check_right: indirect_check_right, .check_right = indirect_check_right,
part_size: indirect_part_size, .part_size = indirect_part_size,
unit_num: indirect_unit_num, .unit_num = indirect_unit_num,
print_vi: indirect_print_vi .print_vi = indirect_print_vi
}; };
...@@ -662,18 +662,18 @@ static void direntry_print_vi (struct virtual_item * vi) ...@@ -662,18 +662,18 @@ static void direntry_print_vi (struct virtual_item * vi)
} }
struct item_operations direntry_ops = { struct item_operations direntry_ops = {
bytes_number: direntry_bytes_number, .bytes_number = direntry_bytes_number,
decrement_key: direntry_decrement_key, .decrement_key = direntry_decrement_key,
is_left_mergeable: direntry_is_left_mergeable, .is_left_mergeable = direntry_is_left_mergeable,
print_item: direntry_print_item, .print_item = direntry_print_item,
check_item: direntry_check_item, .check_item = direntry_check_item,
create_vi: direntry_create_vi, .create_vi = direntry_create_vi,
check_left: direntry_check_left, .check_left = direntry_check_left,
check_right: direntry_check_right, .check_right = direntry_check_right,
part_size: direntry_part_size, .part_size = direntry_part_size,
unit_num: direntry_unit_num, .unit_num = direntry_unit_num,
print_vi: direntry_print_vi .print_vi = direntry_print_vi
}; };
......
...@@ -1313,11 +1313,11 @@ exit_reiserfs_fs ( void ) ...@@ -1313,11 +1313,11 @@ exit_reiserfs_fs ( void )
} }
static struct file_system_type reiserfs_fs_type = { static struct file_system_type reiserfs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "reiserfs", .name = "reiserfs",
get_sb: get_super_block, .get_sb = get_super_block,
kill_sb: kill_block_super, .kill_sb = kill_block_super,
fs_flags: FS_REQUIRES_DEV, .fs_flags = FS_REQUIRES_DEV,
}; };
MODULE_DESCRIPTION ("ReiserFS journaled filesystem"); MODULE_DESCRIPTION ("ReiserFS journaled filesystem");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment