summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-04-27 11:42:35 +0100
committerDavid Sterba <dsterba@suse.com>2026-06-08 15:53:34 +0200
commite7c3cfb54487d0384625ad724fbf8beb3dae35af (patch)
treee6f4eeb9a78b64cbdcada6446e9a0f54a86d0bdd /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent17819dc282f15d49fac8d7eb94d571e69c22cbdf (diff)
btrfs: stop checking for greater then zero return values in btrfs_sync_file()
The value of 'ret' can never be greater than zero when we reach the end of btrfs_sync_file() but we have this ternary operator converting any such value into -EIO. This logic exists since the first fsync implementation, added in 2007 by commit 8fd17795b226 ("Btrfs: early fsync support"), when all that fsync did was simply to commit a transaction, but even a call to btrfs_commit_transaction() could never return a value greater than zero. So stop checking for a greater than zero value and assert that 'ret' is never greater than zero, to catch any eventual regression during future development. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions