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 v2 Date: Thu, 4 Mar 2010 17:28:17 +0300 Message-ID: <1267712897-9088-1-git-send-email-dmonakhov@openvz.org> Cc: viro@ZenIV.linux.org.uk, Dmitry Monakhov To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-bw0-f209.google.com ([209.85.218.209]:49648 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819Ab0CDO2Y (ORCPT ); Thu, 4 Mar 2010 09:28:24 -0500 Received: by bwz1 with SMTP id 1so414040bwz.21 for ; Thu, 04 Mar 2010 06:28:23 -0800 (PST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Al Please take care of the first patch(the vfs helper). But it will be good if you also take the others. Each filesystem init uid,gid,mode on inode creation. gid inheritance is obey to posix rules. Usually this code is copy-pasted. Some times it was done in wrong way. 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 on to per-fs basis. Patch prepared against vfs/untested tree, but it also may be applied on top of linux-next-2010-03-04. There was some rejects from ocfs2's patch on linux-next tree because of dlm changes. So i've skipp dlm changes in ocfs2's patch. I'll send dlm changes to ocfs2 mainainers directly after core vfs helpers changes appears in linux-next tree.