From patchwork Wed Sep 29 13:49:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 217282 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8TDnM2h001426 for ; Wed, 29 Sep 2010 13:50:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751885Ab0I2Nu5 (ORCPT ); Wed, 29 Sep 2010 09:50:57 -0400 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:64060 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076Ab0I2Nu5 (ORCPT ); Wed, 29 Sep 2010 09:50:57 -0400 X-Authority-Analysis: v=1.1 cv=/wPbbLlNx4yf8SUm0NWu5W7XZrQwS6yDV9JD17FB+as= c=1 sm=0 a=a2eR-iwVXoQA:10 a=ld/erqUjW76FpBUqCqkKeA==:17 a=VwQbUJbxAAAA:8 a=20KFwNOVAAAA:8 a=RW-AWHYDIFcDzE9YRTgA:9 a=7Q8Y-J1wJtzBmwdj_PxKDRX6V7QA:4 a=LI9Vle30uBYA:10 a=jEp0ucaQiEUA:10 a=ld/erqUjW76FpBUqCqkKeA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 71.70.153.3 Received: from [71.70.153.3] ([71.70.153.3:60893] helo=mail.poochiereds.net) by cdptpa-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id D6/70-09295-30443AC4; Wed, 29 Sep 2010 13:49:55 +0000 Received: by mail.poochiereds.net (Postfix, from userid 4447) id C17575817B; Wed, 29 Sep 2010 09:49:54 -0400 (EDT) From: Jeff Layton To: smfrench@gmail.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cifs@vger.kernel.org, stable@kernel.org Subject: [PATCH] cifs: set backing_dev_info on new S_ISREG inodes Date: Wed, 29 Sep 2010 09:49:54 -0400 Message-Id: <1285768194-29595-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.2.3 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 29 Sep 2010 13:50:58 +0000 (UTC) diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 2256124..d6db805 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -853,6 +853,8 @@ retry_iget5_locked: inode->i_flags |= S_NOATIME | S_NOCMTIME; if (inode->i_state & I_NEW) { inode->i_ino = hash; + if (S_ISREG(inode->i_mode)) + inode->i_data.backing_dev_info = sb->s_bdi; #ifdef CONFIG_CIFS_FSCACHE /* initialize per-inode cache cookie pointer */ CIFS_I(inode)->fscache = NULL;