diff options
author | Seraphime Kirkovski <kirkseraph@gmail.com> | 2016-12-15 14:38:28 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:50 +0100 |
commit | 50d0446e68fa0b687bd06288cc6cc25c475ab3fb (patch) | |
tree | 2a5e37ace18e7a8134727ba803d745946f197c6d /fs/btrfs/ioctl.c | |
parent | btrfs: use rb_entry() instead of container_of (diff) | |
download | linux-50d0446e68fa0b687bd06288cc6cc25c475ab3fb.tar.xz 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/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 21e51b0ba188..03de93f9a6aa 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -395,7 +395,7 @@ static noinline int btrfs_ioctl_fitrim(struct file *file, void __user *arg) q = bdev_get_queue(device->bdev); if (blk_queue_discard(q)) { num_devices++; - minlen = min((u64)q->limits.discard_granularity, + minlen = min_t(u64, q->limits.discard_granularity, minlen); } } |