From: Jeff Layton Subject: Re: [PATCH 2/2] CIFS: Simplify invalidate part (try #2) Date: Fri, 22 Apr 2011 07:50:07 -0400 Message-ID: <20110422075007.2e9c303b@tlielax.poochiereds.net> References: <1302635430-3575-1-git-send-email-piastry@etersoft.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Steve French , Shirish Pargaonkar , Suresh Jayaraman , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Pavel Shilovsky Return-path: In-Reply-To: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Fri, 22 Apr 2011 12:09:20 +0400 Pavel Shilovsky wrote: > After conversation with Steve, we decided to drop > filemap_write_and_wait from getattr, because we already do it in > cifs_file_aio_write. I also think that we should drop it from > cifs_llseek in this case too. I will repost this patch later (launder > page operation patch was merged earlier). > I wasn't privy to this discussion, but that makes no sense to me. Just because we initiated writeout in cifs_file_aio_write, does not mean that it's complete. If it's not complete then the size returned by the server may be bogus. -- Jeff Layton