From: UZAIR LAKHANI Subject: Diff b/w generic_file_read & do_sync_read Date: Wed, 23 Aug 2006 07:11:58 -0700 (PDT) Message-ID: <20060823141158.66808.qmail@web37507.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from web37507.mail.mud.yahoo.com ([209.191.91.154]:64952 "HELO web37507.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S932338AbWHWOMC (ORCPT ); Wed, 23 Aug 2006 10:12:02 -0400 To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello All, I want to find out the difference between generic_file_read and do_sync_read. The thing I have got upto now is that generic_file_read uses the page cache for doing read therefore we must implement readpage function with generic_file_read. On the other hand do_sync_read uses aio_read function for doing read. I want a little bit explanation about the difference b/w these two. Thanks, Uzair Lakhani, Karachi, Pakistan. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com