Skip to contentSkip to conversation

Reiser4: Port for Linux-4.11

PATCH New Edward Shishkin 1 participant 1 message Jun 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Reiser4: Port for Linux-4.11

---
 debug.c            | 1 +
 entd.c             | 2 +-
 plugin/inode_ops.c | 9 ++++-----
 plugin/object.h    | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
debug.c +1 -0
index b5b56fa..96c9508 100644
@@ -39,6 +39,7 @@
 #include <linux/ctype.h>
 #include <linux/sysctl.h>
 #include <linux/hardirq.h>
+#include <linux/sched/signal.h>  /* signal_pending() */
 
 #if 0
 #if REISER4_DEBUG
entd.c +1 -1
index 731ed65..e6b56ae 100644
@@ -246,7 +246,7 @@ static void entd_flush(struct super_block *super, struct wbq *rq)
 			.sync_mode	= WB_SYNC_NONE,
 			.nr_pages	= LONG_MAX,
 			.range_cyclic	= 0,
-			.reason		= WB_REASON_TRY_TO_FREE_PAGES,
+			.reason		= WB_REASON_VMSCAN,
 		};
 		rq->wbc->sync_mode = work.sync_mode,
 		rq->wbc->range_cyclic = work.range_cyclic,
plugin/inode_ops.c +4 -5
index b22dbac..91fe425 100644
@@ -474,16 +474,15 @@ int reiser4_setattr_common(struct dentry *dentry, struct iattr *attr)
 /* this is common implementation of vfs's getattr method of struct
    inode_operations
 */
-int reiser4_getattr_common(struct vfsmount *mnt UNUSED_ARG,
-			   struct dentry *dentry, struct kstat *stat)
+int reiser4_getattr_common(const struct path *path, struct kstat *stat,
+			   u32 request_mask, unsigned int flags)
 {
 	struct inode *obj;
 
-	assert("nikita-2298", dentry != NULL);
+	assert("nikita-2298", path != NULL);
 	assert("nikita-2299", stat != NULL);
-	assert("nikita-2300", dentry->d_inode != NULL);
 
-	obj = dentry->d_inode;
+	obj = d_inode(path->dentry);
 
 	stat->dev = obj->i_sb->s_dev;
 	stat->ino = oid_to_uino(get_inode_oid(obj));
plugin/object.h +2 -2
index c69c6b0..60ca4b9 100644
@@ -29,8 +29,8 @@ const char *reiser4_get_link_common(struct dentry *, struct inode *inode,
 				    struct delayed_call *done);
 int reiser4_permission_common(struct inode *, int mask);
 int reiser4_setattr_common(struct dentry *, struct iattr *);
-int reiser4_getattr_common(struct vfsmount *mnt, struct dentry *,
-			   struct kstat *);
+int reiser4_getattr_common(const struct path *path, struct kstat *stat,
+			   u32 request_mask, unsigned int flags);
 
 /* common implementations of file operations */
 loff_t reiser4_llseek_dir_common(struct file *, loff_t off, int origin);
Signature · 1 line
1.9.3