libxfs: use structure initializers for cache_operations
PATCH 1/1 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 <[email protected]>
---
libxfs/rdwr.c +6 -6
@@ -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 };
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 6 lines · Eric Sandeen
This makes it a lot easier for cscope etc.
Surely all modern compilers can cope?
Signed-off-by Eric Sandeen <[email protected]>---
Seems reasonable to me.
Reviewed-by Brian Foster <[email protected]>
Quoted 25 lines
libxfs/rdwr.c +6
-6@@ -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 };
Quoted 4 lines
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs