]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: nothing special about 1-block log sector
authorAlex Elder <aelder@sgi.com>
Tue, 13 Apr 2010 05:21:13 +0000 (15:21 +1000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:12 +0000 (09:58 -0500)
commit78c4e9197795573974e4cbb45f5f964650c0be3f
tree88341430b367a7b106c8eddcaaa90f1ffd2812db
parent77b23a66b62db464383288683928f46e1a9669f0
xfs: nothing special about 1-block log sector

There are a number of places where a log sector size of 1 uses
special case code.  The round_up() and round_down() macros
produce the correct result even when the log sector size is 1, and
this eliminates the need for treating this as a special case.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_log_recover.c