[PATCH] reiser4: port for Linux-4.10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Edward Shishkin <edward.shishkin@xxxxxxxxx>

1) Flag WRITE_FLUSH_FUA gone. Use a combination of REQ_PREFLUSH
and REQ_FUA instead;
2) ->readlink() of inode operations gone.

Signed-off-by: Edward Shishkin <edward.shishkin@xxxxxxxxx>
---
 plugin/object.c | 1 -
 wander.c        | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugin/object.c b/plugin/object.c
index 01f1bba..c039455 100644
--- a/plugin/object.c
+++ b/plugin/object.c
@@ -155,7 +155,6 @@ static struct address_space_operations regular_file_a_ops = {
 
 /* VFS methods for symlink files */
 static struct inode_operations symlink_file_i_ops = {
-	.readlink = generic_readlink,
 	.get_link = reiser4_get_link_common,
 	.permission = reiser4_permission_common,
 	.setattr = reiser4_setattr_common,
diff --git a/wander.c b/wander.c
index 407bb5e..8595c22 100644
--- a/wander.c
+++ b/wander.c
@@ -708,7 +708,7 @@ static int write_jnodes_to_disk_extent(
 	flush_queue_t *fq, int flags)
 {
 	struct super_block *super = reiser4_get_current_sb();
-	int op_flags = (flags & WRITEOUT_FLUSH_FUA) ? WRITE_FLUSH_FUA : 0;
+	int op_flags = (flags & WRITEOUT_FLUSH_FUA) ? REQ_PREFLUSH | REQ_FUA : 0;
 	jnode *cur = first;
 	reiser4_block_nr block;
 
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux