aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/mdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nilfs2/mdt.c')
-rw-r--r--fs/nilfs2/mdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c
index e0a632b86feb..47dd815433fd 100644
--- a/fs/nilfs2/mdt.c
+++ b/fs/nilfs2/mdt.c
@@ -154,10 +154,8 @@ nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff,
154 ret = -EBUSY; 154 ret = -EBUSY;
155 goto failed_bh; 155 goto failed_bh;
156 } 156 }
157 } else { 157 } else /* mode == READ */
158 BUG_ON(mode != READ);
159 lock_buffer(bh); 158 lock_buffer(bh);
160 }
161 159
162 if (buffer_uptodate(bh)) { 160 if (buffer_uptodate(bh)) {
163 unlock_buffer(bh); 161 unlock_buffer(bh);