* bread problem
[not found] <9ff7a3bc0908132152g694a2009r9007aed59428f892@mail.gmail.com>
@ 2009-08-14 5:04 ` Joel Fernandes
0 siblings, 0 replies; only message in thread
From: Joel Fernandes @ 2009-08-14 5:04 UTC (permalink / raw)
To: linux-fsdevel
Hi,
I'm trying to read a block from disk by block_nr using __bread before
the block has even been written to disk.
The problem in doing this is the block is cached (junk data) and
future sb_bread's return the buffer head from this cache, and not one
that represent the actual data after this data has been written to
disk.
1. block contains junk
2. bread -> cached junk
3. actual data written to disk through the address space object hosted
by some other inode
4. bread -> still returns bh with junk
Is there any way to force a read from disk while doing the second
bread, or to instruct the kernel that the block that's in the cache
has to be re-read?
Thanks,
Joel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-14 5:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9ff7a3bc0908132152g694a2009r9007aed59428f892@mail.gmail.com>
2009-08-14 5:04 ` bread problem Joel Fernandes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).