Loading fs/udf/truncate.c +34 −42 Original line number Diff line number Diff line Loading @@ -223,21 +223,17 @@ void udf_truncate_extents(struct inode *inode) if (indirect_ext_len) { /* We managed to free all extents in the * indirect extent - free it too */ if (!epos.bh) BUG(); BUG_ON(!epos.bh); udf_free_blocks(sb, inode, epos.block, 0, indirect_ext_len); } else { if (!epos.bh) { iinfo->i_lenAlloc = lenalloc; } else if (!epos.bh) { iinfo->i_lenAlloc = lenalloc; mark_inode_dirty(inode); } else { struct allocExtDesc *aed = (struct allocExtDesc *) (epos.bh->b_data); int len = sizeof(struct allocExtDesc); int len = sizeof(struct allocExtDesc); aed->lengthAllocDescs = cpu_to_le32(lenalloc); Loading @@ -251,7 +247,6 @@ void udf_truncate_extents(struct inode *inode) mark_buffer_dirty_inode( epos.bh, inode); } } brelse(epos.bh); epos.offset = sizeof(struct allocExtDesc); epos.block = eloc; Loading @@ -271,12 +266,10 @@ void udf_truncate_extents(struct inode *inode) } if (indirect_ext_len) { if (!epos.bh) BUG(); BUG_ON(!epos.bh); udf_free_blocks(sb, inode, epos.block, 0, indirect_ext_len); } else { if (!epos.bh) { } else if (!epos.bh) { iinfo->i_lenAlloc = lenalloc; mark_inode_dirty(inode); } else { Loading @@ -293,7 +286,6 @@ void udf_truncate_extents(struct inode *inode) sizeof(struct allocExtDesc)); mark_buffer_dirty_inode(epos.bh, inode); } } } else if (inode->i_size) { if (byte_offset) { kernel_long_ad extent; Loading Loading
fs/udf/truncate.c +34 −42 Original line number Diff line number Diff line Loading @@ -223,21 +223,17 @@ void udf_truncate_extents(struct inode *inode) if (indirect_ext_len) { /* We managed to free all extents in the * indirect extent - free it too */ if (!epos.bh) BUG(); BUG_ON(!epos.bh); udf_free_blocks(sb, inode, epos.block, 0, indirect_ext_len); } else { if (!epos.bh) { iinfo->i_lenAlloc = lenalloc; } else if (!epos.bh) { iinfo->i_lenAlloc = lenalloc; mark_inode_dirty(inode); } else { struct allocExtDesc *aed = (struct allocExtDesc *) (epos.bh->b_data); int len = sizeof(struct allocExtDesc); int len = sizeof(struct allocExtDesc); aed->lengthAllocDescs = cpu_to_le32(lenalloc); Loading @@ -251,7 +247,6 @@ void udf_truncate_extents(struct inode *inode) mark_buffer_dirty_inode( epos.bh, inode); } } brelse(epos.bh); epos.offset = sizeof(struct allocExtDesc); epos.block = eloc; Loading @@ -271,12 +266,10 @@ void udf_truncate_extents(struct inode *inode) } if (indirect_ext_len) { if (!epos.bh) BUG(); BUG_ON(!epos.bh); udf_free_blocks(sb, inode, epos.block, 0, indirect_ext_len); } else { if (!epos.bh) { } else if (!epos.bh) { iinfo->i_lenAlloc = lenalloc; mark_inode_dirty(inode); } else { Loading @@ -293,7 +286,6 @@ void udf_truncate_extents(struct inode *inode) sizeof(struct allocExtDesc)); mark_buffer_dirty_inode(epos.bh, inode); } } } else if (inode->i_size) { if (byte_offset) { kernel_long_ad extent; Loading