From: Eric Sandeen Date: Wed, 29 Oct 2014 05:29:53 +0000 (+1100) Subject: libxfs: use structure initializers for cache_operations X-Git-Tag: v3.2.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9cc49a7a29070b9fbead903ee4925b61e1baee;p=thirdparty%2Fxfsprogs-dev.git libxfs: use structure initializers for cache_operations This makes it a lot easier for cscope etc. Surely all modern compilers can cope? Signed-off-by: Eric Sandeen Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c index 9ee89d30f..80de6fa17 100644 --- a/libxfs/rdwr.c +++ b/libxfs/rdwr.c @@ -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 };