Move the check block in cache to the .c file
list_begin not list_head
add some checks in inode.c and now the tests pass again
Merge branch 'master' into indexes

* master:
  add some checks in inode.c and now the tests pass again
  list_begin not list_head
  Move the check block in cache to the .c file