mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::fs: Minor cleanup/simplify.
This commit is contained in:
parent
49e1fd1eea
commit
97b613bb82
1 changed files with 1 additions and 6 deletions
|
@ -1185,14 +1185,9 @@ ircd::fs::_write_pwritev2(const fd &fd,
|
|||
opts.offset == -1 && !opts.update_offset? 0 : opts.offset
|
||||
};
|
||||
|
||||
const auto &flags_
|
||||
{
|
||||
flags(opts)
|
||||
};
|
||||
|
||||
ssize_t ret; do
|
||||
{
|
||||
ret = ::pwritev2(int(fd), iov.data(), iov.size(), opts.offset, flags_);
|
||||
ret = ::pwritev2(int(fd), iov.data(), iov.size(), opts.offset, flags(opts));
|
||||
}
|
||||
while(!opts.interruptible && unlikely(ret == -1 && errno == EINTR));
|
||||
|
||||
|
|
Loading…
Reference in a new issue