clear uptodate in 2.6's discard_buffer()?
I was tracking down a problem in xfs, which led me to discover that discard_buffer(), in my case called when truncating a file, does not clear the Uptodate flag on the bh.
It looks like clearing Uptodate was removed fairly specifically in the 2.6 tree, long ago, as part of a much larger changeset:
At first glance it seems odd to me that we would clear dirty, mapped, req, new, and delay flags, and also NULL out the b_bdev, but leave buffers marked as uptodate.
Is there a reason to leave the uptodate flag, or is this an oversight?
Thanks,
-Eric