Return-Path: Received: from mx2.suse.de ([195.135.220.15]:36896 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244AbcD2CBf (ORCPT ); Thu, 28 Apr 2016 22:01:35 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B0AF6AC60 for ; Fri, 29 Apr 2016 02:01:33 +0000 (UTC) From: Goldwyn Rodrigues To: linux-fsdevel@vger.kernel.org Cc: Goldwyn Rodrigues Subject: [PoC 0/7] Kobjectify filesystem Date: Thu, 28 Apr 2016 21:01:15 -0500 Message-Id: <1461895282-4941-1-git-send-email-rgoldwyn@suse.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Goldwyn Rodrigues This is an effort to represent fs structures in terms of kobjects. The primary goal of this was to provide a mechanism for the filesystems to provide feedback to userspace but grew more than that. In case of errors users may fix errors and could schedule a complete filesystem check at a later point of time. ENOSPC errors could be automated to delete temporary files etc. As a implementation example, I have changed ocfs2 to support the change, though it is not completely feasible change because of the way ksets are represented in kset, but it delivers the idea. Taking this forward may reduce the house-keeping tasks such as searching, list handling and locking. One example shown here is the super_block destruction using kobjects. Since most filesystems do represent their structures in sysfs, this would consolidate individual representations under the filesystem, hopefully reducing code. Let me know what you think about the idea. -- Goldwyn