diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-21 15:38:28 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-21 15:38:28 -0400 |
| commit | 2017bd19454ea7cdae19922d15b6930f6c8088a2 (patch) | |
| tree | 53974657ab3a2c98f2da7b3fcb050ff5b697f876 /fs/ceph/inode.c | |
| parent | 9f1ad09493451c19d00c004da479acf699eeedd6 (diff) | |
| parent | efa4c1206eaff047c474af2136748a58eb8cc33b (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (22 commits)
ceph: do not carry i_lock for readdir from dcache
fs/ceph/xattr.c: Use kmemdup
rbd: passing wrong variable to bvec_kunmap_irq()
rbd: null vs ERR_PTR
ceph: fix num_pages_free accounting in pagelist
ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl.
ceph: don't crash when passed bad mount options
ceph: fix debugfs warnings
block: rbd: removing unnecessary test
block: rbd: fixed may leaks
ceph: switch from BKL to lock_flocks()
ceph: preallocate flock state without locks held
ceph: add pagelist_reserve, pagelist_truncate, pagelist_set_cursor
ceph: use mapping->nrpages to determine if mapping is empty
ceph: only invalidate on check_caps if we actually have pages
ceph: do not hide .snap in root directory
rbd: introduce rados block device (rbd), based on libceph
ceph: factor out libceph from Ceph file system
ceph-rbd: osdc support for osd call and rollback operations
ceph: messenger and osdc changes for rbd
...
Diffstat (limited to 'fs/ceph/inode.c')
| -rw-r--r-- | fs/ceph/inode.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 62377ec37edf..1d6a45b5a04c 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #include "ceph_debug.h" | 1 | #include <linux/ceph/ceph_debug.h> |
| 2 | 2 | ||
| 3 | #include <linux/module.h> | 3 | #include <linux/module.h> |
| 4 | #include <linux/fs.h> | 4 | #include <linux/fs.h> |
| @@ -13,7 +13,8 @@ | |||
| 13 | #include <linux/pagevec.h> | 13 | #include <linux/pagevec.h> |
| 14 | 14 | ||
| 15 | #include "super.h" | 15 | #include "super.h" |
| 16 | #include "decode.h" | 16 | #include "mds_client.h" |
| 17 | #include <linux/ceph/decode.h> | ||
| 17 | 18 | ||
| 18 | /* | 19 | /* |
| 19 | * Ceph inode operations | 20 | * Ceph inode operations |
| @@ -384,7 +385,7 @@ void ceph_destroy_inode(struct inode *inode) | |||
| 384 | */ | 385 | */ |
| 385 | if (ci->i_snap_realm) { | 386 | if (ci->i_snap_realm) { |
| 386 | struct ceph_mds_client *mdsc = | 387 | struct ceph_mds_client *mdsc = |
| 387 | &ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc; | 388 | ceph_sb_to_client(ci->vfs_inode.i_sb)->mdsc; |
| 388 | struct ceph_snap_realm *realm = ci->i_snap_realm; | 389 | struct ceph_snap_realm *realm = ci->i_snap_realm; |
| 389 | 390 | ||
| 390 | dout(" dropping residual ref to snap realm %p\n", realm); | 391 | dout(" dropping residual ref to snap realm %p\n", realm); |
| @@ -685,7 +686,7 @@ static int fill_inode(struct inode *inode, | |||
| 685 | } | 686 | } |
| 686 | 687 | ||
| 687 | /* it may be better to set st_size in getattr instead? */ | 688 | /* it may be better to set st_size in getattr instead? */ |
| 688 | if (ceph_test_opt(ceph_sb_to_client(inode->i_sb), RBYTES)) | 689 | if (ceph_test_mount_opt(ceph_sb_to_client(inode->i_sb), RBYTES)) |
| 689 | inode->i_size = ci->i_rbytes; | 690 | inode->i_size = ci->i_rbytes; |
| 690 | break; | 691 | break; |
| 691 | default: | 692 | default: |
| @@ -901,7 +902,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req, | |||
| 901 | struct inode *in = NULL; | 902 | struct inode *in = NULL; |
| 902 | struct ceph_mds_reply_inode *ininfo; | 903 | struct ceph_mds_reply_inode *ininfo; |
| 903 | struct ceph_vino vino; | 904 | struct ceph_vino vino; |
| 904 | struct ceph_client *client = ceph_sb_to_client(sb); | 905 | struct ceph_fs_client *fsc = ceph_sb_to_client(sb); |
| 905 | int i = 0; | 906 | int i = 0; |
| 906 | int err = 0; | 907 | int err = 0; |
| 907 | 908 | ||
| @@ -965,7 +966,7 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req, | |||
| 965 | */ | 966 | */ |
| 966 | if (rinfo->head->is_dentry && !req->r_aborted && | 967 | if (rinfo->head->is_dentry && !req->r_aborted && |
| 967 | (rinfo->head->is_target || strncmp(req->r_dentry->d_name.name, | 968 | (rinfo->head->is_target || strncmp(req->r_dentry->d_name.name, |
| 968 | client->mount_args->snapdir_name, | 969 | fsc->mount_options->snapdir_name, |
| 969 | req->r_dentry->d_name.len))) { | 970 | req->r_dentry->d_name.len))) { |
| 970 | /* | 971 | /* |
| 971 | * lookup link rename : null -> possibly existing inode | 972 | * lookup link rename : null -> possibly existing inode |
| @@ -1533,7 +1534,7 @@ int ceph_setattr(struct dentry *dentry, struct iattr *attr) | |||
| 1533 | struct inode *parent_inode = dentry->d_parent->d_inode; | 1534 | struct inode *parent_inode = dentry->d_parent->d_inode; |
| 1534 | const unsigned int ia_valid = attr->ia_valid; | 1535 | const unsigned int ia_valid = attr->ia_valid; |
| 1535 | struct ceph_mds_request *req; | 1536 | struct ceph_mds_request *req; |
| 1536 | struct ceph_mds_client *mdsc = &ceph_sb_to_client(dentry->d_sb)->mdsc; | 1537 | struct ceph_mds_client *mdsc = ceph_sb_to_client(dentry->d_sb)->mdsc; |
| 1537 | int issued; | 1538 | int issued; |
| 1538 | int release = 0, dirtied = 0; | 1539 | int release = 0, dirtied = 0; |
| 1539 | int mask = 0; | 1540 | int mask = 0; |
| @@ -1728,8 +1729,8 @@ out: | |||
| 1728 | */ | 1729 | */ |
| 1729 | int ceph_do_getattr(struct inode *inode, int mask) | 1730 | int ceph_do_getattr(struct inode *inode, int mask) |
| 1730 | { | 1731 | { |
| 1731 | struct ceph_client *client = ceph_sb_to_client(inode->i_sb); | 1732 | struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb); |
| 1732 | struct ceph_mds_client *mdsc = &client->mdsc; | 1733 | struct ceph_mds_client *mdsc = fsc->mdsc; |
| 1733 | struct ceph_mds_request *req; | 1734 | struct ceph_mds_request *req; |
| 1734 | int err; | 1735 | int err; |
| 1735 | 1736 | ||
