diff options
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index be5f12d0d637..2c6f8be4ed63 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c | |||
@@ -441,6 +441,9 @@ struct inode *ceph_alloc_inode(struct super_block *sb) | |||
441 | atomic64_set(&ci->i_complete_seq[1], 0); | 441 | atomic64_set(&ci->i_complete_seq[1], 0); |
442 | ci->i_symlink = NULL; | 442 | ci->i_symlink = NULL; |
443 | 443 | ||
444 | ci->i_max_bytes = 0; | ||
445 | ci->i_max_files = 0; | ||
446 | |||
444 | memset(&ci->i_dir_layout, 0, sizeof(ci->i_dir_layout)); | 447 | memset(&ci->i_dir_layout, 0, sizeof(ci->i_dir_layout)); |
445 | RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); | 448 | RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL); |
446 | 449 | ||
@@ -790,6 +793,9 @@ static int fill_inode(struct inode *inode, struct page *locked_page, | |||
790 | inode->i_rdev = le32_to_cpu(info->rdev); | 793 | inode->i_rdev = le32_to_cpu(info->rdev); |
791 | inode->i_blkbits = fls(le32_to_cpu(info->layout.fl_stripe_unit)) - 1; | 794 | inode->i_blkbits = fls(le32_to_cpu(info->layout.fl_stripe_unit)) - 1; |
792 | 795 | ||
796 | ci->i_max_bytes = iinfo->max_bytes; | ||
797 | ci->i_max_files = iinfo->max_files; | ||
798 | |||
793 | if ((new_version || (new_issued & CEPH_CAP_AUTH_SHARED)) && | 799 | if ((new_version || (new_issued & CEPH_CAP_AUTH_SHARED)) && |
794 | (issued & CEPH_CAP_AUTH_EXCL) == 0) { | 800 | (issued & CEPH_CAP_AUTH_EXCL) == 0) { |
795 | inode->i_mode = le32_to_cpu(info->mode); | 801 | inode->i_mode = le32_to_cpu(info->mode); |