diff options
author | Bob Peterson <rpeterso@redhat.com> | 2016-05-02 11:53:35 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2016-05-06 11:27:27 -0500 |
commit | 68cd4ce2caf22a81833eb1abfa075eb1cc39bfe2 (patch) | |
tree | d1220db2741f8d96d0f2fde5106b1595dd7f1cae /fs/gfs2/aops.c | |
parent | 8381e6022755863258a352128a55e375a766f50d (diff) | |
download | linux-stable-68cd4ce2caf22a81833eb1abfa075eb1cc39bfe2.tar.gz linux-stable-68cd4ce2caf22a81833eb1abfa075eb1cc39bfe2.tar.bz2 linux-stable-68cd4ce2caf22a81833eb1abfa075eb1cc39bfe2.zip |
GFS2: Refactor gfs2_remove_from_journal
This patch makes two simple changes to function gfs2_remove_from_journal.
First, it removes the parameter that specifies the transaction.
Since it's always passed in as current->journal_info, we might as well
set that in the function rather than passing it in. Second, it changes
the meta parameter to use an enum to make the code more clear.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/aops.c')
-rw-r--r-- | fs/gfs2/aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 58dd0061134b..e21a931ced53 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -977,7 +977,7 @@ static void gfs2_discard(struct gfs2_sbd *sdp, struct buffer_head *bh) if (!list_empty(&bd->bd_list) && !buffer_pinned(bh)) list_del_init(&bd->bd_list); else - gfs2_remove_from_journal(bh, current->journal_info, 0); + gfs2_remove_from_journal(bh, REMOVE_JDATA); } bh->b_bdev = NULL; clear_buffer_mapped(bh); |