diff options
| author | Tejun Heo <tj@kernel.org> | 2011-02-21 03:43:56 -0500 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2011-02-21 03:43:56 -0500 |
| commit | 43d133c18b44e7d82d82ef0dcc2bddd55d5dfe81 (patch) | |
| tree | 8de75c837b55874cc8a81a29bdedbc62668d4481 /fs/file_table.c | |
| parent | 4149efb22da66e326fc48baf80d628834509f7f0 (diff) | |
| parent | 6f576d57f1fa0d6026b495d8746d56d949989161 (diff) | |
Merge branch 'master' into for-2.6.39
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 c3e89adf53c..eb36b6b17e2 100644 --- a/fs/file_table.c +++ b/fs/file_table.c | |||
| @@ -125,13 +125,13 @@ struct file *get_empty_filp(void) | |||
| 125 | goto fail; | 125 | goto fail; |
| 126 | 126 | ||
| 127 | percpu_counter_inc(&nr_files); | 127 | percpu_counter_inc(&nr_files); |
| 128 | f->f_cred = get_cred(cred); | ||
| 128 | if (security_file_alloc(f)) | 129 | if (security_file_alloc(f)) |
| 129 | goto fail_sec; | 130 | goto fail_sec; |
| 130 | 131 | ||
| 131 | INIT_LIST_HEAD(&f->f_u.fu_list); | 132 | INIT_LIST_HEAD(&f->f_u.fu_list); |
| 132 | atomic_long_set(&f->f_count, 1); | 133 | atomic_long_set(&f->f_count, 1); |
| 133 | rwlock_init(&f->f_owner.lock); | 134 | rwlock_init(&f->f_owner.lock); |
| 134 | f->f_cred = get_cred(cred); | ||
| 135 | spin_lock_init(&f->f_lock); | 135 | spin_lock_init(&f->f_lock); |
| 136 | eventpoll_init_file(f); | 136 | eventpoll_init_file(f); |
| 137 | /* f->f_version: 0 */ | 137 | /* f->f_version: 0 */ |
