On Tue, 05 Jun 2007 10:46:43 -0700 Mingming Cao <cmm@xxxxxxxxxx> wrote: > The better choice to me is using ext4_blocks_count() to hide the details > of the little endian. It's fine to use s_blocks_count_hi directly, just > to make it clear, this is on-disk superblock data and better to do > little endian conversion like read-in other on-disk superblock fields. On the grounds of avoiding confusion regarthing the use of s_blocks_count_hi, I agree that using ext4_blocks_count() is the right thing to do. I will resubmit the patch and also eliminate the the 4 lines of comments since the code would be more explicit as to what its doing. > Yeah, it probably unnecessary in this case, but I don't think the extra > instruction plays an important role in the performance, (this is only > called at mount time, and there are lots of other places doing little > endian conversion in ext4_fill_super() anyway). I originally wrote this patch using ext4_blocks_count() but later changed it since it was faster to do it this way. While mounting is not always a performance critical section, I still see those few extra instructions a little wasteful. :) -JRS - 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