diff options
author | Liu Bo <[email protected]> | 2018-09-14 01:44:42 +0800 |
---|---|---|
committer | David Sterba <[email protected]> | 2018-10-15 17:23:31 +0200 |
commit | abb57ef3ff9720c42bbc06bcd1788da9ce1a3eb8 (patch) | |
tree | 3fadcf36a6e3770833520651cfd2141520144e57 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 51995c399b73dacb9d84375ad5a8fda3aced03ab (diff) |
Btrfs: skip set_page_dirty if eb pages are already dirty
As long as @eb is marked with EXTENT_BUFFER_DIRTY, all of its pages
are dirty, so no need to set pages dirty again.
Ftrace showed that the loop took 10us on my dev box, so removing this
can save us at least 10us if eb is already dirty and otherwise avoid a
potentially expensive calls to set_page_dirty.
Signed-off-by: Liu Bo <[email protected]>
Reviewed-by: Nikolay Borisov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions