diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-04-29 03:32:00 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-29 03:32:00 -0400 |
commit | 6a47dc1418682c83d603b491df1d048f73aa973e (patch) | |
tree | 4a73ae4ce74be630b8862dcaf2a757f2f268ebbd | |
parent | 0341aafb7f3313bcedc6811a098500be85f3fc77 (diff) |
nilfs: fix breakage caused by barrier flag changes
After merging the block tree, today's linux-next build (powerpc ppc64_defconfig)
failed like this:
fs/nilfs2/the_nilfs.c: In function 'nilfs_discard_segments':
fs/nilfs2/the_nilfs.c:673: error: 'DISCARD_FL_BARRIER' undeclared (first use in this function)
Caused by commit fbd9b09a177a481eda256447c881f014f29034fe ("blkdev:
generalize flags for blkdev_issue_fn functions") interacting with commit
e902ec9906e844f4613fa6190c6fa65f162dc86e ("nilfs2: issue discard request
after cleaning segments") (which netered Linus' tree on about March 4 -
before v2.6.34-rc1).
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | fs/nilfs2/the_nilfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nilfs2/the_nilfs.c b/fs/nilfs2/the_nilfs.c index 33871f7e4f01..7ffcf2b8b1f4 100644 --- a/fs/nilfs2/the_nilfs.c +++ b/fs/nilfs2/the_nilfs.c | |||
@@ -670,7 +670,7 @@ int nilfs_discard_segments(struct the_nilfs *nilfs, __u64 *segnump, | |||
670 | start * sects_per_block, | 670 | start * sects_per_block, |
671 | nblocks * sects_per_block, | 671 | nblocks * sects_per_block, |
672 | GFP_NOFS, | 672 | GFP_NOFS, |
673 | DISCARD_FL_BARRIER); | 673 | BLKDEV_IFL_BARRIER); |
674 | if (ret < 0) | 674 | if (ret < 0) |
675 | return ret; | 675 | return ret; |
676 | nblocks = 0; | 676 | nblocks = 0; |
@@ -680,7 +680,7 @@ int nilfs_discard_segments(struct the_nilfs *nilfs, __u64 *segnump, | |||
680 | ret = blkdev_issue_discard(nilfs->ns_bdev, | 680 | ret = blkdev_issue_discard(nilfs->ns_bdev, |
681 | start * sects_per_block, | 681 | start * sects_per_block, |
682 | nblocks * sects_per_block, | 682 | nblocks * sects_per_block, |
683 | GFP_NOFS, DISCARD_FL_BARRIER); | 683 | GFP_NOFS, BLKDEV_IFL_BARRIER); |
684 | return ret; | 684 | return ret; |
685 | } | 685 | } |
686 | 686 | ||