f2fs: avoid to allocate when inline_data was written
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 18 Oct 2014 03:33:55 +0000 (20:33 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Nov 2014 00:07:30 +0000 (16:07 -0800)
commit9ba69cf9877384baebd16c6fb51ceccd13677b37
treec88d71c4b2e41c1519851c54f52b96c523fa6a4c
parenta78186ebe516b6d7df43636603f0998803ab356a
f2fs: avoid to allocate when inline_data was written

The sceanrio is like this.
inline_data   i_size     page                 write_begin/vm_page_mkwrite
  X             30       dirty_page
  X             30                            write to #4096 position
  X             30       get_dnode_of_data    wait for get_dnode_of_data
  O             30       write inline_data
  O             30                            get_dnode_of_data
  O             30                            reserve data block
..

In this case, we have #0 = NEW_ADDR and inline_data as well.
We should not allow this condition for further access.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/file.c
This page took 0.025688 seconds and 5 git commands to generate.