Lines Matching refs:i_sb

82 	if (!(inode->i_sb->s_flags & MS_RDONLY))  in udf_put_inode()
175 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_file_adinicb()
183 block = udf_get_lb_pblock(inode->i_sb, UDF_I_LOCATION(inode), 0); in udf_expand_file_adinicb()
184 bh = udf_tread(inode->i_sb, block); in udf_expand_file_adinicb()
204 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_file_adinicb()
232 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_dir_adinicb()
241 *block = udf_new_block(inode->i_sb, inode, in udf_expand_dir_adinicb()
247 newblock = udf_get_pblock(inode->i_sb, *block, in udf_expand_dir_adinicb()
251 sbh = udf_tread(inode->i_sb, inode->i_ino); in udf_expand_dir_adinicb()
254 dbh = udf_tgetblk(inode->i_sb, newblock); in udf_expand_dir_adinicb()
258 memset(dbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_expand_dir_adinicb()
263 sfibh.soffset = sfibh.eoffset = (f_pos & ((inode->i_sb->s_blocksize - 1) >> 2)) << 2; in udf_expand_dir_adinicb()
294 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) in udf_expand_dir_adinicb()
367 udf_warning(inode->i_sb, "udf_get_block", "block < 0"); in udf_get_block()
382 bh = sb_getblk(inode->i_sb, dummy.b_blocknr); in udf_getblk()
386 memset(bh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_getblk()
413 b_off = (uint64_t)block << inode->i_sb->s_blocksize_bits; in inode_getblk()
452 ((elen + inode->i_sb->s_blocksize - 1) >> in inode_getblk()
453 inode->i_sb->s_blocksize_bits); in inode_getblk()
459 offset = b_off >> inode->i_sb->s_blocksize_bits; in inode_getblk()
466 if (elen & (inode->i_sb->s_blocksize - 1)) in inode_getblk()
469 ((elen + inode->i_sb->s_blocksize - 1) & in inode_getblk()
470 ~(inode->i_sb->s_blocksize - 1)); in inode_getblk()
476 newblock = udf_get_lb_pblock(inode->i_sb, eloc, offset); in inode_getblk()
484 if (laarr[c].extLength & (inode->i_sb->s_blocksize - 1)) in inode_getblk()
489 inode->i_sb->s_blocksize - 1) & in inode_getblk()
490 ~(inode->i_sb->s_blocksize - 1)); in inode_getblk()
492 (UDF_I_LENEXTENTS(inode) + inode->i_sb->s_blocksize - 1) & in inode_getblk()
493 ~(inode->i_sb->s_blocksize - 1); in inode_getblk()
497 ((offset + 1) << inode->i_sb->s_blocksize_bits); in inode_getblk()
550 if (!(newblocknum = udf_new_block(inode->i_sb, inode, in inode_getblk()
557 UDF_I_LENEXTENTS(inode) += inode->i_sb->s_blocksize; in inode_getblk()
580 if (!(newblock = udf_get_pblock(inode->i_sb, newblocknum, in inode_getblk()
608 inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; in udf_split_extents()
628 udf_free_blocks(inode->i_sb, inode, laarr[curr].extLocation, 0, offset); in udf_split_extents()
630 (offset << inode->i_sb->s_blocksize_bits); in udf_split_extents()
636 (offset << inode->i_sb->s_blocksize_bits); in udf_split_extents()
647 inode->i_sb->s_blocksize; in udf_split_extents()
655 ((blen - (offset + 1)) << inode->i_sb->s_blocksize_bits); in udf_split_extents()
680 inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits); in udf_prealloc_extents()
695 inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits); in udf_prealloc_extents()
704 inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits); in udf_prealloc_extents()
705 int numalloc = udf_prealloc_blocks(inode->i_sb, inode, in udf_prealloc_extents()
714 (numalloc << inode->i_sb->s_blocksize_bits); in udf_prealloc_extents()
724 (numalloc << inode->i_sb->s_blocksize_bits); in udf_prealloc_extents()
731 inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; in udf_prealloc_extents()
736 (numalloc << inode->i_sb->s_blocksize_bits); in udf_prealloc_extents()
749 UDF_I_LENEXTENTS(inode) += numalloc << inode->i_sb->s_blocksize_bits; in udf_prealloc_extents()
766 inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits))) in udf_merge_extents()
770 inode->i_sb->s_blocksize - 1) & ~UDF_EXTENT_LENGTH_MASK) in udf_merge_extents()
774 UDF_EXTENT_LENGTH_MASK) & ~(inode->i_sb->s_blocksize-1); in udf_merge_extents()
776 inode->i_sb->s_blocksize; in udf_merge_extents()
780 inode->i_sb->s_blocksize_bits); in udf_merge_extents()
786 inode->i_sb->s_blocksize - 1) & ~(inode->i_sb->s_blocksize-1)); in udf_merge_extents()
868 if (inode->i_sb->s_blocksize < (udf_file_entry_alloc_offset(inode) + in udf_truncate()
882 offset = (inode->i_size & (inode->i_sb->s_blocksize - 1)) + in udf_truncate()
885 if ((bh = udf_tread(inode->i_sb, in udf_truncate()
886 udf_get_lb_pblock(inode->i_sb, UDF_I_LOCATION(inode), 0)))) in udf_truncate()
888 memset(bh->b_data + offset, 0x00, inode->i_sb->s_blocksize - offset); in udf_truncate()
956 bh = udf_read_ptagged(inode->i_sb, UDF_I_LOCATION(inode), 0, &ident); in __udf_read_inode()
983 ibh = udf_read_ptagged(inode->i_sb, UDF_I_LOCATION(inode), 1, &ident); in __udf_read_inode()
994 (nbh = udf_read_ptagged(inode->i_sb, loc, 0, &ident))) in __udf_read_inode()
1064 if ( inode->i_uid == -1 ) inode->i_uid = UDF_SB(inode->i_sb)->s_uid; in udf_fill_inode()
1067 if ( inode->i_gid == -1 ) inode->i_gid = UDF_SB(inode->i_sb)->s_gid; in udf_fill_inode()
1077 inode->i_mode &= ~UDF_SB(inode->i_sb)->s_umask; in udf_fill_inode()
1085 (inode->i_sb->s_blocksize_bits - 9); in udf_fill_inode()
1094 inode->i_atime = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1105 inode->i_mtime = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1117 inode->i_ctime = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1130 (inode->i_sb->s_blocksize_bits - 9); in udf_fill_inode()
1139 inode->i_atime = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1150 inode->i_mtime = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1162 UDF_I_CRTIME(inode) = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1174 inode->i_ctime = UDF_SB_RECORDTIME(inode->i_sb); in udf_fill_inode()
1320 bh = udf_tread(inode->i_sb, in udf_update_inode()
1321 udf_get_lb_pblock(inode->i_sb, UDF_I_LOCATION(inode), 0)); in udf_update_inode()
1337 UDF_I_LENALLOC(inode), 0x0, inode->i_sb->s_blocksize - in udf_update_inode()
1364 if (inode->i_uid != UDF_SB(inode->i_sb)->s_uid) in udf_update_inode()
1369 if (inode->i_gid != UDF_SB(inode->i_sb)->s_gid) in udf_update_inode()
1425 (inode->i_blocks + (1 << (inode->i_sb->s_blocksize_bits - 9)) - 1) >> in udf_update_inode()
1426 (inode->i_sb->s_blocksize_bits - 9)); in udf_update_inode()
1448 (inode->i_blocks + (1 << (inode->i_sb->s_blocksize_bits - 9)) - 1) >> in udf_update_inode()
1449 (inode->i_sb->s_blocksize_bits - 9)); in udf_update_inode()
1524 if (UDF_SB_UDFREV(inode->i_sb) >= 0x0200) in udf_update_inode()
1528 fe->descTag.tagSerialNum = cpu_to_le16(UDF_SB_SERIALNUM(inode->i_sb)); in udf_update_inode()
1629 if (!(*bh = udf_tread(inode->i_sb, in udf_add_aext()
1630 udf_get_lb_pblock(inode->i_sb, *bloc, 0)))) in udf_add_aext()
1633 udf_get_lb_pblock(inode->i_sb, *bloc, 0)); in udf_add_aext()
1645 if (*extoffset + (2 * adsize) > inode->i_sb->s_blocksize) in udf_add_aext()
1652 if (!(bloc->logicalBlockNum = udf_new_block(inode->i_sb, inode, in udf_add_aext()
1657 if (!(nbh = udf_tgetblk(inode->i_sb, udf_get_lb_pblock(inode->i_sb, in udf_add_aext()
1663 memset(nbh->b_data, 0x00, inode->i_sb->s_blocksize); in udf_add_aext()
1669 if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT)) in udf_add_aext()
1671 if (*extoffset + adsize > inode->i_sb->s_blocksize) in udf_add_aext()
1699 if (UDF_SB_UDFREV(inode->i_sb) >= 0x0200) in udf_add_aext()
1712 inode->i_sb->s_blocksize); in udf_add_aext()
1721 inode->i_sb->s_blocksize); in udf_add_aext()
1727 if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || UDF_SB_UDFREV(inode->i_sb) >= 0x0201) in udf_add_aext()
1748 if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || UDF_SB_UDFREV(inode->i_sb) >= 0x0201) in udf_add_aext()
1767 if (!(bh = udf_tread(inode->i_sb, in udf_write_aext()
1768 udf_get_lb_pblock(inode->i_sb, bloc, 0)))) in udf_write_aext()
1771 udf_get_lb_pblock(inode->i_sb, bloc, 0)); in udf_write_aext()
1806 if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || UDF_SB_UDFREV(inode->i_sb) >= 0x0201) in udf_write_aext()
1835 if (!(*bh = udf_tread(inode->i_sb, in udf_next_aext()
1836 udf_get_lb_pblock(inode->i_sb, *bloc, 0)))) in udf_next_aext()
1839 udf_get_lb_pblock(inode->i_sb, *bloc, 0)); in udf_next_aext()
1957 if (!(*bh = udf_tread(inode->i_sb, in udf_current_aext()
1958 udf_get_lb_pblock(inode->i_sb, *bloc, 0)))) in udf_current_aext()
1961 udf_get_lb_pblock(inode->i_sb, *bloc, 0)); in udf_current_aext()
2038 if (!(bh = udf_tread(inode->i_sb, in udf_insert_aext()
2039 udf_get_lb_pblock(inode->i_sb, bloc, 0)))) in udf_insert_aext()
2042 udf_get_lb_pblock(inode->i_sb, bloc, 0)); in udf_insert_aext()
2072 if (!(nbh = udf_tread(inode->i_sb, in udf_delete_aext()
2073 udf_get_lb_pblock(inode->i_sb, nbloc, 0)))) in udf_delete_aext()
2076 udf_get_lb_pblock(inode->i_sb, nbloc, 0)); in udf_delete_aext()
2115 udf_free_blocks(inode->i_sb, inode, nbloc, 0, 1); in udf_delete_aext()
2128 if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || UDF_SB_UDFREV(inode->i_sb) >= 0x0201) in udf_delete_aext()
2148 if (!UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_STRICT) || UDF_SB_UDFREV(inode->i_sb) >= 0x0201) in udf_delete_aext()
2164 uint64_t lbcount = 0, bcount = (uint64_t)block << inode->i_sb->s_blocksize_bits; in inode_bmap()
2208 ret = udf_get_lb_pblock(inode->i_sb, eloc, offset >> inode->i_sb->s_blocksize_bits); in udf_block_map()
2217 if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_VARCONV)) in udf_block_map()