]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: Remove duplicate log code
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 16 Apr 2012 08:40:00 +0000 (09:40 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 16 Apr 2012 08:40:00 +0000 (09:40 +0100)
commit195c41d05cc93cca28802223ff68e766e460b427
tree5fe6f1fcaef105b424434c5da58778e0dbe9fcdf
parente80623efc450fb615d1496774c8d5c063a50fb3a
GFS2: Remove duplicate log code

The main part of this patch merges the two functions used to
write metadata and data buffers to the log. Most of the code
is common between the two functions, so this provides a nice
clean up, and makes the code more readable.

The gfs2_get_log_desc() function is also extended to take two more
arguments, and thus avoid having to set the length and data1
fields of this strucuture as a separate operation.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/lops.c