aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/xattr.c
diff options
context:
space:
mode:
authorCheng Renquan <crquan@gmail.com>2010-03-26 05:40:33 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:17 -0400
commit640ef79d27c81b7a3265a344ec1d25644dd463ad (patch)
treef5632a0b2a2f6cef7c6f3a513bbb6020d6ac694a /fs/ceph/xattr.c
parent2d06eeb877581a7f53209af1582c5f66c799f0bd (diff)
ceph: use ceph_sb_to_client instead of ceph_client
ceph_sb_to_client and ceph_client are really identical, we need to dump one; while function ceph_client is confusing with "struct ceph_client", ceph_sb_to_client's definition is more clear; so we'd better switch all call to ceph_sb_to_client. -static inline struct ceph_client *ceph_client(struct super_block *sb) -{ - return sb->s_fs_info; -} Signed-off-by: Cheng Renquan <crquan@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r--fs/ceph/xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index d940d14f6922..3b4c2620030a 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -616,7 +616,7 @@ out:
616static int ceph_sync_setxattr(struct dentry *dentry, const char *name, 616static int ceph_sync_setxattr(struct dentry *dentry, const char *name,
617 const char *value, size_t size, int flags) 617 const char *value, size_t size, int flags)
618{ 618{
619 struct ceph_client *client = ceph_client(dentry->d_sb); 619 struct ceph_client *client = ceph_sb_to_client(dentry->d_sb);
620 struct inode *inode = dentry->d_inode; 620 struct inode *inode = dentry->d_inode;
621 struct ceph_inode_info *ci = ceph_inode(inode); 621 struct ceph_inode_info *ci = ceph_inode(inode);
622 struct inode *parent_inode = dentry->d_parent->d_inode; 622 struct inode *parent_inode = dentry->d_parent->d_inode;
@@ -773,7 +773,7 @@ out:
773 773
774static int ceph_send_removexattr(struct dentry *dentry, const char *name) 774static int ceph_send_removexattr(struct dentry *dentry, const char *name)
775{ 775{
776 struct ceph_client *client = ceph_client(dentry->d_sb); 776 struct ceph_client *client = ceph_sb_to_client(dentry->d_sb);
777 struct ceph_mds_client *mdsc = &client->mdsc; 777 struct ceph_mds_client *mdsc = &client->mdsc;
778 struct inode *inode = dentry->d_inode; 778 struct inode *inode = dentry->d_inode;
779 struct inode *parent_inode = dentry->d_parent->d_inode; 779 struct inode *parent_inode = dentry->d_parent->d_inode;