nilfs2: mark buffer heads as delayed until the data is written to disk
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 26 Dec 2010 07:28:28 +0000 (16:28 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 10 Jan 2011 05:05:45 +0000 (14:05 +0900)
commit27e6c7a3ce29ae5fa5bec4ed5917f8508bfac120
tree958d82757bf23e426c7bc1035f76d986f09be535
parente828949e5b42bfd234ee537cdb7c5e3a577958a3
nilfs2: mark buffer heads as delayed until the data is written to disk

Nilfs does not allocate new blocks on disk until they are actually
written to.  To implement fiemap, we need to deal with such blocks.

To allow successive fiemap patch to distinguish mapped but unallocated
regions, this marks buffer heads of those new blocks as delayed and
clears the flag after the blocks are written to disk.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/inode.c
fs/nilfs2/segment.c