Skip to contentSkip to conversation

FS-Cache: make fscache_fsdef_index_def const

PATCH New Bhumika Goyal 1 participant 1 message Aug 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FS-Cache: make fscache_fsdef_index_def const

Make this const as it is only stored in the const field of a fscache_cookie structure.

---
 fs/fscache/fsdef.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fscache/fsdef.c +1 -1
index 5a117df..f867328 100644
@@ -48,7 +48,7 @@ enum fscache_checkaux fscache_fsdef_netfs_check_aux(void *cookie_netfs_data,
  * cache.  It can create whatever objects it likes in that index, including
  * further indices.
  */
-static struct fscache_cookie_def fscache_fsdef_index_def = {
+static const struct fscache_cookie_def fscache_fsdef_index_def = {
 	.name		= ".FS-Cache",
 	.type		= FSCACHE_COOKIE_TYPE_INDEX,
 };
Signature · 1 line
1.9.1