Re: [PATCH] vfs: Turn the unlinked inode counter into a percpu counter

From: Andi Kleen
Date: Mon Jul 14 2014 - 11:54:21 EST


Andi Kleen <ak@xxxxxxxxxxxxxxx> writes:
> > fsnotify_inode_delete(inode);
>> > - if (!inode->i_nlink) {
>> > - WARN_ON(atomic_long_read(&inode->i_sb->s_remove_count) == 0);
>>
>> This is not mentioned in the description, but I guess it makes sense since
>> it'd be quite expensive.
>
> Yes. I guess we could still check the local counter. I can re-add that.

Actually it's not possible, because the original count could be on
another CPU.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/