- if (lsm == NULL) {
- if (fd->fd_flags & O_LOV_DELAY_CREATE) {
- CDEBUG(D_INODE, "object creation was delayed\n");
- GOTO(out_release, rc);
- }
- }
- fd->fd_flags &= ~O_LOV_DELAY_CREATE;
-
+ if (lsm)
+ flags &= ~O_LOV_DELAY_CREATE;
+ /*XXX: open_flags are overwritten and the previous ones are lost */