fast_commit.c (ababea77bc50e004f7cc2792f0ec8d26b7574c3e) | fast_commit.c (8c9be1e58a8dc03ef815ca51ece95c5e6862b25e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3/* 4 * fs/ext4/fast_commit.c 5 * 6 * Written by Harshad Shirwadkar <harshadshirwadkar@gmail.com> 7 * 8 * Ext4 fast commits routines. --- 1602 unchanged lines hidden (view full) --- 1611 if (ret < 0) { 1612 iput(inode); 1613 return 0; 1614 } 1615 1616 if (ret == 0) { 1617 /* Range is not mapped */ 1618 path = ext4_find_extent(inode, cur, NULL, 0); | 1// SPDX-License-Identifier: GPL-2.0 2 3/* 4 * fs/ext4/fast_commit.c 5 * 6 * Written by Harshad Shirwadkar <harshadshirwadkar@gmail.com> 7 * 8 * Ext4 fast commits routines. --- 1602 unchanged lines hidden (view full) --- 1611 if (ret < 0) { 1612 iput(inode); 1613 return 0; 1614 } 1615 1616 if (ret == 0) { 1617 /* Range is not mapped */ 1618 path = ext4_find_extent(inode, cur, NULL, 0); |
1619 if (!path) 1620 continue; | 1619 if (IS_ERR(path)) { 1620 iput(inode); 1621 return 0; 1622 } |
1621 memset(&newex, 0, sizeof(newex)); 1622 newex.ee_block = cpu_to_le32(cur); 1623 ext4_ext_store_pblock( 1624 &newex, start_pblk + cur - start); 1625 newex.ee_len = cpu_to_le16(map.m_len); 1626 if (ext4_ext_is_unwritten(ex)) 1627 ext4_ext_mark_unwritten(&newex); 1628 down_write(&EXT4_I(inode)->i_data_sem); --- 520 unchanged lines hidden --- | 1623 memset(&newex, 0, sizeof(newex)); 1624 newex.ee_block = cpu_to_le32(cur); 1625 ext4_ext_store_pblock( 1626 &newex, start_pblk + cur - start); 1627 newex.ee_len = cpu_to_le16(map.m_len); 1628 if (ext4_ext_is_unwritten(ex)) 1629 ext4_ext_mark_unwritten(&newex); 1630 down_write(&EXT4_I(inode)->i_data_sem); --- 520 unchanged lines hidden --- |