[pso] [tema3]put_super

Catalin Morosan cercetasu2003 at yahoo.com
Mon May 7 21:07:58 EEST 2007


Pai e vorba de sb_bh, adica de bh-ul superblockului si trebuie cu sb_bread... Dar am putut sa il citesc si cu __bread dar apare aceeasi problema.
Nu pot face eu cumva flush manual? sau ...nu stiu :)

----- Original Message ----
From: Octavian Purdila <tavi at cs.pub.ro>
To: pso at cursuri.cs.pub.ro
Sent: Monday, May 7, 2007 8:55:34 PM
Subject: Re: [pso] [tema3]put_super

On Monday 07 May 2007 20:42, Catalin Morosan wrote:
> Am mai analizat problema si se pare ca mie nu-mi trece testul din metoda
> mark_buffer_dirty().
>
> void fastcall mark_buffer_dirty(struct buffer_head *bh)
> {
>          if (!buffer_dirty(bh) && !test_set_buffer_dirty(bh))
>          __set_page_dirty_nobuffers(bh->b_page);
> }
>
> In primul rand, ce as putea face sa fac sa treaca testul de mai sus, si
> apoi, 
 
Daca nu iti trece testul inseamna ca bufferul e deja dirty. Daca nu se face 
flush la umount, inseamna ca bh-ul respectiv nu e asociat cu filesystemul. Il 
citesti cumva cu __brelse? Daca da, atunci trebuie sa il citesti cu sb_bread.

> de ce nu am acces la acele 2 metode buffer_dirty() si 
> test_set_buffer_dirty()? Nu le gasesc nicaieri in surse.

http://cs.pub.ro/~pso/lxr/source/include/linux/buffer_head.h?v=linux-2.6.18#073

http://cs.pub.ro/~pso/lxr/source/include/linux/buffer_head.h?v=linux-2.6.18#092
_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070507/1a8abd03/attachment-0001.html


More information about the pso mailing list