summaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-15 22:19:30 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-04 20:43:39 +0100
commitf48407ddd46bd215a7b4e1af3940e759a93640c5 (patch)
treec57be1f41cae54bbad4023eed5f062b25b59674a /fs/nfs/inode.c
parentNFSv4: Get rid of unnecessary BUG_ON()s (diff)
downloadlinux-f48407ddd46bd215a7b4e1af3940e759a93640c5.tar.xz
linux-f48407ddd46bd215a7b4e1af3940e759a93640c5.zip
NFS: Remove BUG_ON()s in the fs/nfs/inode.c
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 6fa01aea2488..117183b1ee09 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);