Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share zfs_fsync, zfs_read, zfs_write, et al between Linux and FreeBSD #11078

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

mattmacy
Copy link
Contributor

Signed-off-by: Matt Macy mmacy@FreeBSD.org

Motivation and Context

Description

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Oct 16, 2020
include/sys/zfs_vnops.h Outdated Show resolved Hide resolved
module/os/freebsd/zfs/zfs_znode.c Show resolved Hide resolved
include/os/linux/spl/sys/uio.h Outdated Show resolved Hide resolved
@ghost ghost requested a review from lundman October 16, 2020 22:35
@codecov
Copy link

codecov bot commented Oct 17, 2020

Codecov Report

Merging #11078 into master will increase coverage by 0.01%.
The diff coverage is 73.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11078      +/-   ##
==========================================
+ Coverage   79.70%   79.71%   +0.01%     
==========================================
  Files         397      398       +1     
  Lines      125756   125745      -11     
==========================================
+ Hits       100228   100242      +14     
+ Misses      25528    25503      -25     
Flag Coverage Δ
#kernel 80.43% <73.09%> (+0.03%) ⬆️
#user 65.57% <ø> (+0.41%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/os/linux/spl/sys/uio.h 100.00% <ø> (ø)
lib/libspl/include/sys/uio.h 100.00% <ø> (ø)
module/os/linux/zfs/zvol_os.c 87.36% <ø> (-0.03%) ⬇️
module/os/linux/zfs/policy.c 60.81% <50.00%> (ø)
module/zfs/zfs_vnops.c 72.68% <72.68%> (ø)
module/os/linux/zfs/zfs_vnops_os.c 69.87% <100.00%> (ø)
module/os/linux/zfs/zfs_znode.c 86.19% <100.00%> (+0.01%) ⬆️
module/os/linux/zfs/zpl_file.c 90.88% <100.00%> (-0.06%) ⬇️
module/zfs/dsl_synctask.c 92.30% <0.00%> (-2.57%) ⬇️
lib/libzpool/kernel.c 64.54% <0.00%> (-2.28%) ⬇️
... and 57 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13d6598...6566757. Read the comment docs.

module/zfs/zfs_vnops.c Outdated Show resolved Hide resolved
module/zfs/zfs_vnops.c Outdated Show resolved Hide resolved
module/zfs/zfs_vnops.c Show resolved Hide resolved
module/zfs/zfs_vnops.c Outdated Show resolved Hide resolved
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Oct 21, 2020
@behlendorf behlendorf merged commit e53d678 into openzfs:master Oct 21, 2020
@mattmacy mattmacy deleted the projects/zfs_vnops branch October 22, 2020 22:23
behlendorf pushed a commit that referenced this pull request Dec 23, 2020
The zfs_fsync, zfs_read, and zfs_write function are almost identical
between Linux and FreeBSD.  With a little refactoring they can be
moved to the common code which is what is done by this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #11078
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
The zfs_fsync, zfs_read, and zfs_write function are almost identical
between Linux and FreeBSD.  With a little refactoring they can be
moved to the common code which is what is done by this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes openzfs#11078
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
The zfs_fsync, zfs_read, and zfs_write function are almost identical
between Linux and FreeBSD.  With a little refactoring they can be
moved to the common code which is what is done by this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes openzfs#11078
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants