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@openwrt.org>2015-08-15 17:16:03 +0000
committerHauke Mehrtens <hauke@openwrt.org>2015-08-15 17:16:03 +0000
commit12e42f24e8e977773c01f7e7d5f407eb7fb52305 (patch)
treebc334e4e0e952c13e5f4f883b486b6e887a692d7 /target/linux/generic/patches-4.1/505-yaffs-3.19-f_dentry-remove.patch
parentee811ead95415d4849e139a455eab5604ca37068 (diff)
downloadmaster-187ad058-12e42f24e8e977773c01f7e7d5f407eb7fb52305.tar.gz
master-187ad058-12e42f24e8e977773c01f7e7d5f407eb7fb52305.tar.bz2
master-187ad058-12e42f24e8e977773c01f7e7d5f407eb7fb52305.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46609 3c298f89-4303-0410-b956-a3cf2f4a3e73
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;