Commit d2637378 authored by Felix Blyakher's avatar Felix Blyakher Committed by Nathan Scott

[XFS] Remove speculative preallocation from linvfs_get_block_core.

All speculative preallocations should be done from xfs_iomap_write_delay.

SGI Modid: xfs-linux:xfs-kern:171620a
parent 2ebec184
......@@ -913,13 +913,8 @@ linvfs_get_block_core(
ssize_t size;
loff_t offset = (loff_t)iblock << inode->i_blkbits;
/* If we are doing writes at the end of the file,
* allocate in chunks
*/
if (blocks)
size = blocks << inode->i_blkbits;
else if (create && (offset >= i_size_read(inode)))
size = 1 << XFS_WRITE_IO_LOG;
else
size = 1 << inode->i_blkbits;
......
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