diff options
author | wdenk <wdenk> | 2004-03-25 15:14:43 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-03-25 15:14:43 +0000 |
commit | b79a11cc2bda7a4d5e00444427a0d06b4e86a990 (patch) | |
tree | 746dd46c12a481c3d0622cb51fcf7865047fba04 /fs/reiserfs | |
parent | 518e2e1ae322251f6452c7b413ecdc70c4605fa1 (diff) | |
download | u-boot-imx-b79a11cc2bda7a4d5e00444427a0d06b4e86a990.zip u-boot-imx-b79a11cc2bda7a4d5e00444427a0d06b4e86a990.tar.gz u-boot-imx-b79a11cc2bda7a4d5e00444427a0d06b4e86a990.tar.bz2 |
Code cleanup
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/dev.c | 2 | ||||
-rw-r--r-- | fs/reiserfs/mode_string.c | 1 | ||||
-rw-r--r-- | fs/reiserfs/reiserfs_private.h | 11 |
3 files changed, 6 insertions, 8 deletions
diff --git a/fs/reiserfs/dev.c b/fs/reiserfs/dev.c index 72d62a6..6f6056f 100644 --- a/fs/reiserfs/dev.c +++ b/fs/reiserfs/dev.c @@ -62,7 +62,7 @@ int reiserfs_devread (int sector, int byte_offset, int byte_len, char *buf) if (sector < 0 || ((sector + ((byte_offset + byte_len - 1) >> SECTOR_BITS)) >= part_info.size)) { -// errnum = ERR_OUTSIDE_PART; +/* errnum = ERR_OUTSIDE_PART; */ printf (" ** reiserfs_devread() read outside partition\n"); return 0; } diff --git a/fs/reiserfs/mode_string.c b/fs/reiserfs/mode_string.c index b3f5389..bc565fb 100644 --- a/fs/reiserfs/mode_string.c +++ b/fs/reiserfs/mode_string.c @@ -99,7 +99,6 @@ const char *bb_mode_string(int mode) /* The previous version used "0pcCd?bB-?l?s???". However, the '0', 'C', * and 'B' types don't appear to be available on linux. So I removed them. */ -//static const char type_chars[16] = "?pc?d?b?-?l?s???"; static const char type_chars[16] = "?pc?d?b?-?l?s???"; /* 0123456789abcdef */ static const char mode_chars[7] = "rwxSTst"; diff --git a/fs/reiserfs/reiserfs_private.h b/fs/reiserfs/reiserfs_private.h index 295ce3b..2bdb5e7 100644 --- a/fs/reiserfs/reiserfs_private.h +++ b/fs/reiserfs/reiserfs_private.h @@ -285,10 +285,10 @@ struct disk_child { #define dc_block_number(dc_p) (__le32_to_cpu((dc_p)->dc_block_number)) -// -// old stat data is 32 bytes long. We are going to distinguish new one by -// different size -// +/* + * old stat data is 32 bytes long. We are going to distinguish new one by + * different size + */ struct stat_data_v1 { __u16 sd_mode; /* file type, permissions */ @@ -315,7 +315,6 @@ struct stat_data_v1 } __attribute__ ((__packed__)); #define stat_data_v1(ih) (ih_version(ih) == ITEM_VERSION_1) -//#define sd_v1_mode(sdp) (__le16_to_cpu((sdp)->sd_mode)) #define sd_v1_mode(sdp) ((sdp)->sd_mode) #define sd_v1_nlink(sdp) (__le16_to_cpu((sdp)->sd_nlink)) #define sd_v1_uid(sdp) (__le16_to_cpu((sdp)->sd_uid)) @@ -339,7 +338,7 @@ struct stat_data { union { __u32 sd_rdev; __u32 sd_generation; - //__u32 sd_first_direct_byte; + /*__u32 sd_first_direct_byte; */ /* first byte of file which is stored in a direct item: except that if it equals 1 it is a symlink and if it equals |