Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174371
b: refs/heads/master
c: 5068969
h: refs/heads/master
i:
  174369: 7be49db
  174367: 4b6b959
v: v3
  • Loading branch information
Theodore Ts'o committed Nov 23, 2009
1 parent 76bc46f commit 0f633be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: beac2da7565e42be59963824899825d0cc624295
refs/heads/master: 50689696867d95b38d9c7be640a311494a04fb86
2 changes: 1 addition & 1 deletion trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,7 +2074,7 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode,
ext_debug("free last %u blocks starting %llu\n", num, start);
for (i = 0; i < num; i++) {
bh = sb_find_get_block(inode->i_sb, start + i);
ext4_forget(handle, 0, inode, bh, start + i);
ext4_forget(handle, metadata, inode, bh, start + i);
}
ext4_free_blocks(handle, inode, start, num, metadata);
} else if (from == le32_to_cpu(ex->ee_block)
Expand Down
6 changes: 4 additions & 2 deletions trunk/fs/ext4/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4121,6 +4121,8 @@ static void ext4_clear_blocks(handle_t *handle, struct inode *inode,
__le32 *last)
{
__le32 *p;
int is_metadata = S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode);

if (try_to_extend_transaction(handle, inode)) {
if (bh) {
BUFFER_TRACE(bh, "call ext4_handle_dirty_metadata");
Expand Down Expand Up @@ -4151,11 +4153,11 @@ static void ext4_clear_blocks(handle_t *handle, struct inode *inode,

*p = 0;
tbh = sb_find_get_block(inode->i_sb, nr);
ext4_forget(handle, 0, inode, tbh, nr);
ext4_forget(handle, is_metadata, inode, tbh, nr);
}
}

ext4_free_blocks(handle, inode, block_to_free, count, 0);
ext4_free_blocks(handle, inode, block_to_free, count, is_metadata);
}

/**
Expand Down

0 comments on commit 0f633be

Please sign in to comment.