mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-06 16:27:51 +07:00
Orangefs: use inode_set_bytes for directories
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
parent
c36316b74e
commit
f0566532fe
@ -162,12 +162,11 @@ static int copy_attributes_to_inode(struct inode *inode,
|
||||
}
|
||||
/*FALLTHRU*/
|
||||
default:
|
||||
pvfs2_lock_inode(inode);
|
||||
inode->i_bytes = (unsigned short)PAGE_CACHE_SIZE;
|
||||
inode->i_blocks = (unsigned long)(PAGE_CACHE_SIZE / 512);
|
||||
pvfs2_unlock_inode(inode);
|
||||
|
||||
inode->i_size = PAGE_CACHE_SIZE;
|
||||
|
||||
pvfs2_lock_inode(inode);
|
||||
inode_set_bytes(inode, inode->i_size);
|
||||
pvfs2_unlock_inode(inode);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user