How to clone buffer_head structure for different cpu cores?
I have a buffer_head object (struct buffer_head) in my driver code. I want to take a copy of this structure object which is independent of address space. In other words how to create per cpu buffer_head structure objects.
struct buffer_head *bh1, *bh2;
I have some data in bh1 object. I want a copy of this data in bh2 also. This copy doesn´t mean that bh2 is another reference for bh1. It should be totally independent of bh1 in terms of memory allocation.
Please give me your suggestions...