summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4_common.h
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.com>2013-05-01 01:13:19 +0000
committerTom Rini <trini@ti.com>2013-05-10 08:16:33 -0400
commit50ce4c07df1c98aabf4630b35152ed95a87242f7 (patch)
treec7e506ab5bcb2839a697cb0a89faa3244077cf69 /fs/ext4/ext4_common.h
parentb1e6c4c3d4a2b394096766d959aaa9b51a38099b (diff)
downloadu-boot-imx-50ce4c07df1c98aabf4630b35152ed95a87242f7.zip
u-boot-imx-50ce4c07df1c98aabf4630b35152ed95a87242f7.tar.gz
u-boot-imx-50ce4c07df1c98aabf4630b35152ed95a87242f7.tar.bz2
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 <eich@suse.com>
Diffstat (limited to 'fs/ext4/ext4_common.h')
-rw-r--r--fs/ext4/ext4_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h
index 72cd020..6571df6 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