Whamcloud - gitweb
osd_mkfile(): do not set ->do_index_ops for just created object, otherwise dt_is_dir...
authornikita <nikita>
Tue, 18 Jul 2006 11:53:47 +0000 (11:53 +0000)
committernikita <nikita>
Tue, 18 Jul 2006 11:53:47 +0000 (11:53 +0000)
lustre/osd/osd_handler.c

index fd808d7..4a071db 100644 (file)
@@ -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