summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2018-12-18 11:03:38 +0800
committerIlya Dryomov <idryomov@gmail.com>2019-03-05 18:55:16 +0100
commit5ba72e607cdb3ceebbc6ba4772b79e7e96b55cc4 (patch)
treea6fdbcdc2b776b7a2fd647c89b8a7f8193e6b762 /fs/ceph
parent1c163f4c7b3f621efff9b28a47abb36f7378d783 (diff)
ceph: set special inode's blocksize to page size
Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 9d1f34d46627..c080b133c08b 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -899,6 +899,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page,
case S_IFBLK:
case S_IFCHR:
case S_IFSOCK:
+ inode->i_blkbits = PAGE_SHIFT;
init_special_inode(inode, inode->i_mode, inode->i_rdev);
inode->i_op = &ceph_file_iops;
break;