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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.1 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.6 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 201.1 KB
Makefile -rw-r--r-- 52.3 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top