diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-20 13:04:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:12:56 -0400 |
commit | 03d95eb2f2578083a3f6286262e1cb5d88a00c02 (patch) | |
tree | a82585b55080628e0ba0028dfb100886bf5b4099 /kernel/acct.c | |
parent | 72ec35163f9f728ba1579fd80682e51e933dfa8a (diff) |
lift sb_start_write() out of ->write()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/acct.c')
-rw-r--r-- | kernel/acct.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/acct.c b/kernel/acct.c index b9bd7f098ee5..85389fe2abd0 100644 --- a/kernel/acct.c +++ b/kernel/acct.c | |||
@@ -543,6 +543,7 @@ static void do_acct_process(struct bsd_acct_struct *acct, | |||
543 | * Kernel segment override to datasegment and write it | 543 | * Kernel segment override to datasegment and write it |
544 | * to the accounting file. | 544 | * to the accounting file. |
545 | */ | 545 | */ |
546 | file_start_write(file); | ||
546 | fs = get_fs(); | 547 | fs = get_fs(); |
547 | set_fs(KERNEL_DS); | 548 | set_fs(KERNEL_DS); |
548 | /* | 549 | /* |
@@ -554,6 +555,7 @@ static void do_acct_process(struct bsd_acct_struct *acct, | |||
554 | sizeof(acct_t), &file->f_pos); | 555 | sizeof(acct_t), &file->f_pos); |
555 | current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; | 556 | current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; |
556 | set_fs(fs); | 557 | set_fs(fs); |
558 | file_end_write(file); | ||
557 | out: | 559 | out: |
558 | revert_creds(orig_cred); | 560 | revert_creds(orig_cred); |
559 | } | 561 | } |