diff options
author | Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> | 2016-03-15 01:09:59 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-04-28 10:36:54 +0200 |
commit | 13f48dc9094b56c5bffd8d57349a0a01a1926b2d (patch) | |
tree | f7a4fa00d2b1e42f5600807d48764e309a1275e5 /fs/btrfs/ioctl.c | |
parent | btrfs: move error handling code together in ctree.h (diff) | |
download | linux-13f48dc9094b56c5bffd8d57349a0a01a1926b2d.tar.xz linux-13f48dc9094b56c5bffd8d57349a0a01a1926b2d.zip |
btrfs: Simplify conditions about compress while mapping btrfs flags to inode flags
Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 06fcc448108b..0f76aea6e398 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -125,10 +125,10 @@ static unsigned int btrfs_flags_to_ioctl(unsigned int flags) if (flags & BTRFS_INODE_NODATACOW) iflags |= FS_NOCOW_FL; - if ((flags & BTRFS_INODE_COMPRESS) && !(flags & BTRFS_INODE_NOCOMPRESS)) - iflags |= FS_COMPR_FL; - else if (flags & BTRFS_INODE_NOCOMPRESS) + if (flags & BTRFS_INODE_NOCOMPRESS) iflags |= FS_NOCOMP_FL; + else if (flags & BTRFS_INODE_COMPRESS) + iflags |= FS_COMPR_FL; return iflags; } |