All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question]: about the paramters of func generic_file_buffered_write.
@ 2013-08-30  9:14 ` majianpeng
  0 siblings, 0 replies; 2+ messages in thread
From: majianpeng @ 2013-08-30  9:14 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, LKML

Hi all,
	The definition of func generic_file_buffered_write is:
 		ssize_t generic_file_buffered_write(struct kiocb *, const struct iovec *,
                							unsigned long, loff_t, loff_t *, size_t, ssize_t);
The fourth and fifth paratmers indicate the current pos of file.
Every place which call this function, it set the fourth to iocb->ki_pos(maybe not but equal).
The fifth parameter is set &iocb->ki_pos.

I think we can remove two parameters. Those parameter can replace by the files of struct kiocb in the fun
of generic_file_buffered_write.

Or am i missing something?

Thansk!
Jianpeng Ma

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-30  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30  9:14 [Question]: about the paramters of func generic_file_buffered_write majianpeng
2013-08-30  9:14 ` majianpeng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.