resize.c (f8bade6c9a6213c2c5ba6e5bf32415ecab6e41e5) | resize.c (e9f9f61d0cdcb7f0b0b5feb2d84aa1c5894751f3) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/ext4/resize.c 4 * 5 * Support for resizing an ext4 filesystem while it is mounted. 6 * 7 * Copyright (C) 2001, 2002 Andreas Dilger <adilger@clusterfs.com> 8 * --- 60 unchanged lines hidden (view full) --- 69 * with error, because it can destroy the filesystem easily. 70 */ 71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { 72 ext4_warning(sb, "There are errors in the filesystem, " 73 "so online resizing is not allowed"); 74 return -EPERM; 75 } 76 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/ext4/resize.c 4 * 5 * Support for resizing an ext4 filesystem while it is mounted. 6 * 7 * Copyright (C) 2001, 2002 Andreas Dilger <adilger@clusterfs.com> 8 * --- 60 unchanged lines hidden (view full) --- 69 * with error, because it can destroy the filesystem easily. 70 */ 71 if (EXT4_SB(sb)->s_mount_state & EXT4_ERROR_FS) { 72 ext4_warning(sb, "There are errors in the filesystem, " 73 "so online resizing is not allowed"); 74 return -EPERM; 75 } 76 |
77 if (ext4_has_feature_bigalloc(sb)) { 78 ext4_msg(sb, KERN_ERR, "Online resizing not supported with bigalloc"); 79 return -EOPNOTSUPP; 80 } 81 |
|
77 if (test_and_set_bit_lock(EXT4_FLAGS_RESIZING, 78 &EXT4_SB(sb)->s_ext4_flags)) 79 ret = -EBUSY; 80 81 return ret; 82} 83 84void ext4_resize_end(struct super_block *sb) --- 2032 unchanged lines hidden --- | 82 if (test_and_set_bit_lock(EXT4_FLAGS_RESIZING, 83 &EXT4_SB(sb)->s_ext4_flags)) 84 ret = -EBUSY; 85 86 return ret; 87} 88 89void ext4_resize_end(struct super_block *sb) --- 2032 unchanged lines hidden --- |