file.c (7bf7e370d5919112c223a269462cd0b546903829) | file.c (57db4e8d73ef2b5e94a3f412108dff2576670a8a) |
---|---|
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> --- 259 unchanged lines hidden (view full) --- 268 kmem_cache_free(ecryptfs_file_info_cache, 269 ecryptfs_file_to_private(file)); 270 return 0; 271} 272 273static int 274ecryptfs_fsync(struct file *file, int datasync) 275{ | 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> --- 259 unchanged lines hidden (view full) --- 268 kmem_cache_free(ecryptfs_file_info_cache, 269 ecryptfs_file_to_private(file)); 270 return 0; 271} 272 273static int 274ecryptfs_fsync(struct file *file, int datasync) 275{ |
276 return vfs_fsync(ecryptfs_file_to_lower(file), datasync); | 276 int rc = 0; 277 278 rc = generic_file_fsync(file, datasync); 279 if (rc) 280 goto out; 281 rc = vfs_fsync(ecryptfs_file_to_lower(file), datasync); 282out: 283 return rc; |
277} 278 279static int ecryptfs_fasync(int fd, struct file *file, int flag) 280{ 281 int rc = 0; 282 struct file *lower_file = NULL; 283 284 lower_file = ecryptfs_file_to_lower(file); --- 68 unchanged lines hidden --- | 284} 285 286static int ecryptfs_fasync(int fd, struct file *file, int flag) 287{ 288 int rc = 0; 289 struct file *lower_file = NULL; 290 291 lower_file = ecryptfs_file_to_lower(file); --- 68 unchanged lines hidden --- |