]> git.sur5r.net Git - u-boot/commit
JFFS2: Return early when file read not necessary
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Wed, 1 Jul 2015 04:38:22 +0000 (16:38 +1200)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:47:29 +0000 (20:47 -0400)
commit3799b3f4adff8b00017340d0b9b41a99e0cc3804
tree726c646ec132970909f249e3eb780ec76cceefed
parent39d0ce06599c73e6e5b8d8c43c64e5272694cbbc
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>
fs/jffs2/jffs2_1pass.c