Skip to content

Commit 6ae965c

Browse files
Daniel WalkerLinus Torvalds
authored andcommitted
whitespace fixes: process accounting
Lots of converting spaces to tabs. Signed-off-by: Daniel Walker <dwalker@mvista.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6fa6c3b commit 6ae965c

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

‎kernel/acct.c‎

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,16 @@ static comp_t encode_comp_t(unsigned long value)
329329
}
330330

331331
/*
332-
* If we need to round up, do it (and handle overflow correctly).
333-
*/
332+
* If we need to round up, do it (and handle overflow correctly).
333+
*/
334334
if (rnd && (++value > MAXFRACT)) {
335335
value >>= EXPSIZE;
336336
exp++;
337337
}
338338

339339
/*
340-
* Clean it up and polish it off.
341-
*/
340+
* Clean it up and polish it off.
341+
*/
342342
exp <<= MANTSIZE; /* Shift the exponent into place */
343343
exp += value; /* and add on the mantissa. */
344344
return exp;
@@ -361,30 +361,30 @@ static comp_t encode_comp_t(unsigned long value)
361361

362362
static comp2_t encode_comp2_t(u64 value)
363363
{
364-
int exp, rnd;
365-
366-
exp = (value > (MAXFRACT2>>1));
367-
rnd = 0;
368-
while (value > MAXFRACT2) {
369-
rnd = value & 1;
370-
value >>= 1;
371-
exp++;
372-
}
373-
374-
/*
375-
* If we need to round up, do it (and handle overflow correctly).
376-
*/
377-
if (rnd && (++value > MAXFRACT2)) {
378-
value >>= 1;
379-
exp++;
380-
}
381-
382-
if (exp > MAXEXP2) {
383-
/* Overflow. Return largest representable number instead. */
384-
return (1ul << (MANTSIZE2+EXPSIZE2-1)) - 1;
385-
} else {
386-
return (value & (MAXFRACT2>>1)) | (exp << (MANTSIZE2-1));
387-
}
364+
int exp, rnd;
365+
366+
exp = (value > (MAXFRACT2>>1));
367+
rnd = 0;
368+
while (value > MAXFRACT2) {
369+
rnd = value & 1;
370+
value >>= 1;
371+
exp++;
372+
}
373+
374+
/*
375+
* If we need to round up, do it (and handle overflow correctly).
376+
*/
377+
if (rnd && (++value > MAXFRACT2)) {
378+
value >>= 1;
379+
exp++;
380+
}
381+
382+
if (exp > MAXEXP2) {
383+
/* Overflow. Return largest representable number instead. */
384+
return (1ul << (MANTSIZE2+EXPSIZE2-1)) - 1;
385+
} else {
386+
return (value & (MAXFRACT2>>1)) | (exp << (MANTSIZE2-1));
387+
}
388388
}
389389
#endif
390390

@@ -501,14 +501,14 @@ static void do_acct_process(struct file *file)
501501
ac.ac_swaps = encode_comp_t(0);
502502

503503
/*
504-
* Kernel segment override to datasegment and write it
505-
* to the accounting file.
506-
*/
504+
* Kernel segment override to datasegment and write it
505+
* to the accounting file.
506+
*/
507507
fs = get_fs();
508508
set_fs(KERNEL_DS);
509509
/*
510-
* Accounting records are not subject to resource limits.
511-
*/
510+
* Accounting records are not subject to resource limits.
511+
*/
512512
flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur;
513513
current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
514514
file->f_op->write(file, (char *)&ac,

0 commit comments

Comments
 (0)