summaryrefslogtreecommitdiff
path: root/fs/ext4/ioctl.c
diff options
context:
space:
mode:
authorharshads <harshads@google.com>2017-10-29 16:38:46 +0300
committerTheodore Ts'o <tytso@mit.edu>2017-10-29 16:38:46 +0300
commitd77147ff443b255d82c907a632c825b2cc610b10 (patch)
tree4ebdc728e2e8bf8d25f6b74f95120da8f2392f8d /fs/ext4/ioctl.c
parentd98bf8cd11985256b96d610453baf1ff8814ff87 (diff)
downloadlinux-d77147ff443b255d82c907a632c825b2cc610b10.tar.xz
ext4: add support for online resizing with bigalloc
This patch adds support for online resizing on bigalloc file system by implementing EXT4_IOC_RESIZE_FS ioctl. Old resize interfaces (add block groups and extend last block group) are left untouched. Tests performed with cluster sizes of 1, 2, 4 and 8 blocks (of size 4k) per cluster. I will add these tests to xfstests. Signed-off-by: Harshad Shirwadkar <harshads@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ioctl.c')
-rw-r--r--fs/ext4/ioctl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index b0b754b37c36..144bbda2b808 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -871,12 +871,6 @@ group_add_out:
int err = 0, err2 = 0;
ext4_group_t o_group = EXT4_SB(sb)->s_groups_count;
- if (ext4_has_feature_bigalloc(sb)) {
- ext4_msg(sb, KERN_ERR,
- "Online resizing not (yet) supported with bigalloc");
- return -EOPNOTSUPP;
- }
-
if (copy_from_user(&n_blocks_count, (__u64 __user *)arg,
sizeof(__u64))) {
return -EFAULT;