]> Pileus Git - ~andy/linux/blobdiff - fs/file_table.c
new helper: file_inode(file)
[~andy/linux] / fs / file_table.c
index de9e9653d611f57c9a1ae6a0f8c34ed25cd961c0..0f607ce89acc43f5cebc1b025ffe45a8a5e352b2 100644 (file)
@@ -447,7 +447,7 @@ void mark_files_ro(struct super_block *sb)
 
        lg_global_lock(&files_lglock);
        do_file_list_for_each_entry(sb, f) {
-               if (!S_ISREG(f->f_path.dentry->d_inode->i_mode))
+               if (!S_ISREG(file_inode(f)->i_mode))
                       continue;
                if (!file_count(f))
                        continue;