Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331589
b: refs/heads/master
c: 18888cf
h: refs/heads/master
i:
  331587: b570928
v: v3
  • Loading branch information
Andrey Sidorov authored and Theodore Ts'o committed Sep 19, 2012
1 parent 0cc328d commit d0cc512
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 59e31c156a24d483bbd2ea07d4dc96043a55b6bc
refs/heads/master: 18888cf0883c286f238d44ee565530fe82752f06
7 changes: 5 additions & 2 deletions trunk/fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2318,10 +2318,13 @@ static int ext4_remove_blocks(handle_t *handle, struct inode *inode,
struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);
unsigned short ee_len = ext4_ext_get_actual_len(ex);
ext4_fsblk_t pblk;
int flags = EXT4_FREE_BLOCKS_FORGET;
int flags = 0;

if (S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))
flags |= EXT4_FREE_BLOCKS_METADATA;
flags |= EXT4_FREE_BLOCKS_METADATA | EXT4_FREE_BLOCKS_FORGET;
else if (ext4_should_journal_data(inode))
flags |= EXT4_FREE_BLOCKS_FORGET;

/*
* For bigalloc file systems, we never free a partial cluster
* at the beginning of the extent. Instead, we make a note
Expand Down

0 comments on commit d0cc512

Please sign in to comment.