]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: cleanup the definition of struct xfs_dir2_sf_entry
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:35:19 +0000 (14:35 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:35:19 +0000 (14:35 +0200)
commit78f70cd7b7e8fd44dc89af4f72fb110d865338a1
treea0faa6e46c6d6504de239a1b34e90938a5763bca
parentac8ba50f6be4a3ab49a2ad2cb676422af4ebaf8a
xfs: cleanup the definition of struct xfs_dir2_sf_entry

Remove the inumber member which is at a variable offset after the actual
name, and make name a real variable sized C99 array instead of the incorrect
one-sized array which confuses (not only) gcc.  Based on this clean up
the helpers to calculate the entry size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_dir2_sf.c
fs/xfs/xfs_dir2_sf.h