btrfs: fix comment about sector sizes supported in 64K systems
authorAnand Jain <anand.jain@oracle.com>
Thu, 21 Oct 2021 23:53:05 +0000 (07:53 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:08 +0000 (19:08 +0200)
Commit 95ea0486b20e ("btrfs: allow read-write for 4K sectorsize on 64K
page size systems") added write support for 4K sectorsize on a 64K
systems. Fix the now stale comments.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c

index 1ae30b2..b9d2556 100644 (file)
@@ -2592,8 +2592,7 @@ static int validate_super(struct btrfs_fs_info *fs_info,
 
        /*
         * For 4K page size, we only support 4K sector size.
-        * For 64K page size, we support read-write for 64K sector size, and
-        * read-only for 4K sector size.
+        * For 64K page size, we support 64K and 4K sector sizes.
         */
        if ((PAGE_SIZE == SZ_4K && sectorsize != PAGE_SIZE) ||
            (PAGE_SIZE == SZ_64K && (sectorsize != SZ_4K &&