mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 06:56:52 +07:00
bd4c625c06
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>
63 lines
2.1 KiB
C
63 lines
2.1 KiB
C
#ifndef _REISER_FS_I
|
|
#define _REISER_FS_I
|
|
|
|
#include <linux/list.h>
|
|
|
|
struct reiserfs_journal_list;
|
|
|
|
/** bitmasks for i_flags field in reiserfs-specific part of inode */
|
|
typedef enum {
|
|
/** this says what format of key do all items (but stat data) of
|
|
an object have. If this is set, that format is 3.6 otherwise
|
|
- 3.5 */
|
|
i_item_key_version_mask = 0x0001,
|
|
/** If this is unset, object has 3.5 stat data, otherwise, it has
|
|
3.6 stat data with 64bit size, 32bit nlink etc. */
|
|
i_stat_data_version_mask = 0x0002,
|
|
/** file might need tail packing on close */
|
|
i_pack_on_close_mask = 0x0004,
|
|
/** don't pack tail of file */
|
|
i_nopack_mask = 0x0008,
|
|
/** If those is set, "safe link" was created for this file during
|
|
truncate or unlink. Safe link is used to avoid leakage of disk
|
|
space on crash with some files open, but unlinked. */
|
|
i_link_saved_unlink_mask = 0x0010,
|
|
i_link_saved_truncate_mask = 0x0020,
|
|
i_has_xattr_dir = 0x0040,
|
|
i_data_log = 0x0080,
|
|
} reiserfs_inode_flags;
|
|
|
|
struct reiserfs_inode_info {
|
|
__u32 i_key[4]; /* key is still 4 32 bit integers */
|
|
/** transient inode flags that are never stored on disk. Bitmasks
|
|
for this field are defined above. */
|
|
__u32 i_flags;
|
|
|
|
__u32 i_first_direct_byte; // offset of first byte stored in direct item.
|
|
|
|
/* copy of persistent inode flags read from sd_attrs. */
|
|
__u32 i_attrs;
|
|
|
|
int i_prealloc_block; /* first unused block of a sequence of unused blocks */
|
|
int i_prealloc_count; /* length of that sequence */
|
|
struct list_head i_prealloc_list; /* per-transaction list of inodes which
|
|
* have preallocated blocks */
|
|
|
|
unsigned new_packing_locality:1; /* new_packig_locality is created; new blocks
|
|
* for the contents of this directory should be
|
|
* displaced */
|
|
|
|
/* we use these for fsync or O_SYNC to decide which transaction
|
|
** needs to be committed in order for this inode to be properly
|
|
** flushed */
|
|
unsigned long i_trans_id;
|
|
struct reiserfs_journal_list *i_jl;
|
|
|
|
struct posix_acl *i_acl_access;
|
|
struct posix_acl *i_acl_default;
|
|
struct rw_semaphore xattr_sem;
|
|
struct inode vfs_inode;
|
|
};
|
|
|
|
#endif
|