aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2014-11-14 08:41:55 -0500
committerIlya Dryomov <idryomov@redhat.com>2014-12-17 12:09:52 -0500
commit31c542a199d79f0f402c2f3e04229464510d47ec (patch)
treefa28ee0ee2f288f334cd141146eb79cbd1b693ce /fs/ceph/super.h
parentfb01d1f8b0343f1b19be878cee89d089f06e9f38 (diff)
ceph: add inline data to pagecache
Request reply and cap message can contain inline data. add inline data to the page cache if there is Fc cap. Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index fc1c8255dead..b0de9162758b 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -253,6 +253,7 @@ struct ceph_inode_info {
253 spinlock_t i_ceph_lock; 253 spinlock_t i_ceph_lock;
254 254
255 u64 i_version; 255 u64 i_version;
256 u64 i_inline_version;
256 u32 i_time_warp_seq; 257 u32 i_time_warp_seq;
257 258
258 unsigned i_ceph_flags; 259 unsigned i_ceph_flags;
@@ -858,7 +859,7 @@ extern int ceph_encode_dentry_release(void **p, struct dentry *dn,
858 int mds, int drop, int unless); 859 int mds, int drop, int unless);
859 860
860extern int ceph_get_caps(struct ceph_inode_info *ci, int need, int want, 861extern int ceph_get_caps(struct ceph_inode_info *ci, int need, int want,
861 int *got, loff_t endoff); 862 loff_t endoff, int *got, struct page **pinned_page);
862 863
863/* for counting open files by mode */ 864/* for counting open files by mode */
864static inline void __ceph_get_fmode(struct ceph_inode_info *ci, int mode) 865static inline void __ceph_get_fmode(struct ceph_inode_info *ci, int mode)
@@ -880,6 +881,8 @@ extern int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
880 struct file *file, unsigned flags, umode_t mode, 881 struct file *file, unsigned flags, umode_t mode,
881 int *opened); 882 int *opened);
882extern int ceph_release(struct inode *inode, struct file *filp); 883extern int ceph_release(struct inode *inode, struct file *filp);
884extern void ceph_fill_inline_data(struct inode *inode, struct page *locked_page,
885 char *data, size_t len);
883 886
884/* dir.c */ 887/* dir.c */
885extern const struct file_operations ceph_dir_fops; 888extern const struct file_operations ceph_dir_fops;