diff options
author | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 06:19:28 -0500 |
---|---|---|
committer | Steven Whitehouse <steve@chygwyn.com> | 2006-01-18 06:19:28 -0500 |
commit | d4e9c4c3bf861ef2ac96e0de659c75a00da92b28 (patch) | |
tree | 925ececc725ad5180b9253f732b50c51bfa0754d /fs/gfs2/ops_file.c | |
parent | b96ca4fa4e3b510d528a093a5bac0befbc2ba46d (diff) |
[GFS2] Add an additional argument to gfs2_trans_add_bh()
This adds an extra argument to gfs2_trans_add_bh() to indicate whether the
bh being added to the transaction is metadata or data. Its currently unused
since all existing callers set it to 1 (metadata) but following patches will
make use of it.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_file.c')
-rw-r--r-- | fs/gfs2/ops_file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c index 563c19d0d406..0f356fc4690c 100644 --- a/fs/gfs2/ops_file.c +++ b/fs/gfs2/ops_file.c | |||
@@ -456,7 +456,7 @@ static ssize_t do_write_direct_alloc(struct file *file, const char __user *buf, | |||
456 | ip->i_di.di_mode &= (ip->i_di.di_mode & S_IXGRP) ? | 456 | ip->i_di.di_mode &= (ip->i_di.di_mode & S_IXGRP) ? |
457 | (~(S_ISUID | S_ISGID)) : (~S_ISUID); | 457 | (~(S_ISUID | S_ISGID)) : (~S_ISUID); |
458 | 458 | ||
459 | gfs2_trans_add_bh(ip->i_gl, dibh); | 459 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
460 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 460 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
461 | brelse(dibh); | 461 | brelse(dibh); |
462 | } | 462 | } |
@@ -481,7 +481,7 @@ static ssize_t do_write_direct_alloc(struct file *file, const char __user *buf, | |||
481 | ip->i_di.di_size = inode->i_size; | 481 | ip->i_di.di_size = inode->i_size; |
482 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 482 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); |
483 | 483 | ||
484 | gfs2_trans_add_bh(ip->i_gl, dibh); | 484 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
485 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 485 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
486 | brelse(dibh); | 486 | brelse(dibh); |
487 | 487 | ||
@@ -721,7 +721,7 @@ static ssize_t do_do_write_buf(struct file *file, const char __user *buf, size_t | |||
721 | ip->i_di.di_mode &= (ip->i_di.di_mode & S_IXGRP) ? | 721 | ip->i_di.di_mode &= (ip->i_di.di_mode & S_IXGRP) ? |
722 | (~(S_ISUID | S_ISGID)) : (~S_ISUID); | 722 | (~(S_ISUID | S_ISGID)) : (~S_ISUID); |
723 | 723 | ||
724 | gfs2_trans_add_bh(ip->i_gl, dibh); | 724 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
725 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 725 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
726 | brelse(dibh); | 726 | brelse(dibh); |
727 | } | 727 | } |
@@ -752,7 +752,7 @@ static ssize_t do_do_write_buf(struct file *file, const char __user *buf, size_t | |||
752 | ip->i_di.di_size = inode->i_size; | 752 | ip->i_di.di_size = inode->i_size; |
753 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); | 753 | ip->i_di.di_mtime = ip->i_di.di_ctime = get_seconds(); |
754 | 754 | ||
755 | gfs2_trans_add_bh(ip->i_gl, dibh); | 755 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
756 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 756 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
757 | brelse(dibh); | 757 | brelse(dibh); |
758 | } | 758 | } |
@@ -1177,7 +1177,7 @@ static int gfs2_ioctl_flags(struct gfs2_inode *ip, unsigned int cmd, unsigned lo | |||
1177 | 1177 | ||
1178 | ip->i_di.di_flags = flags; | 1178 | ip->i_di.di_flags = flags; |
1179 | 1179 | ||
1180 | gfs2_trans_add_bh(ip->i_gl, dibh); | 1180 | gfs2_trans_add_bh(ip->i_gl, dibh, 1); |
1181 | gfs2_dinode_out(&ip->i_di, dibh->b_data); | 1181 | gfs2_dinode_out(&ip->i_di, dibh->b_data); |
1182 | 1182 | ||
1183 | brelse(dibh); | 1183 | brelse(dibh); |