Lines Matching refs:vol

91 		ntfs_error(ni->vol->sb, "Buffer I/O error, logical block "  in ntfs_end_buffer_async_read()
172 ntfs_volume *vol; in ntfs_read_block() local
183 vol = ni->vol; in ntfs_read_block()
188 blocksize = vol->sb->s_blocksize; in ntfs_read_block()
189 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_read_block()
236 bh->b_bdev = vol->sb->s_bdev; in ntfs_read_block()
243 vol->cluster_size_bits; in ntfs_read_block()
245 vol->cluster_size_mask; in ntfs_read_block()
261 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
303 ntfs_error(vol->sb, "Failed to read from inode 0x%lx, " in ntfs_read_block()
539 ntfs_volume *vol; in ntfs_write_block() local
550 vol = ni->vol; in ntfs_write_block()
557 blocksize = vol->sb->s_blocksize; in ntfs_write_block()
558 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_write_block()
564 ntfs_warning(vol->sb, "Error allocating page " in ntfs_write_block()
681 ntfs_error(vol->sb, "Writing beyond initialized size " in ntfs_write_block()
696 bh->b_bdev = vol->sb->s_bdev; in ntfs_write_block()
700 vcn_ofs = vcn & vol->cluster_size_mask; in ntfs_write_block()
701 vcn >>= vol->cluster_size_bits; in ntfs_write_block()
717 bh->b_blocknr = ((lcn << vol->cluster_size_bits) + in ntfs_write_block()
748 ntfs_error(vol->sb, "Writing into sparse regions is " in ntfs_write_block()
784 ntfs_error(vol->sb, "Failed to write to inode 0x%lx, " in ntfs_write_block()
839 ntfs_warning(vol->sb, "Error allocating memory. " in ntfs_write_block()
905 ntfs_volume *vol = ni->vol; in ntfs_write_mst_block() local
933 bh_size = vol->sb->s_blocksize; in ntfs_write_mst_block()
934 bh_size_bits = vol->sb->s_blocksize_bits; in ntfs_write_mst_block()
1006 bh->b_bdev = vol->sb->s_bdev; in ntfs_write_mst_block()
1009 vcn_ofs = vcn & vol->cluster_size_mask; in ntfs_write_mst_block()
1010 vcn >>= vol->cluster_size_bits; in ntfs_write_mst_block()
1027 vol->cluster_size_bits) + in ntfs_write_mst_block()
1059 ntfs_error(vol->sb, "Cannot write ntfs record " in ntfs_write_mst_block()
1067 vol->mft_record_size_bits, in ntfs_write_mst_block()
1123 if (!ntfs_may_write_mft_record(vol, mft_no, in ntfs_write_mst_block()
1154 ntfs_error(vol->sb, "Failed to apply mst fixups " in ntfs_write_mst_block()
1201 ntfs_error(vol->sb, "I/O error while writing ntfs " in ntfs_write_mst_block()
1237 if (mft_no < vol->mftmirr_size) in ntfs_write_mst_block()
1238 ntfs_sync_mft_mirror(vol, mft_no, in ntfs_write_mst_block()
1288 NVolSetErrors(vol); in ntfs_write_mst_block()
1511 NVolSetErrors(ni->vol); in ntfs_writepage()
1553 ntfs_volume *vol = ni->vol; in ntfs_bmap() local
1560 ntfs_error(vol->sb, "BMAP does not make sense for %s " in ntfs_bmap()
1570 blocksize = vol->sb->s_blocksize; in ntfs_bmap()
1571 blocksize_bits = vol->sb->s_blocksize_bits; in ntfs_bmap()
1584 cluster_size_shift = vol->cluster_size_bits; in ntfs_bmap()
1606 ntfs_error(vol->sb, "Not enough memory to complete " in ntfs_bmap()
1611 ntfs_error(vol->sb, "Failed to complete mapping for " in ntfs_bmap()
1628 delta = ofs & vol->cluster_size_mask; in ntfs_bmap()
1634 ntfs_error(vol->sb, "Physical block 0x%llx is too " in ntfs_bmap()