diff options
author | Abhijith Das <adas@redhat.com> | 2008-03-07 00:43:52 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-03-31 11:41:30 +0200 |
commit | 20b95bf2c4c5c28e093aa42699e67829b6cd7fd0 (patch) | |
tree | e611fb6ee336f37609a5881a0846ffdf80bf58dc /fs/gfs2/ops_address.c | |
parent | [GFS2] possible null pointer dereference fixup (diff) | |
download | linux-20b95bf2c4c5c28e093aa42699e67829b6cd7fd0.tar.xz linux-20b95bf2c4c5c28e093aa42699e67829b6cd7fd0.zip |
[GFS2] gfs2_adjust_quota has broken unstuffing code
This patch combines the 2 patches in bug 434736 to correct the lock
ordering in the unstuffing of the quota inode in gfs2_adjust_quota and
adjusting the number of revokes in gfs2_write_jdata_pagevec
Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_address.c')
-rw-r--r-- | fs/gfs2/ops_address.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 2483d8741060..e72fd47d71eb 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c @@ -21,7 +21,6 @@ #include <linux/gfs2_ondisk.h> #include <linux/lm_interface.h> #include <linux/backing-dev.h> -#include <linux/pagevec.h> #include "gfs2.h" #include "incore.h" @@ -278,7 +277,7 @@ static int gfs2_write_jdata_pagevec(struct address_space *mapping, int i; int ret; - ret = gfs2_trans_begin(sdp, nrblocks, 0); + ret = gfs2_trans_begin(sdp, nrblocks, nrblocks); if (ret < 0) return ret; |