aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/dir.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2007-05-08 03:35:16 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:21 -0400
commit3bf25cb40d899eeb5a471f497e56ddfe2c96c019 (patch)
tree98d425edd6392d3037218851084dde6736e7ba32 /fs/udf/dir.c
parentff116fc8d1d43927c7651b91d5aec41eb30c4429 (diff)
udf: use get_bh()
Make UDF use get_bh() instead of directly accessing b_count and use brelse() instead of udf_release_data() which does just brelse()... Signed-off-by: Jan Kara <jack@suse.cz> Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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}