GFS2: change function gfs2_direct_IO to use a normal gfs2_glock_dq
authorBob Peterson <rpeterso@redhat.com>
Thu, 9 Aug 2012 17:48:42 +0000 (12:48 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:47:06 +0000 (10:47 +0100)
This patch changes function gfs2_direct_IO so that it uses a normal
call to gfs2_glock_dq rather than a call to a multiple-dq of one item.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c

index 00eaa83871b764e9a08b2444996e2e28e1b5afec..01c4975da4bc6252a9ce41e4c23ebd183c80a47c 100644 (file)
@@ -1024,7 +1024,7 @@ static ssize_t gfs2_direct_IO(int rw, struct kiocb *iocb,
                                  offset, nr_segs, gfs2_get_block_direct,
                                  NULL, NULL, 0);
 out:
-       gfs2_glock_dq_m(1, &gh);
+       gfs2_glock_dq(&gh);
        gfs2_holder_uninit(&gh);
        return rv;
 }