diff options
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 432a6baa61d1..6402e9372f6c 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c | |||
@@ -794,19 +794,9 @@ void update_dirty_page(struct inode *inode, struct page *page) | |||
794 | f2fs_trace_pid(page); | 794 | f2fs_trace_pid(page); |
795 | } | 795 | } |
796 | 796 | ||
797 | void add_dirty_dir_inode(struct inode *inode) | ||
798 | { | ||
799 | struct f2fs_sb_info *sbi = F2FS_I_SB(inode); | ||
800 | |||
801 | spin_lock(&sbi->inode_lock[DIR_INODE]); | ||
802 | __add_dirty_inode(inode, DIR_INODE); | ||
803 | spin_unlock(&sbi->inode_lock[DIR_INODE]); | ||
804 | } | ||
805 | |||
806 | void remove_dirty_inode(struct inode *inode) | 797 | void remove_dirty_inode(struct inode *inode) |
807 | { | 798 | { |
808 | struct f2fs_sb_info *sbi = F2FS_I_SB(inode); | 799 | struct f2fs_sb_info *sbi = F2FS_I_SB(inode); |
809 | struct f2fs_inode_info *fi = F2FS_I(inode); | ||
810 | enum inode_type type = S_ISDIR(inode->i_mode) ? DIR_INODE : FILE_INODE; | 800 | enum inode_type type = S_ISDIR(inode->i_mode) ? DIR_INODE : FILE_INODE; |
811 | 801 | ||
812 | if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode) && | 802 | if (!S_ISDIR(inode->i_mode) && !S_ISREG(inode->i_mode) && |
@@ -816,12 +806,6 @@ void remove_dirty_inode(struct inode *inode) | |||
816 | spin_lock(&sbi->inode_lock[type]); | 806 | spin_lock(&sbi->inode_lock[type]); |
817 | __remove_dirty_inode(inode, type); | 807 | __remove_dirty_inode(inode, type); |
818 | spin_unlock(&sbi->inode_lock[type]); | 808 | spin_unlock(&sbi->inode_lock[type]); |
819 | |||
820 | /* Only from the recovery routine */ | ||
821 | if (is_inode_flag_set(fi, FI_DELAY_IPUT)) { | ||
822 | clear_inode_flag(fi, FI_DELAY_IPUT); | ||
823 | iput(inode); | ||
824 | } | ||
825 | } | 809 | } |
826 | 810 | ||
827 | int sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type) | 811 | int sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type) |