indirect.c (6a797d2737838906f2ea0a31686e87c3151e21ca) | indirect.c (e2b911c53584a92266943f3b7f2cdbc19c1a4e80) |
---|---|
1/* 2 * linux/fs/ext4/indirect.c 3 * 4 * from 5 * 6 * linux/fs/ext4/inode.c 7 * 8 * Copyright (C) 1992, 1993, 1994, 1995 --- 548 unchanged lines hidden (view full) --- 557 558 /* Next simple case - plain lookup or failed read of indirect block */ 559 if ((flags & EXT4_GET_BLOCKS_CREATE) == 0 || err == -EIO) 560 goto cleanup; 561 562 /* 563 * Okay, we need to do block allocation. 564 */ | 1/* 2 * linux/fs/ext4/indirect.c 3 * 4 * from 5 * 6 * linux/fs/ext4/inode.c 7 * 8 * Copyright (C) 1992, 1993, 1994, 1995 --- 548 unchanged lines hidden (view full) --- 557 558 /* Next simple case - plain lookup or failed read of indirect block */ 559 if ((flags & EXT4_GET_BLOCKS_CREATE) == 0 || err == -EIO) 560 goto cleanup; 561 562 /* 563 * Okay, we need to do block allocation. 564 */ |
565 if (EXT4_HAS_RO_COMPAT_FEATURE(inode->i_sb, 566 EXT4_FEATURE_RO_COMPAT_BIGALLOC)) { | 565 if (ext4_has_feature_bigalloc(inode->i_sb)) { |
567 EXT4_ERROR_INODE(inode, "Can't allocate blocks for " 568 "non-extent mapped inodes with bigalloc"); 569 return -EFSCORRUPTED; 570 } 571 572 /* Set up for the direct block allocation */ 573 memset(&ar, 0, sizeof(ar)); 574 ar.inode = inode; --- 987 unchanged lines hidden --- | 566 EXT4_ERROR_INODE(inode, "Can't allocate blocks for " 567 "non-extent mapped inodes with bigalloc"); 568 return -EFSCORRUPTED; 569 } 570 571 /* Set up for the direct block allocation */ 572 memset(&ar, 0, sizeof(ar)); 573 ar.inode = inode; --- 987 unchanged lines hidden --- |