btrfs: allow read-write for 4K sectorsize on 64K page size systems
[sfrench/cifs-2.6.git] / fs / btrfs / super.c
index 35ff142ad242c9ad84ceee2bd1599206aef56f27..0d2e3ab2fc3144e037c025cd11e812255bd3b04f 100644 (file)
@@ -2041,13 +2041,6 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
                        ret = -EINVAL;
                        goto restore;
                }
-               if (fs_info->sectorsize < PAGE_SIZE) {
-                       btrfs_warn(fs_info,
-       "read-write mount is not yet allowed for sectorsize %u page size %lu",
-                                  fs_info->sectorsize, PAGE_SIZE);
-                       ret = -EINVAL;
-                       goto restore;
-               }
 
                /*
                 * NOTE: when remounting with a change that does writes, don't