]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
NFS: Remove BUG_ON()s in the fs/nfs/inode.c
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Oct 2012 20:19:30 +0000 (16:19 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Nov 2012 16:02:07 +0000 (12:02 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c

index 6fa01aea24889cae08385e5bfe0aab16c742adc8..117183b1ee09e990662ce61a029ffc3b1f88d7b7 100644 (file)
@@ -112,8 +112,8 @@ void nfs_clear_inode(struct inode *inode)
        /*
         * The following should never happen...
         */
-       BUG_ON(nfs_have_writebacks(inode));
-       BUG_ON(!list_empty(&NFS_I(inode)->open_files));
+       WARN_ON_ONCE(nfs_have_writebacks(inode));
+       WARN_ON_ONCE(!list_empty(&NFS_I(inode)->open_files));
        nfs_zap_acl_cache(inode);
        nfs_access_zap_cache(inode);
        nfs_fscache_release_inode_cookie(inode);