[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: Re: Access content of file via inodes
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.
>
Try this:
void commit_to_disk (struct buffer_head * bh)
{
mark_buffer_dirty(bh);
sync_dirty_buffer(bh);
}
Nitin
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/