Skip to content

Commit

Permalink
fusefs: only test for incoherency if FN_SIZECHANGE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
etsal committed Feb 8, 2024
1 parent 82bebc7 commit 590abad
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 590abad

Please sign in to comment.