Re: struct buffer_head

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 9 Oct 2004 06:51:25 -0700 (PDT), prasanna wakhare
<prasannawakhare@xxxxxxxxx> wrote:

> The buffer_head structure in fs.h dont use list_head,
> but normal doubly linked list implementation,

Indeed. That happens in lots of places - and other times people
re-invent the wheel with simple macros that turn out to have subtle
gotchas which are fixed in the generic implementation.

> is there any reason behind this.

Historical. You'd have to change a lot of code in various places to
fix that, but there's only one such use in 2.6 after buffer_heads got
the black head treatment and were squished.

Jon.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux