From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Monakhov Subject: [PATCH 00/19] fs cleanup: remove duplicated code on inode init Date: Wed, 17 Feb 2010 21:29:13 +0300 Message-ID: <1266431353-8549-1-git-send-email-dmonakhov@openvz.org> Cc: Dmitry Monakhov To: linux-fsdevel@vger.kernel.org Return-path: Received: from fg-out-1718.google.com ([72.14.220.155]:42444 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082Ab0BQS30 (ORCPT ); Wed, 17 Feb 2010 13:29:26 -0500 Received: by fg-out-1718.google.com with SMTP id l26so99668fgb.1 for ; Wed, 17 Feb 2010 10:29:24 -0800 (PST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Each filesystem init uid,gid,mode on inode creation. gid inheritance is obey to posix rules. Usually this code is copy-pasted. Let's move this logic to separate function. In some filesystems it is not easy to replace the code, so i've simply skipped such fs. Skipped fs: xfs, hugetlbfs, gfs2, cifs, affs Some filesystems require less trivial code replacement so i've split the patch in to per-fs patch-set.