ceph: perform lazy reads when file mode and caps permit
authorSage Weil <sage@newdream.net>
Thu, 27 May 2010 17:40:43 +0000 (10:40 -0700)
committerSage Weil <sage@newdream.net>
Mon, 2 Aug 2010 03:11:39 +0000 (20:11 -0700)
commit2962507ca204f886967e1a089d9bec206d427c22
treee9cec16b13ad1d8e41c288658e62fb3bf1c66859
parent33caad324b88f75f42d836735d86feaafb3b40cf
ceph: perform lazy reads when file mode and caps permit

If the file mode is marked as "lazy," perform cached/buffered reads when
the caps permit it.  Adjust the rdcache_gen and invalidation logic
accordingly so that we manage our cache based on the FILE_CACHE -or-
FILE_LAZYIO cap bits.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/addr.c
fs/ceph/caps.c
fs/ceph/file.c
fs/ceph/inode.c