From: Trond Myklebust Date: Mon, 15 Oct 2012 20:19:30 +0000 (-0400) Subject: NFS: Remove BUG_ON()s in the fs/nfs/inode.c X-Git-Tag: next-20121025~77^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9684f817314794ec12dedcf189cb50a531c392e3;p=karo-tx-linux.git NFS: Remove BUG_ON()s in the fs/nfs/inode.c Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 5c7325c5c5e6..3967be22c7f8 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -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);