GFS2: Refactor gfs2_remove_from_journal
authorBob Peterson <rpeterso@redhat.com>
Mon, 2 May 2016 16:53:35 +0000 (11:53 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 6 May 2016 16:27:27 +0000 (11:27 -0500)
commit68cd4ce2caf22a81833eb1abfa075eb1cc39bfe2
treed1220db2741f8d96d0f2fde5106b1595dd7f1cae
parent8381e6022755863258a352128a55e375a766f50d
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>
fs/gfs2/aops.c
fs/gfs2/meta_io.c
fs/gfs2/meta_io.h