diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-04-06 11:09:21 -0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-05-05 06:48:00 -0400 |
commit | 7fafb8b634121f4fa35ff92f85737f8bc2259f06 (patch) | |
tree | ed581b567781b6b2a99a9f2059e3f3c324a0c928 /fs/ntfs/super.c | |
parent | bb3cf33509009132cf8c7a7729f9d26c0c5fa961 (diff) |
NTFS: Minor cleanup: Define and use NTFS_MAX_CLUSTER_SIZE constant instead
of hard coded 0x10000 in fs/ntfs/super.c.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/super.c')
-rw-r--r-- | fs/ntfs/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c index 6f752ea765c3..8e50aa929f1c 100644 --- a/fs/ntfs/super.c +++ b/fs/ntfs/super.c | |||
@@ -561,9 +561,9 @@ static BOOL is_boot_sector_ntfs(const struct super_block *sb, | |||
561 | default: | 561 | default: |
562 | goto not_ntfs; | 562 | goto not_ntfs; |
563 | } | 563 | } |
564 | /* Check the cluster size is not above 65536 bytes. */ | 564 | /* Check the cluster size is not above the maximum (64kiB). */ |
565 | if ((u32)le16_to_cpu(b->bpb.bytes_per_sector) * | 565 | if ((u32)le16_to_cpu(b->bpb.bytes_per_sector) * |
566 | b->bpb.sectors_per_cluster > 0x10000) | 566 | b->bpb.sectors_per_cluster > NTFS_MAX_CLUSTER_SIZE) |
567 | goto not_ntfs; | 567 | goto not_ntfs; |
568 | /* Check reserved/unused fields are really zero. */ | 568 | /* Check reserved/unused fields are really zero. */ |
569 | if (le16_to_cpu(b->bpb.reserved_sectors) || | 569 | if (le16_to_cpu(b->bpb.reserved_sectors) || |
@@ -2585,7 +2585,7 @@ err_out_now: | |||
2585 | */ | 2585 | */ |
2586 | kmem_cache_t *ntfs_name_cache; | 2586 | kmem_cache_t *ntfs_name_cache; |
2587 | 2587 | ||
2588 | /* Slab caches for efficient allocation/deallocation of of inodes. */ | 2588 | /* Slab caches for efficient allocation/deallocation of inodes. */ |
2589 | kmem_cache_t *ntfs_inode_cache; | 2589 | kmem_cache_t *ntfs_inode_cache; |
2590 | kmem_cache_t *ntfs_big_inode_cache; | 2590 | kmem_cache_t *ntfs_big_inode_cache; |
2591 | 2591 | ||