aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/jdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/jdata.c')
-rw-r--r--fs/gfs2/jdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/jdata.c b/fs/gfs2/jdata.c
index d4adbf171ed3..6caa93e46ce0 100644
--- a/fs/gfs2/jdata.c
+++ b/fs/gfs2/jdata.c
@@ -30,7 +30,7 @@ int gfs2_jdata_get_buffer(struct gfs2_inode *ip, uint64_t block, int new,
30 30
31 if (new) { 31 if (new) {
32 bh = gfs2_meta_new(ip->i_gl, block); 32 bh = gfs2_meta_new(ip->i_gl, block);
33 gfs2_trans_add_bh(ip->i_gl, bh); 33 gfs2_trans_add_bh(ip->i_gl, bh, 1);
34 gfs2_metatype_set(bh, GFS2_METATYPE_JD, GFS2_FORMAT_JD); 34 gfs2_metatype_set(bh, GFS2_METATYPE_JD, GFS2_FORMAT_JD);
35 gfs2_buffer_clear_tail(bh, sizeof(struct gfs2_meta_header)); 35 gfs2_buffer_clear_tail(bh, sizeof(struct gfs2_meta_header));
36 } else { 36 } else {
@@ -220,7 +220,7 @@ int gfs2_jdata_read(struct gfs2_inode *ip, char __user *buf, uint64_t offset,
220int gfs2_copy_from_mem(struct gfs2_inode *ip, struct buffer_head *bh, 220int gfs2_copy_from_mem(struct gfs2_inode *ip, struct buffer_head *bh,
221 const char **buf, unsigned int offset, unsigned int size) 221 const char **buf, unsigned int offset, unsigned int size)
222{ 222{
223 gfs2_trans_add_bh(ip->i_gl, bh); 223 gfs2_trans_add_bh(ip->i_gl, bh, 1);
224 memcpy(bh->b_data + offset, *buf, size); 224 memcpy(bh->b_data + offset, *buf, size);
225 225
226 *buf += size; 226 *buf += size;
@@ -243,7 +243,7 @@ int gfs2_copy_from_user(struct gfs2_inode *ip, struct buffer_head *bh,
243{ 243{
244 int error = 0; 244 int error = 0;
245 245
246 gfs2_trans_add_bh(ip->i_gl, bh); 246 gfs2_trans_add_bh(ip->i_gl, bh, 1);
247 if (copy_from_user(bh->b_data + offset, *buf, size)) 247 if (copy_from_user(bh->b_data + offset, *buf, size))
248 error = -EFAULT; 248 error = -EFAULT;
249 else 249 else
@@ -368,7 +368,7 @@ int gfs2_jdata_write(struct gfs2_inode *ip, const char __user *buf, uint64_t off
368 ip->i_di.di_size = offset + copied; 368 ip->i_di.di_size = offset + copied;
369 ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); 369 ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds();
370 370
371 gfs2_trans_add_bh(ip->i_gl, dibh); 371 gfs2_trans_add_bh(ip->i_gl, dibh, 1);
372 gfs2_dinode_out(&ip->i_di, dibh->b_data); 372 gfs2_dinode_out(&ip->i_di, dibh->b_data);
373 brelse(dibh); 373 brelse(dibh);
374 374