]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: convert inline data to normal data before data write
authorYan, Zheng <zyan@redhat.com>
Fri, 14 Nov 2014 14:38:29 +0000 (22:38 +0800)
committerIlya Dryomov <idryomov@redhat.com>
Wed, 17 Dec 2014 17:09:52 +0000 (20:09 +0300)
commitc422d7a422a443fd4aad871033778f944a24b7c2
treef6053dbabcc606d7a5270f6069bc70e305cafe9d
parent62ed7887c198cb37cb0c09e44f98b252e24eb206
ceph: convert inline data to normal data before data write

Before any data write, convert inline data to normal data and set
i_inline_version to CEPH_INLINE_NONE. The OSD request that saves
inline data to object contains 3 operations (CMPXATTR, WRITE and
SETXATTR). It compares a xattr named 'inline_version' to prevent
old data overwrites newer data.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
fs/ceph/file.c
fs/ceph/super.h