diff options
author | 2016-12-15 14:38:28 +0100 | |
---|---|---|
committer | 2017-02-14 15:50:50 +0100 | |
commit | 50d0446e68fa0b687bd06288cc6cc25c475ab3fb (patch) | |
tree | 2a5e37ace18e7a8134727ba803d745946f197c6d /fs/btrfs/file-item.c | |
parent | btrfs: use rb_entry() instead of container_of (diff) | |
download | linux-50d0446e68fa0b687bd06288cc6cc25c475ab3fb.tar.gz linux-50d0446e68fa0b687bd06288cc6cc25c475ab3fb.tar.bz2 linux-50d0446e68fa0b687bd06288cc6cc25c475ab3fb.zip |
Btrfs: code cleanup min/max -> min_t/max_t
This cleans up the cases where the min/max macros were used with a cast
rather than using directly min_t/max_t.
Signed-off-by: Seraphime Kirkovski <kirkseraph@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index e97e322c28f0..42a97c910302 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -856,8 +856,8 @@ insert: tmp = min(tmp, (next_offset - file_key.offset) >> fs_info->sb->s_blocksize_bits); - tmp = max((u64)1, tmp); - tmp = min(tmp, (u64)MAX_CSUM_ITEMS(fs_info, csum_size)); + tmp = max_t(u64, 1, tmp); + tmp = min_t(u64, tmp, MAX_CSUM_ITEMS(fs_info, csum_size)); ins_size = csum_size * tmp; } else { ins_size = csum_size; |