aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-08-15 17:16:03 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2015-08-15 17:16:03 +0000
commitb1bd85c40eb5d22253fcc09c441abb50308ecd40 (patch)
treeb780ccb906996723106a614a5913c94611857fb4 /target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch
parent1c66ebcd2db1e85590b11e0abc750eef25363328 (diff)
downloadupstream-b1bd85c40eb5d22253fcc09c441abb50308ecd40.tar.gz
upstream-b1bd85c40eb5d22253fcc09c441abb50308ecd40.tar.bz2
upstream-b1bd85c40eb5d22253fcc09c441abb50308ecd40.zip
kernel: yaffs2: update to version from 2015-06-02
In addition to the update this also fixes compile problems with kernel 4.1. This closes #20323. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46609
Diffstat (limited to 'target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch')
-rw-r--r--target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch95
1 files changed, 95 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch b/target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch
new file mode 100644
index 0000000000..0d4b6bf04f
--- /dev/null
+++ b/target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch
@@ -0,0 +1,95 @@
+--- a/fs/yaffs2/yaffs_vfs.c
++++ b/fs/yaffs2/yaffs_vfs.c
+@@ -283,7 +283,7 @@ static int yaffs_readpage_nolock(struct
+ (long long)pos,
+ (unsigned)PAGE_CACHE_SIZE);
+
+- obj = yaffs_dentry_to_obj(f->f_dentry);
++ obj = yaffs_dentry_to_obj(f->f_path.dentry);
+
+ dev = obj->my_dev;
+
+@@ -481,7 +481,7 @@ static ssize_t yaffs_hold_space(struct f
+
+ int n_free_chunks;
+
+- obj = yaffs_dentry_to_obj(f->f_dentry);
++ obj = yaffs_dentry_to_obj(f->f_path.dentry);
+
+ dev = obj->my_dev;
+
+@@ -499,7 +499,7 @@ static void yaffs_release_space(struct f
+ struct yaffs_obj *obj;
+ struct yaffs_dev *dev;
+
+- obj = yaffs_dentry_to_obj(f->f_dentry);
++ obj = yaffs_dentry_to_obj(f->f_path.dentry);
+
+ dev = obj->my_dev;
+
+@@ -591,7 +591,7 @@ static ssize_t yaffs_file_write(struct f
+ struct inode *inode;
+ struct yaffs_dev *dev;
+
+- obj = yaffs_dentry_to_obj(f->f_dentry);
++ obj = yaffs_dentry_to_obj(f->f_path.dentry);
+
+ if (!obj) {
+ yaffs_trace(YAFFS_TRACE_OS,
+@@ -603,7 +603,7 @@ static ssize_t yaffs_file_write(struct f
+
+ yaffs_gross_lock(dev);
+
+- inode = f->f_dentry->d_inode;
++ inode = f->f_path.dentry->d_inode;
+
+ if (!S_ISBLK(inode->i_mode) && f->f_flags & O_APPEND)
+ ipos = inode->i_size;
+@@ -727,7 +727,7 @@ static int yaffs_file_flush(struct file
+ static int yaffs_file_flush(struct file *file)
+ #endif
+ {
+- struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_dentry);
++ struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_path.dentry);
+
+ struct yaffs_dev *dev = obj->my_dev;
+
+@@ -1734,7 +1734,7 @@ static int yaffs_iterate(struct file *f,
+
+ char name[YAFFS_MAX_NAME_LENGTH + 1];
+
+- obj = yaffs_dentry_to_obj(f->f_dentry);
++ obj = yaffs_dentry_to_obj(f->f_path.dentry);
+ dev = obj->my_dev;
+
+ yaffs_gross_lock(dev);
+@@ -1798,14 +1798,14 @@ static int yaffs_readdir(struct file *f,
+ struct yaffs_obj *obj;
+ struct yaffs_dev *dev;
+ struct yaffs_search_context *sc;
+- struct inode *inode = f->f_dentry->d_inode;
++ struct inode *inode = f->f_path.dentry->d_inode;
+ unsigned long offset, curoffs;
+ struct yaffs_obj *l;
+ int ret_val = 0;
+
+ char name[YAFFS_MAX_NAME_LENGTH + 1];
+
+- obj = yaffs_dentry_to_obj(f->f_dentry);
++ obj = yaffs_dentry_to_obj(f->f_path.dentry);
+ dev = obj->my_dev;
+
+ yaffs_gross_lock(dev);
+@@ -1839,10 +1839,10 @@ static int yaffs_readdir(struct file *f,
+ if (offset == 1) {
+ yaffs_trace(YAFFS_TRACE_OS,
+ "yaffs_readdir: entry .. ino %d",
+- (int)f->f_dentry->d_parent->d_inode->i_ino);
++ (int)f->f_path.dentry->d_parent->d_inode->i_ino);
+ yaffs_gross_unlock(dev);
+ if (filldir(dirent, "..", 2, offset,
+- f->f_dentry->d_parent->d_inode->i_ino,
++ f->f_path.dentry->d_parent->d_inode->i_ino,
+ DT_DIR) < 0) {
+ yaffs_gross_lock(dev);
+ goto out;