file.c (6e9041c6ddd6cbdc61d87bcaca8ca7bb17c28377) file.c (bc5abcf7e411b889f73ea2a90439071a0f451011)
1/**
2 * eCryptfs: Linux filesystem encryption layer
3 *
4 * Copyright (C) 1997-2004 Erez Zadok
5 * Copyright (C) 2001-2004 Stony Brook University
6 * Copyright (C) 2004-2007 International Business Machines Corp.
7 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com>
8 * Michael C. Thompson <mcthomps@us.ibm.com>

--- 281 unchanged lines hidden (view full) ---

290 kmem_cache_free(ecryptfs_file_info_cache,
291 ecryptfs_file_to_private(file));
292 return 0;
293}
294
295static int
296ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
297{
1/**
2 * eCryptfs: Linux filesystem encryption layer
3 *
4 * Copyright (C) 1997-2004 Erez Zadok
5 * Copyright (C) 2001-2004 Stony Brook University
6 * Copyright (C) 2004-2007 International Business Machines Corp.
7 * Author(s): Michael A. Halcrow <mhalcrow@us.ibm.com>
8 * Michael C. Thompson <mcthomps@us.ibm.com>

--- 281 unchanged lines hidden (view full) ---

290 kmem_cache_free(ecryptfs_file_info_cache,
291 ecryptfs_file_to_private(file));
292 return 0;
293}
294
295static int
296ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
297{
298 int rc;
299
300 rc = filemap_write_and_wait(file->f_mapping);
301 if (rc)
302 return rc;
303
298 return vfs_fsync(ecryptfs_file_to_lower(file), datasync);
299}
300
301static int ecryptfs_fasync(int fd, struct file *file, int flag)
302{
303 int rc = 0;
304 struct file *lower_file = NULL;
305

--- 69 unchanged lines hidden ---
304 return vfs_fsync(ecryptfs_file_to_lower(file), datasync);
305}
306
307static int ecryptfs_fasync(int fd, struct file *file, int flag)
308{
309 int rc = 0;
310 struct file *lower_file = NULL;
311

--- 69 unchanged lines hidden ---