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

Re: Re: Re: Re: Access content of file via inodes



Hi,

>
>> 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)"
>

Then just say mark_buffer_dirty(bh).
"sync_dirty_buffer()" is to sync dirty buffer to disk instantly, which otherwise, would be done by bdflush deamon at regular intervels.

Nitin


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