tag | line | file | source code |
ext_sb | 56 | fs/ext/freelists.c | if (block < sb->u.ext_sb.s_firstdatazone || |
ext_sb | 57 | fs/ext/freelists.c | block >= sb->u.ext_sb.s_nzones) { |
ext_sb | 65 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 66 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 67 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock || efb->count == 254) { |
ext_sb | 71 | fs/ext/freelists.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 72 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 73 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev, |
ext_sb | 76 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 77 | fs/ext/freelists.c | efb->next = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 79 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = block; |
ext_sb | 83 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount ++; |
ext_sb | 85 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblock->b_dirt = 1; |
ext_sb | 100 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 103 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 106 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblock->b_dirt = 1; |
ext_sb | 111 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 112 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber = efb->next; |
ext_sb | 113 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 114 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblocknumber) { |
ext_sb | 115 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblock = NULL; |
ext_sb | 117 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeblock = bread (sb->s_dev, |
ext_sb | 118 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeblocknumber, |
ext_sb | 123 | fs/ext/freelists.c | if (j < sb->u.ext_sb.s_firstdatazone || j > sb->u.ext_sb.s_nzones) { |
ext_sb | 128 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount --; |
ext_sb | 154 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 157 | fs/ext/freelists.c | efb = (struct ext_free_block *) sb->u.ext_sb.s_firstfreeblock->b_data; |
ext_sb | 173 | fs/ext/freelists.c | sb->u.ext_sb.s_freeblockscount, count); |
ext_sb | 177 | fs/ext/freelists.c | return sb->u.ext_sb.s_freeblockscount; |
ext_sb | 206 | fs/ext/freelists.c | if (inode->i_ino < 1 || inode->i_ino > inode->i_sb->u.ext_sb.s_ninodes) { |
ext_sb | 211 | fs/ext/freelists.c | if (inode->i_sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 212 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) inode->i_sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 213 | fs/ext/freelists.c | (inode->i_sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 214 | fs/ext/freelists.c | if (!inode->i_sb->u.ext_sb.s_firstfreeinodeblock || efi->count == 14) { |
ext_sb | 218 | fs/ext/freelists.c | if (inode->i_sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 219 | fs/ext/freelists.c | brelse (inode->i_sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 225 | fs/ext/freelists.c | efi->next = inode->i_sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 227 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_firstfreeinodenumber = inode->i_ino; |
ext_sb | 228 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_firstfreeinodeblock = bh; |
ext_sb | 232 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_freeinodescount ++; |
ext_sb | 234 | fs/ext/freelists.c | inode->i_sb->u.ext_sb.s_firstfreeinodeblock->b_dirt = 1; |
ext_sb | 252 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 255 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 256 | fs/ext/freelists.c | (sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK; |
ext_sb | 259 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodeblock->b_dirt = 1; |
ext_sb | 264 | fs/ext/freelists.c | j = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 265 | fs/ext/freelists.c | if (efi->next > sb->u.ext_sb.s_ninodes) { |
ext_sb | 269 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodenumber = efi->next; |
ext_sb | 271 | fs/ext/freelists.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 272 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodenumber) { |
ext_sb | 273 | fs/ext/freelists.c | sb->u.ext_sb.s_firstfreeinodeblock = NULL; |
ext_sb | 275 | fs/ext/freelists.c | if (!(sb->u.ext_sb.s_firstfreeinodeblock = |
ext_sb | 280 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount --; |
ext_sb | 307 | fs/ext/freelists.c | if (!sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 310 | fs/ext/freelists.c | efi = ((struct ext_free_inode *) sb->u.ext_sb.s_firstfreeinodeblock->b_data) + |
ext_sb | 311 | fs/ext/freelists.c | ((sb->u.ext_sb.s_firstfreeinodenumber-1)%EXT_INODES_PER_BLOCK); |
ext_sb | 315 | fs/ext/freelists.c | if (ino < 1 || ino > sb->u.ext_sb.s_ninodes) { |
ext_sb | 317 | fs/ext/freelists.c | (int) sb->u.ext_sb.s_firstfreeinodenumber,ino); |
ext_sb | 334 | fs/ext/freelists.c | sb->u.ext_sb.s_freeinodescount, count); |
ext_sb | 338 | fs/ext/freelists.c | return sb->u.ext_sb.s_freeinodescount; |
ext_sb | 38 | fs/ext/inode.c | if (sb->u.ext_sb.s_firstfreeinodeblock) |
ext_sb | 39 | fs/ext/inode.c | brelse (sb->u.ext_sb.s_firstfreeinodeblock); |
ext_sb | 40 | fs/ext/inode.c | if (sb->u.ext_sb.s_firstfreeblock) |
ext_sb | 41 | fs/ext/inode.c | brelse (sb->u.ext_sb.s_firstfreeblock); |
ext_sb | 71 | fs/ext/inode.c | s->u.ext_sb.s_ninodes = es->s_ninodes; |
ext_sb | 72 | fs/ext/inode.c | s->u.ext_sb.s_nzones = es->s_nzones; |
ext_sb | 73 | fs/ext/inode.c | s->u.ext_sb.s_firstdatazone = es->s_firstdatazone; |
ext_sb | 74 | fs/ext/inode.c | s->u.ext_sb.s_log_zone_size = es->s_log_zone_size; |
ext_sb | 75 | fs/ext/inode.c | s->u.ext_sb.s_max_size = es->s_max_size; |
ext_sb | 77 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber = es->s_firstfreeblock; |
ext_sb | 78 | fs/ext/inode.c | s->u.ext_sb.s_freeblockscount = es->s_freeblockscount; |
ext_sb | 79 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodenumber = es->s_firstfreeinode; |
ext_sb | 80 | fs/ext/inode.c | s->u.ext_sb.s_freeinodescount = es->s_freeinodescount; |
ext_sb | 88 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeblocknumber) |
ext_sb | 89 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblock = NULL; |
ext_sb | 91 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeblock = bread(dev, |
ext_sb | 92 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeblocknumber, BLOCK_SIZE))) { |
ext_sb | 98 | fs/ext/inode.c | if (!s->u.ext_sb.s_firstfreeinodenumber) |
ext_sb | 99 | fs/ext/inode.c | s->u.ext_sb.s_firstfreeinodeblock = NULL; |
ext_sb | 101 | fs/ext/inode.c | block = 2 + (s->u.ext_sb.s_firstfreeinodenumber - 1) / EXT_INODES_PER_BLOCK; |
ext_sb | 102 | fs/ext/inode.c | if (!(s->u.ext_sb.s_firstfreeinodeblock = bread(dev, block, BLOCK_SIZE))) { |
ext_sb | 104 | fs/ext/inode.c | brelse(s->u.ext_sb.s_firstfreeblock); |
ext_sb | 132 | fs/ext/inode.c | es->s_firstfreeblock = sb->u.ext_sb.s_firstfreeblocknumber; |
ext_sb | 133 | fs/ext/inode.c | es->s_freeblockscount = sb->u.ext_sb.s_freeblockscount; |
ext_sb | 134 | fs/ext/inode.c | es->s_firstfreeinode = sb->u.ext_sb.s_firstfreeinodenumber; |
ext_sb | 135 | fs/ext/inode.c | es->s_freeinodescount = sb->u.ext_sb.s_freeinodescount; |
ext_sb | 147 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size, |
ext_sb | 152 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
ext_sb | 246 | include/linux/fs.h | struct ext_sb_info ext_sb; |