Skip to content

Commit

Permalink
Merge pull request utsaslab#7 from utsaslab/issue-1-fix
Browse files Browse the repository at this point in the history
Issue 1 fix
  • Loading branch information
rohankadekodi authored Jan 13, 2022
2 parents 5b8c780 + c940672 commit b4017d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Linux-5.1/fs/winefs/xip.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ static ssize_t pmfs_file_write_fast(struct super_block *sb, struct inode *inode,
void *xmem = pmfs_get_block(sb, block);
size_t copied, ret = 0, offset;
timing_t memcpy_time;
bool strong_guarantees = PMFS_SB(sb)->s_mount_opt & PMFS_MOUNT_STRICT;
bool barrier = strong_guarantees ? true : false;

offset = pos & (sb->s_blocksize - 1);

Expand Down Expand Up @@ -330,7 +332,7 @@ static ssize_t pmfs_file_write_fast(struct super_block *sb, struct inode *inode,
pmfs_memcpy_atomic(&pi->i_ctime, &c_m_time, 8);
pmfs_memlock_inode(sb, pi);
}
pmfs_flush_buffer(pi, 1, false);
pmfs_flush_buffer(pi, 1, barrier);
return ret;
}

Expand Down

0 comments on commit b4017d0

Please sign in to comment.