- if (rec->ur_eadata)
- nstripes = *(u16 *)rec->ur_eadata;
-
- if (rc == 0 && nstripes) {
- /*
- * we pass LCK_EX to split routine to signal,
- * that we have exclusive access to the
- * directory. Simple because nobody knows it
- * already exists -bzzz
- */
- rc = mds_try_to_split_dir(obd, dchild,
- NULL, nstripes,
- LCK_EX);
- if (rc > 0) {
- /* dir got splitted */
- rc = 0;
- } else if (rc < 0) {
- /* an error occured during
- * splitting. */
- GOTO(cleanup, rc);
- }
- }