diff options
Diffstat (limited to 'module/zfs/zpl_file.c')
-rw-r--r-- | module/zfs/zpl_file.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/module/zfs/zpl_file.c b/module/zfs/zpl_file.c index cdacdba27..4805abe69 100644 --- a/module/zfs/zpl_file.c +++ b/module/zfs/zpl_file.c @@ -605,14 +605,14 @@ static int zpl_writepages(struct address_space *mapping, struct writeback_control *wbc) { znode_t *zp = ITOZ(mapping->host); - zfs_sb_t *zsb = ITOZSB(mapping->host); + zfsvfs_t *zfsvfs = ITOZSB(mapping->host); enum writeback_sync_modes sync_mode; int result; - ZFS_ENTER(zsb); - if (zsb->z_os->os_sync == ZFS_SYNC_ALWAYS) + ZFS_ENTER(zfsvfs); + if (zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS) wbc->sync_mode = WB_SYNC_ALL; - ZFS_EXIT(zsb); + ZFS_EXIT(zfsvfs); sync_mode = wbc->sync_mode; /* @@ -625,11 +625,11 @@ zpl_writepages(struct address_space *mapping, struct writeback_control *wbc) wbc->sync_mode = WB_SYNC_NONE; result = write_cache_pages(mapping, wbc, zpl_putpage, mapping); if (sync_mode != wbc->sync_mode) { - ZFS_ENTER(zsb); + ZFS_ENTER(zfsvfs); ZFS_VERIFY_ZP(zp); - if (zsb->z_log != NULL) - zil_commit(zsb->z_log, zp->z_id); - ZFS_EXIT(zsb); + if (zfsvfs->z_log != NULL) + zil_commit(zfsvfs->z_log, zp->z_id); + ZFS_EXIT(zfsvfs); /* * We need to call write_cache_pages() again (we can't just |