Re: [f2fs-dev] [PATCH] f2fs: Fix deadlock in f2fs_gc() context during atomic files handling

2019-11-22 Thread Jaegeuk Kim
On 11/13, Sahitya Tummala wrote: > The FS got stuck in the below stack when the storage is almost > full/dirty condition (when FG_GC is being done). > > schedule_timeout > io_schedule_timeout > congestion_wait > f2fs_drop_inmem_pages_all > f2fs_gc > f2fs_balance_fs > __write_node_page >

[f2fs-dev] [PATCH 1/2] f2fs: expose main_blkaddr in sysfs

2019-11-22 Thread Jaegeuk Kim
Expose in /sys/fs/f2fs//main_blkaddr the block address where the main area starts. This allows user mode programs to determine: - That pinned files that are made exclusively of fully allocated 2MB segments will never be unpinned by the file system. - Where the main area starts. This is

[f2fs-dev] [PATCH 2/2] f2fs: stop GC when the victim becomes fully valid

2019-11-22 Thread Jaegeuk Kim
We must stop GC, once the segment becomes fully valid. Otherwise, it can produce another dirty segments by moving valid blocks in the segment partially. Ramon hit no free segment panic sometimes and saw this case happens when validating reliable file pinning feature. Signed-off-by: Ramon Pantin

[f2fs-dev] [PATCH 1/2] libf2fs_io: Add user-space cache

2019-11-22 Thread Jaegeuk Kim
From: Robin Hsu Implemented cache options in F2FS configuration 'c' (i.e. user options): * use c.cache_config.num_cache_entry to set the number of cache entries (in block), minimum 1024, or 0 to disable cache. * use c.cache_config.max_hash_collision to set maximum hash

[f2fs-dev] [PATCH 2/2] fsck.f2fs: Enable user-space cache

2019-11-22 Thread Jaegeuk Kim
From: Robin Hsu Added command line options -c and -m to activate cache for fsck. It may significantly speed up fsck. Signed-off-by: Robin Hsu Signed-off-by: Jaegeuk Kim --- fsck/main.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git

[f2fs-dev] [PATCH] f2fs: disble physical prealloc in LSF mount

2019-11-22 Thread Javier González
From: Javier González Fix file system corruption when using LFS mount (e.g., in zoned devices). Seems like the fallback into buffered I/O creates an inconsistency if the application is assuming both read and write DIO. I can easily reproduce a corruption with a simple RocksDB test. Might be

[f2fs-dev] problem with f2fs android partition

2019-11-22 Thread Stephanos Mallouris
Dear all, I have backup my f2fs android partition via netcat and adb. After loosing the original partition, tried to restore it on a local drive and access it via linux but i am encountering the following issues: A. trying the command sudo mount -t f2fs /dev/sdc1 /mnt gives the following