Reiser4: Port for Linux-4.11
PATCH 1/1 Reiser4: Port for Linux-4.11
Signed-off-by Edward Shishkin <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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