diff options
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | fs/ocfs2/namei.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index d63ab7be89a5..583bffe98091 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c | |||
@@ -75,12 +75,12 @@ static int inline ocfs2_search_dirblock(struct buffer_head *bh, | |||
75 | unsigned long offset, | 75 | unsigned long offset, |
76 | struct ocfs2_dir_entry **res_dir); | 76 | struct ocfs2_dir_entry **res_dir); |
77 | 77 | ||
78 | static int ocfs2_delete_entry(struct ocfs2_journal_handle *handle, | 78 | static int ocfs2_delete_entry(handle_t *handle, |
79 | struct inode *dir, | 79 | struct inode *dir, |
80 | struct ocfs2_dir_entry *de_del, | 80 | struct ocfs2_dir_entry *de_del, |
81 | struct buffer_head *bh); | 81 | struct buffer_head *bh); |
82 | 82 | ||
83 | static int __ocfs2_add_entry(struct ocfs2_journal_handle *handle, | 83 | static int __ocfs2_add_entry(handle_t *handle, |
84 | struct inode *dir, | 84 | struct inode *dir, |
85 | const char *name, int namelen, | 85 | const char *name, int namelen, |
86 | struct inode *inode, u64 blkno, | 86 | struct inode *inode, u64 blkno, |
@@ -93,12 +93,12 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb, | |||
93 | dev_t dev, | 93 | dev_t dev, |
94 | struct buffer_head **new_fe_bh, | 94 | struct buffer_head **new_fe_bh, |
95 | struct buffer_head *parent_fe_bh, | 95 | struct buffer_head *parent_fe_bh, |
96 | struct ocfs2_journal_handle *handle, | 96 | handle_t *handle, |
97 | struct inode **ret_inode, | 97 | struct inode **ret_inode, |
98 | struct ocfs2_alloc_context *inode_ac); | 98 | struct ocfs2_alloc_context *inode_ac); |
99 | 99 | ||
100 | static int ocfs2_fill_new_dir(struct ocfs2_super *osb, | 100 | static int ocfs2_fill_new_dir(struct ocfs2_super *osb, |
101 | struct ocfs2_journal_handle *handle, | 101 | handle_t *handle, |
102 | struct inode *parent, | 102 | struct inode *parent, |
103 | struct inode *inode, | 103 | struct inode *inode, |
104 | struct buffer_head *fe_bh, | 104 | struct buffer_head *fe_bh, |
@@ -111,7 +111,7 @@ static int ocfs2_prepare_orphan_dir(struct ocfs2_super *osb, | |||
111 | struct buffer_head **de_bh); | 111 | struct buffer_head **de_bh); |
112 | 112 | ||
113 | static int ocfs2_orphan_add(struct ocfs2_super *osb, | 113 | static int ocfs2_orphan_add(struct ocfs2_super *osb, |
114 | struct ocfs2_journal_handle *handle, | 114 | handle_t *handle, |
115 | struct inode *inode, | 115 | struct inode *inode, |
116 | struct ocfs2_dinode *fe, | 116 | struct ocfs2_dinode *fe, |
117 | char *name, | 117 | char *name, |
@@ -119,11 +119,11 @@ static int ocfs2_orphan_add(struct ocfs2_super *osb, | |||
119 | struct inode *orphan_dir_inode); | 119 | struct inode *orphan_dir_inode); |
120 | 120 | ||
121 | static int ocfs2_create_symlink_data(struct ocfs2_super *osb, | 121 | static int ocfs2_create_symlink_data(struct ocfs2_super *osb, |
122 | struct ocfs2_journal_handle *handle, | 122 | handle_t *handle, |
123 | struct inode *inode, | 123 | struct inode *inode, |
124 | const char *symname); | 124 | const char *symname); |
125 | 125 | ||
126 | static inline int ocfs2_add_entry(struct ocfs2_journal_handle *handle, | 126 | static inline int ocfs2_add_entry(handle_t *handle, |
127 | struct dentry *dentry, | 127 | struct dentry *dentry, |
128 | struct inode *inode, u64 blkno, | 128 | struct inode *inode, u64 blkno, |
129 | struct buffer_head *parent_fe_bh, | 129 | struct buffer_head *parent_fe_bh, |
@@ -236,7 +236,7 @@ bail: | |||
236 | } | 236 | } |
237 | 237 | ||
238 | static int ocfs2_fill_new_dir(struct ocfs2_super *osb, | 238 | static int ocfs2_fill_new_dir(struct ocfs2_super *osb, |
239 | struct ocfs2_journal_handle *handle, | 239 | handle_t *handle, |
240 | struct inode *parent, | 240 | struct inode *parent, |
241 | struct inode *inode, | 241 | struct inode *inode, |
242 | struct buffer_head *fe_bh, | 242 | struct buffer_head *fe_bh, |
@@ -311,7 +311,7 @@ static int ocfs2_mknod(struct inode *dir, | |||
311 | { | 311 | { |
312 | int status = 0; | 312 | int status = 0; |
313 | struct buffer_head *parent_fe_bh = NULL; | 313 | struct buffer_head *parent_fe_bh = NULL; |
314 | struct ocfs2_journal_handle *handle = NULL; | 314 | handle_t *handle = NULL; |
315 | struct ocfs2_super *osb; | 315 | struct ocfs2_super *osb; |
316 | struct ocfs2_dinode *dirfe; | 316 | struct ocfs2_dinode *dirfe; |
317 | struct buffer_head *new_fe_bh = NULL; | 317 | struct buffer_head *new_fe_bh = NULL; |
@@ -476,7 +476,7 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb, | |||
476 | dev_t dev, | 476 | dev_t dev, |
477 | struct buffer_head **new_fe_bh, | 477 | struct buffer_head **new_fe_bh, |
478 | struct buffer_head *parent_fe_bh, | 478 | struct buffer_head *parent_fe_bh, |
479 | struct ocfs2_journal_handle *handle, | 479 | handle_t *handle, |
480 | struct inode **ret_inode, | 480 | struct inode **ret_inode, |
481 | struct ocfs2_alloc_context *inode_ac) | 481 | struct ocfs2_alloc_context *inode_ac) |
482 | { | 482 | { |
@@ -642,7 +642,7 @@ static int ocfs2_link(struct dentry *old_dentry, | |||
642 | struct inode *dir, | 642 | struct inode *dir, |
643 | struct dentry *dentry) | 643 | struct dentry *dentry) |
644 | { | 644 | { |
645 | struct ocfs2_journal_handle *handle; | 645 | handle_t *handle; |
646 | struct inode *inode = old_dentry->d_inode; | 646 | struct inode *inode = old_dentry->d_inode; |
647 | int err; | 647 | int err; |
648 | struct buffer_head *fe_bh = NULL; | 648 | struct buffer_head *fe_bh = NULL; |
@@ -807,7 +807,7 @@ static int ocfs2_unlink(struct inode *dir, | |||
807 | struct ocfs2_dinode *fe = NULL; | 807 | struct ocfs2_dinode *fe = NULL; |
808 | struct buffer_head *fe_bh = NULL; | 808 | struct buffer_head *fe_bh = NULL; |
809 | struct buffer_head *parent_node_bh = NULL; | 809 | struct buffer_head *parent_node_bh = NULL; |
810 | struct ocfs2_journal_handle *handle = NULL; | 810 | handle_t *handle = NULL; |
811 | struct ocfs2_dir_entry *dirent = NULL; | 811 | struct ocfs2_dir_entry *dirent = NULL; |
812 | struct buffer_head *dirent_bh = NULL; | 812 | struct buffer_head *dirent_bh = NULL; |
813 | char orphan_name[OCFS2_ORPHAN_NAMELEN + 1]; | 813 | char orphan_name[OCFS2_ORPHAN_NAMELEN + 1]; |
@@ -1069,7 +1069,7 @@ static int ocfs2_rename(struct inode *old_dir, | |||
1069 | struct buffer_head *insert_entry_bh = NULL; | 1069 | struct buffer_head *insert_entry_bh = NULL; |
1070 | struct ocfs2_super *osb = NULL; | 1070 | struct ocfs2_super *osb = NULL; |
1071 | u64 newfe_blkno; | 1071 | u64 newfe_blkno; |
1072 | struct ocfs2_journal_handle *handle = NULL; | 1072 | handle_t *handle = NULL; |
1073 | struct buffer_head *old_dir_bh = NULL; | 1073 | struct buffer_head *old_dir_bh = NULL; |
1074 | struct buffer_head *new_dir_bh = NULL; | 1074 | struct buffer_head *new_dir_bh = NULL; |
1075 | struct ocfs2_dir_entry *old_de = NULL, *new_de = NULL; // dirent for old_dentry | 1075 | struct ocfs2_dir_entry *old_de = NULL, *new_de = NULL; // dirent for old_dentry |
@@ -1478,7 +1478,7 @@ bail: | |||
1478 | * data, including the null terminator. | 1478 | * data, including the null terminator. |
1479 | */ | 1479 | */ |
1480 | static int ocfs2_create_symlink_data(struct ocfs2_super *osb, | 1480 | static int ocfs2_create_symlink_data(struct ocfs2_super *osb, |
1481 | struct ocfs2_journal_handle *handle, | 1481 | handle_t *handle, |
1482 | struct inode *inode, | 1482 | struct inode *inode, |
1483 | const char *symname) | 1483 | const char *symname) |
1484 | { | 1484 | { |
@@ -1593,7 +1593,7 @@ static int ocfs2_symlink(struct inode *dir, | |||
1593 | struct buffer_head *parent_fe_bh = NULL; | 1593 | struct buffer_head *parent_fe_bh = NULL; |
1594 | struct ocfs2_dinode *fe = NULL; | 1594 | struct ocfs2_dinode *fe = NULL; |
1595 | struct ocfs2_dinode *dirfe; | 1595 | struct ocfs2_dinode *dirfe; |
1596 | struct ocfs2_journal_handle *handle = NULL; | 1596 | handle_t *handle = NULL; |
1597 | struct ocfs2_alloc_context *inode_ac = NULL; | 1597 | struct ocfs2_alloc_context *inode_ac = NULL; |
1598 | struct ocfs2_alloc_context *data_ac = NULL; | 1598 | struct ocfs2_alloc_context *data_ac = NULL; |
1599 | 1599 | ||
@@ -1784,7 +1784,7 @@ int ocfs2_check_dir_entry(struct inode * dir, | |||
1784 | * If you pass me insert_bh, I'll skip the search of the other dir | 1784 | * If you pass me insert_bh, I'll skip the search of the other dir |
1785 | * blocks and put the record in there. | 1785 | * blocks and put the record in there. |
1786 | */ | 1786 | */ |
1787 | static int __ocfs2_add_entry(struct ocfs2_journal_handle *handle, | 1787 | static int __ocfs2_add_entry(handle_t *handle, |
1788 | struct inode *dir, | 1788 | struct inode *dir, |
1789 | const char *name, int namelen, | 1789 | const char *name, int namelen, |
1790 | struct inode *inode, u64 blkno, | 1790 | struct inode *inode, u64 blkno, |
@@ -1870,7 +1870,7 @@ bail: | |||
1870 | * ocfs2_delete_entry deletes a directory entry by merging it with the | 1870 | * ocfs2_delete_entry deletes a directory entry by merging it with the |
1871 | * previous entry | 1871 | * previous entry |
1872 | */ | 1872 | */ |
1873 | static int ocfs2_delete_entry(struct ocfs2_journal_handle *handle, | 1873 | static int ocfs2_delete_entry(handle_t *handle, |
1874 | struct inode *dir, | 1874 | struct inode *dir, |
1875 | struct ocfs2_dir_entry *de_del, | 1875 | struct ocfs2_dir_entry *de_del, |
1876 | struct buffer_head *bh) | 1876 | struct buffer_head *bh) |
@@ -2159,7 +2159,7 @@ leave: | |||
2159 | } | 2159 | } |
2160 | 2160 | ||
2161 | static int ocfs2_orphan_add(struct ocfs2_super *osb, | 2161 | static int ocfs2_orphan_add(struct ocfs2_super *osb, |
2162 | struct ocfs2_journal_handle *handle, | 2162 | handle_t *handle, |
2163 | struct inode *inode, | 2163 | struct inode *inode, |
2164 | struct ocfs2_dinode *fe, | 2164 | struct ocfs2_dinode *fe, |
2165 | char *name, | 2165 | char *name, |
@@ -2232,7 +2232,7 @@ leave: | |||
2232 | 2232 | ||
2233 | /* unlike orphan_add, we expect the orphan dir to already be locked here. */ | 2233 | /* unlike orphan_add, we expect the orphan dir to already be locked here. */ |
2234 | int ocfs2_orphan_del(struct ocfs2_super *osb, | 2234 | int ocfs2_orphan_del(struct ocfs2_super *osb, |
2235 | struct ocfs2_journal_handle *handle, | 2235 | handle_t *handle, |
2236 | struct inode *orphan_dir_inode, | 2236 | struct inode *orphan_dir_inode, |
2237 | struct inode *inode, | 2237 | struct inode *inode, |
2238 | struct buffer_head *orphan_dir_bh) | 2238 | struct buffer_head *orphan_dir_bh) |