diff options
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/super.c b/fs/super.c index 84c320f6ad7e..f961e0307997 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -570,7 +570,7 @@ static void mark_files_ro(struct super_block *sb) | |||
570 | 570 | ||
571 | file_list_lock(); | 571 | file_list_lock(); |
572 | list_for_each_entry(f, &sb->s_files, f_u.fu_list) { | 572 | list_for_each_entry(f, &sb->s_files, f_u.fu_list) { |
573 | if (S_ISREG(f->f_dentry->d_inode->i_mode) && file_count(f)) | 573 | if (S_ISREG(f->f_path.dentry->d_inode->i_mode) && file_count(f)) |
574 | f->f_mode &= ~FMODE_WRITE; | 574 | f->f_mode &= ~FMODE_WRITE; |
575 | } | 575 | } |
576 | file_list_unlock(); | 576 | file_list_unlock(); |