diff options
| author | Qu Wenruo <wqu@suse.com> | 2021-03-25 10:14:34 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2021-04-19 18:25:18 +0300 |
| commit | ac5804eb8521bea5c1ec1b7e07ad87c469bf7437 (patch) | |
| tree | d724a87088d37af25f1dfde415e3c7453be53363 /scripts/diffconfig | |
| parent | fc57ad8d338cbe78c3f7565f3c0812938835fad8 (diff) | |
| download | linux-ac5804eb8521bea5c1ec1b7e07ad87c469bf7437.tar.xz | |
btrfs: use min() to replace open-code in btrfs_invalidatepage()
In btrfs_invalidatepage() we introduce a temporary variable, new_len, to
update ordered->truncated_len. But we can use min() to replace it
completely and no need for the variable.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions
