From: andros@netapp.com Subject: [PATCH 4/6] SQUASHME pnfs-submit: cleanup layoutcommit call Date: Wed, 2 Jun 2010 11:54:25 -0400 Message-ID: <1275494067-4058-5-git-send-email-andros@netapp.com> References: <1275494067-4058-1-git-send-email-andros@netapp.com> <1275494067-4058-2-git-send-email-andros@netapp.com> <1275494067-4058-3-git-send-email-andros@netapp.com> <1275494067-4058-4-git-send-email-andros@netapp.com> Cc: linux-nfs@vger.kernel.org, Andy Adamson To: bhalevy@panasas.com Return-path: Received: from mx2.netapp.com ([216.240.18.37]:18338 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758313Ab0FBRzZ (ORCPT ); Wed, 2 Jun 2010 13:55:25 -0400 In-Reply-To: <1275494067-4058-4-git-send-email-andros@netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: From: Andy Adamson pnfs_layoutcommit_inode prints its status upon exit. Signed-off-by: Andy Adamson --- fs/nfs/pnfs.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index def27f8..91e944a 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -766,15 +766,8 @@ _pnfs_return_layout(struct inode *ino, struct nfs4_pnfs_layout_segment *range, !pnfs_return_layout_barrier(nfsi, &arg)); } - if (layoutcommit_needed(nfsi)) { - status = pnfs_layoutcommit_inode(ino, wait); - if (status) { - dprintk("%s: layoutcommit failed, status=%d. " - "Returning layout anyway\n", - __func__, status); - status = 0; - } - } + if (layoutcommit_needed(nfsi)) + pnfs_layoutcommit_inode(ino, wait); } send_return: status = return_layout(ino, &arg, stateid, type, lo, wait); -- 1.6.6