diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 10:05:52 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:17 -0500 |
commit | 7219778ad9c18cc2c05c7fca0abe026afbc19dfb (patch) | |
tree | 509a11bf7f7ebeef9a4236901adf53e507d1455b /fs/jffs2/readinode.c | |
parent | d35ea200c0fb5315f16fb2599a4bafd9c1a7b386 (diff) |
mtd: introduce mtd_unpoint interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'fs/jffs2/readinode.c')
-rw-r--r-- | fs/jffs2/readinode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c index dde61effeda2..fca2f84e1add 100644 --- a/fs/jffs2/readinode.c +++ b/fs/jffs2/readinode.c | |||
@@ -67,7 +67,7 @@ static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info | |||
67 | NULL); | 67 | NULL); |
68 | if (!err && retlen < len) { | 68 | if (!err && retlen < len) { |
69 | JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize); | 69 | JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize); |
70 | c->mtd->unpoint(c->mtd, ofs, retlen); | 70 | mtd_unpoint(c->mtd, ofs, retlen); |
71 | } else if (err) | 71 | } else if (err) |
72 | JFFS2_WARNING("MTD point failed: error code %d.\n", err); | 72 | JFFS2_WARNING("MTD point failed: error code %d.\n", err); |
73 | else | 73 | else |
@@ -101,7 +101,7 @@ static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info | |||
101 | kfree(buffer); | 101 | kfree(buffer); |
102 | #ifndef __ECOS | 102 | #ifndef __ECOS |
103 | else | 103 | else |
104 | c->mtd->unpoint(c->mtd, ofs, len); | 104 | mtd_unpoint(c->mtd, ofs, len); |
105 | #endif | 105 | #endif |
106 | 106 | ||
107 | if (crc != tn->data_crc) { | 107 | if (crc != tn->data_crc) { |
@@ -137,7 +137,7 @@ free_out: | |||
137 | kfree(buffer); | 137 | kfree(buffer); |
138 | #ifndef __ECOS | 138 | #ifndef __ECOS |
139 | else | 139 | else |
140 | c->mtd->unpoint(c->mtd, ofs, len); | 140 | mtd_unpoint(c->mtd, ofs, len); |
141 | #endif | 141 | #endif |
142 | return err; | 142 | return err; |
143 | } | 143 | } |