aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2014-11-14 09:38:29 -0500
committerIlya Dryomov <idryomov@redhat.com>2014-12-17 12:09:52 -0500
commit28127bdd2f843e996f24b51a70a0592c7ec5c763 (patch)
treef6053dbabcc606d7a5270f6069bc70e305cafe9d /fs/ceph/super.h
parent83701246aee8f83b4b42483051b439fbe96ed47d (diff)
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>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 6d56fae863ca..8197a3cf750b 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -888,7 +888,7 @@ extern int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
888extern int ceph_release(struct inode *inode, struct file *filp); 888extern int ceph_release(struct inode *inode, struct file *filp);
889extern void ceph_fill_inline_data(struct inode *inode, struct page *locked_page, 889extern void ceph_fill_inline_data(struct inode *inode, struct page *locked_page,
890 char *data, size_t len); 890 char *data, size_t len);
891 891int ceph_uninline_data(struct file *filp, struct page *locked_page);
892/* dir.c */ 892/* dir.c */
893extern const struct file_operations ceph_dir_fops; 893extern const struct file_operations ceph_dir_fops;
894extern const struct inode_operations ceph_dir_iops; 894extern const struct inode_operations ceph_dir_iops;