This patch introduces f2fs_map_blocks structure likewise ext4_map_blocks.
Now, f2fs uses f2fs_map_blocks when handling get_block.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/data.c | 72 ++---
fs/f2fs/f2fs.h | 16
The mkfs.f2fs remains kernel version in superblock, but f2fs module has not
added that so far.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
include/linux/f2fs_fs.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h
index
The acl can have null, error pointer, or valid pointer.
So, we should check its pointer existence too.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/acl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c
index c8f25f7..851ff98 100644
This patch cleans up to avoid deep indentation.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/namei.c | 31 ---
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 658e807..a311c3c 100644
---
This patch adds f2fs_may_inline_data and f2fs_may_inline_dentry.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/f2fs.h | 3 ++-
fs/f2fs/file.c | 2 +-
fs/f2fs/inline.c | 13 -
fs/f2fs/namei.c | 4 ++--
4 files changed, 17 insertions(+), 5 deletions(-)
diff --git
This patch adds f2fs_sb_info and page pointers in f2fs_io_info structure.
With this change, we can reduce a lot of parameters for IO functions.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/checkpoint.c | 9 +++--
fs/f2fs/data.c | 47
This patch adds a bitmap for discard issues from f2fs_trim_fs.
There-in rule is to issue discard commands only for invalidated blocks
after mount.
Once mount is done, f2fs_trim_fs trims out whole invalid area.
After ehn, it will not issue and discrads redundantly.
Signed-off-by: Jaegeuk Kim
This patch determines to issue discard commands by comparing given minlen and
the length of produced final candidates.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/checkpoint.c | 2 +-
fs/f2fs/f2fs.h | 2 +-
fs/f2fs/segment.c| 10 ++
3 files changed, 8
This patch fixes to count the missing symlink case.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/namei.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index c0ba8e3..90a9640 100644
--- a/fs/f2fs/namei.c
+++
This patch moves getting victim page into move_data_page.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/gc.c | 28 +++-
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 72667a5..1bd11f0 100644
--- a/fs/f2fs/gc.c
This patch introduces f2fs_commit_super to write updated superblock.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/f2fs.h | 1 +
fs/f2fs/super.c | 24
2 files changed, 25 insertions(+)
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index c98454d..7ff3ac7
This patch splits find_data_page as follows.
1. f2fs_gc
- use get_read_data_page() with read only
2. find_in_level
- use find_data_page without locked page
3. truncate_partial_page
- In the case cache_only mode, just drop cached page.
- Ohterwise, use get_lock_data_page() and guarantee to
This patch introduces need_dentry_mark() to clean up and avoid redundant
node locks.
Signed-off-by: Jaegeuk Kim jaeg...@kernel.org
---
fs/f2fs/f2fs.h | 1 +
fs/f2fs/node.c | 35 +--
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/fs/f2fs/f2fs.h
There are two threads:
f2fs_delete_entry() get_new_data_page()
f2fs_reserve_block()
dn.blkaddr = XXX
lock_page(dentry_block)
truncate_hole()
dn.blkaddr = NULL
unlock_page(dentry_block)
14 matches
Mail list logo