mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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>
This commit is contained in:
parent
1c163f4c7b
commit
5ba72e607c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user