Skip to content

Commit

Permalink
fusefs: avoid spurious incoherency warning when truncating file
Browse files Browse the repository at this point in the history
  • Loading branch information
etsal committed Feb 7, 2024
1 parent 82bebc7 commit 64333df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/fs/fuse/fuse_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ fuse_internal_cache_attrs(struct vnode *vp, struct fuse_attr *attr,

if (vnode_isreg(vp) &&
fvdat->cached_attrs.va_size != VNOVAL &&
fvdat->flag & FN_SIZECHANGE &&
attr->size != fvdat->cached_attrs.va_size)
{
if ( data->cache_mode == FUSE_CACHE_WB &&
fvdat->flag & FN_SIZECHANGE)
if (data->cache_mode == FUSE_CACHE_WB)
{
const char *msg;

Expand Down

0 comments on commit 64333df

Please sign in to comment.