* [PATCH] FS-Cache: make fscache_fsdef_index_def const
@ 2017-08-28 17:47 Bhumika Goyal
0 siblings, 0 replies; only message in thread
From: Bhumika Goyal @ 2017-08-28 17:47 UTC (permalink / raw)
To: julia.lawall, dhowells, linux-cachefs, linux-kernel; +Cc: Bhumika Goyal
Make this const as it is only stored in the const field of a
fscache_cookie structure.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
fs/fscache/fsdef.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fscache/fsdef.c b/fs/fscache/fsdef.c
index 5a117df..f867328 100644
--- a/fs/fscache/fsdef.c
+++ b/fs/fscache/fsdef.c
@@ -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,
};
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-28 17:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-28 17:47 [PATCH] FS-Cache: make fscache_fsdef_index_def const Bhumika Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®