hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/fs/cachefiles/namei.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* CacheFiles path walking and related routines
23 *
34 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public Licence
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the Licence, or (at your option) any later version.
106 */
117
128 #include <linux/module.h>
....@@ -20,7 +16,6 @@
2016 #include <linux/namei.h>
2117 #include <linux/security.h>
2218 #include <linux/slab.h>
23
-#include <linux/xattr.h>
2419 #include "internal.h"
2520
2621 #define CACHEFILES_KEYBUF_SIZE 512
....@@ -338,7 +333,7 @@
338333 try_again:
339334 /* first step is to make up a grave dentry in the graveyard */
340335 sprintf(nbuffer, "%08x%08x",
341
- (uint32_t) get_seconds(),
336
+ (uint32_t) ktime_get_real_seconds(),
342337 (uint32_t) atomic_inc_return(&cache->gravecounter));
343338
344339 /* do the multiway lock magic */