aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index c3462b69917e..cc2213afdcc7 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -889,12 +889,18 @@ struct f2fs_dir_entry *f2fs_parent_dir(struct inode *, struct page **);
889ino_t f2fs_inode_by_name(struct inode *, struct qstr *); 889ino_t f2fs_inode_by_name(struct inode *, struct qstr *);
890void f2fs_set_link(struct inode *, struct f2fs_dir_entry *, 890void f2fs_set_link(struct inode *, struct f2fs_dir_entry *,
891 struct page *, struct inode *); 891 struct page *, struct inode *);
892void init_dent_inode(struct dentry *, struct page *); 892void init_dent_inode(const struct qstr *, struct page *);
893int f2fs_add_link(struct dentry *, struct inode *); 893int __f2fs_add_link(struct inode *, const struct qstr *, struct inode *);
894void f2fs_delete_entry(struct f2fs_dir_entry *, struct page *, struct inode *); 894void f2fs_delete_entry(struct f2fs_dir_entry *, struct page *, struct inode *);
895int f2fs_make_empty(struct inode *, struct inode *); 895int f2fs_make_empty(struct inode *, struct inode *);
896bool f2fs_empty_dir(struct inode *); 896bool f2fs_empty_dir(struct inode *);
897 897
898static inline int f2fs_add_link(struct dentry *dentry, struct inode *inode)
899{
900 return __f2fs_add_link(dentry->d_parent->d_inode, &dentry->d_name,
901 inode);
902}
903
898/* 904/*
899 * super.c 905 * super.c
900 */ 906 */
@@ -918,7 +924,7 @@ void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *);
918int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int); 924int get_dnode_of_data(struct dnode_of_data *, pgoff_t, int);
919int truncate_inode_blocks(struct inode *, pgoff_t); 925int truncate_inode_blocks(struct inode *, pgoff_t);
920int remove_inode_page(struct inode *); 926int remove_inode_page(struct inode *);
921int new_inode_page(struct inode *, struct dentry *); 927int new_inode_page(struct inode *, const struct qstr *);
922struct page *new_node_page(struct dnode_of_data *, unsigned int); 928struct page *new_node_page(struct dnode_of_data *, unsigned int);
923void ra_node_page(struct f2fs_sb_info *, nid_t); 929void ra_node_page(struct f2fs_sb_info *, nid_t);
924struct page *get_node_page(struct f2fs_sb_info *, pgoff_t); 930struct page *get_node_page(struct f2fs_sb_info *, pgoff_t);