Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377571
b: refs/heads/master
c: 78fb9cd
h: refs/heads/master
i:
  377569: c087bb8
  377567: 262c9fd
v: v3
  • Loading branch information
Lukas Czerner authored and Theodore Ts'o committed May 28, 2013
1 parent fc78da1 commit a68d604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 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: c121ffd013e5ab7c04414a5f0cb3604731775174
refs/heads/master: 78fb9cdf035d88a39a5e5f83bb8788e4fe7c1f72
21 changes: 4 additions & 17 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2432,23 +2432,10 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode,
*partial_cluster = EXT4_B2C(sbi, pblk);
else
*partial_cluster = 0;
} else if (from == le32_to_cpu(ex->ee_block)
&& to <= le32_to_cpu(ex->ee_block) + ee_len - 1) {
/* head removal */
ext4_lblk_t num;
ext4_fsblk_t start;

num = to - from;
start = ext4_ext_pblock(ex);

ext_debug("free first %u blocks starting %llu\n", num, start);
ext4_free_blocks(handle, inode, NULL, start, num, flags);

} else {
printk(KERN_INFO "strange request: removal(2) "
"%u-%u from %u:%u\n",
from, to, le32_to_cpu(ex->ee_block), ee_len);
}
} else
ext4_error(sbi->s_sb, "strange request: removal(2) "
"%u-%u from %u:%u\n",
from, to, le32_to_cpu(ex->ee_block), ee_len);
return 0;
}

Expand Down

0 comments on commit a68d604

Please sign in to comment.