diff options
author | Brian Behlendorf <[email protected]> | 2017-03-07 19:21:37 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-03-10 09:51:33 -0800 |
commit | 0037b49e833a7073bee0ef3f6680f330f727769e (patch) | |
tree | 24404e9e670d391e7821cb14be839b8ed6dd37d7 /module/zfs/zpl_inode.c | |
parent | ef1bdf363c021525c1db9630647dea73498c6bfd (diff) |
Rename zfs_sb_t -> zfsvfs_t
The use of zfs_sb_t instead of zfsvfs_t results in unnecessary
conflicts with the upstream source. Change all instances of
zfs_sb_t to zfsvfs_t including updating the variables names.
Whenever possible the code was updated to be consistent with
hope it appears in the upstream OpenZFS source.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zpl_inode.c')
-rw-r--r-- | module/zfs/zpl_inode.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/module/zfs/zpl_inode.c b/module/zfs/zpl_inode.c index b39a8bbe1..2e438eaff 100644 --- a/module/zfs/zpl_inode.c +++ b/module/zfs/zpl_inode.c @@ -48,7 +48,7 @@ zpl_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) pathname_t *ppn = NULL; pathname_t pn; int zfs_flags = 0; - zfs_sb_t *zsb = dentry->d_sb->s_fs_info; + zfsvfs_t *zfsvfs = dentry->d_sb->s_fs_info; if (dlen(dentry) >= ZAP_MAXNAMELEN) return (ERR_PTR(-ENAMETOOLONG)); @@ -57,7 +57,7 @@ zpl_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) cookie = spl_fstrans_mark(); /* If we are a case insensitive fs, we need the real name */ - if (zsb->z_case == ZFS_CASE_INSENSITIVE) { + if (zfsvfs->z_case == ZFS_CASE_INSENSITIVE) { zfs_flags = FIGNORECASE; pn_alloc(&pn); ppn = &pn; @@ -259,7 +259,7 @@ zpl_unlink(struct inode *dir, struct dentry *dentry) cred_t *cr = CRED(); int error; fstrans_cookie_t cookie; - zfs_sb_t *zsb = dentry->d_sb->s_fs_info; + zfsvfs_t *zfsvfs = dentry->d_sb->s_fs_info; crhold(cr); cookie = spl_fstrans_mark(); @@ -269,7 +269,7 @@ zpl_unlink(struct inode *dir, struct dentry *dentry) * For a CI FS we must invalidate the dentry to prevent the * creation of negative entries. */ - if (error == 0 && zsb->z_case == ZFS_CASE_INSENSITIVE) + if (error == 0 && zfsvfs->z_case == ZFS_CASE_INSENSITIVE) d_invalidate(dentry); spl_fstrans_unmark(cookie); @@ -319,7 +319,7 @@ zpl_rmdir(struct inode *dir, struct dentry *dentry) cred_t *cr = CRED(); int error; fstrans_cookie_t cookie; - zfs_sb_t *zsb = dentry->d_sb->s_fs_info; + zfsvfs_t *zfsvfs = dentry->d_sb->s_fs_info; crhold(cr); cookie = spl_fstrans_mark(); @@ -329,7 +329,7 @@ zpl_rmdir(struct inode *dir, struct dentry *dentry) * For a CI FS we must invalidate the dentry to prevent the * creation of negative entries. */ - if (error == 0 && zsb->z_case == ZFS_CASE_INSENSITIVE) + if (error == 0 && zfsvfs->z_case == ZFS_CASE_INSENSITIVE) d_invalidate(dentry); spl_fstrans_unmark(cookie); @@ -658,7 +658,7 @@ zpl_revalidate(struct dentry *dentry, unsigned int flags) { #endif /* HAVE_D_REVALIDATE_NAMEIDATA */ /* CSTYLED */ - zfs_sb_t *zsb = dentry->d_sb->s_fs_info; + zfsvfs_t *zfsvfs = dentry->d_sb->s_fs_info; int error; if (flags & LOOKUP_RCU) @@ -668,12 +668,12 @@ zpl_revalidate(struct dentry *dentry, unsigned int flags) * Automounted snapshots rely on periodic dentry revalidation * to defer snapshots from being automatically unmounted. */ - if (zsb->z_issnap) { - if (time_after(jiffies, zsb->z_snap_defer_time + + if (zfsvfs->z_issnap) { + if (time_after(jiffies, zfsvfs->z_snap_defer_time + MAX(zfs_expire_snapshot * HZ / 2, HZ))) { - zsb->z_snap_defer_time = jiffies; - zfsctl_snapshot_unmount_delay(zsb->z_os->os_spa, - dmu_objset_id(zsb->z_os), zfs_expire_snapshot); + zfsvfs->z_snap_defer_time = jiffies; + zfsctl_snapshot_unmount_delay(zfsvfs->z_os->os_spa, + dmu_objset_id(zfsvfs->z_os), zfs_expire_snapshot); } } @@ -684,7 +684,7 @@ zpl_revalidate(struct dentry *dentry, unsigned int flags) */ if (dentry->d_inode == NULL) { spin_lock(&dentry->d_lock); - error = time_before(dentry->d_time, zsb->z_rollback_time); + error = time_before(dentry->d_time, zfsvfs->z_rollback_time); spin_unlock(&dentry->d_lock); if (error) |