Blame view

include/linux/reiserfs_fs_i.h 2.21 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
12
  #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 */
bd4c625c0   Linus Torvalds   reiserfs: run scr...
13
  	i_item_key_version_mask = 0x0001,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
14
15
      /** If this is unset, object has 3.5 stat data, otherwise, it has
        3.6 stat data with 64bit size, 32bit nlink etc. */
bd4c625c0   Linus Torvalds   reiserfs: run scr...
16
  	i_stat_data_version_mask = 0x0002,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
17
      /** file might need tail packing on close */
bd4c625c0   Linus Torvalds   reiserfs: run scr...
18
  	i_pack_on_close_mask = 0x0004,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
      /** don't pack tail of file */
bd4c625c0   Linus Torvalds   reiserfs: run scr...
20
  	i_nopack_mask = 0x0008,
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
21
22
23
      /** 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. */
bd4c625c0   Linus Torvalds   reiserfs: run scr...
24
25
26
27
  	i_link_saved_unlink_mask = 0x0010,
  	i_link_saved_truncate_mask = 0x0020,
  	i_has_xattr_dir = 0x0040,
  	i_data_log = 0x0080,
de14569f9   Vladimir Saveliev   [PATCH] resierfs:...
28
  	i_ever_mapped = 0x0100
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
29
  } reiserfs_inode_flags;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
30
  struct reiserfs_inode_info {
bd4c625c0   Linus Torvalds   reiserfs: run scr...
31
  	__u32 i_key[4];		/* key is still 4 32 bit integers */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
32
33
      /** transient inode flags that are never stored on disk. Bitmasks
        for this field are defined above. */
bd4c625c0   Linus Torvalds   reiserfs: run scr...
34
  	__u32 i_flags;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
35

bd4c625c0   Linus Torvalds   reiserfs: run scr...
36
  	__u32 i_first_direct_byte;	// offset of first byte stored in direct item.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
37

bd4c625c0   Linus Torvalds   reiserfs: run scr...
38
39
  	/* copy of persistent inode flags read from sd_attrs. */
  	__u32 i_attrs;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
40

bd4c625c0   Linus Torvalds   reiserfs: run scr...
41
42
43
44
  	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 */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
45

bd4c625c0   Linus Torvalds   reiserfs: run scr...
46
47
48
  	unsigned new_packing_locality:1;	/* new_packig_locality is created; new blocks
  						 * for the contents of this directory should be
  						 * displaced */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
49

bd4c625c0   Linus Torvalds   reiserfs: run scr...
50
51
52
53
54
  	/* 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;
de14569f9   Vladimir Saveliev   [PATCH] resierfs:...
55
  	struct mutex i_mmap;
cfe14677f   Alexey Dobriyan   [PATCH] reiserfs:...
56
  #ifdef CONFIG_REISERFS_FS_POSIX_ACL
bd4c625c0   Linus Torvalds   reiserfs: run scr...
57
58
  	struct posix_acl *i_acl_access;
  	struct posix_acl *i_acl_default;
cfe14677f   Alexey Dobriyan   [PATCH] reiserfs:...
59
  #endif
068fbb315   Alexey Dobriyan   [PATCH] reiserfs:...
60
  #ifdef CONFIG_REISERFS_FS_XATTR
bd4c625c0   Linus Torvalds   reiserfs: run scr...
61
  	struct rw_semaphore xattr_sem;
068fbb315   Alexey Dobriyan   [PATCH] reiserfs:...
62
  #endif
bd4c625c0   Linus Torvalds   reiserfs: run scr...
63
  	struct inode vfs_inode;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
64
65
66
  };
  
  #endif