]> 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>
Wed, 24 Oct 2012 15:29:12 +0000 (11:29 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c

index 5c7325c5c5e66b23beacd6fb7485fda5a640dcd9..3967be22c7f85804fcc5dbcb2e7b14c4406af0af 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);