git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tracing: Simplify print_graph_cpu()
[pandora-kernel.git]
/
kernel
/
acct.c
diff --git
a/kernel/acct.c
b/kernel/acct.c
index
7afa315
..
9f33910
100644
(file)
--- a/
kernel/acct.c
+++ b/
kernel/acct.c
@@
-215,6
+215,7
@@
static void acct_file_reopen(struct bsd_acct_struct *acct, struct file *file,
static int acct_on(char *name)
{
struct file *file;
static int acct_on(char *name)
{
struct file *file;
+ struct vfsmount *mnt;
int error;
struct pid_namespace *ns;
struct bsd_acct_struct *acct = NULL;
int error;
struct pid_namespace *ns;
struct bsd_acct_struct *acct = NULL;
@@
-256,11
+257,12
@@
static int acct_on(char *name)
acct = NULL;
}
acct = NULL;
}
- mnt_pin(file->f_path.mnt);
+ mnt = file->f_path.mnt;
+ mnt_pin(mnt);
acct_file_reopen(ns->bacct, file, ns);
spin_unlock(&acct_lock);
acct_file_reopen(ns->bacct, file, ns);
spin_unlock(&acct_lock);
- mntput(
file->f_path.
mnt); /* it's pinned, now give up active reference */
+ mntput(mnt); /* it's pinned, now give up active reference */
kfree(acct);
return 0;
kfree(acct);
return 0;