Home
last modified time | relevance | path

Searched hist:dc91de78e5e1d44238b5dd2b57d2e8e67cbc00a1 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Ddata.cdiff dc91de78e5e1d44238b5dd2b57d2e8e67cbc00a1 Fri Jan 13 15:12:29 CST 2017 Jaegeuk Kim <jaegeuk@kernel.org> f2fs: do not preallocate blocks which has wrong buffer

Sheng Yong reports needless preallocation if write(small_buffer, large_size)
is called.

In that case, f2fs preallocates large_size, but vfs returns early due to
small_buffer size. Let's detect it before preallocation phase in f2fs.

Reported-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
H A Dfile.cdiff dc91de78e5e1d44238b5dd2b57d2e8e67cbc00a1 Fri Jan 13 15:12:29 CST 2017 Jaegeuk Kim <jaegeuk@kernel.org> f2fs: do not preallocate blocks which has wrong buffer

Sheng Yong reports needless preallocation if write(small_buffer, large_size)
is called.

In that case, f2fs preallocates large_size, but vfs returns early due to
small_buffer size. Let's detect it before preallocation phase in f2fs.

Reported-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
H A Df2fs.hdiff dc91de78e5e1d44238b5dd2b57d2e8e67cbc00a1 Fri Jan 13 15:12:29 CST 2017 Jaegeuk Kim <jaegeuk@kernel.org> f2fs: do not preallocate blocks which has wrong buffer

Sheng Yong reports needless preallocation if write(small_buffer, large_size)
is called.

In that case, f2fs preallocates large_size, but vfs returns early due to
small_buffer size. Let's detect it before preallocation phase in f2fs.

Reported-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>