--- zzzz-none-000/linux-2.6.39.4/fs/ecryptfs/read_write.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/fs/ecryptfs/read_write.c 2021-11-10 13:23:10.000000000 +0000 @@ -40,15 +40,11 @@ loff_t offset, size_t size) { struct ecryptfs_inode_info *inode_info; - mm_segment_t fs_save; ssize_t rc; inode_info = ecryptfs_inode_to_private(ecryptfs_inode); BUG_ON(!inode_info->lower_file); - fs_save = get_fs(); - set_fs(get_ds()); - rc = vfs_write(inode_info->lower_file, data, size, &offset); - set_fs(fs_save); + rc = kernel_write(lower_file, data, size, offset); mark_inode_dirty_sync(ecryptfs_inode); return rc; }