Go to the documentation of this file.
24 #include <linux/slab.h>
25 #include <linux/bitops.h>
33 #define JFS_SUPER_MAGIC 0x3153464a
100 #define i_xtroot u.file._xtroot
101 #define i_imap u.file._imap
102 #define i_dirtable u.dir._table
103 #define i_dtroot u.dir._dtroot
104 #define i_inline u.link._inline
105 #define i_inline_ea u.link._inline_ea
107 #define IREAD_LOCK(ip, subclass) \
108 down_read_nested(&JFS_IP(ip)->rdwrlock, subclass)
109 #define IREAD_UNLOCK(ip) up_read(&JFS_IP(ip)->rdwrlock)
110 #define IWRITE_LOCK(ip, subclass) \
111 down_write_nested(&JFS_IP(ip)->rdwrlock, subclass)
112 #define IWRITE_UNLOCK(ip) up_write(&JFS_IP(ip)->rdwrlock)
150 #define set_cflag(flag, ip) set_bit(flag, &(JFS_IP(ip)->cflag))
151 #define clear_cflag(flag, ip) clear_bit(flag, &(JFS_IP(ip)->cflag))
152 #define test_cflag(flag, ip) test_bit(flag, &(JFS_IP(ip)->cflag))
153 #define test_and_clear_cflag(flag, ip) \
154 test_and_clear_bit(flag, &(JFS_IP(ip)->cflag))
202 #define IN_LAZYCOMMIT 1
209 static inline int jfs_dirtable_inline(
struct inode *
inode)
219 static inline int isReadOnly(
struct inode *inode)
221 if (JFS_SBI(inode->
i_sb)->log)