diff options
author | Ryan Moeller <[email protected]> | 2020-11-04 21:47:14 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-11-10 10:54:30 -0800 |
commit | 8a9634e2f36528aa47096ed09cd849a08cb23fc3 (patch) | |
tree | c6c4f91ddffc01a76d186ad85917e30eefb34add /module/os/linux/zfs | |
parent | eec6646ea9126d0f3c367e1298e5272b72cda8a4 (diff) |
Remove redundant oid parameter to update_pages
The oid comes from the znode we are already passing.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Matt Macy <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #11176
Diffstat (limited to 'module/os/linux/zfs')
-rw-r--r-- | module/os/linux/zfs/zfs_vnops_os.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/os/linux/zfs/zfs_vnops_os.c b/module/os/linux/zfs/zfs_vnops_os.c index 056b8900a..8e5208000 100644 --- a/module/os/linux/zfs/zfs_vnops_os.c +++ b/module/os/linux/zfs/zfs_vnops_os.c @@ -249,8 +249,7 @@ zfs_close(struct inode *ip, int flag, cred_t *cr) * the page and the dmu buffer. */ void -update_pages(znode_t *zp, int64_t start, int len, - objset_t *os, uint64_t oid) +update_pages(znode_t *zp, int64_t start, int len, objset_t *os) { struct inode *ip = ZTOI(zp); struct address_space *mp = ip->i_mapping; @@ -269,8 +268,8 @@ update_pages(znode_t *zp, int64_t start, int len, flush_dcache_page(pp); pb = kmap(pp); - (void) dmu_read(os, oid, start+off, nbytes, pb+off, - DMU_READ_PREFETCH); + (void) dmu_read(os, zp->z_id, start + off, nbytes, + pb + off, DMU_READ_PREFETCH); kunmap(pp); if (mapping_writably_mapped(mp)) |