diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-09-30 15:45:13 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2024-10-25 17:05:49 +0200 |
commit | e6befec5e901e06dd6c7c456a4e20d2529efb014 (patch) | |
tree | 44f7da9b724dd83e7dd73b75490884536dd0afc2 /fs/fuse | |
parent | fuse: convert fuse_page_mkwrite to use folios (diff) | |
download | linux-e6befec5e901e06dd6c7c456a4e20d2529efb014.tar.xz linux-e6befec5e901e06dd6c7c456a4e20d2529efb014.zip |
fuse: use kiocb_modified in buffered write path
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>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/file.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index add051e4ad30..5ae8784efe02 100644 --- 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; |