Re: [PATCH v2 6/8] xfs: use xfs_icluster_size_fsb in xfs_ialloc_inode_init

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

 



> +	 * Loop over the new block(s), filling in the inodes.  For small block
> +	 * sizes, manipulate the inodes in buffers  which are multiples of the
> +	 * blocks size.
>  	 */
> +	blks_per_cluster = xfs_icluster_size_fsb(mp);
> +	inodes_per_cluster = blks_per_cluster << mp->m_sb.sb_inopblog;
> +	nbufs = length / blks_per_cluster;

I don't think there's a point to have the nbufs variable as it's used
just once as the loop termination condition.

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux