mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
Btrfs: Change st_blocksize to 4k
Some programs (python) do rwm cycles at the granularity returned by stat. Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
73e48b277a
commit
d666746207
2 changed files with 9 additions and 2 deletions
|
@ -2701,7 +2701,7 @@ static int btrfs_getattr(struct vfsmount *mnt,
|
|||
{
|
||||
struct inode *inode = dentry->d_inode;
|
||||
generic_fillattr(inode, stat);
|
||||
stat->blksize = 256 * 1024;
|
||||
stat->blksize = PAGE_CACHE_SIZE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue