Whamcloud - gitweb
- bugs in fsfilt_ext3_add_dir_entry() and fsfilt_ext3_del_dir_entryI() fixed:
authoralex <alex>
Mon, 24 May 2004 14:42:18 +0000 (14:42 +0000)
committeralex <alex>
Mon, 24 May 2004 14:42:18 +0000 (14:42 +0000)
  JBD routines must be called under BKL on 2.4

lustre/lvfs/fsfilt_ext3.c

index 46eb191..89796ff 100644 (file)
@@ -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;