Commit b60653b2 authored by Art Haas's avatar Art Haas Committed by Linus Torvalds

[PATCH] C99 initializers for include/linux/reiserfs_fs.h

parent 3f2b6dd3
...@@ -2062,12 +2062,12 @@ extern inline int reiserfs_new_form_blocknrs (struct tree_balance * tb, ...@@ -2062,12 +2062,12 @@ extern inline int reiserfs_new_form_blocknrs (struct tree_balance * tb,
b_blocknr_t *new_blocknrs, int amount_needed) b_blocknr_t *new_blocknrs, int amount_needed)
{ {
reiserfs_blocknr_hint_t hint = { reiserfs_blocknr_hint_t hint = {
th:tb->transaction_handle, .th = tb->transaction_handle,
path: tb->tb_path, .path = tb->tb_path,
inode: NULL, .inode = NULL,
key: tb->key, .key = tb->key,
block: 0, .block = 0,
formatted_node:1 .formatted_node = 1
}; };
return reiserfs_allocate_blocknrs(&hint, new_blocknrs, amount_needed, 0); return reiserfs_allocate_blocknrs(&hint, new_blocknrs, amount_needed, 0);
} }
...@@ -2077,12 +2077,12 @@ extern inline int reiserfs_new_unf_blocknrs (struct reiserfs_transaction_handle ...@@ -2077,12 +2077,12 @@ extern inline int reiserfs_new_unf_blocknrs (struct reiserfs_transaction_handle
struct path * path, long block) struct path * path, long block)
{ {
reiserfs_blocknr_hint_t hint = { reiserfs_blocknr_hint_t hint = {
th: th, .th = th,
path: path, .path = path,
inode: NULL, .inode = NULL,
block: block, .block = block,
formatted_node: 0, .formatted_node = 0,
preallocate: 0 .preallocate = 0
}; };
return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0); return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0);
} }
...@@ -2094,12 +2094,12 @@ extern inline int reiserfs_new_unf_blocknrs2(struct reiserfs_transaction_handle ...@@ -2094,12 +2094,12 @@ extern inline int reiserfs_new_unf_blocknrs2(struct reiserfs_transaction_handle
struct path * path, long block) struct path * path, long block)
{ {
reiserfs_blocknr_hint_t hint = { reiserfs_blocknr_hint_t hint = {
th: th, .th = th,
path: path, .path = path,
inode: inode, .inode = inode,
block: block, .block = block,
formatted_node: 0, .formatted_node = 0,
preallocate: 1 .preallocate = 1
}; };
return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0); return reiserfs_allocate_blocknrs(&hint, new_blocknrs, 1, 0);
} }
......
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