Whamcloud - gitweb
- put fix from niu to correct place.
authoryury <yury>
Thu, 19 Oct 2006 06:46:11 +0000 (06:46 +0000)
committeryury <yury>
Thu, 19 Oct 2006 06:46:11 +0000 (06:46 +0000)
lustre/obdfilter/filter_io_24.c
lustre/obdfilter/filter_io_26.c

index a555477..314481b 100644 (file)
@@ -455,8 +455,6 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa, int objcount,
         push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
         cleanup_phase = 2;
 
-        DQUOT_INIT(inode);
-        
         down(&inode->i_sem);
         oti->oti_handle = fsfilt_brw_start(obd, objcount, &fso, niocount, res,
                                            oti);
index b2be0d8..9dbd6bf 100644 (file)
@@ -635,6 +635,7 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa,
         push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
         cleanup_phase = 2;
 
+        DQUOT_INIT(inode);
         LOCK_INODE_MUTEX(inode);
         fsfilt_check_slow(obd, now, obd_timeout, "i_mutex");
         oti->oti_handle = fsfilt_brw_start(obd, objcount, &fso, niocount, res,