Curious about corner case in btrfs code

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Aug 26 20:36:59 EDT 2014


On Tue, 26 Aug 2014 20:13:10 -0400, Nick said:

> From reading the code off the bat, seems to not need to be written as this case is rarely meet for large files
> or files that are huge and take a lot of time to write.

Nope.  Same exact logic for small files.  The code is doing "Don't bother
trying to decompress if we're off the end of the file entirely".  Doesn't
matter if the file is 43K in size or 43G.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140826/6668a119/attachment.bin 


More information about the Kernelnewbies mailing list