ceph: cleanup the logic in ceph_invalidatepage
authorMilosz Tanski <milosz@adfin.com>
Fri, 9 Aug 2013 16:59:55 +0000 (12:59 -0400)
committerSage Weil <sage@inktank.com>
Thu, 15 Aug 2013 18:12:02 +0000 (11:12 -0700)
commitb150f5c1c759d551da9146435d3dc9df5f7e15ef
tree1b8ec894d8997a741012600f39b3805a3b73a6dc
parentee3e542fec6e69bc9fb668698889a37d93950ddf
ceph: cleanup the logic in ceph_invalidatepage

The invalidatepage code bails if it encounters a non-zero page offset. The
current logic that does is non-obvious with multiple if statements.

This should be logically and functionally equivalent.

Signed-off-by: Milosz Tanski <milosz@adfin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/addr.c