diff options
author | Yan, Zheng <zyan@redhat.com> | 2014-11-14 08:56:29 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@redhat.com> | 2014-12-17 12:09:52 -0500 |
commit | 01deead041e03c9a6b4e1b2dd165dee4cced6112 (patch) | |
tree | 6c7a29c90eb8d69a730154a7f8c326fbcd3940f8 /fs/ceph/super.h | |
parent | 31c542a199d79f0f402c2f3e04229464510d47ec (diff) |
ceph: use getattr request to fetch inline data
Add a new parameter 'locked_page' to ceph_do_getattr(). If inline data
in getattr reply will be copied to the page.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index b0de9162758b..6d56fae863ca 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h | |||
@@ -744,7 +744,12 @@ extern void ceph_queue_vmtruncate(struct inode *inode); | |||
744 | extern void ceph_queue_invalidate(struct inode *inode); | 744 | extern void ceph_queue_invalidate(struct inode *inode); |
745 | extern void ceph_queue_writeback(struct inode *inode); | 745 | extern void ceph_queue_writeback(struct inode *inode); |
746 | 746 | ||
747 | extern int ceph_do_getattr(struct inode *inode, int mask, bool force); | 747 | extern int __ceph_do_getattr(struct inode *inode, struct page *locked_page, |
748 | int mask, bool force); | ||
749 | static inline int ceph_do_getattr(struct inode *inode, int mask, bool force) | ||
750 | { | ||
751 | return __ceph_do_getattr(inode, NULL, mask, force); | ||
752 | } | ||
748 | extern int ceph_permission(struct inode *inode, int mask); | 753 | extern int ceph_permission(struct inode *inode, int mask); |
749 | extern int ceph_setattr(struct dentry *dentry, struct iattr *attr); | 754 | extern int ceph_setattr(struct dentry *dentry, struct iattr *attr); |
750 | extern int ceph_getattr(struct vfsmount *mnt, struct dentry *dentry, | 755 | extern int ceph_getattr(struct vfsmount *mnt, struct dentry *dentry, |