diff options
Diffstat (limited to 'fs/isofs/inode.c')
-rw-r--r-- | fs/isofs/inode.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 844a7903c72..a0f3833c0db 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -939,17 +939,18 @@ root_found: | |||
939 | goto out_iput; | 939 | goto out_iput; |
940 | } | 940 | } |
941 | 941 | ||
942 | /* get the root dentry */ | ||
943 | s->s_root = d_alloc_root(inode); | ||
944 | if (!(s->s_root)) | ||
945 | goto out_no_root; | ||
946 | |||
947 | table = 0; | 942 | table = 0; |
948 | if (joliet_level) | 943 | if (joliet_level) |
949 | table += 2; | 944 | table += 2; |
950 | if (opt.check == 'r') | 945 | if (opt.check == 'r') |
951 | table++; | 946 | table++; |
952 | d_set_d_op(s->s_root, &isofs_dentry_ops[table]); | 947 | |
948 | s->s_d_op = &isofs_dentry_ops[table]; | ||
949 | |||
950 | /* get the root dentry */ | ||
951 | s->s_root = d_alloc_root(inode); | ||
952 | if (!(s->s_root)) | ||
953 | goto out_no_root; | ||
953 | 954 | ||
954 | kfree(opt.iocharset); | 955 | kfree(opt.iocharset); |
955 | 956 | ||