diff options
author | Dave Chinner <dchinner@redhat.com> | 2016-02-09 06:54:58 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-02-09 06:54:58 +0100 |
commit | c19b3b05ae440de50fffe2ac2a9b27392a7448e9 (patch) | |
tree | c18e6272503b92cf5397aa25cfe19542c2b45149 /fs/xfs/xfs_dir2_readdir.c | |
parent | xfs: move di_changecount to VFS inode (diff) | |
download | linux-c19b3b05ae440de50fffe2ac2a9b27392a7448e9.tar.xz linux-c19b3b05ae440de50fffe2ac2a9b27392a7448e9.zip |
xfs: mode di_mode to vfs inode
Move the di_mode value from the xfs_icdinode to the VFS inode, reducing
the xfs_icdinode byte another 2 bytes and collapsing another 2 byte hole
in the structure.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index 642d55d10075..93b3ab0c5435 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c @@ -665,7 +665,7 @@ xfs_readdir( if (XFS_FORCED_SHUTDOWN(dp->i_mount)) return -EIO; - ASSERT(S_ISDIR(dp->i_d.di_mode)); + ASSERT(S_ISDIR(VFS_I(dp)->i_mode)); XFS_STATS_INC(dp->i_mount, xs_dir_getdents); args.dp = dp; |