commit | 6d9984569308c9b4fc9d30c448e23eacc18e1d73 | [log] [tgz] |
---|---|---|
author | Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> | Wed Jul 01 16:38:22 2015 +1200 |
committer | Tom Rini <trini@konsulko.com> | Wed Aug 12 20:47:29 2015 -0400 |
tree | 726c646ec132970909f249e3eb780ec76cceefed | |
parent | 19b6b6963aee332938951f78c5c065a13fd112a4 [diff] |
JFFS2: Return early when file read not necessary If a destination is not provided, jffs2_1pass_read_inode() only returns the length of the file. In this case, avoid reading all the data nodes, and return as soon as the length of the file is known. Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>