Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a805549
)
- missed BKLs in ext3_ext_new_extent_cb()
author
alex
<alex>
Thu, 19 Aug 2004 19:58:12 +0000
(19:58 +0000)
committer
alex
<alex>
Thu, 19 Aug 2004 19:58:12 +0000
(19:58 +0000)
- minor cleanups
lustre/lvfs/fsfilt_ext3.c
patch
|
blob
|
history
diff --git
a/lustre/lvfs/fsfilt_ext3.c
b/lustre/lvfs/fsfilt_ext3.c
index
551d3a7
..
2c04a37
100644
(file)
--- a/
lustre/lvfs/fsfilt_ext3.c
+++ b/
lustre/lvfs/fsfilt_ext3.c
@@
-749,7
+749,9
@@
static int ext3_ext_new_extent_cb(struct ext3_extents_tree *tree,
count = ext3_ext_calc_credits_for_insert(tree, path);
up_write(&EXT3_I(inode)->truncate_sem);
count = ext3_ext_calc_credits_for_insert(tree, path);
up_write(&EXT3_I(inode)->truncate_sem);
- handle = ext3_journal_start(inode, count + EXT3_ALLOC_NEEDED + 1);
+ lock_kernel();
+ handle = journal_start(EXT3_JOURNAL(inode), count + EXT3_ALLOC_NEEDED + 1);
+ unlock_kernel();
if (IS_ERR(handle)) {
down_write(&EXT3_I(inode)->truncate_sem);
return PTR_ERR(handle);
if (IS_ERR(handle)) {
down_write(&EXT3_I(inode)->truncate_sem);
return PTR_ERR(handle);
@@
-757,7
+759,9
@@
static int ext3_ext_new_extent_cb(struct ext3_extents_tree *tree,
if (tgen != EXT_GENERATION(tree)) {
/* the tree has changed. so path can be invalid at moment */
if (tgen != EXT_GENERATION(tree)) {
/* the tree has changed. so path can be invalid at moment */
- ext3_journal_stop(handle, inode);
+ lock_kernel();
+ journal_stop(handle);
+ unlock_kernel();
down_write(&EXT3_I(inode)->truncate_sem);
return EXT_REPEAT;
}
down_write(&EXT3_I(inode)->truncate_sem);
return EXT_REPEAT;
}
@@
-788,7
+792,9
@@
static int ext3_ext_new_extent_cb(struct ext3_extents_tree *tree,
}
out:
}
out:
- ext3_journal_stop(handle, inode);
+ lock_kernel();
+ journal_stop(handle);
+ unlock_kernel();
map:
if (err >= 0) {
/* map blocks */
map:
if (err >= 0) {
/* map blocks */