diff options
author | Chao Yu | 2014-09-24 12:17:04 +0200 |
---|---|---|
committer | Jaegeuk Kim | 2014-11-04 01:07:31 +0100 |
commit | dbeacf02ebfed8161ac0b9379892262593c9a734 (patch) | |
tree | 5d4dcd8a7ea6bd0fe38d7402246f2e83dac6715d /fs/f2fs/namei.c | |
parent | f2fs: add a new mount option for inline dir (diff) | |
download | kernel-qcow2-linux-dbeacf02ebfed8161ac0b9379892262593c9a734.tar.gz kernel-qcow2-linux-dbeacf02ebfed8161ac0b9379892262593c9a734.tar.xz kernel-qcow2-linux-dbeacf02ebfed8161ac0b9379892262593c9a734.zip |
f2fs: export dir operations for inline dir
This patch exports some dir operations for inline dir, additionally introduces
f2fs_drop_nlink from f2fs_delete_entry for reusing by inline dir function.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r-- | fs/f2fs/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 0d2526e5aa11..6e67f2b6fce1 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -223,7 +223,7 @@ static int f2fs_unlink(struct inode *dir, struct dentry *dentry) f2fs_put_page(page, 0); goto fail; } - f2fs_delete_entry(de, page, inode); + f2fs_delete_entry(de, page, dir, inode); f2fs_unlock_op(sbi); /* In order to evict this inode, we set it dirty */ @@ -435,7 +435,7 @@ static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry, old_inode->i_ctime = CURRENT_TIME; mark_inode_dirty(old_inode); - f2fs_delete_entry(old_entry, old_page, NULL); + f2fs_delete_entry(old_entry, old_page, old_dir, NULL); if (old_dir_entry) { if (old_dir != new_dir) { |