OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
321238f
)
ext4: Use ext4_journal_extend() instead of jbd2_journal_extend()
author
Jan Kara
<jack@suse.cz>
Tue, 5 Nov 2019 16:44:14 +0000
(17:44 +0100)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 5 Nov 2019 21:00:47 +0000
(16:00 -0500)
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>
fs/ext4/inode.c
patch
|
blob
|
history
diff --git
a/fs/ext4/inode.c
b/fs/ext4/inode.c
index
22ccab6
..
5cdab04
100644
(file)
--- 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;