From 50ce4c07df1c98aabf4630b35152ed95a87242f7 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Wed, 1 May 2013 01:13:19 +0000 Subject: fs/ext4: Support device block sizes != 512 bytes The 512 byte block size was hard coded in the ext4 file systems. Large harddisks today support bigger block sizes typically 4096 bytes. This patch removes this limitation. Signed-off-by: Egbert Eich --- fs/ext4/ext4_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/ext4/ext4_common.h') diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h index 72cd020711..6571df62f0 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -49,7 +49,7 @@ #define S_IFLNK 0120000 /* symbolic link */ #define BLOCK_NO_ONE 1 -#define SUPERBLOCK_SECTOR 2 +#define SUPERBLOCK_START (2 * 512) #define SUPERBLOCK_SIZE 1024 #define F_FILE 1 -- cgit v1.2.3