Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310836
b: refs/heads/master
c: bc17823
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Chris Mason committed Jun 15, 2012
1 parent fdbe050 commit f114625
Show file tree
Hide file tree
Showing 2 changed files with 7 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: acbcabd2de05f331c51700773f701e90bd7f74dc
refs/heads/master: bc1782374b128103ae9689e0753e0610f35b6bfd
9 changes: 6 additions & 3 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -7122,10 +7122,13 @@ static void fixup_inode_flags(struct inode *dir, struct inode *inode)
else
b_inode->flags &= ~BTRFS_INODE_NODATACOW;

if (b_dir->flags & BTRFS_INODE_COMPRESS)
if (b_dir->flags & BTRFS_INODE_COMPRESS) {
b_inode->flags |= BTRFS_INODE_COMPRESS;
else
b_inode->flags &= ~BTRFS_INODE_COMPRESS;
b_inode->flags &= ~BTRFS_INODE_NOCOMPRESS;
} else {
b_inode->flags &= ~(BTRFS_INODE_COMPRESS |
BTRFS_INODE_NOCOMPRESS);
}
}

static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry,
Expand Down

0 comments on commit f114625

Please sign in to comment.