aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 0a9fe214deeb..4a5524c2713a 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1564,7 +1564,7 @@ static noinline int btrfs_ioctl_resize(struct file *file,
1564 goto out_free; 1564 goto out_free;
1565 } 1565 }
1566 1566
1567 do_div(new_size, root->sectorsize); 1567 new_size = div_u64(new_size, root->sectorsize);
1568 new_size *= root->sectorsize; 1568 new_size *= root->sectorsize;
1569 1569
1570 printk_in_rcu(KERN_INFO "BTRFS: new size for %s is %llu\n", 1570 printk_in_rcu(KERN_INFO "BTRFS: new size for %s is %llu\n",