up(&new->d_inode->i_sem);
OBD_FREE(mea, mealen);
} else if (rc == 0 && body->oa.o_easize) {
- mds_try_to_split_dir(obd, new, NULL, body->oa.o_easize);
+ flags = mds_try_to_split_dir(obd, new, NULL, body->oa.o_easize);
+ CERROR("%s: splitted %lu/%u - %d\n", obd->obd_name,
+ new->d_inode->i_ino, new->d_inode->i_generation, flags);
}
cleanup:
if ((rc = mds_try_to_split_dir(obd, dparent, &mea, 0))) {
if (rc > 0) {
/* dir got splitted */
+ CERROR("%s: splitted %lu/%u - %d\n", obd->obd_name,
+ dparent->d_inode->i_ino,
+ dparent->d_inode->i_generation, rc);
GOTO(cleanup, rc = -ERESTART);
} else {
/* error happened during spitting */
if ((rc = mds_try_to_split_dir(obd, dparent, &mea, 0))) {
if (rc > 0) {
/* dir got splitted */
+ CERROR("%s: splitted %lu/%u - %d\n",
+ obd->obd_name, dparent->d_inode->i_ino,
+ dparent->d_inode->i_generation, rc);
GOTO(cleanup, rc = -ERESTART);
} else {
/* error happened during spitting. */
NULL, nstripes))) {
if (rc > 0) {
/* dir got splitted */
+ CERROR("%s: splitted %lu/%u - %d\n",
+ obd->obd_name,
+ dchild->d_inode->i_ino,
+ dchild->d_inode->i_generation, rc);
rc = 0;
} else {
/* an error occured during