diff options
author | 2024-03-20 19:05:48 +0800 | |
---|---|---|
committer | 2024-04-25 14:23:54 +0200 | |
commit | e1f453d4336d5d7fbbd1910532201b4a07a20a5c (patch) | |
tree | 721e2ddfe5241417bfadf5794cf42c37b66f1701 /scripts/generate_rust_analyzer.py | |
parent | iomap: make iomap_write_end() return a boolean (diff) | |
download | wireguard-linux-e1f453d4336d5d7fbbd1910532201b4a07a20a5c.tar.xz wireguard-linux-e1f453d4336d5d7fbbd1910532201b4a07a20a5c.zip |
iomap: do some small logical cleanup in buffered write
Since iomap_write_end() can never return a partial write length, the
comparison between written, copied and bytes becomes useless, just
merge them with the unwritten branch.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://lore.kernel.org/r/20240320110548.2200662-10-yi.zhang@huaweicloud.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions