[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131108034504.GC11668@thunk.org>
Date: Thu, 7 Nov 2013 22:45:04 -0500
From: Theodore Ts'o <tytso@....edu>
To: Andreas Dilger <andreas.dilger@...el.com>
Cc: linux-ext4@...r.kernel.org
Subject: Re: [PATCH] ext4: return non-zero st_blocks for inline data
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists