From: nikita Date: Tue, 18 Jul 2006 11:53:47 +0000 (+0000) Subject: osd_mkfile(): do not set ->do_index_ops for just created object, otherwise dt_is_dir... X-Git-Tag: v1_8_0_110~486^2~1394 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=db13316df8d41dc527072a8c3d79afc5eadd4f57;p=fs%2Flustre-release.git osd_mkfile(): do not set ->do_index_ops for just created object, otherwise dt_is_dir() does not work as expected --- diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index fd808d7..4a071db 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -572,7 +572,6 @@ static int osd_mkfile(struct osd_thread_info *info, struct osd_object *obj, LASSERT(dentry->d_inode != NULL); obj->oo_inode = dentry->d_inode; igrab(obj->oo_inode); - obj->oo_dt.do_index_ops = &osd_index_ops; } dput(dentry); } else