aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ext4_fs.h
diff options
context:
space:
mode:
authorColy Li <coyli@suse.de>2007-10-16 18:38:25 -0400
committerTheodore Ts'o <tytso@mit.edu>2007-10-17 18:49:59 -0400
commitf077d0d7ea5d65d01f2ce2e7131e964c13a32433 (patch)
tree17022250e65dd332ea6da88e70df7df3f27725dc /include/linux/ext4_fs.h
parent6f38c74f5a01c7bccf58f9d7ee47ea24fb45752f (diff)
ext4: Remove (partial, never completed) fragment support
Fragment support in ext2/3/4 was never implemented, and it probably will never be implemented. So remove it from ext4. Signed-off-by: Coly Li <coyli@suse.de> Acked-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/linux/ext4_fs.h')
-rw-r--r--include/linux/ext4_fs.h35
1 files changed, 6 insertions, 29 deletions
diff --git a/include/linux/ext4_fs.h b/include/linux/ext4_fs.h
index cdee7aaa57aa..3baeb996fd3f 100644
--- a/include/linux/ext4_fs.h
+++ b/include/linux/ext4_fs.h
@@ -105,20 +105,6 @@
105#define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits))) 105#define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits)))
106 106
107/* 107/*
108 * Macro-instructions used to manage fragments
109 */
110#define EXT4_MIN_FRAG_SIZE 1024
111#define EXT4_MAX_FRAG_SIZE 4096
112#define EXT4_MIN_FRAG_LOG_SIZE 10
113#ifdef __KERNEL__
114# define EXT4_FRAG_SIZE(s) (EXT4_SB(s)->s_frag_size)
115# define EXT4_FRAGS_PER_BLOCK(s) (EXT4_SB(s)->s_frags_per_block)
116#else
117# define EXT4_FRAG_SIZE(s) (EXT4_MIN_FRAG_SIZE << (s)->s_log_frag_size)
118# define EXT4_FRAGS_PER_BLOCK(s) (EXT4_BLOCK_SIZE(s) / EXT4_FRAG_SIZE(s))
119#endif
120
121/*
122 * Structure of a blocks group descriptor 108 * Structure of a blocks group descriptor
123 */ 109 */
124struct ext4_group_desc 110struct ext4_group_desc
@@ -311,27 +297,24 @@ struct ext4_inode {
311 __le32 i_generation; /* File version (for NFS) */ 297 __le32 i_generation; /* File version (for NFS) */
312 __le32 i_file_acl; /* File ACL */ 298 __le32 i_file_acl; /* File ACL */
313 __le32 i_dir_acl; /* Directory ACL */ 299 __le32 i_dir_acl; /* Directory ACL */
314 __le32 i_faddr; /* Fragment address */ 300 __le32 i_obso_faddr; /* Obsoleted fragment address */
315 union { 301 union {
316 struct { 302 struct {
317 __u8 l_i_frag; /* Fragment number */ 303 __le16 l_i_reserved1; /* Obsoleted fragment number/size which are removed in ext4 */
318 __u8 l_i_fsize; /* Fragment size */
319 __le16 l_i_file_acl_high; 304 __le16 l_i_file_acl_high;
320 __le16 l_i_uid_high; /* these 2 fields */ 305 __le16 l_i_uid_high; /* these 2 fields */
321 __le16 l_i_gid_high; /* were reserved2[0] */ 306 __le16 l_i_gid_high; /* were reserved2[0] */
322 __u32 l_i_reserved2; 307 __u32 l_i_reserved2;
323 } linux2; 308 } linux2;
324 struct { 309 struct {
325 __u8 h_i_frag; /* Fragment number */ 310 __le16 h_i_reserved1; /* Obsoleted fragment number/size which are removed in ext4 */
326 __u8 h_i_fsize; /* Fragment size */
327 __u16 h_i_mode_high; 311 __u16 h_i_mode_high;
328 __u16 h_i_uid_high; 312 __u16 h_i_uid_high;
329 __u16 h_i_gid_high; 313 __u16 h_i_gid_high;
330 __u32 h_i_author; 314 __u32 h_i_author;
331 } hurd2; 315 } hurd2;
332 struct { 316 struct {
333 __u8 m_i_frag; /* Fragment number */ 317 __le16 h_i_reserved1; /* Obsoleted fragment number/size which are removed in ext4 */
334 __u8 m_i_fsize; /* Fragment size */
335 __le16 m_i_file_acl_high; 318 __le16 m_i_file_acl_high;
336 __u32 m_i_reserved2[2]; 319 __u32 m_i_reserved2[2];
337 } masix2; 320 } masix2;
@@ -419,8 +402,6 @@ do { \
419 402
420#if defined(__KERNEL__) || defined(__linux__) 403#if defined(__KERNEL__) || defined(__linux__)
421#define i_reserved1 osd1.linux1.l_i_reserved1 404#define i_reserved1 osd1.linux1.l_i_reserved1
422#define i_frag osd2.linux2.l_i_frag
423#define i_fsize osd2.linux2.l_i_fsize
424#define i_file_acl_high osd2.linux2.l_i_file_acl_high 405#define i_file_acl_high osd2.linux2.l_i_file_acl_high
425#define i_uid_low i_uid 406#define i_uid_low i_uid
426#define i_gid_low i_gid 407#define i_gid_low i_gid
@@ -431,8 +412,6 @@ do { \
431#elif defined(__GNU__) 412#elif defined(__GNU__)
432 413
433#define i_translator osd1.hurd1.h_i_translator 414#define i_translator osd1.hurd1.h_i_translator
434#define i_frag osd2.hurd2.h_i_frag;
435#define i_fsize osd2.hurd2.h_i_fsize;
436#define i_uid_high osd2.hurd2.h_i_uid_high 415#define i_uid_high osd2.hurd2.h_i_uid_high
437#define i_gid_high osd2.hurd2.h_i_gid_high 416#define i_gid_high osd2.hurd2.h_i_gid_high
438#define i_author osd2.hurd2.h_i_author 417#define i_author osd2.hurd2.h_i_author
@@ -440,8 +419,6 @@ do { \
440#elif defined(__masix__) 419#elif defined(__masix__)
441 420
442#define i_reserved1 osd1.masix1.m_i_reserved1 421#define i_reserved1 osd1.masix1.m_i_reserved1
443#define i_frag osd2.masix2.m_i_frag
444#define i_fsize osd2.masix2.m_i_fsize
445#define i_file_acl_high osd2.masix2.m_i_file_acl_high 422#define i_file_acl_high osd2.masix2.m_i_file_acl_high
446#define i_reserved2 osd2.masix2.m_i_reserved2 423#define i_reserved2 osd2.masix2.m_i_reserved2
447 424
@@ -528,9 +505,9 @@ struct ext4_super_block {
528/*10*/ __le32 s_free_inodes_count; /* Free inodes count */ 505/*10*/ __le32 s_free_inodes_count; /* Free inodes count */
529 __le32 s_first_data_block; /* First Data Block */ 506 __le32 s_first_data_block; /* First Data Block */
530 __le32 s_log_block_size; /* Block size */ 507 __le32 s_log_block_size; /* Block size */
531 __le32 s_log_frag_size; /* Fragment size */ 508 __le32 s_obso_log_frag_size; /* Obsoleted fragment size */
532/*20*/ __le32 s_blocks_per_group; /* # Blocks per group */ 509/*20*/ __le32 s_blocks_per_group; /* # Blocks per group */
533 __le32 s_frags_per_group; /* # Fragments per group */ 510 __le32 s_obso_frags_per_group; /* Obsoleted fragments per group */
534 __le32 s_inodes_per_group; /* # Inodes per group */ 511 __le32 s_inodes_per_group; /* # Inodes per group */
535 __le32 s_mtime; /* Mount time */ 512 __le32 s_mtime; /* Mount time */
536/*30*/ __le32 s_wtime; /* Write time */ 513/*30*/ __le32 s_wtime; /* Write time */