Lines Matching defs:primary
66 * If we are not using the primary superblock/GDT copy don't resize,
762 * Check that all of the backup GDT blocks are held in the primary GDT block.
768 struct buffer_head *primary)
770 const ext4_fsblk_t blk = primary->b_blocknr;
775 __le32 *p = (__le32 *)primary->b_data;
798 * use from the resize inode. The primary copy of the new GDT block currently
893 * reserved inode, and will become GDT blocks (primary and backup).
995 * The indirect blocks are actually the primary reserved GDT blocks,
997 * double-indirect block to verify it is pointing to the primary reserved
999 * backup GDT blocks are stored in their reserved primary GDT block.
1007 struct buffer_head **primary;
1016 primary = kmalloc_array(reserved_gdb, sizeof(*primary), GFP_NOFS);
1017 if (!primary)
1033 /* Get each reserved primary GDT block and verify it holds backups */
1043 primary[res] = ext4_sb_bread(sb, blk, 0);
1044 if (IS_ERR(primary[res])) {
1045 err = PTR_ERR(primary[res]);
1046 primary[res] = NULL;
1049 gdbackups = verify_reserved_gdb(sb, group, primary[res]);
1051 brelse(primary[res]);
1060 BUFFER_TRACE(primary[i], "get_write_access");
1061 if ((err = ext4_journal_get_write_access(handle, primary[i])))
1070 * the new group to its reserved primary GDT block.
1075 data = (__le32 *)primary[i]->b_data;
1077 primary[i]->b_blocknr, gdbackups,
1078 blk + primary[i]->b_blocknr); */
1079 data[gdbackups] = cpu_to_le32(blk + primary[i]->b_blocknr);
1080 err2 = ext4_handle_dirty_metadata(handle, NULL, primary[i]);
1090 brelse(primary[res]);
1094 kfree(primary);
1103 * _should_ update the backups if possible, in case the primary gets trashed