diff options
author | Cheng Renquan <crquan@gmail.com> | 2010-03-26 17:40:33 +0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 15:25:17 -0700 |
commit | 640ef79d27c81b7a3265a344ec1d25644dd463ad (patch) | |
tree | f5632a0b2a2f6cef7c6f3a513bbb6020d6ac694a /fs/ceph/file.c | |
parent | 2d06eeb877581a7f53209af1582c5f66c799f0bd (diff) | |
download | lwn-640ef79d27c81b7a3265a344ec1d25644dd463ad.tar.gz lwn-640ef79d27c81b7a3265a344ec1d25644dd463ad.zip |
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/file.c')
-rw-r--r-- | fs/ceph/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 6230c3de1f06..834d2b83834a 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -809,7 +809,7 @@ static ssize_t ceph_aio_write(struct kiocb *iocb, const struct iovec *iov, struct file *file = iocb->ki_filp; struct inode *inode = file->f_dentry->d_inode; struct ceph_inode_info *ci = ceph_inode(inode); - struct ceph_osd_client *osdc = &ceph_client(inode->i_sb)->osdc; + struct ceph_osd_client *osdc = &ceph_sb_to_client(inode->i_sb)->osdc; loff_t endoff = pos + iov->iov_len; int got = 0; int ret, err; |