[RFC,V11,21/21] Btrfs: subpagesize-blocksize: Fix block size returned to user space.
diff mbox

Message ID 1433172176-8742-22-git-send-email-chandan@linux.vnet.ibm.com
State New
Headers show

Commit Message

Chandan Rajendra June 1, 2015, 3:22 p.m. UTC
btrfs_getattr() returns PAGE_CACHE_SIZE as the block size. Since
generic_fillattr() already does the right thing (by obtaining block size
from inode->i_blkbits), just remove the statement from btrfs_getattr.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
 fs/btrfs/inode.c | 1 -
 1 file changed, 1 deletion(-)

diff mbox

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 4d42123..3c35430 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -9302,7 +9302,6 @@  static int btrfs_getattr(struct vfsmount *mnt,
 	generic_fillattr(inode, stat);
 	stat->dev = BTRFS_I(inode)->root->anon_dev;
-	stat->blksize = PAGE_CACHE_SIZE;
 	delalloc_bytes = BTRFS_I(inode)->delalloc_bytes;