2
0

505-yaffs-3.19-f_dentry-remove.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --- a/fs/yaffs2/yaffs_vfs.c
  2. +++ b/fs/yaffs2/yaffs_vfs.c
  3. @@ -283,7 +283,7 @@ static int yaffs_readpage_nolock(struct
  4. (long long)pos,
  5. (unsigned)PAGE_CACHE_SIZE);
  6. - obj = yaffs_dentry_to_obj(f->f_dentry);
  7. + obj = yaffs_dentry_to_obj(f->f_path.dentry);
  8. dev = obj->my_dev;
  9. @@ -481,7 +481,7 @@ static ssize_t yaffs_hold_space(struct f
  10. int n_free_chunks;
  11. - obj = yaffs_dentry_to_obj(f->f_dentry);
  12. + obj = yaffs_dentry_to_obj(f->f_path.dentry);
  13. dev = obj->my_dev;
  14. @@ -499,7 +499,7 @@ static void yaffs_release_space(struct f
  15. struct yaffs_obj *obj;
  16. struct yaffs_dev *dev;
  17. - obj = yaffs_dentry_to_obj(f->f_dentry);
  18. + obj = yaffs_dentry_to_obj(f->f_path.dentry);
  19. dev = obj->my_dev;
  20. @@ -591,7 +591,7 @@ static ssize_t yaffs_file_write(struct f
  21. struct inode *inode;
  22. struct yaffs_dev *dev;
  23. - obj = yaffs_dentry_to_obj(f->f_dentry);
  24. + obj = yaffs_dentry_to_obj(f->f_path.dentry);
  25. if (!obj) {
  26. yaffs_trace(YAFFS_TRACE_OS,
  27. @@ -603,7 +603,7 @@ static ssize_t yaffs_file_write(struct f
  28. yaffs_gross_lock(dev);
  29. - inode = f->f_dentry->d_inode;
  30. + inode = f->f_path.dentry->d_inode;
  31. if (!S_ISBLK(inode->i_mode) && f->f_flags & O_APPEND)
  32. ipos = inode->i_size;
  33. @@ -727,7 +727,7 @@ static int yaffs_file_flush(struct file
  34. static int yaffs_file_flush(struct file *file)
  35. #endif
  36. {
  37. - struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_dentry);
  38. + struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_path.dentry);
  39. struct yaffs_dev *dev = obj->my_dev;
  40. @@ -1734,7 +1734,7 @@ static int yaffs_iterate(struct file *f,
  41. char name[YAFFS_MAX_NAME_LENGTH + 1];
  42. - obj = yaffs_dentry_to_obj(f->f_dentry);
  43. + obj = yaffs_dentry_to_obj(f->f_path.dentry);
  44. dev = obj->my_dev;
  45. yaffs_gross_lock(dev);
  46. @@ -1798,14 +1798,14 @@ static int yaffs_readdir(struct file *f,
  47. struct yaffs_obj *obj;
  48. struct yaffs_dev *dev;
  49. struct yaffs_search_context *sc;
  50. - struct inode *inode = f->f_dentry->d_inode;
  51. + struct inode *inode = f->f_path.dentry->d_inode;
  52. unsigned long offset, curoffs;
  53. struct yaffs_obj *l;
  54. int ret_val = 0;
  55. char name[YAFFS_MAX_NAME_LENGTH + 1];
  56. - obj = yaffs_dentry_to_obj(f->f_dentry);
  57. + obj = yaffs_dentry_to_obj(f->f_path.dentry);
  58. dev = obj->my_dev;
  59. yaffs_gross_lock(dev);
  60. @@ -1839,10 +1839,10 @@ static int yaffs_readdir(struct file *f,
  61. if (offset == 1) {
  62. yaffs_trace(YAFFS_TRACE_OS,
  63. "yaffs_readdir: entry .. ino %d",
  64. - (int)f->f_dentry->d_parent->d_inode->i_ino);
  65. + (int)f->f_path.dentry->d_parent->d_inode->i_ino);
  66. yaffs_gross_unlock(dev);
  67. if (filldir(dirent, "..", 2, offset,
  68. - f->f_dentry->d_parent->d_inode->i_ino,
  69. + f->f_path.dentry->d_parent->d_inode->i_ino,
  70. DT_DIR) < 0) {
  71. yaffs_gross_lock(dev);
  72. goto out;