~csurbhi/ubuntu/maverick/e2fsprogs/e2fsprogs.fix-505719

« back to all changes in this revision

Viewing changes to e2fsck/emptydir.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2008-08-08 20:32:11 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20080808203211-w72lpsd9q7o3bw6x
Tags: 1.41.0-3ubuntu1
* Merge from Debian unstable (LP: #254152, #246461), remaining changes:
  - Do not build-depend on dietlibc-dev, which is in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
 
169
169
        if (edi->freed_blocks) {
170
170
                edi->inode.i_size -= edi->freed_blocks * fs->blocksize;
171
 
                edi->inode.i_blocks -= edi->freed_blocks *
172
 
                        (fs->blocksize / 512);
 
171
                ext2fs_iblk_add_blocks(fs, &edi->inode, edi->freed_blocks);
173
172
                retval = ext2fs_write_inode(fs, db->ino, &edi->inode);
174
173
                if (retval)
175
174
                        return 0;