summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dax.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2021-10-22 17:03:02 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2021-10-28 09:45:32 +0200
commit27ae449ba26eb6c1cd217fa28339841c55bc79e1 (patch)
treecef5b254eaaca250c9a958ccc92f025f776f644f /fs/fuse/dax.c
parent8c56e03d2e08d83776c89e4b6563ca8cfdf7da54 (diff)
downloadlinux-27ae449ba26eb6c1cd217fa28339841c55bc79e1.tar.gz
linux-27ae449ba26eb6c1cd217fa28339841c55bc79e1.tar.bz2
linux-27ae449ba26eb6c1cd217fa28339841c55bc79e1.zip
fuse: rename fuse_write_update_size()
This function already updates the attr_version in fuse_inode, regardless of whether the size was changed or not. Rename the helper to fuse_write_update_attr() to reflect the more generic nature. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dax.c')
-rw-r--r--fs/fuse/dax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c
index 89bf96f4fb10..a73bae6497b0 100644
--- a/fs/fuse/dax.c
+++ b/fs/fuse/dax.c
@@ -736,7 +736,7 @@ static ssize_t fuse_dax_direct_write(struct kiocb *iocb, struct iov_iter *from)
return ret;
fuse_invalidate_attr_mask(inode, FUSE_STATX_MODSIZE);
- fuse_write_update_size(inode, iocb->ki_pos);
+ fuse_write_update_attr(inode, iocb->ki_pos);
return ret;
}