Lines Matching refs:sbh
100 void nilfs_copy_buffer(struct buffer_head *dbh, struct buffer_head *sbh) in nilfs_copy_buffer() argument
104 struct folio *sfolio = sbh->b_folio, *dfolio = dbh->b_folio; in nilfs_copy_buffer()
107 saddr = kmap_local_folio(sfolio, bh_offset(sbh)); in nilfs_copy_buffer()
109 memcpy(daddr, saddr, sbh->b_size); in nilfs_copy_buffer()
113 dbh->b_state = sbh->b_state & NILFS_BUFFER_INHERENT_BITS; in nilfs_copy_buffer()
114 dbh->b_blocknr = sbh->b_blocknr; in nilfs_copy_buffer()
115 dbh->b_bdev = sbh->b_bdev; in nilfs_copy_buffer()
118 bits = sbh->b_state & (BIT(BH_Uptodate) | BIT(BH_Mapped)); in nilfs_copy_buffer()
200 struct buffer_head *dbh, *dbufs, *sbh; in nilfs_copy_folio() local
205 sbh = folio_buffers(src); in nilfs_copy_folio()
208 dbh = create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_folio()
215 lock_buffer(sbh); in nilfs_copy_folio()
217 dbh->b_state = sbh->b_state & mask; in nilfs_copy_folio()
218 dbh->b_blocknr = sbh->b_blocknr; in nilfs_copy_folio()
219 dbh->b_bdev = sbh->b_bdev; in nilfs_copy_folio()
220 sbh = sbh->b_this_page; in nilfs_copy_folio()
236 unlock_buffer(sbh); in nilfs_copy_folio()
238 sbh = sbh->b_this_page; in nilfs_copy_folio()