https://github.com/torvalds/linux
Revision 6a82c47aa84ab22cb5969a44105cca5358879d21 authored by Sage Weil on 13 December 2011, 17:19:26 UTC, committed by Sage Weil on 13 December 2011, 17:19:26 UTC
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>
1 parent f1932fc
History
Tip revision: 6a82c47aa84ab22cb5969a44105cca5358879d21 authored by Sage Weil on 13 December 2011, 17:19:26 UTC
ceph: fix SEEK_CUR, SEEK_SET regression
Tip revision: 6a82c47
File Mode Size
x86
Kconfig -rw-r--r-- 520 bytes
Makefile -rw-r--r-- 1.2 KB
README -rw-r--r-- 1.7 KB
core.c -rw-r--r-- 10.3 KB
hypercalls.c -rw-r--r-- 9.3 KB
interrupts_and_traps.c -rw-r--r-- 20.2 KB
lg.h -rw-r--r-- 8.1 KB
lguest_device.c -rw-r--r-- 15.3 KB
lguest_user.c -rw-r--r-- 15.5 KB
page_tables.c -rw-r--r-- 35.4 KB
segments.c -rw-r--r-- 7.7 KB

README

back to top