super.c (a8ab6d3885ef5e2300d683b79a9e1999403eefd9) | super.c (043546e46dc70c25ff7e2cf6d09cbb0424fc9978) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/ext4/super.c 4 * 5 * Copyright (C) 1992, 1993, 1994, 1995 6 * Remy Card (card@masi.ibp.fr) 7 * Laboratoire MASI - Institut Blaise Pascal 8 * Universite Pierre et Marie Curie (Paris VI) --- 1334 unchanged lines hidden (view full) --- 1343 if (!res) { 1344 ext4_set_inode_flag(inode, EXT4_INODE_ENCRYPT); 1345 ext4_clear_inode_state(inode, 1346 EXT4_STATE_MAY_INLINE_DATA); 1347 /* 1348 * Update inode->i_flags - S_ENCRYPTED will be enabled, 1349 * S_DAX may be disabled 1350 */ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/ext4/super.c 4 * 5 * Copyright (C) 1992, 1993, 1994, 1995 6 * Remy Card (card@masi.ibp.fr) 7 * Laboratoire MASI - Institut Blaise Pascal 8 * Universite Pierre et Marie Curie (Paris VI) --- 1334 unchanged lines hidden (view full) --- 1343 if (!res) { 1344 ext4_set_inode_flag(inode, EXT4_INODE_ENCRYPT); 1345 ext4_clear_inode_state(inode, 1346 EXT4_STATE_MAY_INLINE_DATA); 1347 /* 1348 * Update inode->i_flags - S_ENCRYPTED will be enabled, 1349 * S_DAX may be disabled 1350 */ |
1351 ext4_set_inode_flags(inode); | 1351 ext4_set_inode_flags(inode, false); |
1352 } 1353 return res; 1354 } 1355 1356 res = dquot_initialize(inode); 1357 if (res) 1358 return res; 1359retry: --- 10 unchanged lines hidden (view full) --- 1370 EXT4_XATTR_NAME_ENCRYPTION_CONTEXT, 1371 ctx, len, 0); 1372 if (!res) { 1373 ext4_set_inode_flag(inode, EXT4_INODE_ENCRYPT); 1374 /* 1375 * Update inode->i_flags - S_ENCRYPTED will be enabled, 1376 * S_DAX may be disabled 1377 */ | 1352 } 1353 return res; 1354 } 1355 1356 res = dquot_initialize(inode); 1357 if (res) 1358 return res; 1359retry: --- 10 unchanged lines hidden (view full) --- 1370 EXT4_XATTR_NAME_ENCRYPTION_CONTEXT, 1371 ctx, len, 0); 1372 if (!res) { 1373 ext4_set_inode_flag(inode, EXT4_INODE_ENCRYPT); 1374 /* 1375 * Update inode->i_flags - S_ENCRYPTED will be enabled, 1376 * S_DAX may be disabled 1377 */ |
1378 ext4_set_inode_flags(inode); | 1378 ext4_set_inode_flags(inode, false); |
1379 res = ext4_mark_inode_dirty(handle, inode); 1380 if (res) 1381 EXT4_ERROR_INODE(inode, "Failed to mark inode dirty"); 1382 } 1383 res2 = ext4_journal_stop(handle); 1384 1385 if (res == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) 1386 goto retry; --- 4892 unchanged lines hidden --- | 1379 res = ext4_mark_inode_dirty(handle, inode); 1380 if (res) 1381 EXT4_ERROR_INODE(inode, "Failed to mark inode dirty"); 1382 } 1383 res2 = ext4_journal_stop(handle); 1384 1385 if (res == -ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) 1386 goto retry; --- 4892 unchanged lines hidden --- |