Lines Matching refs:msblk
65 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info;
68 mutex_lock(&msblk->meta_index_mutex);
72 if (msblk->meta_index == NULL)
76 if (msblk->meta_index[i].inode_number == inode->i_ino &&
77 msblk->meta_index[i].offset >= offset &&
78 msblk->meta_index[i].offset <= index &&
79 msblk->meta_index[i].locked == 0) {
81 msblk->meta_index[i].offset);
82 meta = &msblk->meta_index[i];
91 mutex_unlock(&msblk->meta_index_mutex);
103 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info;
107 mutex_lock(&msblk->meta_index_mutex);
111 if (msblk->meta_index == NULL) {
118 msblk->meta_index = kcalloc(SQUASHFS_META_SLOTS,
119 sizeof(*(msblk->meta_index)), GFP_KERNEL);
120 if (msblk->meta_index == NULL) {
125 msblk->meta_index[i].inode_number = 0;
126 msblk->meta_index[i].locked = 0;
128 msblk->next_meta_index = 0;
132 msblk->meta_index[msblk->next_meta_index].locked; i--)
133 msblk->next_meta_index = (msblk->next_meta_index + 1) %
142 msblk->next_meta_index,
143 &msblk->meta_index[msblk->next_meta_index]);
145 meta = &msblk->meta_index[msblk->next_meta_index];
146 msblk->next_meta_index = (msblk->next_meta_index + 1) %
156 mutex_unlock(&msblk->meta_index_mutex);
163 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info;
164 mutex_lock(&msblk->meta_index_mutex);
166 mutex_unlock(&msblk->meta_index_mutex);
240 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info;
241 int skip = calculate_skip(i_size_read(inode) >> msblk->block_log);
267 msblk->inode_table;
303 msblk->inode_table;
378 struct squashfs_sb_info *msblk = inode->i_sb->s_fs_info;
383 int mask = (1 << (msblk->block_log - PAGE_CACHE_SHIFT)) - 1;
384 int index = page->index >> (msblk->block_log - PAGE_CACHE_SHIFT);
387 int file_end = i_size_read(inode) >> msblk->block_log;
409 (i_size_read(inode) & (msblk->block_size - 1)) :
410 msblk->block_size;
442 bytes = i_size_read(inode) & (msblk->block_size - 1);