diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
| -rw-r--r-- | fs/xfs/xfs_inode.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index dc4b8bd33f4f..75b636c14876 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
| @@ -828,15 +828,17 @@ xfs_ip2xflags( | |||
| 828 | xfs_icdinode_t *dic = &ip->i_d; | 828 | xfs_icdinode_t *dic = &ip->i_d; |
| 829 | 829 | ||
| 830 | return _xfs_dic2xflags(dic->di_flags) | | 830 | return _xfs_dic2xflags(dic->di_flags) | |
| 831 | (XFS_CFORK_Q(dic) ? XFS_XFLAG_HASATTR : 0); | 831 | (XFS_IFORK_Q(ip) ? XFS_XFLAG_HASATTR : 0); |
| 832 | } | 832 | } |
| 833 | 833 | ||
| 834 | uint | 834 | uint |
| 835 | xfs_dic2xflags( | 835 | xfs_dic2xflags( |
| 836 | xfs_dinode_core_t *dic) | 836 | xfs_dinode_t *dip) |
| 837 | { | 837 | { |
| 838 | xfs_dinode_core_t *dic = &dip->di_core; | ||
| 839 | |||
| 838 | return _xfs_dic2xflags(be16_to_cpu(dic->di_flags)) | | 840 | return _xfs_dic2xflags(be16_to_cpu(dic->di_flags)) | |
| 839 | (XFS_CFORK_Q_DISK(dic) ? XFS_XFLAG_HASATTR : 0); | 841 | (XFS_DFORK_Q(dip) ? XFS_XFLAG_HASATTR : 0); |
| 840 | } | 842 | } |
| 841 | 843 | ||
| 842 | /* | 844 | /* |
