diff options
author | Christoph Hellwig <hch@lst.de> | 2011-07-08 14:35:13 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2011-07-08 14:35:13 +0200 |
commit | ac8ba50f6be4a3ab49a2ad2cb676422af4ebaf8a (patch) | |
tree | 7f08e8da5a8ae0e39df616faff5c94f2c386b46c /fs/xfs/xfs_dir2.c | |
parent | 8bc387875870c87087f138741f456983cbc54660 (diff) | |
download | kernel_goldelico_gta04-ac8ba50f6be4a3ab49a2ad2cb676422af4ebaf8a.zip kernel_goldelico_gta04-ac8ba50f6be4a3ab49a2ad2cb676422af4ebaf8a.tar.gz kernel_goldelico_gta04-ac8ba50f6be4a3ab49a2ad2cb676422af4ebaf8a.tar.bz2 |
xfs: kill struct xfs_dir2_sf
The list field of it is never cactually used, so all uses can simply be
replaced with the xfs_dir2_sf_hdr_t type that it has as first member.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/xfs_dir2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index dba7a71..0dee578 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c @@ -122,15 +122,15 @@ int xfs_dir_isempty( xfs_inode_t *dp) { - xfs_dir2_sf_t *sfp; + xfs_dir2_sf_hdr_t *sfp; ASSERT((dp->i_d.di_mode & S_IFMT) == S_IFDIR); if (dp->i_d.di_size == 0) /* might happen during shutdown. */ return 1; if (dp->i_d.di_size > XFS_IFORK_DSIZE(dp)) return 0; - sfp = (xfs_dir2_sf_t *)dp->i_df.if_u1.if_data; - return !sfp->hdr.count; + sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; + return !sfp->count; } /* |