From 7e91602be7fad0c4d8c9d6fc3c9c0170f1f738ca Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Sat, 10 Sep 2005 00:26:39 -0700 Subject: [PATCH] --- yaml --- r: 8367 b: refs/heads/master c: 417ef531415c070926b071b75fd1c1ac4b6e2f7e h: refs/heads/master i: 8365: 861b8b24bb2ebe814e2fda729a40374d13db49ab 8363: 26689d1086c905f05cd6165421bc17c63cfc0085 8359: 842e81942daf9d1e76ca5cf9fdbec3c56002c705 8351: 684e7c488a01c6c53a100321a418dc6dd87f50f3 v: v3 --- [refs] | 2 +- trunk/kernel/acct.c | 43 +++++++++++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/[refs] b/[refs] index b33eba2c2e89..371b9abc9811 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 621a4d1a823e1ec631fbfbe6e53ad036e2d2abc6 +refs/heads/master: 417ef531415c070926b071b75fd1c1ac4b6e2f7e diff --git a/trunk/kernel/acct.c b/trunk/kernel/acct.c index f70e6027cca9..b756f527497e 100644 --- a/trunk/kernel/acct.c +++ b/trunk/kernel/acct.c @@ -165,7 +165,7 @@ static int check_free_space(struct file *file) } /* - * Close the old accouting file (if currently open) and then replace + * Close the old accounting file (if currently open) and then replace * it with file (if non-NULL). * * NOTE: acct_globals.lock MUST be held on entry and exit. @@ -199,11 +199,16 @@ static void acct_file_reopen(struct file *file) } } -/* - * sys_acct() is the only system call needed to implement process - * accounting. It takes the name of the file where accounting records - * should be written. If the filename is NULL, accounting will be - * shutdown. +/** + * sys_acct - enable/disable process accounting + * @name: file name for accounting records or NULL to shutdown accounting + * + * Returns 0 for success or negative errno values for failure. + * + * sys_acct() is the only system call needed to implement process + * accounting. It takes the name of the file where accounting records + * should be written. If the filename is NULL, accounting will be + * shutdown. */ asmlinkage long sys_acct(const char __user *name) { @@ -250,9 +255,12 @@ asmlinkage long sys_acct(const char __user *name) return (0); } -/* - * If the accouting is turned on for a file in the filesystem pointed - * to by sb, turn accouting off. +/** + * acct_auto_close - turn off a filesystem's accounting if it is on + * @sb: super block for the filesystem + * + * If the accounting is turned on for a file in the filesystem pointed + * to by sb, turn accounting off. */ void acct_auto_close(struct super_block *sb) { @@ -503,8 +511,11 @@ static void do_acct_process(long exitcode, struct file *file) set_fs(fs); } -/* +/** * acct_process - now just a wrapper around do_acct_process + * @exitcode: task exit code + * + * handles process accounting for an exiting task */ void acct_process(long exitcode) { @@ -530,9 +541,9 @@ void acct_process(long exitcode) } -/* - * acct_update_integrals - * - update mm integral fields in task_struct +/** + * acct_update_integrals - update mm integral fields in task_struct + * @tsk: task_struct for accounting */ void acct_update_integrals(struct task_struct *tsk) { @@ -547,9 +558,9 @@ void acct_update_integrals(struct task_struct *tsk) } } -/* - * acct_clear_integrals - * - clear the mm integral fields in task_struct +/** + * acct_clear_integrals - clear the mm integral fields in task_struct + * @tsk: task_struct whose accounting fields are cleared */ void acct_clear_integrals(struct task_struct *tsk) {