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*/
|
/*FALLTHRU*/
|
||||||
default:
|
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;
|
inode->i_size = PAGE_CACHE_SIZE;
|
||||||
|
|
||||||
|
pvfs2_lock_inode(inode);
|
||||||
|
inode_set_bytes(inode, inode->i_size);
|
||||||
|
pvfs2_unlock_inode(inode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue