Lines Matching refs:sbh
129 void nilfs_copy_buffer(struct buffer_head *dbh, struct buffer_head *sbh) in nilfs_copy_buffer() argument
133 struct page *spage = sbh->b_page, *dpage = dbh->b_page; in nilfs_copy_buffer()
138 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer()
142 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer()
143 dbh->b_blocknr = sbh->b_blocknr; in nilfs_copy_buffer()
144 dbh->b_bdev = sbh->b_bdev; in nilfs_copy_buffer()
147 bits = sbh->b_state & ((1UL << BH_Uptodate) | (1UL << BH_Mapped)); in nilfs_copy_buffer()
281 struct buffer_head *dbh, *dbufs, *sbh, *sbufs; in nilfs_copy_page() local
286 sbh = sbufs = page_buffers(src); in nilfs_copy_page()
288 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page()
295 lock_buffer(sbh); in nilfs_copy_page()
297 dbh->b_state = sbh->b_state & mask; in nilfs_copy_page()
298 dbh->b_blocknr = sbh->b_blocknr; in nilfs_copy_page()
299 dbh->b_bdev = sbh->b_bdev; in nilfs_copy_page()
300 sbh = sbh->b_this_page; in nilfs_copy_page()
316 unlock_buffer(sbh); in nilfs_copy_page()
318 sbh = sbh->b_this_page; in nilfs_copy_page()