aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf/dir.c')
-rw-r--r--fs/udf/dir.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/udf/dir.c b/fs/udf/dir.c
index 00c15d3dd756..e45f86b5e7b0 100644
--- a/fs/udf/dir.c
+++ b/fs/udf/dir.c
@@ -144,7 +144,7 @@ do_udf_readdir(struct inode * dir, struct file *filp, filldir_t filldir, void *d
144 144
145 if (!(fibh.sbh = fibh.ebh = udf_tread(dir->i_sb, block))) 145 if (!(fibh.sbh = fibh.ebh = udf_tread(dir->i_sb, block)))
146 { 146 {
147 udf_release_data(epos.bh); 147 brelse(epos.bh);
148 return -EIO; 148 return -EIO;
149 } 149 }
150 150
@@ -172,7 +172,7 @@ do_udf_readdir(struct inode * dir, struct file *filp, filldir_t filldir, void *d
172 } 172 }
173 else 173 else
174 { 174 {
175 udf_release_data(epos.bh); 175 brelse(epos.bh);
176 return -ENOENT; 176 return -ENOENT;
177 } 177 }
178 178
@@ -185,9 +185,9 @@ do_udf_readdir(struct inode * dir, struct file *filp, filldir_t filldir, void *d
185 if (!fi) 185 if (!fi)
186 { 186 {
187 if (fibh.sbh != fibh.ebh) 187 if (fibh.sbh != fibh.ebh)
188 udf_release_data(fibh.ebh); 188 brelse(fibh.ebh);
189 udf_release_data(fibh.sbh); 189 brelse(fibh.sbh);
190 udf_release_data(epos.bh); 190 brelse(epos.bh);
191 return 0; 191 return 0;
192 } 192 }
193 193
@@ -245,9 +245,9 @@ do_udf_readdir(struct inode * dir, struct file *filp, filldir_t filldir, void *d
245 if (filldir(dirent, fname, flen, filp->f_pos, iblock, dt_type) < 0) 245 if (filldir(dirent, fname, flen, filp->f_pos, iblock, dt_type) < 0)
246 { 246 {
247 if (fibh.sbh != fibh.ebh) 247 if (fibh.sbh != fibh.ebh)
248 udf_release_data(fibh.ebh); 248 brelse(fibh.ebh);
249 udf_release_data(fibh.sbh); 249 brelse(fibh.sbh);
250 udf_release_data(epos.bh); 250 brelse(epos.bh);
251 return 0; 251 return 0;
252 } 252 }
253 } 253 }
@@ -256,9 +256,9 @@ do_udf_readdir(struct inode * dir, struct file *filp, filldir_t filldir, void *d
256 filp->f_pos = nf_pos + 1; 256 filp->f_pos = nf_pos + 1;
257 257
258 if (fibh.sbh != fibh.ebh) 258 if (fibh.sbh != fibh.ebh)
259 udf_release_data(fibh.ebh); 259 brelse(fibh.ebh);
260 udf_release_data(fibh.sbh); 260 brelse(fibh.sbh);
261 udf_release_data(epos.bh); 261 brelse(epos.bh);
262 262
263 return 0; 263 return 0;
264} 264}