Skip to content

Commit f720e3b

Browse files
author
Dave Kleikamp
committed
JFS: Whitespace cleanup and remove some dead code
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
1 parent 5ecd310 commit f720e3b

23 files changed

Lines changed: 1066 additions & 1098 deletions

‎fs/jfs/endian24.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
__u32 __x = (x); \
3030
((__u32)( \
3131
((__x & (__u32)0x000000ffUL) << 16) | \
32-
(__x & (__u32)0x0000ff00UL) | \
32+
(__x & (__u32)0x0000ff00UL) | \
3333
((__x & (__u32)0x00ff0000UL) >> 16) )); \
3434
})
3535

‎fs/jfs/jfs_dinode.h‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@
1919
#define _H_JFS_DINODE
2020

2121
/*
22-
* jfs_dinode.h: on-disk inode manager
22+
* jfs_dinode.h: on-disk inode manager
2323
*/
2424

25-
#define INODESLOTSIZE 128
26-
#define L2INODESLOTSIZE 7
27-
#define log2INODESIZE 9 /* log2(bytes per dinode) */
25+
#define INODESLOTSIZE 128
26+
#define L2INODESLOTSIZE 7
27+
#define log2INODESIZE 9 /* log2(bytes per dinode) */
2828

2929

3030
/*
31-
* on-disk inode : 512 bytes
31+
* on-disk inode : 512 bytes
3232
*
3333
* note: align 64-bit fields on 8-byte boundary.
3434
*/
3535
struct dinode {
3636
/*
37-
* I. base area (128 bytes)
38-
* ------------------------
37+
* I. base area (128 bytes)
38+
* ------------------------
3939
*
4040
* define generic/POSIX attributes
4141
*/
@@ -70,16 +70,16 @@ struct dinode {
7070
__le32 di_acltype; /* 4: Type of ACL */
7171

7272
/*
73-
* Extension Areas.
73+
* Extension Areas.
7474
*
75-
* Historically, the inode was partitioned into 4 128-byte areas,
76-
* the last 3 being defined as unions which could have multiple
77-
* uses. The first 96 bytes had been completely unused until
78-
* an index table was added to the directory. It is now more
79-
* useful to describe the last 3/4 of the inode as a single
80-
* union. We would probably be better off redesigning the
81-
* entire structure from scratch, but we don't want to break
82-
* commonality with OS/2's JFS at this time.
75+
* Historically, the inode was partitioned into 4 128-byte areas,
76+
* the last 3 being defined as unions which could have multiple
77+
* uses. The first 96 bytes had been completely unused until
78+
* an index table was added to the directory. It is now more
79+
* useful to describe the last 3/4 of the inode as a single
80+
* union. We would probably be better off redesigning the
81+
* entire structure from scratch, but we don't want to break
82+
* commonality with OS/2's JFS at this time.
8383
*/
8484
union {
8585
struct {
@@ -95,7 +95,7 @@ struct dinode {
9595
} _dir; /* (384) */
9696
#define di_dirtable u._dir._table
9797
#define di_dtroot u._dir._dtroot
98-
#define di_parent di_dtroot.header.idotdot
98+
#define di_parent di_dtroot.header.idotdot
9999
#define di_DASD di_dtroot.header.DASD
100100

101101
struct {
@@ -127,14 +127,14 @@ struct dinode {
127127
#define di_inlinedata u._file._u2._special._u
128128
#define di_rdev u._file._u2._special._u._rdev
129129
#define di_fastsymlink u._file._u2._special._u._fastsymlink
130-
#define di_inlineea u._file._u2._special._inlineea
130+
#define di_inlineea u._file._u2._special._inlineea
131131
} u;
132132
};
133133

134134
/* extended mode bits (on-disk inode di_mode) */
135-
#define IFJOURNAL 0x00010000 /* journalled file */
136-
#define ISPARSE 0x00020000 /* sparse file enabled */
137-
#define INLINEEA 0x00040000 /* inline EA area free */
135+
#define IFJOURNAL 0x00010000 /* journalled file */
136+
#define ISPARSE 0x00020000 /* sparse file enabled */
137+
#define INLINEEA 0x00040000 /* inline EA area free */
138138
#define ISWAPFILE 0x00800000 /* file open for pager swap space */
139139

140140
/* more extended mode bits: attributes for OS/2 */

0 commit comments

Comments
 (0)