mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
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>
This commit is contained in:
committed by
Miklos Szeredi
parent
184b6eb364
commit
e6befec5e9
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user