Lines Matching refs:i_sb
163 fibh->soffset = fibh->eoffset = (f_pos & ((dir->i_sb->s_blocksize - 1) >> 2)) << 2; in udf_find_entry()
164 if (inode_bmap(dir, f_pos >> (dir->i_sb->s_blocksize_bits - 2), in udf_find_entry()
167 offset >>= dir->i_sb->s_blocksize_bits; in udf_find_entry()
168 block = udf_get_lb_pblock(dir->i_sb, eloc, offset); in udf_find_entry()
169 if ((++offset << dir->i_sb->s_blocksize_bits) < elen) in udf_find_entry()
185 if (!(fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block))) in udf_find_entry()
229 if ( !UDF_QUERY_FLAG(dir->i_sb, UDF_FLAG_UNDELETE) ) in udf_find_entry()
235 if ( !UDF_QUERY_FLAG(dir->i_sb, UDF_FLAG_UNHIDE) ) in udf_find_entry()
242 if ((flen = udf_get_filename(dir->i_sb, nameptr, fname, lfi))) in udf_find_entry()
305 inode = udf_iget(dir->i_sb, lb); in udf_lookup()
318 inode = udf_iget(dir->i_sb, lelb_to_cpu(cfi.icb.extLocation)); in udf_lookup()
348 sb = dir->i_sb; in udf_add_entry()
390 fibh->soffset = fibh->eoffset = (f_pos & ((dir->i_sb->s_blocksize - 1) >> 2)) << 2; in udf_add_entry()
391 if (inode_bmap(dir, f_pos >> (dir->i_sb->s_blocksize_bits - 2), in udf_add_entry()
394 offset >>= dir->i_sb->s_blocksize_bits; in udf_add_entry()
395 block = udf_get_lb_pblock(dir->i_sb, eloc, offset); in udf_add_entry()
396 if ((++offset << dir->i_sb->s_blocksize_bits) < elen) in udf_add_entry()
406 if (!(fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block))) in udf_add_entry()
473 if ((flen = udf_get_filename(dir->i_sb, nameptr, fname, lfi)) && in udf_add_entry()
487 block = udf_get_lb_pblock(dir->i_sb, UDF_I_LOCATION(dir), 0); in udf_add_entry()
490 fibh->sbh = fibh->ebh = udf_tread(dir->i_sb, block); in udf_add_entry()
518 elen = dir->i_sb->s_blocksize; in udf_add_entry()
538 dir->i_sb->s_blocksize_bits); in udf_add_entry()
555 dir->i_sb->s_blocksize_bits); in udf_add_entry()
557 if (!(fibh->ebh = udf_bread(dir, f_pos >> (dir->i_sb->s_blocksize_bits - 2), 1, err))) in udf_add_entry()
570 dir->i_sb->s_blocksize_bits); in udf_add_entry()
619 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT)) in udf_delete_entry()
651 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_create()
689 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_mknod()
736 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_mkdir()
755 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_mkdir()
786 fibh.soffset = fibh.eoffset = (f_pos & ((dir->i_sb->s_blocksize - 1) >> 2)) << 2; in empty_dir()
787 if (inode_bmap(dir, f_pos >> (dir->i_sb->s_blocksize_bits - 2), in empty_dir()
790 offset >>= dir->i_sb->s_blocksize_bits; in empty_dir()
791 block = udf_get_lb_pblock(dir->i_sb, eloc, offset); in empty_dir()
792 if ((++offset << dir->i_sb->s_blocksize_bits) < elen) in empty_dir()
808 if (!(fibh.sbh = fibh.ebh = udf_tread(dir->i_sb, block))) in empty_dir()
850 if (udf_get_lb_pblock(dir->i_sb, lelb_to_cpu(cfi.icb.extLocation), 0) != inode->i_ino) in udf_rmdir()
860 udf_warning(inode->i_sb, "udf_rmdir", in udf_rmdir()
895 if (udf_get_lb_pblock(dir->i_sb, lelb_to_cpu(cfi.icb.extLocation), 0) != in udf_unlink()
953 block = udf_new_block(inode->i_sb, inode, in udf_symlink()
961 elen = inode->i_sb->s_blocksize; in udf_symlink()
967 block = udf_get_pblock(inode->i_sb, block, in udf_symlink()
969 bh = udf_tread(inode->i_sb, block); in udf_symlink()
971 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_symlink()
978 block = udf_get_lb_pblock(inode->i_sb, UDF_I_LOCATION(inode), 0); in udf_symlink()
979 bh = udf_tread(inode->i_sb, block); in udf_symlink()
983 eoffset = inode->i_sb->s_blocksize - udf_ext0_offset(inode); in udf_symlink()
1056 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_symlink()
1058 if (UDF_SB_LVIDBH(inode->i_sb)) in udf_symlink()
1062 lvhd = (struct logicalVolHeaderDesc *)(UDF_SB_LVID(inode->i_sb)->logicalVolContentsUse); in udf_symlink()
1069 mark_buffer_dirty(UDF_SB_LVIDBH(inode->i_sb)); in udf_symlink()
1109 cfi.icb.extLength = cpu_to_le32(inode->i_sb->s_blocksize); in udf_link()
1111 if (UDF_SB_LVIDBH(inode->i_sb)) in udf_link()
1115 lvhd = (struct logicalVolHeaderDesc *)(UDF_SB_LVID(inode->i_sb)->logicalVolContentsUse); in udf_link()
1122 mark_buffer_dirty(UDF_SB_LVIDBH(inode->i_sb)); in udf_link()
1161 if (!ofi || udf_get_lb_pblock(old_dir->i_sb, lelb_to_cpu(ocfi.icb.extLocation), 0) != in udf_rename()
1192 dir_fi = udf_get_fileident(dir_bh->b_data, old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1195 if (udf_get_lb_pblock(old_inode->i_sb, cpu_to_lelb(dir_fi->icb.extLocation), 0) != in udf_rename()