Blame view

fs/squashfs/squashfs_fs_i.h 764 Bytes
68252eb5f   Thomas Gleixner   treewide: Replace...
1
  /* SPDX-License-Identifier: GPL-2.0-or-later */
ffae2cd73   Phillip Lougher   Squashfs: header ...
2
3
4
5
6
7
  #ifndef SQUASHFS_FS_I
  #define SQUASHFS_FS_I
  /*
   * Squashfs
   *
   * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
d7f2ff671   Phillip Lougher   Squashfs: update ...
8
   * Phillip Lougher <phillip@squashfs.org.uk>
ffae2cd73   Phillip Lougher   Squashfs: header ...
9
   *
ffae2cd73   Phillip Lougher   Squashfs: header ...
10
11
12
13
14
15
   * squashfs_fs_i.h
   */
  
  struct squashfs_inode_info {
  	u64		start;
  	int		offset;
f41d207cb   Phillip Lougher   squashfs: add sup...
16
17
18
  	u64		xattr;
  	unsigned int	xattr_size;
  	int		xattr_count;
ffae2cd73   Phillip Lougher   Squashfs: header ...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  	union {
  		struct {
  			u64		fragment_block;
  			int		fragment_size;
  			int		fragment_offset;
  			u64		block_list_start;
  		};
  		struct {
  			u64		dir_idx_start;
  			int		dir_idx_offset;
  			int		dir_idx_cnt;
  			int		parent;
  		};
  	};
  	struct inode	vfs_inode;
  };
8fcd97216   Phillip Lougher   Squashfs: move sq...
35
36
37
38
  
  
  static inline struct squashfs_inode_info *squashfs_i(struct inode *inode)
  {
db6172c41   Rasmus Villemoes   fs: cleanup sligh...
39
  	return container_of(inode, struct squashfs_inode_info, vfs_inode);
8fcd97216   Phillip Lougher   Squashfs: move sq...
40
  }
ffae2cd73   Phillip Lougher   Squashfs: header ...
41
  #endif