X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fjfs%2Fjfs_incore.h;h=c0fd7b3eadc63a4336b4760db6e80f879f6d66b3;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=ac608c9ff5307a694b800c9415f210540bf3654b;hpb=9213980e6a70d8473e0ffd4b39ab5b6caaba9ff5;p=linux-2.6.git diff --git a/fs/jfs/jfs_incore.h b/fs/jfs/jfs_incore.h index ac608c9ff..c0fd7b3ea 100644 --- a/fs/jfs/jfs_incore.h +++ b/fs/jfs/jfs_incore.h @@ -21,7 +21,7 @@ #include #include -#include +#include #include "jfs_types.h" #include "jfs_xtree.h" #include "jfs_dtree.h" @@ -53,6 +53,7 @@ struct jfs_inode_info { lid_t blid; /* lid of pseudo buffer? */ lid_t atlhead; /* anonymous tlock list head */ lid_t atltail; /* anonymous tlock list tail */ + spinlock_t ag_lock; /* protects active_ag */ struct list_head anon_inode_list; /* inodes having anonymous txns */ /* * rdwrlock serializes xtree between reads & writes and synchronizes @@ -164,6 +165,7 @@ struct jfs_sb_info { /* Formerly in ipbmap */ struct bmap *bmap; /* incore bmap descriptor */ struct nls_table *nls_tab; /* current codepage */ + struct inode *direct_inode; /* metadata inode */ uint state; /* mount/recovery state */ unsigned long flag; /* mount time flags */ uint p_state; /* state prior to going no integrity */ @@ -177,6 +179,11 @@ static inline struct jfs_inode_info *JFS_IP(struct inode *inode) return list_entry(inode, struct jfs_inode_info, vfs_inode); } +static inline int jfs_dirtable_inline(struct inode *inode) +{ + return (JFS_IP(inode)->next_index <= (MAX_INLINE_DIRTABLE_ENTRY + 1)); +} + static inline struct jfs_sb_info *JFS_SBI(struct super_block *sb) { return sb->s_fs_info; @@ -188,5 +195,4 @@ static inline int isReadOnly(struct inode *inode) return 0; return 1; } - #endif /* _H_JFS_INCORE */