Commit fb7be42a authored by Oleg Drokin's avatar Oleg Drokin

reiserfs: Take into account file information even when not doing...

reiserfs: Take into account file information even when not doing preallocation. Fixes a bug with displacing_large_files option.
parent e482449c
...@@ -490,7 +490,7 @@ static inline int _allocate_block(struct reiserfs_transaction_handle *th, ...@@ -490,7 +490,7 @@ static inline int _allocate_block(struct reiserfs_transaction_handle *th,
return reiserfs_new_unf_blocknrs2(th, inode, allocated_block_nr, path, block); return reiserfs_new_unf_blocknrs2(th, inode, allocated_block_nr, path, block);
} }
#endif #endif
return reiserfs_new_unf_blocknrs (th, allocated_block_nr, path, block); return reiserfs_new_unf_blocknrs (th, inode, allocated_block_nr, path, block);
} }
int reiserfs_get_block (struct inode * inode, sector_t block, int reiserfs_get_block (struct inode * inode, sector_t block,
......
...@@ -2073,13 +2073,14 @@ extern inline int reiserfs_new_form_blocknrs (struct tree_balance * tb, ...@@ -2073,13 +2073,14 @@ extern inline int reiserfs_new_form_blocknrs (struct tree_balance * tb,
} }
extern inline int reiserfs_new_unf_blocknrs (struct reiserfs_transaction_handle *th, extern inline int reiserfs_new_unf_blocknrs (struct reiserfs_transaction_handle *th,
struct inode *inode,
b_blocknr_t *new_blocknrs, b_blocknr_t *new_blocknrs,
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 = inode,
.block = block, .block = block,
.formatted_node = 0, .formatted_node = 0,
.preallocate = 0 .preallocate = 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