]> git.proxmox.com Git - mirror_spl.git/blobdiff - module/spl/spl-vnode.c
Linux 4.12 compat: PF_FSTRANS was removed
[mirror_spl.git] / module / spl / spl-vnode.c
index 0902e11618cae09247c8e57b089f85809adfd1c3..346e63c0f1613a4af068338595db08de59fdc439 100644 (file)
@@ -558,13 +558,13 @@ int vn_fsync(vnode_t *vp, int flags, void *x3, void *x4)
         * May enter XFS which generates a warning when PF_FSTRANS is set.
         * To avoid this the flag is cleared over vfs_sync() and then reset.
         */
-       fstrans = spl_fstrans_check();
+       fstrans = __spl_pf_fstrans_check();
        if (fstrans)
-               current->flags &= ~(PF_FSTRANS);
+               current->flags &= ~(__SPL_PF_FSTRANS);
 
        error = -spl_filp_fsync(vp->v_file, datasync);
        if (fstrans)
-               current->flags |= PF_FSTRANS;
+               current->flags |= __SPL_PF_FSTRANS;
 
        return (error);
 } /* vn_fsync() */
@@ -590,9 +590,9 @@ int vn_space(vnode_t *vp, int cmd, struct flock *bfp, int flag,
         * May enter XFS which generates a warning when PF_FSTRANS is set.
         * To avoid this the flag is cleared over vfs_sync() and then reset.
         */
-       fstrans = spl_fstrans_check();
+       fstrans = __spl_pf_fstrans_check();
        if (fstrans)
-               current->flags &= ~(PF_FSTRANS);
+               current->flags &= ~(__SPL_PF_FSTRANS);
 
        /*
         * When supported by the underlying file system preferentially
@@ -603,7 +603,7 @@ int vn_space(vnode_t *vp, int cmd, struct flock *bfp, int flag,
            bfp->l_start, bfp->l_len);
 
        if (fstrans)
-               current->flags |= PF_FSTRANS;
+               current->flags |= __SPL_PF_FSTRANS;
 
        if (error == 0)
                return (0);