From: Miklos Szeredi Subject: [patch 1/6] vfs: mountinfo -mm fix Date: Thu, 13 Mar 2008 22:26:42 +0100 Message-ID: <20080313212732.390688144@szeredi.hu> References: <20080313212641.989467982@szeredi.hu> Cc: viro@zeniv.linux.org.uk, linuxram@us.ibm.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: akpm@linux-foundation.org Return-path: Received: from fxip-0047f.externet.hu ([88.209.222.127]:51628 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755264AbYCMV1x (ORCPT ); Thu, 13 Mar 2008 17:27:53 -0400 Content-Disposition: inline; filename=mountinfo_fix.patch Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Miklos Szeredi The read-only flag showing got broken by the ro-bind patches going in and out of -mm. Signed-off-by: Miklos Szeredi --- fs/namespace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux/fs/namespace.c =================================================================== --- linux.orig/fs/namespace.c 2008-03-13 20:45:15.000000000 +0100 +++ linux/fs/namespace.c 2008-03-13 20:45:49.000000000 +0100 @@ -789,9 +789,9 @@ static int show_mountinfo(struct seq_fil seq_dentry(m, mnt->mnt_root, " \t\n\\"); seq_putc(m, ' '); seq_path(m, &mnt_path, " \t\n\\"); + seq_puts(m, mnt->mnt_flags & MNT_READONLY ? " ro" : " rw"); show_mnt_opts(m, mnt); - seq_putc(m, ' '); - seq_puts(m, __mnt_is_readonly(mnt) ? " ro" : " rw"); + seq_puts(m, sb->s_flags & MS_RDONLY ? " ro" : " rw"); show_sb_opts(m, sb); if (sb->s_op->show_options) err = sb->s_op->show_options(m, mnt); --