Skip to content

Commit b817ca3

Browse files
committed
Remove redundant flush/fence
1 parent 7309e48 commit b817ca3

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

fs/nova/gc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ static unsigned long nova_inode_log_thorough_gc(struct super_block *sb,
399399
memcpy_to_pmem_nocache(alter_pi, pi, sizeof(struct nova_inode));
400400
}
401401
nova_memlock_inode(sb, pi, &irq_flags);
402-
nova_flush_buffer(pi, sizeof(struct nova_inode), 1);
403402
sih->log_head = new_head;
404403

405404
/* Step 3: Unlink the old log */
@@ -530,7 +529,6 @@ static unsigned long nova_inode_alter_log_thorough_gc(struct super_block *sb,
530529
memcpy_to_pmem_nocache(alter_pi, pi, sizeof(struct nova_inode));
531530
}
532531
nova_memlock_inode(sb, pi, &irq_flags);
533-
nova_flush_buffer(pi, sizeof(struct nova_inode), 1);
534532
sih->alter_log_head = new_head;
535533

536534
/* Step 4: Unlink the old log */

fs/nova/namei.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ static void nova_lite_transaction_for_new_inode(struct super_block *sb,
101101

102102
pi->valid = 1;
103103
nova_update_inode_checksum(pi);
104-
PERSISTENT_BARRIER();
105104

106105
nova_commit_lite_transaction(sb, journal_tail, cpu);
107106
nova_memlock_journal(sb, &irq_flags);

0 commit comments

Comments
 (0)