inode.c (725d26d3f09ccb5bac4b4293096b985a312a0d67) | inode.c (fd2d42912f9f09e5250cb3b024ee0625704e9cb7) |
---|---|
1/* 2 * linux/fs/ext4/inode.c 3 * 4 * Copyright (C) 1992, 1993, 1994, 1995 5 * Remy Card (card@masi.ibp.fr) 6 * Laboratoire MASI - Institut Blaise Pascal 7 * Universite Pierre et Marie Curie (Paris VI) 8 * --- 2450 unchanged lines hidden (view full) --- 2459 ext4_orphan_del(handle, inode); 2460 2461 ext4_journal_stop(handle); 2462} 2463 2464static ext4_fsblk_t ext4_get_inode_block(struct super_block *sb, 2465 unsigned long ino, struct ext4_iloc *iloc) 2466{ | 1/* 2 * linux/fs/ext4/inode.c 3 * 4 * Copyright (C) 1992, 1993, 1994, 1995 5 * Remy Card (card@masi.ibp.fr) 6 * Laboratoire MASI - Institut Blaise Pascal 7 * Universite Pierre et Marie Curie (Paris VI) 8 * --- 2450 unchanged lines hidden (view full) --- 2459 ext4_orphan_del(handle, inode); 2460 2461 ext4_journal_stop(handle); 2462} 2463 2464static ext4_fsblk_t ext4_get_inode_block(struct super_block *sb, 2465 unsigned long ino, struct ext4_iloc *iloc) 2466{ |
2467 unsigned long desc, group_desc, block_group; | 2467 unsigned long desc, group_desc; 2468 ext4_group_t block_group; |
2468 unsigned long offset; 2469 ext4_fsblk_t block; 2470 struct buffer_head *bh; 2471 struct ext4_group_desc * gdp; 2472 2473 if (!ext4_valid_inum(sb, ino)) { 2474 /* 2475 * This error is already checked for in namei.c unless we are --- 70 unchanged lines hidden (view full) --- 2546 * is the only valid inode in the block, we need not read the 2547 * block. 2548 */ 2549 if (in_mem) { 2550 struct buffer_head *bitmap_bh; 2551 struct ext4_group_desc *desc; 2552 int inodes_per_buffer; 2553 int inode_offset, i; | 2469 unsigned long offset; 2470 ext4_fsblk_t block; 2471 struct buffer_head *bh; 2472 struct ext4_group_desc * gdp; 2473 2474 if (!ext4_valid_inum(sb, ino)) { 2475 /* 2476 * This error is already checked for in namei.c unless we are --- 70 unchanged lines hidden (view full) --- 2547 * is the only valid inode in the block, we need not read the 2548 * block. 2549 */ 2550 if (in_mem) { 2551 struct buffer_head *bitmap_bh; 2552 struct ext4_group_desc *desc; 2553 int inodes_per_buffer; 2554 int inode_offset, i; |
2554 int block_group; | 2555 ext4_group_t block_group; |
2555 int start; 2556 2557 block_group = (inode->i_ino - 1) / 2558 EXT4_INODES_PER_GROUP(inode->i_sb); 2559 inodes_per_buffer = bh->b_size / 2560 EXT4_INODE_SIZE(inode->i_sb); 2561 inode_offset = ((inode->i_ino - 1) % 2562 EXT4_INODES_PER_GROUP(inode->i_sb)); --- 812 unchanged lines hidden --- | 2556 int start; 2557 2558 block_group = (inode->i_ino - 1) / 2559 EXT4_INODES_PER_GROUP(inode->i_sb); 2560 inodes_per_buffer = bh->b_size / 2561 EXT4_INODE_SIZE(inode->i_sb); 2562 inode_offset = ((inode->i_ino - 1) % 2563 EXT4_INODES_PER_GROUP(inode->i_sb)); --- 812 unchanged lines hidden --- |