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, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c
index 9cb831899119..156bf6091a96 100644
--- a/fs/nilfs2/mdt.c
+++ b/fs/nilfs2/mdt.c
@@ -136,7 +136,7 @@ nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff,
136 int mode, struct buffer_head **out_bh) 136 int mode, struct buffer_head **out_bh)
137{ 137{
138 struct buffer_head *bh; 138 struct buffer_head *bh;
139 unsigned long blknum = 0; 139 __u64 blknum = 0;
140 int ret = -ENOMEM; 140 int ret = -ENOMEM;
141 141
142 bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0); 142 bh = nilfs_grab_buffer(inode, inode->i_mapping, blkoff, 0);
@@ -166,7 +166,7 @@ nilfs_mdt_submit_block(struct inode *inode, unsigned long blkoff,
166 goto failed_bh; 166 goto failed_bh;
167 } 167 }
168 bh->b_bdev = NILFS_MDT(inode)->mi_nilfs->ns_bdev; 168 bh->b_bdev = NILFS_MDT(inode)->mi_nilfs->ns_bdev;
169 bh->b_blocknr = blknum; 169 bh->b_blocknr = (sector_t)blknum;
170 set_buffer_mapped(bh); 170 set_buffer_mapped(bh);
171 171
172 bh->b_end_io = end_buffer_read_sync; 172 bh->b_end_io = end_buffer_read_sync;