[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: Re: Access content of file via inodes
On Apr 5, 2005 4:42 PM, nitin ahuja <nitin2ahuja@xxxxxxxxxxxxx> wrote:
> Hi,
>
> >
> > This may sound silly, but I am trying to find a way to > commit these
> > changes. Any idea how? I believe this is why the data > is still located
> > in the hard disk device somehow, afterall, I am
> > modifying b_data that belongs to buffer_head.
> >
>
> To commit a buffer's data to disk try this:
>
> void commit_to_disk (struct buffer_head * bh)
> {
> mark_buffer_dirty(bh);
> sync_dirty_buffer(bh);
> }
I am using 2.4.29 atm, and I am wondering if "sync_dirty_buffer" is the
equivalent of "fs/buffer.c:int sync_buffers(kdev_t dev, int wait)"
Kathy
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/