file.c (c95baf12f5077419db01313ab61c2aac007d40cd) file.c (a62187eb1f483e46e5dca796146f203112608cbc)
1// SPDX-License-Identifier: GPL-2.0-or-later
1// SPDX-License-Identifier: GPL-2.0-or-later
2/**
2/*
3 * eCryptfs: Linux filesystem encryption layer
4 *
5 * Copyright (C) 1997-2004 Erez Zadok
6 * Copyright (C) 2001-2004 Stony Brook University
7 * Copyright (C) 2004-2007 International Business Machines Corp.
8 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com>
9 * Michael C. Thompson <mcthomps@us.ibm.com>
10 */
11
12#include <linux/file.h>
13#include <linux/poll.h>
14#include <linux/slab.h>
15#include <linux/mount.h>
16#include <linux/pagemap.h>
17#include <linux/security.h>
18#include <linux/compat.h>
19#include <linux/fs_stack.h>
20#include "ecryptfs_kernel.h"
21
3 * eCryptfs: Linux filesystem encryption layer
4 *
5 * Copyright (C) 1997-2004 Erez Zadok
6 * Copyright (C) 2001-2004 Stony Brook University
7 * Copyright (C) 2004-2007 International Business Machines Corp.
8 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com>
9 * Michael C. Thompson <mcthomps@us.ibm.com>
10 */
11
12#include <linux/file.h>
13#include <linux/poll.h>
14#include <linux/slab.h>
15#include <linux/mount.h>
16#include <linux/pagemap.h>
17#include <linux/security.h>
18#include <linux/compat.h>
19#include <linux/fs_stack.h>
20#include "ecryptfs_kernel.h"
21
22/**
22/*
23 * ecryptfs_read_update_atime
24 *
25 * generic_file_read updates the atime of upper layer inode. But, it
26 * doesn't give us a chance to update the atime of the lower layer
27 * inode. This function is a wrapper to generic_file_read. It
28 * updates the atime of the lower level inode if generic_file_read
29 * returns without any errors. This is to be used only for file reads.
30 * The function to be used for directory reads is ecryptfs_read.

--- 394 unchanged lines hidden ---
23 * ecryptfs_read_update_atime
24 *
25 * generic_file_read updates the atime of upper layer inode. But, it
26 * doesn't give us a chance to update the atime of the lower layer
27 * inode. This function is a wrapper to generic_file_read. It
28 * updates the atime of the lower level inode if generic_file_read
29 * returns without any errors. This is to be used only for file reads.
30 * The function to be used for directory reads is ecryptfs_read.

--- 394 unchanged lines hidden ---