summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2013-11-26 13:21:08 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2014-01-03 09:58:41 +0000
commite4f2920625cc2c562941b280914823a553f6973d (patch)
tree154c0fc597abecba1dcd1c72be4c16f428d49832 /virt
parent5ea5050cec9c02e86ceb5e707a889003f895a690 (diff)
downloadop-kernel-dev-e4f2920625cc2c562941b280914823a553f6973d.zip
op-kernel-dev-e4f2920625cc2c562941b280914823a553f6973d.tar.gz
GFS2: Clean up releasepage
For historical reasons, we drop and retake the log lock in ->releasepage() however, since there is no reason why we cannot hold the log lock over the whole function, this allows some simplification. In particular, pinning a buffer is only ever done under the log lock, so it is possible here to remove the test for pinned buffers in the second loop, since it is impossible for that to happen (it is also tested in the first loop). As a result, two tests made later in the second loop become constants and can also be reduced to the only possible branch. So the net result is to remove various bits of unreachable code and make this more readable. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud