inode.c (cf1d6c763fbcb115263114302485ad17e7933d87) | inode.c (2b4e30fbde425828b17f0e9c8f8e3fd3ecb2bc75) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * inode.c 5 * 6 * vfs' aops, fops, dops and iops 7 * 8 * Copyright (C) 2002, 2004 Oracle. All rights reserved. --- 520 unchanged lines hidden (view full) --- 529 530 fe = (struct ocfs2_dinode *) fe_bh->b_data; 531 532 /* 533 * This check will also skip truncate of inodes with inline 534 * data and fast symlinks. 535 */ 536 if (fe->i_clusters) { | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * inode.c 5 * 6 * vfs' aops, fops, dops and iops 7 * 8 * Copyright (C) 2002, 2004 Oracle. All rights reserved. --- 520 unchanged lines hidden (view full) --- 529 530 fe = (struct ocfs2_dinode *) fe_bh->b_data; 531 532 /* 533 * This check will also skip truncate of inodes with inline 534 * data and fast symlinks. 535 */ 536 if (fe->i_clusters) { |
537 if (ocfs2_should_order_data(inode)) 538 ocfs2_begin_ordered_truncate(inode, 0); 539 |
|
537 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); 538 if (IS_ERR(handle)) { 539 status = PTR_ERR(handle); 540 mlog_errno(status); 541 goto out; 542 } 543 544 status = ocfs2_journal_access(handle, inode, fe_bh, --- 550 unchanged lines hidden (view full) --- 1095 (unsigned long long)oi->ip_blkno, oi->ip_open_count); 1096 1097 /* Clear all other flags. */ 1098 oi->ip_flags = OCFS2_INODE_CACHE_INLINE; 1099 oi->ip_created_trans = 0; 1100 oi->ip_last_trans = 0; 1101 oi->ip_dir_start_lookup = 0; 1102 oi->ip_blkno = 0ULL; | 540 handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); 541 if (IS_ERR(handle)) { 542 status = PTR_ERR(handle); 543 mlog_errno(status); 544 goto out; 545 } 546 547 status = ocfs2_journal_access(handle, inode, fe_bh, --- 550 unchanged lines hidden (view full) --- 1098 (unsigned long long)oi->ip_blkno, oi->ip_open_count); 1099 1100 /* Clear all other flags. */ 1101 oi->ip_flags = OCFS2_INODE_CACHE_INLINE; 1102 oi->ip_created_trans = 0; 1103 oi->ip_last_trans = 0; 1104 oi->ip_dir_start_lookup = 0; 1105 oi->ip_blkno = 0ULL; |
1106 jbd2_journal_release_jbd_inode(OCFS2_SB(inode->i_sb)->journal->j_journal, 1107 &oi->ip_jinode); |
|
1103 1104bail: 1105 mlog_exit_void(); 1106} 1107 1108/* Called under inode_lock, with no more references on the 1109 * struct inode, so it's safe here to check the flags field 1110 * and to manipulate i_nlink without any other locks. */ --- 194 unchanged lines hidden --- | 1108 1109bail: 1110 mlog_exit_void(); 1111} 1112 1113/* Called under inode_lock, with no more references on the 1114 * struct inode, so it's safe here to check the flags field 1115 * and to manipulate i_nlink without any other locks. */ --- 194 unchanged lines hidden --- |