Lines Matching refs:sbh
99 void nilfs_copy_buffer(struct buffer_head *dbh, struct buffer_head *sbh) in nilfs_copy_buffer() argument
103 struct page *spage = sbh->b_page, *dpage = dbh->b_page; in nilfs_copy_buffer()
108 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer()
112 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer()
113 dbh->b_blocknr = sbh->b_blocknr; in nilfs_copy_buffer()
114 dbh->b_bdev = sbh->b_bdev; in nilfs_copy_buffer()
117 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer()
198 struct buffer_head *dbh, *dbufs, *sbh; in nilfs_copy_page() local
203 sbh = page_buffers(src); in nilfs_copy_page()
205 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page()
212 lock_buffer(sbh); in nilfs_copy_page()
214 dbh->b_state = sbh->b_state & mask; in nilfs_copy_page()
215 dbh->b_blocknr = sbh->b_blocknr; in nilfs_copy_page()
216 dbh->b_bdev = sbh->b_bdev; in nilfs_copy_page()
217 sbh = sbh->b_this_page; in nilfs_copy_page()
233 unlock_buffer(sbh); in nilfs_copy_page()
235 sbh = sbh->b_this_page; in nilfs_copy_page()