aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index e5bbc1f30f16..8ed049d1e332 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -654,7 +654,7 @@ xfs_ialloc(
654 xfs_inode_t *ip; 654 xfs_inode_t *ip;
655 uint flags; 655 uint flags;
656 int error; 656 int error;
657 timespec_t tv; 657 struct timespec tv;
658 658
659 /* 659 /*
660 * Call the space management code to pick 660 * Call the space management code to pick
@@ -720,7 +720,7 @@ xfs_ialloc(
720 ip->i_d.di_nextents = 0; 720 ip->i_d.di_nextents = 0;
721 ASSERT(ip->i_d.di_nblocks == 0); 721 ASSERT(ip->i_d.di_nblocks == 0);
722 722
723 nanotime(&tv); 723 tv = current_fs_time(mp->m_super);
724 ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; 724 ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec;
725 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; 725 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec;
726 ip->i_d.di_atime = ip->i_d.di_mtime; 726 ip->i_d.di_atime = ip->i_d.di_mtime;
@@ -769,6 +769,8 @@ xfs_ialloc(
769 di_flags |= XFS_DIFLAG_EXTSZINHERIT; 769 di_flags |= XFS_DIFLAG_EXTSZINHERIT;
770 ip->i_d.di_extsize = pip->i_d.di_extsize; 770 ip->i_d.di_extsize = pip->i_d.di_extsize;
771 } 771 }
772 if (pip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT)
773 di_flags |= XFS_DIFLAG_PROJINHERIT;
772 } else if (S_ISREG(mode)) { 774 } else if (S_ISREG(mode)) {
773 if (pip->i_d.di_flags & XFS_DIFLAG_RTINHERIT) 775 if (pip->i_d.di_flags & XFS_DIFLAG_RTINHERIT)
774 di_flags |= XFS_DIFLAG_REALTIME; 776 di_flags |= XFS_DIFLAG_REALTIME;
@@ -789,8 +791,6 @@ xfs_ialloc(
789 if ((pip->i_d.di_flags & XFS_DIFLAG_NOSYMLINKS) && 791 if ((pip->i_d.di_flags & XFS_DIFLAG_NOSYMLINKS) &&
790 xfs_inherit_nosymlinks) 792 xfs_inherit_nosymlinks)
791 di_flags |= XFS_DIFLAG_NOSYMLINKS; 793 di_flags |= XFS_DIFLAG_NOSYMLINKS;
792 if (pip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT)
793 di_flags |= XFS_DIFLAG_PROJINHERIT;
794 if ((pip->i_d.di_flags & XFS_DIFLAG_NODEFRAG) && 794 if ((pip->i_d.di_flags & XFS_DIFLAG_NODEFRAG) &&
795 xfs_inherit_nodefrag) 795 xfs_inherit_nodefrag)
796 di_flags |= XFS_DIFLAG_NODEFRAG; 796 di_flags |= XFS_DIFLAG_NODEFRAG;