diff options
author | Christoph Hellwig <[email protected]> | 2017-12-29 08:54:01 +0100 |
---|---|---|
committer | Dan Williams <[email protected]> | 2018-01-08 11:46:23 -0800 |
commit | 832d7aa051106c927cae05ced29d3fd31459ed21 (patch) | |
tree | 72b34c8b3ae395aedaf444246073791ab20ea3c1 /lib/memory-notifier-error-inject.c | |
parent | 0822acb86cf340cd45b3af6436cec7e3bb24ebd2 (diff) |
mm: optimize dev_pagemap reference counting around get_dev_pagemap
Change the calling convention so that get_dev_pagemap always consumes the
previous reference instead of doing this using an explicit earlier call to
put_dev_pagemap in the callers.
The callers will still need to put the final reference after finishing the
loop over the pages.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions