summaryrefslogtreecommitdiffstats
path: root/fs/sysv/balloc.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-12-13 09:19:26 -0800
committerSage Weil <sage@newdream.net>2011-12-13 09:19:26 -0800
commit6a82c47aa84ab22cb5969a44105cca5358879d21 (patch)
tree60dea7b341119350274ba9c50cacddc2b357fd52 /fs/sysv/balloc.c
parentf1932fc1a6d899c754676b1dd8b17de93b052d43 (diff)
downloadop-kernel-dev-6a82c47aa84ab22cb5969a44105cca5358879d21.zip
op-kernel-dev-6a82c47aa84ab22cb5969a44105cca5358879d21.tar.gz
ceph: fix SEEK_CUR, SEEK_SET regression
Commit 06222e491e663dac939f04b125c9dc52126a75c4 got the if wrong so that it always evaluates as true. This is semantically harmless, but makes SEEK_CUR and SEEK_SET needlessly query the server. Rewrite the if to explicitly enumerate the cases we DO need a valid i_size to make this code less fragile. Reported-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/sysv/balloc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud