diff options
-rw-r--r-- | sys/ufs/ufs/inode.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/ufs/ufs/inode.h b/sys/ufs/ufs/inode.h index f35ecec31d8..3b730c08254 100644 --- a/sys/ufs/ufs/inode.h +++ b/sys/ufs/ufs/inode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inode.h,v 1.41 2014/01/25 23:31:13 guenther Exp $ */ +/* $OpenBSD: inode.h,v 1.42 2014/01/26 02:02:26 tedu Exp $ */ /* $NetBSD: inode.h,v 1.8 1995/06/15 23:22:50 cgd Exp $ */ /* @@ -311,6 +311,15 @@ struct indir { #define VTOI(vp) ((struct inode *)(vp)->v_data) #define ITOV(ip) ((ip)->i_vnode) +#define EXT2FS_ITIMES(ip) do { \ + if ((ip)->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) { \ + (ip)->i_flag |= IN_MODIFIED; \ + if ((ip)->i_flag & IN_CHANGE) \ + (ip)->i_e2fs_ctime = time_second; \ + (ip)->i_flag &= ~(IN_ACCESS | IN_CHANGE | IN_UPDATE); \ + } \ +} while (0) + /* Determine if soft dependencies are being done */ #ifdef FFS_SOFTUPDATES #define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP) |