]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nilfs2/mdt.c
nilfs2: replace BUG_ON and BUG calls triggerable from ioctl
[linux-2.6-omap-h63xx.git] / fs / nilfs2 / mdt.c
index e0a632b86febda04da448b1ec2bd8ee23b536443..47dd815433fd4df6b5e484b3b52cbc6a0cc5294f 100644 (file)
@@ -154,10 +154,8 @@ nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff,
                        ret = -EBUSY;
                        goto failed_bh;
                }
-       } else {
-               BUG_ON(mode != READ);
+       } else /* mode == READ */
                lock_buffer(bh);
-       }
 
        if (buffer_uptodate(bh)) {
                unlock_buffer(bh);