]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: use structure initializers for cache_operations
authorEric Sandeen <sandeen@sandeen.net>
Wed, 29 Oct 2014 05:29:53 +0000 (16:29 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 29 Oct 2014 05:29:53 +0000 (16:29 +1100)
This makes it a lot easier for cscope etc.

Surely all modern compilers can cope?

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/rdwr.c

index 9ee89d30fc8cb967b79af2ab803858df5c629b1f..80de6fa17289e9b61cf6f05218b19058b03b6d98 100644 (file)
@@ -1088,12 +1088,12 @@ libxfs_bcache_overflowed(void)
 }
 
 struct cache_operations libxfs_bcache_operations = {
-       /* .hash */     libxfs_bhash,
-       /* .alloc */    libxfs_balloc,
-       /* .flush */    libxfs_bflush,
-       /* .relse */    libxfs_brelse,
-       /* .compare */  libxfs_bcompare,
-       /* .bulkrelse */libxfs_bulkrelse
+       .hash           = libxfs_bhash,
+       .alloc          = libxfs_balloc,
+       .flush          = libxfs_bflush,
+       .relse          = libxfs_brelse,
+       .compare        = libxfs_bcompare,
+       .bulkrelse      = libxfs_bulkrelse
 };