diff options
author | Jan Kara <jack@suse.cz> | 2019-11-05 17:44:14 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-11-05 16:00:47 -0500 |
commit | 6cb367c2d1f8875043aa2d238eca9a2602dc1f72 (patch) | |
tree | 3a6c87df6435c68331cace73769d6597eb0dbb41 /fs/ext4 | |
parent | 321238fbfb49003c66caecb1eefb5238dce27b61 (diff) | |
download | linux-6cb367c2d1f8875043aa2d238eca9a2602dc1f72.tar.bz2 |
ext4: Use ext4_journal_extend() instead of jbd2_journal_extend()
Use ext4 helper ext4_journal_extend() instead of opencoding it in
ext4_try_to_expand_extra_isize().
Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191105164437.32602-8-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 22ccab6c485e..5cdab04c697f 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -5974,8 +5974,7 @@ static int ext4_try_to_expand_extra_isize(struct inode *inode, * If this is felt to be critical, then e2fsck should be run to * force a large enough s_min_extra_isize. */ - if (ext4_handle_valid(handle) && - jbd2_journal_extend(handle, + if (ext4_journal_extend(handle, EXT4_DATA_TRANS_BLOCKS(inode->i_sb)) != 0) return -ENOSPC; |