Re: b_dev vs. b_rdev confusion

2001-06-19 Thread Andries . Brouwer
> how do the inode->i_dev, i_rdev fit into this? These are what you see with stat(2). i_dev gives the device the file is on i_rdev is usually undefined, but for device special files it gives the real device. > Is there a set rule on when/where one should use a buffer head's > b_dev and when/wher

Re: b_dev vs. b_rdev confusion

2001-06-19 Thread Tim Pepper
On Tue, 19 Jun 2001 [EMAIL PROTECTED] wrote: > All of the md code looks like it copies the buffer head, setting > b_dev=b_rdev="real device" in the new bh and leaving b_dev==b_rdev="logical > device" in the original bh. I'm assuming they do this for a reason, but > it would be nice from a perfor

b_dev vs. b_rdev confusion

2001-06-19 Thread tpepper
These are probably dumb questions but I haven't been able to find definitive answers... Is there a set rule on when/where one should use a buffer head's b_dev and when/where one should use b_rdev? I'm been tracing through the kernel source quite a bit and it seems like above ll_rw_blk.c's submit