Lines Matching refs:bh_pos

568 	s64 bh_pos, vcn_len, end, initialized_size;  in ntfs_prepare_pages_for_non_resident_write()  local
635 bh_pos = (s64)page->index << PAGE_SHIFT; in ntfs_prepare_pages_for_non_resident_write()
645 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write()
646 bh_cpos = bh_pos >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write()
647 bh_cofs = bh_pos & vol->cluster_size_mask; in ntfs_prepare_pages_for_non_resident_write()
668 if ((bh_pos < pos && bh_end > pos) || in ntfs_prepare_pages_for_non_resident_write()
669 (bh_pos < end && bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write()
678 if (bh_pos < initialized_size) { in ntfs_prepare_pages_for_non_resident_write()
723 if (bh_end <= pos || bh_pos >= end) in ntfs_prepare_pages_for_non_resident_write()
738 if (!buffer_uptodate(bh) && bh_pos < end && in ntfs_prepare_pages_for_non_resident_write()
740 (bh_pos < pos || in ntfs_prepare_pages_for_non_resident_write()
753 if (bh_pos < initialized_size) { in ntfs_prepare_pages_for_non_resident_write()
774 if (bh_end <= pos || bh_pos >= end) { in ntfs_prepare_pages_for_non_resident_write()
785 (bh_pos < pos || bh_end > end)) { in ntfs_prepare_pages_for_non_resident_write()
790 if (bh_pos < pos) { in ntfs_prepare_pages_for_non_resident_write()
791 pofs = bh_pos & ~PAGE_MASK; in ntfs_prepare_pages_for_non_resident_write()
792 memset(kaddr + pofs, 0, pos - bh_pos); in ntfs_prepare_pages_for_non_resident_write()
811 if (bh_pos > initialized_size) { in ntfs_prepare_pages_for_non_resident_write()
909 (unsigned)bh_pos & in ntfs_prepare_pages_for_non_resident_write()
1167 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_prepare_pages_for_non_resident_write()
1189 bh_pos = ((s64)page->index << PAGE_SHIFT) + in ntfs_prepare_pages_for_non_resident_write()
1195 if (unlikely(bh_pos + blocksize > initialized_size)) { in ntfs_prepare_pages_for_non_resident_write()
1198 if (likely(bh_pos < initialized_size)) in ntfs_prepare_pages_for_non_resident_write()
1199 ofs = initialized_size - bh_pos; in ntfs_prepare_pages_for_non_resident_write()
1398 s64 bh_pos; in ntfs_commit_pages_after_non_resident_write() local
1403 bh_pos = (s64)page->index << PAGE_SHIFT; in ntfs_commit_pages_after_non_resident_write()
1409 bh_end = bh_pos + blocksize; in ntfs_commit_pages_after_non_resident_write()
1410 if (bh_end <= pos || bh_pos >= end) { in ntfs_commit_pages_after_non_resident_write()
1417 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_commit_pages_after_non_resident_write()