Re: [PATCH] ext4: return non-zero st_blocks for inline data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 06, 2013 at 03:42:32AM -0700, Andreas Dilger wrote:
> @@ -4542,9 +4551,9 @@ int ext4_getattr(struct vfsmount *mnt, struct dentry *dentry,
>  	 * blocks for this file.
>  	 */
>  	delalloc_blocks = EXT4_C2B(EXT4_SB(inode->i_sb),
> -				EXT4_I(inode)->i_reserved_data_blocks);
> +				   EXT4_I(inode)->i_reserved_data_blocks);
> +	stat->blocks += delalloc_blocks << (inode->i_sb->s_blocksize_bits - 9);
>  
> -	stat->blocks += (delalloc_blocks << inode->i_sb->s_blocksize_bits)>>9;

Why this change to the calculation to stat->blocks?

    	 	       		      - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux