xfs
[Top] [All Lists]

[PATCH] libxfs: use structure initializers for cache_operations

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] libxfs: use structure initializers for cache_operations
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 19 Sep 2014 15:44:33 -0500
Delivered-to: xfs@xxxxxxxxxxx
This makes it a lot easier for cscope etc.

Surely all modern compilers can cope?

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

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
 };
 
 

<Prev in Thread] Current Thread [Next in Thread>