Reiser4: Port for Linux-4.12
PATCH 1/1 Reiser4: Port for Linux-4.12
From: Edward Shishkin <[email protected]>
Signed-off-by Edward Shishkin <[email protected]>
--- plugin/file/cryptcompress.c | 2 +- plugin/file/file.c | 4 ++-- plugin/file_plugin_common.c | 8 ++++---- plugin/inode_ops.c | 4 ++-- plugin/inode_ops_rename.c | 2 +- plugin/item/extent_file_ops.c | 4 ++-- plugin/item/static_stat.c | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-)
plugin/file/cryptcompress.c +1 -1
@@ -1594,7 +1594,7 @@ static int update_sd_cryptcompress(struct inode *inode)if (result)return result;if (!IS_NOCMTIME (inode)) - inode->i_ctime = inode->i_mtime =CURRENT_TIME ; + inode->i_ctime = inode->i_mtime =current_time (inode); result =reiser4_update_sd (inode);
plugin/file/file.c +2 -2
@@ -364,7 +364,7 @@ int reiser4_update_file_size(struct inode *inode, loff_t new_size,INODE_SET_SIZE (inode, new_size);if (update_sd) { - inode->i_ctime = inode->i_mtime =CURRENT_TIME ; + inode->i_ctime = inode->i_mtime =current_time (inode); result =reiser4_update_sd (inode); }return result;
@@ -2238,7 +2238,7 @@ ssize_t write_unix_file(struct file *file, update_sd =1 ; }if (!IS_NOCMTIME (inode)) { - inode->i_ctime = inode->i_mtime =CURRENT_TIME ; + inode->i_ctime = inode->i_mtime =current_time (inode); update_sd =1 ; }if (update_sd) {
plugin/file_plugin_common.c +4 -4
@@ -60,7 +60,7 @@ int set_plug_in_inode_common(struct inode *object /* inode to set plugin on */ , object->i_mode = data->mode;/* this should be plugin decision */ object->i_uid =current_fsuid (); - object->i_mtime = object->i_atime = object->i_ctime =CURRENT_TIME ; + object->i_mtime = object->i_atime = object->i_ctime =current_time (object);/* support for BSD style group-id assignment. See mount's manual page description of bsdgroups ext2 mount options for more details */
@@ -256,7 +256,7 @@ int reiser4_add_link_common(struct inode *object, struct inode *parent)*/ INODE_INC_NLINK (object); - object->i_ctime =CURRENT_TIME ; + object->i_ctime =current_time (object);return 0 ; }
@@ -272,7 +272,7 @@ int reiser4_rem_link_common(struct inode *object, struct inode *parent)*/ INODE_DROP_NLINK (object); - object->i_ctime =CURRENT_TIME ; + object->i_ctime =current_time (object);return 0 ; }
@@ -292,7 +292,7 @@ int rem_link_common_dir(struct inode *object, struct inode *parent UNUSED_ARG)else INODE_DROP_NLINK (object); - object->i_ctime =CURRENT_TIME ; + object->i_ctime =current_time (object);return 0 ; }
plugin/inode_ops.c +2 -2
@@ -693,7 +693,7 @@ static int do_create_vfs_child(reiser4_object_create_data * data,/* parametersst_mtime fields of the file and the st_ctime and st_mtime fields of the parent directory. --SUS */ - object->i_ctime =CURRENT_TIME ; + object->i_ctime =current_time (object);reiser4_update_dir (parent); }if (result !=0 )
@@ -875,7 +875,7 @@ int reiser4_update_dir(struct inode *dir) {assert ("nikita-2525" , dir !=NULL ); - dir->i_ctime = dir->i_mtime =CURRENT_TIME ; + dir->i_ctime = dir->i_mtime =current_time (dir);return reiser4_update_sd (dir); }
plugin/inode_ops_rename.c +1 -1
@@ -80,7 +80,7 @@ static int replace_name(struct inode *to_inode, /* inode where @from_coord is/* NOTE-NIKITA consider calling plugin method in stead of accessing inode fields directly. */ - from_dir->i_mtime =CURRENT_TIME ; + from_dir->i_mtime =current_time (from_dir); }else {warning ("nikita-2326" ,"Unexpected item type" ); result =RETERR (-EIO );
plugin/item/extent_file_ops.c +2 -2
@@ -942,13 +942,13 @@ filemap_copy_from_user(struct page *page, unsigned long offset,int left; kaddr =kmap_atomic (page); - left =__copy_from_user_inatomic_nocache (kaddr + offset, buf, bytes); + left =__copy_from_user_inatomic (kaddr + offset, buf, bytes);kunmap_atomic (kaddr);if (left !=0 ) {/* Do it the slow way */ kaddr =kmap (page); - left =__copy_from_user_nocache (kaddr + offset, buf, bytes); + left =__copy_from_user (kaddr + offset, buf, bytes);kunmap (page); }return bytes - left;
plugin/item/static_stat.c +1 -1
@@ -346,7 +346,7 @@ static int absent_unix_sd(struct inode *inode /* object being processed */ ) {i_uid_write (inode,get_super_private (inode->i_sb)->default_uid);i_gid_write (inode,get_super_private (inode->i_sb)->default_gid); - inode->i_atime = inode->i_mtime = inode->i_ctime =CURRENT_TIME ; + inode->i_atime = inode->i_mtime = inode->i_ctime =current_time (inode);inode_set_bytes (inode, inode->i_size);/* mark inode as lightweight, so that caller (lookup_common) will complete initialisation by copying [ug]id from a parent. */
Signature · 1 line
2.7.5