diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-08-12 06:49:34 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2013-08-12 17:37:57 -0400 |
commit | 7bb85ef3608bf740e285b4436776526b7afd4903 (patch) | |
tree | 7374d99ce57d694acd0d9c5380a9649866e948a5 /fs/xfs | |
parent | 5c4d97d01a3a7a4a84fb05bfc439145ea25ba989 (diff) |
xfs: move unrelated definitions out of xfs_inode.h
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_ialloc.c | 1 | ||||
-rw-r--r-- | fs/xfs/xfs_icache.h | 7 | ||||
-rw-r--r-- | fs/xfs/xfs_inode.h | 38 | ||||
-rw-r--r-- | fs/xfs/xfs_log_format.h | 8 |
4 files changed, 16 insertions, 38 deletions
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c index 7a0c17d7ec09..bd4e2a7b0928 100644 --- a/fs/xfs/xfs_ialloc.c +++ b/fs/xfs/xfs_ialloc.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "xfs_cksum.h" | 39 | #include "xfs_cksum.h" |
40 | #include "xfs_buf_item.h" | 40 | #include "xfs_buf_item.h" |
41 | #include "xfs_icreate_item.h" | 41 | #include "xfs_icreate_item.h" |
42 | #include "xfs_icache.h" | ||
42 | 43 | ||
43 | 44 | ||
44 | /* | 45 | /* |
diff --git a/fs/xfs/xfs_icache.h b/fs/xfs/xfs_icache.h index a01afbb3909a..e3f2ee04000b 100644 --- a/fs/xfs/xfs_icache.h +++ b/fs/xfs/xfs_icache.h | |||
@@ -24,6 +24,13 @@ struct xfs_perag; | |||
24 | #define SYNC_WAIT 0x0001 /* wait for i/o to complete */ | 24 | #define SYNC_WAIT 0x0001 /* wait for i/o to complete */ |
25 | #define SYNC_TRYLOCK 0x0002 /* only try to lock inodes */ | 25 | #define SYNC_TRYLOCK 0x0002 /* only try to lock inodes */ |
26 | 26 | ||
27 | /* | ||
28 | * Flags for xfs_iget() | ||
29 | */ | ||
30 | #define XFS_IGET_CREATE 0x1 | ||
31 | #define XFS_IGET_UNTRUSTED 0x2 | ||
32 | #define XFS_IGET_DONTCACHE 0x4 | ||
33 | |||
27 | int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino, | 34 | int xfs_iget(struct xfs_mount *mp, struct xfs_trans *tp, xfs_ino_t ino, |
28 | uint flags, uint lock_flags, xfs_inode_t **ipp); | 35 | uint flags, uint lock_flags, xfs_inode_t **ipp); |
29 | 36 | ||
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index bf0f714081f1..0bd034ac8f82 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -34,37 +34,6 @@ struct xfs_imap { | |||
34 | ushort im_boffset; /* inode offset in block in bytes */ | 34 | ushort im_boffset; /* inode offset in block in bytes */ |
35 | }; | 35 | }; |
36 | 36 | ||
37 | /* | ||
38 | * This is the xfs in-core inode structure. | ||
39 | * Most of the on-disk inode is embedded in the i_d field. | ||
40 | * | ||
41 | * The extent pointers/inline file space, however, are managed | ||
42 | * separately. The memory for this information is pointed to by | ||
43 | * the if_u1 unions depending on the type of the data. | ||
44 | * This is used to linearize the array of extents for fast in-core | ||
45 | * access. This is used until the file's number of extents | ||
46 | * surpasses XFS_MAX_INCORE_EXTENTS, at which point all extent pointers | ||
47 | * are accessed through the buffer cache. | ||
48 | * | ||
49 | * Other state kept in the in-core inode is used for identification, | ||
50 | * locking, transactional updating, etc of the inode. | ||
51 | * | ||
52 | * Generally, we do not want to hold the i_rlock while holding the | ||
53 | * i_ilock. Hierarchy is i_iolock followed by i_rlock. | ||
54 | * | ||
55 | * xfs_iptr_t contains all the inode fields up to and including the | ||
56 | * i_mnext and i_mprev fields, it is used as a marker in the inode | ||
57 | * chain off the mount structure by xfs_sync calls. | ||
58 | */ | ||
59 | |||
60 | /* | ||
61 | * Flags for xfs_ichgtime(). | ||
62 | */ | ||
63 | #define XFS_ICHGTIME_MOD 0x1 /* data fork modification timestamp */ | ||
64 | #define XFS_ICHGTIME_CHG 0x2 /* inode field change timestamp */ | ||
65 | #define XFS_ICHGTIME_CREATE 0x4 /* inode create timestamp */ | ||
66 | |||
67 | |||
68 | #ifdef __KERNEL__ | 37 | #ifdef __KERNEL__ |
69 | 38 | ||
70 | struct xfs_buf; | 39 | struct xfs_buf; |
@@ -400,13 +369,6 @@ do { \ | |||
400 | 369 | ||
401 | #endif /* __KERNEL__ */ | 370 | #endif /* __KERNEL__ */ |
402 | 371 | ||
403 | /* | ||
404 | * Flags for xfs_iget() | ||
405 | */ | ||
406 | #define XFS_IGET_CREATE 0x1 | ||
407 | #define XFS_IGET_UNTRUSTED 0x2 | ||
408 | #define XFS_IGET_DONTCACHE 0x4 | ||
409 | |||
410 | int xfs_imap_to_bp(struct xfs_mount *, struct xfs_trans *, | 372 | int xfs_imap_to_bp(struct xfs_mount *, struct xfs_trans *, |
411 | struct xfs_imap *, struct xfs_dinode **, | 373 | struct xfs_imap *, struct xfs_dinode **, |
412 | struct xfs_buf **, uint, uint); | 374 | struct xfs_buf **, uint, uint); |
diff --git a/fs/xfs/xfs_log_format.h b/fs/xfs/xfs_log_format.h index faf3f4349a75..198381eca1f8 100644 --- a/fs/xfs/xfs_log_format.h +++ b/fs/xfs/xfs_log_format.h | |||
@@ -393,6 +393,14 @@ struct xfs_log_item_desc { | |||
393 | #define XFS_DQUOT_REF 1 | 393 | #define XFS_DQUOT_REF 1 |
394 | 394 | ||
395 | /* | 395 | /* |
396 | * Flags for xfs_trans_ichgtime(). | ||
397 | */ | ||
398 | #define XFS_ICHGTIME_MOD 0x1 /* data fork modification timestamp */ | ||
399 | #define XFS_ICHGTIME_CHG 0x2 /* inode field change timestamp */ | ||
400 | #define XFS_ICHGTIME_CREATE 0x4 /* inode create timestamp */ | ||
401 | |||
402 | |||
403 | /* | ||
396 | * Inode Log Item Format definitions. | 404 | * Inode Log Item Format definitions. |
397 | * | 405 | * |
398 | * This is the structure used to lay out an inode log item in the | 406 | * This is the structure used to lay out an inode log item in the |