projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184b6eb
)
fuse: use kiocb_modified in buffered write path
author
Josef Bacik
<josef@toxicpanda.com>
Mon, 30 Sep 2024 13:45:13 +0000
(09:45 -0400)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 25 Oct 2024 15:05:49 +0000
(17:05 +0200)
This combines the file_remove_privs() and file_update_time() call into
one call.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fuse/file.c
b/fs/fuse/file.c
index add051e4ad308f5d00f8d980199298d0f97a2bfd..5ae8784efe024dc13f729b1e90ba1e8f1fa471b3 100644
(file)
--- a/
fs/fuse/file.c
+++ b/
fs/fuse/file.c
@@
-1462,11
+1462,7
@@
writethrough:
task_io_account_write(count);
- err = file_remove_privs(file);
- if (err)
- goto out;
-
- err = file_update_time(file);
+ err = kiocb_modified(iocb);
if (err)
goto out;