From: yury Date: Thu, 19 Oct 2006 06:46:11 +0000 (+0000) Subject: - put fix from niu to correct place. X-Git-Tag: v1_8_0_110~486^2~448 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=90100b852bc40469cb76ca04eea135c5c673800d;p=fs%2Flustre-release.git - put fix from niu to correct place. --- diff --git a/lustre/obdfilter/filter_io_24.c b/lustre/obdfilter/filter_io_24.c index a555477..314481b 100644 --- a/lustre/obdfilter/filter_io_24.c +++ b/lustre/obdfilter/filter_io_24.c @@ -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); diff --git a/lustre/obdfilter/filter_io_26.c b/lustre/obdfilter/filter_io_26.c index b2be0d8..9dbd6bf 100644 --- a/lustre/obdfilter/filter_io_26.c +++ b/lustre/obdfilter/filter_io_26.c @@ -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,