summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/ufs/ufs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/fs/ufs/ufs_inode.c')
-rw-r--r--usr/src/uts/common/fs/ufs/ufs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/ufs/ufs_inode.c b/usr/src/uts/common/fs/ufs/ufs_inode.c
index 760043a2d9..40e051005a 100644
--- a/usr/src/uts/common/fs/ufs/ufs_inode.c
+++ b/usr/src/uts/common/fs/ufs/ufs_inode.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1192,7 +1192,7 @@ ufs_itrunc(struct inode *oip, u_offset_t length, int flags, cred_t *cr)
if (flags & I_FREE) {
i_genrand *= 16843009; /* turns into shift and adds */
i_genrand++;
- oip->i_gen += ((i_genrand + lbolt) & 0xffff) + 1;
+ oip->i_gen += ((i_genrand + ddi_get_lbolt()) & 0xffff) + 1;
oip->i_flag |= ICHG |IUPD;
oip->i_seq++;
if (length == oip->i_size)