tag | line | file | source code |
ext_sb | 58 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || block >= sb->u.ext_sb.s_nzones) |
ext_sb | 72 | fs/ext/freelists.c | if (sb->u.ext_sb.s_zmap[1]) |
ext_sb | 73 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data; |
ext_sb | 74 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_zmap[1] || efb->count == 254) { |
ext_sb | 78 | fs/ext/freelists.c | if (sb->u.ext_sb.s_zmap[1]) |
ext_sb | 79 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_zmap[1]); |
ext_sb | 80 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_zmap[1] = bread (dev, block, sb->s_blocksize))) |
ext_sb | 82 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data; |
ext_sb | 83 | fs/ext/freelists.c | efb->next = (unsigned long) sb->u.ext_sb.s_zmap[0]; |
ext_sb | 85 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[0] = (struct buffer_head *) block; |
ext_sb | 89 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[2] = (struct buffer_head *) (((unsigned long) sb->u.ext_sb.s_zmap[2]) + 1); |
ext_sb | 91 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[1]->b_dirt = 1; |
ext_sb | 105 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_zmap[1]) |
ext_sb | 108 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data; |
ext_sb | 111 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[1]->b_dirt = 1; |
ext_sb | 116 | fs/ext/freelists.c | j = (unsigned long) sb->u.ext_sb.s_zmap[0]; |
ext_sb | 117 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[0] = (struct buffer_head *) efb->next; |
ext_sb | 118 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_zmap[1]); |
ext_sb | 119 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_zmap[0]) { |
ext_sb | 120 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[1] = NULL; |
ext_sb | 122 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_zmap[1] = bread (dev, (unsigned long) sb->u.ext_sb.s_zmap[0], sb->s_blocksize))) |
ext_sb | 126 | fs/ext/freelists.c | if (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) { |
ext_sb | 130 | fs/ext/freelists.c | sb->u.ext_sb.s_zmap[2] = (struct buffer_head *) (((unsigned long) sb->u.ext_sb.s_zmap[2]) - 1); |
ext_sb | 156 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_zmap[1]) |
ext_sb | 159 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_zmap[1]->b_data; |
ext_sb | 175 | fs/ext/freelists.c | (unsigned long) sb->u.ext_sb.s_zmap[2], count); |
ext_sb | 179 | fs/ext/freelists.c | return (unsigned long) sb->u.ext_sb.s_zmap[2]; |
ext_sb | 208 | fs/ext/freelists.c | if (inode->i_ino < 1 || inode->i_ino > inode->i_sb->u.ext_sb.s_ninodes) { |
ext_sb | 213 | fs/ext/freelists.c | if (inode->i_sb->u.ext_sb.s_imap[1]) |
ext_sb | 214 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) inode->i_sb->u.ext_sb.s_imap[1]->b_data) + |
ext_sb | 215 | fs/ext/freelists.c | (((unsigned long) inode->i_sb->u.ext_sb.s_imap[0])-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 216 | fs/ext/freelists.c | if (!inode->i_sb->u.ext_sb.s_imap[1] || efi->count == 14) { |
ext_sb | 220 | fs/ext/freelists.c | if (inode->i_sb->u.ext_sb.s_imap[1]) |
ext_sb | 221 | fs/ext/freelists.c | brelse (inode->i_sb->u.ext_sb.s_imap[1]); |
ext_sb | 227 | fs/ext/freelists.c | efi->next = (unsigned long) inode->i_sb->u.ext_sb.s_imap[0]; |
ext_sb | 229 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[0] = (struct buffer_head *) inode->i_ino; |
ext_sb | 230 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[1] = bh; |
ext_sb | 234 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[2] = (struct buffer_head *) (((unsigned long) inode->i_sb->u.ext_sb.s_imap[2]) + 1); |
ext_sb | 236 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[1]->b_dirt = 1; |
ext_sb | 256 | fs/ext/freelists.c | if (!inode->i_sb->u.ext_sb.s_imap[1]) |
ext_sb | 259 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) inode->i_sb->u.ext_sb.s_imap[1]->b_data) + |
ext_sb | 260 | fs/ext/freelists.c | (((unsigned long) inode->i_sb->u.ext_sb.s_imap[0])-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 263 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[1]->b_dirt = 1; |
ext_sb | 268 | fs/ext/freelists.c | j = (unsigned long) inode->i_sb->u.ext_sb.s_imap[0]; |
ext_sb | 269 | fs/ext/freelists.c | if (efi->next > inode->i_sb->u.ext_sb.s_ninodes) { |
ext_sb | 273 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[0] = (struct buffer_head *) efi->next; |
ext_sb | 275 | fs/ext/freelists.c | brelse (inode->i_sb->u.ext_sb.s_imap[1]); |
ext_sb | 276 | fs/ext/freelists.c | if (!inode->i_sb->u.ext_sb.s_imap[0]) { |
ext_sb | 277 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[1] = NULL; |
ext_sb | 279 | fs/ext/freelists.c | if (!(inode->i_sb->u.ext_sb.s_imap[1] = bread (dev, block, inode->i_sb->s_blocksize))) |
ext_sb | 283 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_imap[2] = (struct buffer_head *) (((unsigned long) inode->i_sb->u.ext_sb.s_imap[2]) - 1); |
ext_sb | 309 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_imap[1]) |
ext_sb | 312 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_imap[1]->b_data) + |
ext_sb | 313 | fs/ext/freelists.c | ((((unsigned long) sb->u.ext_sb.s_imap[0])-1)%EXT_INODES_PER_BLOCK); |
ext_sb | 317 | fs/ext/freelists.c | if (ino < 1 || ino > sb->u.ext_sb.s_ninodes) { |
ext_sb | 319 | fs/ext/freelists.c | (int) sb->u.ext_sb.s_imap[0],ino); |
ext_sb | 336 | fs/ext/freelists.c | (unsigned long) sb->u.ext_sb.s_imap[2], count); |
ext_sb | 340 | fs/ext/freelists.c | return (unsigned long) sb->u.ext_sb.s_imap[2]; |
ext_sb | 42 | fs/ext/inode.c | brelse(sb->u.ext_sb.s_imap[i]); |
ext_sb | 44 | fs/ext/inode.c | brelse(sb->u.ext_sb.s_zmap[i]); |
ext_sb | 47 | fs/ext/inode.c | if (sb->u.ext_sb.s_imap[1]) |
ext_sb | 48 | fs/ext/inode.c | brelse (sb->u.ext_sb.s_imap[1]); |
ext_sb | 49 | fs/ext/inode.c | if (sb->u.ext_sb.s_zmap[1]) |
ext_sb | 50 | fs/ext/inode.c | brelse (sb->u.ext_sb.s_zmap[1]); |
ext_sb | 85 | fs/ext/inode.c | s->u.ext_sb.s_ninodes = es->s_ninodes; |
ext_sb | 86 | fs/ext/inode.c | s->u.ext_sb.s_nzones = es->s_nzones; |
ext_sb | 88 | fs/ext/inode.c | s->u.ext_sb.s_imap_blocks = es->s_imap_blocks; |
ext_sb | 89 | fs/ext/inode.c | s->u.ext_sb.s_zmap_blocks = es->s_zmap_blocks; |
ext_sb | 91 | fs/ext/inode.c | s->u.ext_sb.s_firstdatazone = es->s_firstdatazone; |
ext_sb | 92 | fs/ext/inode.c | s->u.ext_sb.s_log_zone_size = es->s_log_zone_size; |
ext_sb | 93 | fs/ext/inode.c | s->u.ext_sb.s_max_size = es->s_max_size; |
ext_sb | 96 | fs/ext/inode.c | s->u.ext_sb.s_zmap[0] = (struct buffer_head *) es->s_firstfreeblock; |
ext_sb | 97 | fs/ext/inode.c | s->u.ext_sb.s_zmap[2] = (struct buffer_head *) es->s_freeblockscount; |
ext_sb | 98 | fs/ext/inode.c | s->u.ext_sb.s_imap[0] = (struct buffer_head *) es->s_firstfreeinode; |
ext_sb | 99 | fs/ext/inode.c | s->u.ext_sb.s_imap[2] = (struct buffer_head *) es->s_freeinodescount; |
ext_sb | 110 | fs/ext/inode.c | s->u.ext_sb.s_imap[i] = NULL; |
ext_sb | 112 | fs/ext/inode.c | s->u.ext_sb.s_zmap[i] = NULL; |
ext_sb | 114 | fs/ext/inode.c | for (i=0 ; i < s->u.ext_sb.s_imap_blocks ; i++) |
ext_sb | 115 | fs/ext/inode.c | if (s->u.ext_sb.s_imap[i]=bread(dev, block, BLOCK_SIZE)) |
ext_sb | 119 | fs/ext/inode.c | for (i=0 ; i < s->u.ext_sb.s_zmap_blocks ; i++) |
ext_sb | 120 | fs/ext/inode.c | if (s->u.ext_sb.s_zmap[i]=bread(dev, block, BLOCK_SIZE)) |
ext_sb | 124 | fs/ext/inode.c | if (block != 2+s->u.ext_sb.s_imap_blocks+s->u.ext_sb.s_zmap_blocks) { |
ext_sb | 126 | fs/ext/inode.c | brelse(s->u.ext_sb.s_imap[i]); |
ext_sb | 128 | fs/ext/inode.c | brelse(s->u.ext_sb.s_zmap[i]); |
ext_sb | 134 | fs/ext/inode.c | s->u.ext_sb.s_imap[0]->b_data[0] |= 1; |
ext_sb | 135 | fs/ext/inode.c | s->u.ext_sb.s_zmap[0]->b_data[0] |= 1; |
ext_sb | 138 | fs/ext/inode.c | if (!s->u.ext_sb.s_zmap[0]) |
ext_sb | 139 | fs/ext/inode.c | s->u.ext_sb.s_zmap[1] = NULL; |
ext_sb | 141 | fs/ext/inode.c | if (!(s->u.ext_sb.s_zmap[1] = bread(dev, (unsigned long) s->u.ext_sb.s_zmap[0], BLOCK_SIZE))) { |
ext_sb | 147 | fs/ext/inode.c | if (!s->u.ext_sb.s_imap[0]) |
ext_sb | 148 | fs/ext/inode.c | s->u.ext_sb.s_imap[1] = NULL; |
ext_sb | 150 | fs/ext/inode.c | block = 2 + (((unsigned long) s->u.ext_sb.s_imap[0]) - 1) / EXT_INODES_PER_BLOCK; |
ext_sb | 151 | fs/ext/inode.c | if (!(s->u.ext_sb.s_imap[1] = bread(dev, block, BLOCK_SIZE))) { |
ext_sb | 153 | fs/ext/inode.c | brelse(s->u.ext_sb.s_zmap[1]); |
ext_sb | 187 | fs/ext/inode.c | es->s_firstfreeblock = (unsigned long) sb->u.ext_sb.s_zmap[0]; |
ext_sb | 188 | fs/ext/inode.c | es->s_freeblockscount = (unsigned long) sb->u.ext_sb.s_zmap[2]; |
ext_sb | 189 | fs/ext/inode.c | es->s_firstfreeinode = (unsigned long) sb->u.ext_sb.s_imap[0]; |
ext_sb | 190 | fs/ext/inode.c | es->s_freeinodescount = (unsigned long) sb->u.ext_sb.s_imap[2]; |
ext_sb | 203 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size, &buf->f_blocks); |
ext_sb | 207 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
ext_sb | 345 | fs/ext/inode.c | block = 2 + inode->i_sb->u.ext_sb.s_imap_blocks + inode->i_sb->u.ext_sb.s_zmap_blocks + |
ext_sb | 393 | fs/ext/inode.c | block = 2 + inode->i_sb->u.ext_sb.s_imap_blocks + inode->i_sb->u.ext_sb.s_zmap_blocks + |
ext_sb | 171 | include/linux/fs.h | struct ext_sb_info ext_sb; |