]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cifs: set backing_dev_info on new S_ISREG inodes
authorJeff Layton <jlayton@redhat.com>
Wed, 29 Sep 2010 13:49:54 +0000 (09:49 -0400)
committerSteve French <sfrench@us.ibm.com>
Wed, 29 Sep 2010 19:23:23 +0000 (19:23 +0000)
commit522440ed55d2cc8855ea5f82bc067e0483b2e1be
tree53d8bee5f3e0dd69affd167b4e29a7244d9fc2da
parent899611ee7d373e5eeda08e9a8632684e1ebbbf00
cifs: set backing_dev_info on new S_ISREG inodes

Testing on very recent kernel (2.6.36-rc6) made this warning pop:

    WARNING: at fs/fs-writeback.c:87 inode_to_bdi+0x65/0x70()
    Hardware name:
    Dirtiable inode bdi default != sb bdi cifs

...the following patch fixes it and seems to be the obviously correct
thing to do for cifs.

Cc: stable@kernel.org
Acked-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c