diff mbox series

[v4,09/10] fuse: Use the existing inode fuse_cache_write_iter

Message ID 20230918150313.3845114-10-bschubert@ddn.com (mailing list archive)
State New, archived
Headers show
Series fuse direct write consolidation and parallel IO | expand

Commit Message

Bernd Schubert Sept. 18, 2023, 3:03 p.m. UTC
makes the code slightly smaller, I guess the compiler would havve
optimized that out already.
The other is file_inode(file), but I'm not sure if there is
any risk that they might differ.

Cc: Hao Xu <howeyxu@tencent.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Dharmendra Singh <dsingh@ddn.com>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
---
 fs/fuse/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index a996368cd38b..23fd1c4a1de7 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -1352,7 +1352,7 @@  static ssize_t fuse_cache_write_iter(struct kiocb *iocb, struct iov_iter *from)
 
 	if (fc->writeback_cache && !(iocb->ki_flags & IOCB_DIRECT)) {
 		/* Update size (EOF optimization) and mode (SUID clearing) */
-		err = fuse_update_attributes(mapping->host, file,
+		err = fuse_update_attributes(inode, file,
 					     STATX_SIZE | STATX_MODE);
 		if (err)
 			return err;