|
@@ -825,7 +825,7 @@ void jffs2_build_xattr_subsystem(struct jffs2_sb_info *c)
|
|
ref->xd and ref->ic are not valid yet. */
|
|
ref->xd and ref->ic are not valid yet. */
|
|
xd = jffs2_find_xattr_datum(c, ref->xid);
|
|
xd = jffs2_find_xattr_datum(c, ref->xid);
|
|
ic = jffs2_get_ino_cache(c, ref->ino);
|
|
ic = jffs2_get_ino_cache(c, ref->ino);
|
|
- if (!xd || !ic) {
|
|
|
|
|
|
+ if (!xd || !ic || !ic->nlink) {
|
|
dbg_xattr("xref(ino=%u, xid=%u, xseqno=%u) is orphan.\n",
|
|
dbg_xattr("xref(ino=%u, xid=%u, xseqno=%u) is orphan.\n",
|
|
ref->ino, ref->xid, ref->xseqno);
|
|
ref->ino, ref->xid, ref->xseqno);
|
|
ref->xseqno |= XREF_DELETE_MARKER;
|
|
ref->xseqno |= XREF_DELETE_MARKER;
|