Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfsd: Use seq_putc() in two functions

A single character (line break) should be put into a sequence.
Thus use the corresponding function "seq_putc()".

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Xu Wang and committed by
Chuck Lever
0b7cd9d9 6787f0be

+2 -2
+2 -2
fs/nfsd/nfs4idmap.c
··· 168 168 ent->id); 169 169 if (test_bit(CACHE_VALID, &h->flags)) 170 170 seq_printf(m, " %s", ent->name); 171 - seq_printf(m, "\n"); 171 + seq_putc(m, '\n'); 172 172 return 0; 173 173 } 174 174 ··· 346 346 ent->name); 347 347 if (test_bit(CACHE_VALID, &h->flags)) 348 348 seq_printf(m, " %u", ent->id); 349 - seq_printf(m, "\n"); 349 + seq_putc(m, '\n'); 350 350 return 0; 351 351 } 352 352