X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsuper.c;h=f961e03079974a374cdf7476107924e0c2a5ebc0;hb=81ed19b076f518e793283ccbd004fd0888877201;hp=84c320f6ad7e39471277c581476860caded889e9;hpb=2d941e99dfa2f58f4cf294943274a4f8e264aab7;p=linux-2.6-omap-h63xx.git diff --git a/fs/super.c b/fs/super.c index 84c320f6ad7..f961e030799 100644 --- a/fs/super.c +++ b/fs/super.c @@ -570,7 +570,7 @@ static void mark_files_ro(struct super_block *sb) file_list_lock(); list_for_each_entry(f, &sb->s_files, f_u.fu_list) { - if (S_ISREG(f->f_dentry->d_inode->i_mode) && file_count(f)) + if (S_ISREG(f->f_path.dentry->d_inode->i_mode) && file_count(f)) f->f_mode &= ~FMODE_WRITE; } file_list_unlock();