namei.h 570 B

12345678910111213141516171819202122232425262728
  1. /* linux/fs/ext3/namei.h
  2. *
  3. * Copyright (C) 2005 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. */
  7. extern struct dentry *ext3_get_parent(struct dentry *child);
  8. static inline struct buffer_head *ext3_dir_bread(handle_t *handle,
  9. struct inode *inode,
  10. int block, int create,
  11. int *err)
  12. {
  13. struct buffer_head *bh;
  14. bh = ext3_bread(handle, inode, block, create, err);
  15. if (!bh && !(*err)) {
  16. *err = -EIO;
  17. ext3_error(inode->i_sb, __func__,
  18. "Directory hole detected on inode %lu\n",
  19. inode->i_ino);
  20. return NULL;
  21. }
  22. return bh;
  23. }