[PATCH] libxfs: use structure initializers for cache_operations
Eric Sandeen
sandeen at sandeen.net
Fri Sep 19 15:44:33 CDT 2014
This makes it a lot easier for cscope etc.
Surely all modern compilers can cope?
Signed-off-by: Eric Sandeen <sandeen at redhat.com>
---
diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
index 9ee89d3..80de6fa 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
};
More information about the xfs
mailing list