]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c5186a4c6ca9c7e2621157d74f86fa07724308b
tree958d82757bf23e426c7bc1035f76d986f09be535
parentd6813f0a35d06ea48def9811189d8dd75dbfca1b
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