inode.c (0f2cc4ecd81dc1917a041dc93db0ada28f8356fa) | inode.c (257ba15cedf1288f0c96118d7e63947231d27278) |
---|---|
1/* 2 * inode.c 3 * 4 * PURPOSE 5 * Inode handling routines for the OSTA-UDF(tm) filesystem. 6 * 7 * COPYRIGHT 8 * This file is distributed under the terms of the GNU General Public --- 94 unchanged lines hidden (view full) --- 103 inode->i_size != iinfo->i_lenExtents) { 104 printk(KERN_WARNING "UDF-fs (%s): Inode %lu (mode %o) has " 105 "inode size %llu different from extent lenght %llu. " 106 "Filesystem need not be standards compliant.\n", 107 inode->i_sb->s_id, inode->i_ino, inode->i_mode, 108 (unsigned long long)inode->i_size, 109 (unsigned long long)iinfo->i_lenExtents); 110 } | 1/* 2 * inode.c 3 * 4 * PURPOSE 5 * Inode handling routines for the OSTA-UDF(tm) filesystem. 6 * 7 * COPYRIGHT 8 * This file is distributed under the terms of the GNU General Public --- 94 unchanged lines hidden (view full) --- 103 inode->i_size != iinfo->i_lenExtents) { 104 printk(KERN_WARNING "UDF-fs (%s): Inode %lu (mode %o) has " 105 "inode size %llu different from extent lenght %llu. " 106 "Filesystem need not be standards compliant.\n", 107 inode->i_sb->s_id, inode->i_ino, inode->i_mode, 108 (unsigned long long)inode->i_size, 109 (unsigned long long)iinfo->i_lenExtents); 110 } |
111 112 vfs_dq_drop(inode); |
|
111 kfree(iinfo->i_ext.i_data); 112 iinfo->i_ext.i_data = NULL; 113} 114 115static int udf_writepage(struct page *page, struct writeback_control *wbc) 116{ 117 return block_write_full_page(page, udf_get_block, wbc); 118} --- 1548 unchanged lines hidden (view full) --- 1667 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT) 1668 adsize = sizeof(struct short_ad); 1669 else if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_LONG) 1670 adsize = sizeof(struct long_ad); 1671 else 1672 return -1; 1673 1674 if (epos->offset + (2 * adsize) > inode->i_sb->s_blocksize) { | 113 kfree(iinfo->i_ext.i_data); 114 iinfo->i_ext.i_data = NULL; 115} 116 117static int udf_writepage(struct page *page, struct writeback_control *wbc) 118{ 119 return block_write_full_page(page, udf_get_block, wbc); 120} --- 1548 unchanged lines hidden (view full) --- 1669 if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_SHORT) 1670 adsize = sizeof(struct short_ad); 1671 else if (iinfo->i_alloc_type == ICBTAG_FLAG_AD_LONG) 1672 adsize = sizeof(struct long_ad); 1673 else 1674 return -1; 1675 1676 if (epos->offset + (2 * adsize) > inode->i_sb->s_blocksize) { |
1675 unsigned char *sptr, *dptr; | 1677 char *sptr, *dptr; |
1676 struct buffer_head *nbh; 1677 int err, loffset; 1678 struct kernel_lb_addr obloc = epos->block; 1679 1680 epos->block.logicalBlockNum = udf_new_block(inode->i_sb, NULL, 1681 obloc.partitionReferenceNum, 1682 obloc.logicalBlockNum, &err); 1683 if (!epos->block.logicalBlockNum) --- 385 unchanged lines hidden --- | 1678 struct buffer_head *nbh; 1679 int err, loffset; 1680 struct kernel_lb_addr obloc = epos->block; 1681 1682 epos->block.logicalBlockNum = udf_new_block(inode->i_sb, NULL, 1683 obloc.partitionReferenceNum, 1684 obloc.logicalBlockNum, &err); 1685 if (!epos->block.logicalBlockNum) --- 385 unchanged lines hidden --- |