Skip to content
Snippets Groups Projects
Commit 82cc53b1 authored by alex's avatar alex
Browse files

- bugs in fsfilt_ext3_add_dir_entry() and fsfilt_ext3_del_dir_entryI() fixed:

  JBD routines must be called under BKL on 2.4
parent e50f67cd
No related merge requests found
......@@ -921,7 +921,9 @@ static int fsfilt_ext3_add_dir_entry(struct obd_device *obd,
dentry->d_inum = ino;
dentry->d_mdsnum = mds;
dentry->d_generation = generation;
lock_kernel();
err = ext3_add_dir_entry(dentry);
unlock_kernel();
l_dput(dentry);
......@@ -937,7 +939,9 @@ static int fsfilt_ext3_del_dir_entry(struct obd_device *obd,
{
#ifdef EXT3_FEATURE_INCOMPAT_MDSNUM
int err;
lock_kernel();
err = ext3_del_dir_entry(dentry);
unlock_kernel();
if (err == 0)
d_drop(dentry);
return err;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment