안녕하세요
다음은 hash 리스트를 추가하는 소스입니다,
http://lxr.linux.no/source/fs/buffer.c?v=2.4.18#L481
여기서 소스분석을 해보려니 이해가 되지 않는 부분이 있어서 질문드립니다,
========================================
#define hash(dev, block) hash_table[(_hashfn(HASH(dev),block & bh_hash_mask)]
static inline void __insert_into_hash_list(struct buffer_head *bh)
struct buffer_head **head = &hash(bh->b_dev, bh->b_blocknr);
struct buffer_head *next = *head;
*head = bh;
bh->b_pprev = head;