From mboxrd@z Thu Jan 1 00:00:00 1970 From: akpm@linux-foundation.org Subject: - r-o-bind-mounts-elevate-writer-count-for-custom-struct_file.patch removed from -mm tree Date: Wed, 14 Feb 2007 10:53:00 -0800 Message-ID: <200702141853.l1EIr0iW005764@shell0.pdx.osdl.net> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from smtp.osdl.org ([65.172.181.24]:39402 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932456AbXBNS4U (ORCPT ); Wed, 14 Feb 2007 13:56:20 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: hansendc@us.ibm.com, haveblue@us.ibm.com, hch@lst.de, linuxram@us.ibm.com, miklos@szeredi.hu, viro@zeniv.linux.org.uk, mm-commits@vger.kernel.org The patch titled r/o bind mounts: elevate writer count for custom struct_file has been removed from the -mm tree. Its filename was r-o-bind-mounts-elevate-writer-count-for-custom-struct_file.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ Subject: r/o bind mounts: elevate writer count for custom struct_file From: Dave Hansen Some filesystems forego the use of normal vfs calls to create struct files. Make sure that these users elevate the mnt writer count. These probably don't have any real meaning because there is no real backing store for these mounts, but it is here for consistency. Signed-off-by: Dave Hansen Cc: Miklos Szeredi Cc: Ram Pai Cc: Al Viro Cc: Christoph Hellwig Signed-off-by: Andrew Morton --- fs/file_table.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN fs/file_table.c~r-o-bind-mounts-elevate-writer-count-for-custom-struct_file fs/file_table.c --- a/fs/file_table.c~r-o-bind-mounts-elevate-writer-count-for-custom-struct_file +++ a/fs/file_table.c @@ -170,6 +170,10 @@ int init_file(struct file *file, struct file->f_mapping = dentry->d_inode->i_mapping; file->f_mode = mode; file->f_op = fop; + if (mode & FMODE_WRITE) { + error = mnt_want_write(mnt); + WARN_ON(error); + } return error; } _ Patches currently in -mm which might be from hansendc@us.ibm.com are r-o-bind-mounts-elevate-writer-count-for-custom-struct_file.patch r-o-bind-mounts-gfs-check-nlink-count.patch r-o-bind-mounts-honor-r-w-changes-at-do_remount-time.patch r-o-bind-mounts-kill-open-files-traverse-on-remount-ro.patch