diff options
author | Jan Kara <jack@suse.cz> | 2016-03-08 23:08:10 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-03-08 23:08:10 -0500 |
commit | 705965bd6dfadc3b2e0241da1423ef660bdd04c8 (patch) | |
tree | c29f27d3d461da8b36c7708ea5f21778b7df40c3 /fs/ext4/inline.c | |
parent | e142d05263a4beedefd331d445c394f4397e9f03 (diff) |
ext4: rename and split get blocks functions
Rename ext4_get_blocks_write() to ext4_get_blocks_unwritten() to better
describe what it does. Also split out get blocks functions for direct
IO. Later we move functionality from _ext4_get_blocks() there. There's no
functional change in this patch.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inline.c')
-rw-r--r-- | fs/ext4/inline.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index dfe3b9bafc0d..36d8cc9327f5 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c | |||
@@ -581,9 +581,10 @@ retry: | |||
581 | if (ret) | 581 | if (ret) |
582 | goto out; | 582 | goto out; |
583 | 583 | ||
584 | if (ext4_should_dioread_nolock(inode)) | 584 | if (ext4_should_dioread_nolock(inode)) { |
585 | ret = __block_write_begin(page, from, to, ext4_get_block_write); | 585 | ret = __block_write_begin(page, from, to, |
586 | else | 586 | ext4_get_block_unwritten); |
587 | } else | ||
587 | ret = __block_write_begin(page, from, to, ext4_get_block); | 588 | ret = __block_write_begin(page, from, to, ext4_get_block); |
588 | 589 | ||
589 | if (!ret && ext4_should_journal_data(inode)) { | 590 | if (!ret && ext4_should_journal_data(inode)) { |