lkml.org 
[lkml]   [2000]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: i_mapping and i_data question
On Fri, 25 Feb 2000, Chris Mason wrote:
> Do you want to make sure get_block is called, or do you want to make sure
> the data in the pages isn't used anymore? If the data in the page is
> still valid, but the block locations on disk have changed, I think you
> should be able to use something similar to the unmap_buffer() call in
> fs/buffer.c.
>
> In reiserfs, I'm using this to force a call to get_block for writing to
> that offset, but allowing the page cache to keep the data for reads.

suppose for simplicity that I don't care if the valid data in page cache
gets invalidated (in 0th approximation). Can't I just use
invalidate_inode_pages(inode) to force get_block() called?

Regards,
Tigran.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.069 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site