File: affs_fs_i.h

package info (click to toggle)
kernel-source-2.0.38 2.0.38-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 34,660 kB
  • ctags: 102,964
  • sloc: ansic: 632,204; asm: 26,444; makefile: 4,286; sh: 1,276; perl: 761; tcl: 408; cpp: 277; lisp: 211; awk: 134
file content (26 lines) | stat: -rw-r--r-- 827 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _AFFS_FS_I
#define _AFFS_FS_I

#define EXT_CACHE_SIZE	12
#define MAX_PREALLOC	8	/* MUST be a power of 2 */

/*
 * affs fs inode data in memory
 */
struct affs_inode_info {
	__u32	i_protect;		/* unused attribute bits */
	__s32	i_parent;		/* parent ino */
	__s32	i_original;		/* if != 0, this is the key of the original */
	__s32	i_ext[EXT_CACHE_SIZE];	/* extension block numbers */
	__s32	i_data[MAX_PREALLOC];	/* preallocated blocks */
	int	i_lastblock;		/* last allocated block */
	short	i_max_ext;		/* last known extension block */
	short	i_pa_cnt;		/* number of preallocated blocks */
	short	i_pa_next;		/* Index of next block in i_data[] */
	short	i_pa_last;		/* Index of next free slot in i_data[] */
	short	i_zone;			/* write zone */
	unsigned char i_hlink;		/* This is a fake */
	unsigned char i_pad;
};

#endif