inode.c (3aeb86ea4cd15f728147a3bd5469a205ada8c767) | inode.c (5be79de2e1ffa19d871a494697cf76cddee93384) |
---|---|
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 <mahalcro@us.ibm.com> 8 * Michael C. Thompsion <mcthomps@us.ibm.com> --- 915 unchanged lines hidden (view full) --- 924 goto out; 925 } 926 rc = 0; 927 crypt_stat->flags &= ~(ECRYPTFS_I_SIZE_INITIALIZED 928 | ECRYPTFS_ENCRYPTED); 929 } 930 } 931 mutex_unlock(&crypt_stat->cs_mutex); | 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 <mahalcro@us.ibm.com> 8 * Michael C. Thompsion <mcthomps@us.ibm.com> --- 915 unchanged lines hidden (view full) --- 924 goto out; 925 } 926 rc = 0; 927 crypt_stat->flags &= ~(ECRYPTFS_I_SIZE_INITIALIZED 928 | ECRYPTFS_ENCRYPTED); 929 } 930 } 931 mutex_unlock(&crypt_stat->cs_mutex); |
932 if (S_ISREG(inode->i_mode)) { 933 rc = filemap_write_and_wait(inode->i_mapping); 934 if (rc) 935 goto out; 936 fsstack_copy_attr_all(inode, lower_inode); 937 } |
|
932 memcpy(&lower_ia, ia, sizeof(lower_ia)); 933 if (ia->ia_valid & ATTR_FILE) 934 lower_ia.ia_file = ecryptfs_file_to_lower(ia->ia_file); 935 if (ia->ia_valid & ATTR_SIZE) { 936 rc = truncate_upper(dentry, ia, &lower_ia); 937 if (rc < 0) 938 goto out; 939 } --- 189 unchanged lines hidden --- | 938 memcpy(&lower_ia, ia, sizeof(lower_ia)); 939 if (ia->ia_valid & ATTR_FILE) 940 lower_ia.ia_file = ecryptfs_file_to_lower(ia->ia_file); 941 if (ia->ia_valid & ATTR_SIZE) { 942 rc = truncate_upper(dentry, ia, &lower_ia); 943 if (rc < 0) 944 goto out; 945 } --- 189 unchanged lines hidden --- |