• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ntfs/

Lines Matching refs:bh

44  * @bh:		buffer head on which io is completed
45 * @uptodate: whether @bh is now uptodate or not
58 static void ntfs_end_buffer_async_read(struct buffer_head *bh, int uptodate)
67 page = bh->b_page;
75 set_buffer_uptodate(bh);
78 bh_offset(bh);
88 if (unlikely(file_ofs + bh->b_size > init_size)) {
95 zero_user_page(page, bh_offset(bh) + ofs,
96 bh->b_size - ofs, KM_BIO_SRC_IRQ);
100 clear_buffer_uptodate(bh);
103 "0x%llx.", (unsigned long long)bh->b_blocknr);
108 clear_buffer_async_read(bh);
109 unlock_buffer(bh);
110 tmp = bh;
121 } while (tmp != bh);
190 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE];
214 bh = head = page_buffers(page);
215 BUG_ON(!bh);
246 if (unlikely(buffer_uptodate(bh)))
248 if (unlikely(buffer_mapped(bh))) {
249 arr[nr++] = bh;
252 bh->b_bdev = vol->sb->s_bdev;
277 bh->b_blocknr = ((lcn << vol->cluster_size_bits)
279 set_buffer_mapped(bh);
282 arr[nr++] = bh;
317 bh->b_blocknr = -1;
334 bh->b_blocknr = -1UL;
335 clear_buffer_mapped(bh);
339 set_buffer_uptodate(bh);
340 } while (i++, iblock++, (bh = bh->b_this_page) != head);
549 struct buffer_head *bh, *head;
584 bh = head = page_buffers(page);
585 BUG_ON(!bh);
624 clear_buffer_dirty(bh);
625 set_buffer_uptodate(bh);
630 if (!buffer_dirty(bh))
679 if (buffer_mapped(bh))
683 bh->b_bdev = vol->sb->s_bdev;
704 bh->b_blocknr = ((lcn << vol->cluster_size_bits) +
706 set_buffer_mapped(bh);
716 bpos = (unsigned long *)(kaddr + bh_offset(bh));
728 bh->b_blocknr = -1;
729 clear_buffer_dirty(bh);
733 // clear_buffer_new(bh);
734 // unmap_underlying_metadata(bh->b_bdev, bh->b_blocknr);
760 bh->b_blocknr = -1;
761 clear_buffer_dirty(bh);
762 zero_user_page(page, bh_offset(bh), blocksize,
764 set_buffer_uptodate(bh);
771 bh->b_blocknr = -1;
780 } while (block++, (bh = bh->b_this_page) != head);
786 /* For the error case, need to reset bh to the beginning. */
787 bh = head;
793 if (!buffer_uptodate(bh)) {
795 bh = head;
798 } while ((bh = bh->b_this_page) != head);
805 if (buffer_mapped(bh) && buffer_dirty(bh)) {
806 lock_buffer(bh);
807 if (test_clear_buffer_dirty(bh)) {
808 BUG_ON(!buffer_uptodate(bh));
809 mark_buffer_async_write(bh);
811 unlock_buffer(bh);
818 clear_buffer_dirty(bh);
820 } while ((bh = bh->b_this_page) != head);
846 struct buffer_head *next = bh->b_this_page;
847 if (buffer_async_write(bh)) {
848 submit_bh(WRITE, bh);
851 bh = next;
852 } while (bh != head);
897 struct buffer_head *bh, *head, *tbh, *rec_start_bh;
928 bh = head = page_buffers(page);
929 BUG_ON(!bh);
952 clear_buffer_dirty(bh);
953 set_buffer_uptodate(bh);
965 clear_buffer_dirty(bh);
974 clear_buffer_dirty(bh);
977 if (!buffer_dirty(bh)) {
983 rec_start_bh = bh;
986 if (unlikely(!buffer_mapped(bh))) {
991 bh->b_bdev = vol->sb->s_bdev;
1011 bh->b_blocknr = ((lcn <<
1014 set_buffer_mapped(bh);
1043 bh->b_blocknr = -1;
1061 if (rec_start_bh != bh) {
1071 bh);
1077 BUG_ON(!buffer_uptodate(bh));
1079 bhs[nr_bhs++] = bh;
1080 } while (block++, (bh = bh->b_this_page) != head);
1563 struct buffer_head *bh, *head, *buffers_to_free = NULL;
1572 bh = head = alloc_page_buffers(page, bh_size, 1);
1578 set_buffer_uptodate(bh);
1579 tail = bh;
1580 bh = bh->b_this_page;
1581 } while (bh);
1585 buffers_to_free = bh;
1587 bh = head = page_buffers(page);
1588 BUG_ON(!bh);
1590 bh_ofs = bh_offset(bh);
1595 set_buffer_dirty(bh);
1596 } while ((bh = bh->b_this_page) != head);
1601 bh = buffers_to_free->b_this_page;
1603 buffers_to_free = bh;