projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext4: Allow ext4 to run without a journal
[deliverable/linux.git]
/
fs
/
ext4
/
migrate.c
diff --git
a/fs/ext4/migrate.c
b/fs/ext4/migrate.c
index f2a9cf498ecda12ddde2c7fb1a73a40c64767ade..e7cd488da4bb2dd3ad039db4e5ce01a0fc34c902 100644
(file)
--- a/
fs/ext4/migrate.c
+++ b/
fs/ext4/migrate.c
@@
-59,7
+59,8
@@
static int finish_range(handle_t *handle, struct inode *inode,
/*
* Make sure the credit we accumalated is not really high
*/
/*
* Make sure the credit we accumalated is not really high
*/
- if (needed && handle->h_buffer_credits >= EXT4_RESERVE_TRANS_BLOCKS) {
+ if (needed && ext4_handle_has_enough_credits(handle,
+ EXT4_RESERVE_TRANS_BLOCKS)) {
retval = ext4_journal_restart(handle, needed);
if (retval)
goto err_out;
retval = ext4_journal_restart(handle, needed);
if (retval)
goto err_out;
@@
-229,7
+230,7
@@
static int extend_credit_for_blkdel(handle_t *handle, struct inode *inode)
{
int retval = 0, needed;
{
int retval = 0, needed;
- if (
handle->h_buffer_credits > EXT4_RESERVE_TRANS_BLOCKS
)
+ if (
ext4_handle_has_enough_credits(handle, EXT4_RESERVE_TRANS_BLOCKS+1)
)
return 0;
/*
* We are freeing a blocks. During this we touch
return 0;
/*
* We are freeing a blocks. During this we touch
This page took
0.026105 seconds
and
5
git commands to generate.