diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 23:21:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-12 23:21:28 -0400 |
commit | bd4c625c061c2a38568d0add3478f59172455159 (patch) | |
tree | 1c44a17c55bce2ee7ad5ea3d15a208ecc0955f74 /include/linux/reiserfs_fs_i.h | |
parent | 7fa94c8868edfef8cb6a201fcc9a5078b7b961da (diff) |
reiserfs: run scripts/Lindent on reiserfs code
This was a pure indentation change, using:
scripts/Lindent fs/reiserfs/*.c include/linux/reiserfs_*.h
to make reiserfs match the regular Linux indentation style. As Jeff
Mahoney <jeffm@suse.com> writes:
The ReiserFS code is a mix of a number of different coding styles, sometimes
different even from line-to-line. Since the code has been relatively stable
for quite some time and there are few outstanding patches to be applied, it
is time to reformat the code to conform to the Linux style standard outlined
in Documentation/CodingStyle.
This patch contains the result of running scripts/Lindent against
fs/reiserfs/*.c and include/linux/reiserfs_*.h. There are places where the
code can be made to look better, but I'd rather keep those patches separate
so that there isn't a subtle by-hand hand accident in the middle of a huge
patch. To be clear: This patch is reformatting *only*.
A number of patches may follow that continue to make the code more consistent
with the Linux coding style.
Hans wasn't particularly enthusiastic about these patches, but said he
wouldn't really oppose them either.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/reiserfs_fs_i.h')
-rw-r--r-- | include/linux/reiserfs_fs_i.h | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/include/linux/reiserfs_fs_i.h b/include/linux/reiserfs_fs_i.h index e321eb050d65..149be8d9a0c9 100644 --- a/include/linux/reiserfs_fs_i.h +++ b/include/linux/reiserfs_fs_i.h | |||
@@ -10,54 +10,53 @@ typedef enum { | |||
10 | /** this says what format of key do all items (but stat data) of | 10 | /** this says what format of key do all items (but stat data) of |
11 | an object have. If this is set, that format is 3.6 otherwise | 11 | an object have. If this is set, that format is 3.6 otherwise |
12 | - 3.5 */ | 12 | - 3.5 */ |
13 | i_item_key_version_mask = 0x0001, | 13 | i_item_key_version_mask = 0x0001, |
14 | /** If this is unset, object has 3.5 stat data, otherwise, it has | 14 | /** If this is unset, object has 3.5 stat data, otherwise, it has |
15 | 3.6 stat data with 64bit size, 32bit nlink etc. */ | 15 | 3.6 stat data with 64bit size, 32bit nlink etc. */ |
16 | i_stat_data_version_mask = 0x0002, | 16 | i_stat_data_version_mask = 0x0002, |
17 | /** file might need tail packing on close */ | 17 | /** file might need tail packing on close */ |
18 | i_pack_on_close_mask = 0x0004, | 18 | i_pack_on_close_mask = 0x0004, |
19 | /** don't pack tail of file */ | 19 | /** don't pack tail of file */ |
20 | i_nopack_mask = 0x0008, | 20 | i_nopack_mask = 0x0008, |
21 | /** If those is set, "safe link" was created for this file during | 21 | /** If those is set, "safe link" was created for this file during |
22 | truncate or unlink. Safe link is used to avoid leakage of disk | 22 | truncate or unlink. Safe link is used to avoid leakage of disk |
23 | space on crash with some files open, but unlinked. */ | 23 | space on crash with some files open, but unlinked. */ |
24 | i_link_saved_unlink_mask = 0x0010, | 24 | i_link_saved_unlink_mask = 0x0010, |
25 | i_link_saved_truncate_mask = 0x0020, | 25 | i_link_saved_truncate_mask = 0x0020, |
26 | i_has_xattr_dir = 0x0040, | 26 | i_has_xattr_dir = 0x0040, |
27 | i_data_log = 0x0080, | 27 | i_data_log = 0x0080, |
28 | } reiserfs_inode_flags; | 28 | } reiserfs_inode_flags; |
29 | 29 | ||
30 | |||
31 | struct reiserfs_inode_info { | 30 | struct reiserfs_inode_info { |
32 | __u32 i_key [4];/* key is still 4 32 bit integers */ | 31 | __u32 i_key[4]; /* key is still 4 32 bit integers */ |
33 | /** transient inode flags that are never stored on disk. Bitmasks | 32 | /** transient inode flags that are never stored on disk. Bitmasks |
34 | for this field are defined above. */ | 33 | for this field are defined above. */ |
35 | __u32 i_flags; | 34 | __u32 i_flags; |
36 | 35 | ||
37 | __u32 i_first_direct_byte; // offset of first byte stored in direct item. | 36 | __u32 i_first_direct_byte; // offset of first byte stored in direct item. |
38 | 37 | ||
39 | /* copy of persistent inode flags read from sd_attrs. */ | 38 | /* copy of persistent inode flags read from sd_attrs. */ |
40 | __u32 i_attrs; | 39 | __u32 i_attrs; |
41 | 40 | ||
42 | int i_prealloc_block; /* first unused block of a sequence of unused blocks */ | 41 | int i_prealloc_block; /* first unused block of a sequence of unused blocks */ |
43 | int i_prealloc_count; /* length of that sequence */ | 42 | int i_prealloc_count; /* length of that sequence */ |
44 | struct list_head i_prealloc_list; /* per-transaction list of inodes which | 43 | struct list_head i_prealloc_list; /* per-transaction list of inodes which |
45 | * have preallocated blocks */ | 44 | * have preallocated blocks */ |
46 | 45 | ||
47 | unsigned new_packing_locality:1; /* new_packig_locality is created; new blocks | 46 | unsigned new_packing_locality:1; /* new_packig_locality is created; new blocks |
48 | * for the contents of this directory should be | 47 | * for the contents of this directory should be |
49 | * displaced */ | 48 | * displaced */ |
50 | 49 | ||
51 | /* we use these for fsync or O_SYNC to decide which transaction | 50 | /* we use these for fsync or O_SYNC to decide which transaction |
52 | ** needs to be committed in order for this inode to be properly | 51 | ** needs to be committed in order for this inode to be properly |
53 | ** flushed */ | 52 | ** flushed */ |
54 | unsigned long i_trans_id ; | 53 | unsigned long i_trans_id; |
55 | struct reiserfs_journal_list *i_jl; | 54 | struct reiserfs_journal_list *i_jl; |
56 | 55 | ||
57 | struct posix_acl *i_acl_access; | 56 | struct posix_acl *i_acl_access; |
58 | struct posix_acl *i_acl_default; | 57 | struct posix_acl *i_acl_default; |
59 | struct rw_semaphore xattr_sem; | 58 | struct rw_semaphore xattr_sem; |
60 | struct inode vfs_inode; | 59 | struct inode vfs_inode; |
61 | }; | 60 | }; |
62 | 61 | ||
63 | #endif | 62 | #endif |