diff options
Diffstat (limited to 'fs/file_table.c')
-rw-r--r-- | fs/file_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index de9e9653d611..0f607ce89acc 100644 --- a/fs/file_table.c +++ b/fs/file_table.c | |||
@@ -447,7 +447,7 @@ void mark_files_ro(struct super_block *sb) | |||
447 | 447 | ||
448 | lg_global_lock(&files_lglock); | 448 | lg_global_lock(&files_lglock); |
449 | do_file_list_for_each_entry(sb, f) { | 449 | do_file_list_for_each_entry(sb, f) { |
450 | if (!S_ISREG(f->f_path.dentry->d_inode->i_mode)) | 450 | if (!S_ISREG(file_inode(f)->i_mode)) |
451 | continue; | 451 | continue; |
452 | if (!file_count(f)) | 452 | if (!file_count(f)) |
453 | continue; | 453 | continue; |