On Fri, 27 Jan 2012, Chris Mason wrote:
> On Fri, Jan 27, 2012 at 09:31:46AM -0800, Sage Weil wrote:
> > Has anyone see this one before?  We've been hitting it sporatically for a 
> > while now, although recently we've been able to trigger pretty easily.  
> > The result is EINVAL from the snap create ioctl.
> > 
> > The kernel is v3.2 + some ceph stuff.
> > 
> > The code in question is
> > 
> >             /* if we have links, this was a truncate, lets do that */
> >             if (inode->i_nlink) {
> >                     if (!S_ISREG(inode->i_mode)) {
> >                             WARN_ON(1);
> >                             iput(inode);
> >                             continue;
> >                     }
> > 
> > Is this something obvious, or should we spend some time chasing it down?
> 
> This doesn't seem right, we've got an orphan on a directory for a
> truncate?  The link count is probably 1, but no I haven't seen this.

Okay, looking into it.  Thanks!

sage
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to