ext4: move trans handling and completion deferal out of _ext4_get_block
authorJan Kara <jack@suse.cz>
Wed, 9 Mar 2016 04:35:46 +0000 (23:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 9 Mar 2016 04:35:46 +0000 (23:35 -0500)
commitefe70c29511544b0468723fe92c1847b3b0ca046
tree78ee63623f23e6b9afbdac6b72467503c0dd3b73
parent705965bd6dfadc3b2e0241da1423ef660bdd04c8
ext4: move trans handling and completion deferal out of _ext4_get_block

There is no need to handle starting of a transaction and deferal of DIO
completion in _ext4_get_block() function. We can move this out to get
block functions for direct IO that need it. That way we can add stricter
checks verifying things work as we expect.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c