linux/fs/ceph
Sage Weil 8bd59e0188 ceph: fix version check on racing inode updates
We may get updates on the same inode from multiple MDSs; generally we only
pay attention if the update is newer than what we already have.  The
exception is when an MDS sense unstable information, in which case we
always update.

The old > check got this wrong when our version was odd (e.g. 3) and the
reply version was even (e.g. 2): the older stale (v2) info would be
applied.  Fixed and clarified the comment.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-11-08 09:23:12 -08:00
..
addr.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
caps.c ceph: fix rdcache_gen usage and invalidate 2010-11-08 07:29:05 -08:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: fix debugfs warnings 2010-10-20 15:38:21 -07:00
dir.c ceph: do not carry i_lock for readdir from dcache 2010-10-20 15:38:27 -07:00
export.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
file.c ceph: fix open for write on clustered mds 2010-11-07 09:07:15 -08:00
inode.c ceph: fix version check on racing inode updates 2010-11-08 09:23:12 -08:00
ioctl.c ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. 2010-10-20 15:38:23 -07:00
ioctl.h ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. 2010-10-20 15:38:23 -07:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: preallocate flock state without locks held 2010-10-20 15:38:17 -07:00
Makefile ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
mds_client.c ceph: fix uid/gid on resent mds requests 2010-11-08 07:29:05 -08:00
mds_client.h ceph: fix uid/gid on resent mds requests 2010-11-08 07:29:05 -08:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.h ceph: fix rdcache_gen usage and invalidate 2010-11-08 07:29:05 -08:00
xattr.c fs/ceph/xattr.c: Use kmemdup 2010-10-20 15:38:26 -07:00