| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* CacheFiles path walking and related routines |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 20 | 16 | #include <linux/namei.h> |
|---|
| 21 | 17 | #include <linux/security.h> |
|---|
| 22 | 18 | #include <linux/slab.h> |
|---|
| 23 | | -#include <linux/xattr.h> |
|---|
| 24 | 19 | #include "internal.h" |
|---|
| 25 | 20 | |
|---|
| 26 | 21 | #define CACHEFILES_KEYBUF_SIZE 512 |
|---|
| .. | .. |
|---|
| 338 | 333 | try_again: |
|---|
| 339 | 334 | /* first step is to make up a grave dentry in the graveyard */ |
|---|
| 340 | 335 | sprintf(nbuffer, "%08x%08x", |
|---|
| 341 | | - (uint32_t) get_seconds(), |
|---|
| 336 | + (uint32_t) ktime_get_real_seconds(), |
|---|
| 342 | 337 | (uint32_t) atomic_inc_return(&cache->gravecounter)); |
|---|
| 343 | 338 | |
|---|
| 344 | 339 | /* do the multiway lock magic */ |
|---|