xfs_inode.c (664ffb8a429a800c51964b94c15c6a92c8d8334c) | xfs_inode.c (f93e5436f0ee5a85eaa3a86d2614d215873fb18b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include <linux/iversion.h> 7 8#include "xfs.h" --- 810 unchanged lines hidden (view full) --- 819 820 ip->i_d.di_extsize = 0; 821 ip->i_d.di_dmevmask = 0; 822 ip->i_d.di_dmstate = 0; 823 ip->i_d.di_flags = 0; 824 825 if (xfs_sb_version_has_v3inode(&mp->m_sb)) { 826 inode_set_iversion(inode, 1); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2000-2006 Silicon Graphics, Inc. 4 * All Rights Reserved. 5 */ 6#include <linux/iversion.h> 7 8#include "xfs.h" --- 810 unchanged lines hidden (view full) --- 819 820 ip->i_d.di_extsize = 0; 821 ip->i_d.di_dmevmask = 0; 822 ip->i_d.di_dmstate = 0; 823 ip->i_d.di_flags = 0; 824 825 if (xfs_sb_version_has_v3inode(&mp->m_sb)) { 826 inode_set_iversion(inode, 1); |
827 ip->i_d.di_flags2 = 0; | 827 ip->i_d.di_flags2 = mp->m_ino_geo.new_diflags2; |
828 ip->i_d.di_cowextsize = 0; 829 ip->i_d.di_crtime = tv; 830 } 831 832 flags = XFS_ILOG_CORE; 833 switch (mode & S_IFMT) { 834 case S_IFIFO: 835 case S_IFCHR: --- 1865 unchanged lines hidden (view full) --- 2701 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { 2702 kmem_free(ip->i_df.if_u1.if_data); 2703 ip->i_df.if_u1.if_data = NULL; 2704 ip->i_df.if_bytes = 0; 2705 } 2706 2707 VFS_I(ip)->i_mode = 0; /* mark incore inode as free */ 2708 ip->i_d.di_flags = 0; | 828 ip->i_d.di_cowextsize = 0; 829 ip->i_d.di_crtime = tv; 830 } 831 832 flags = XFS_ILOG_CORE; 833 switch (mode & S_IFMT) { 834 case S_IFIFO: 835 case S_IFCHR: --- 1865 unchanged lines hidden (view full) --- 2701 if (ip->i_df.if_format == XFS_DINODE_FMT_LOCAL) { 2702 kmem_free(ip->i_df.if_u1.if_data); 2703 ip->i_df.if_u1.if_data = NULL; 2704 ip->i_df.if_bytes = 0; 2705 } 2706 2707 VFS_I(ip)->i_mode = 0; /* mark incore inode as free */ 2708 ip->i_d.di_flags = 0; |
2709 ip->i_d.di_flags2 = 0; | 2709 ip->i_d.di_flags2 = ip->i_mount->m_ino_geo.new_diflags2; |
2710 ip->i_d.di_dmevmask = 0; 2711 ip->i_d.di_forkoff = 0; /* mark the attr fork not in use */ 2712 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; 2713 2714 /* Don't attempt to replay owner changes for a deleted inode */ 2715 spin_lock(&iip->ili_lock); 2716 iip->ili_fields &= ~(XFS_ILOG_AOWNER | XFS_ILOG_DOWNER); 2717 spin_unlock(&iip->ili_lock); --- 1087 unchanged lines hidden --- | 2710 ip->i_d.di_dmevmask = 0; 2711 ip->i_d.di_forkoff = 0; /* mark the attr fork not in use */ 2712 ip->i_df.if_format = XFS_DINODE_FMT_EXTENTS; 2713 2714 /* Don't attempt to replay owner changes for a deleted inode */ 2715 spin_lock(&iip->ili_lock); 2716 iip->ili_fields &= ~(XFS_ILOG_AOWNER | XFS_ILOG_DOWNER); 2717 spin_unlock(&iip->ili_lock); --- 1087 unchanged lines hidden --- |