mdt.h (df9b42963f2d010ae3163a894ce22cf6b27cd344) | mdt.h (0de6d6b9a2ba21ae28b2420f6684021904833f68) |
---|---|
1/* 2 * mdt.h - NILFS meta data file prototype and definitions 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 97 unchanged lines hidden (view full) --- 106 clear_bit(NILFS_I_DIRTY, &NILFS_I(inode)->i_state); 107} 108 109static inline __u64 nilfs_mdt_cno(struct inode *inode) 110{ 111 return ((struct the_nilfs *)inode->i_sb->s_fs_info)->ns_cno; 112} 113 | 1/* 2 * mdt.h - NILFS meta data file prototype and definitions 3 * 4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 97 unchanged lines hidden (view full) --- 106 clear_bit(NILFS_I_DIRTY, &NILFS_I(inode)->i_state); 107} 108 109static inline __u64 nilfs_mdt_cno(struct inode *inode) 110{ 111 return ((struct the_nilfs *)inode->i_sb->s_fs_info)->ns_cno; 112} 113 |
114#define nilfs_mdt_bgl_lock(inode, bg) \ 115 (&NILFS_MDT(inode)->mi_bgl->locks[(bg) & (NR_BG_LOCKS-1)].lock) | 114static inline spinlock_t * 115nilfs_mdt_bgl_lock(struct inode *inode, unsigned int block_group) 116{ 117 return bgl_lock_ptr(NILFS_MDT(inode)->mi_bgl, block_group); 118} |
116 117#endif /* _NILFS_MDT_H */ | 119 120#endif /* _NILFS_MDT_H */ |