aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-08-25 06:56:10 -0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-09 02:56:07 -0400
commitb7db9956e57c8151b930d5e5fe5c766e6aad3ff7 (patch)
treed663a8687fff481abb1498c2ea0eac01ef81cb26 /fs
parente56105214943ce5f0901d20e972a7cfd0d1d0656 (diff)
block: move policy from disk to part0
Move disk->policy to part0->policy. Implement and use get_disk_ro(). Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/partitions/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 24d2c56d7d2d..ace6d03602c7 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -375,7 +375,7 @@ int add_partition(struct gendisk *disk, int partno,
375 p->start_sect = start; 375 p->start_sect = start;
376 p->nr_sects = len; 376 p->nr_sects = len;
377 p->partno = partno; 377 p->partno = partno;
378 p->policy = disk->policy; 378 p->policy = get_disk_ro(disk);
379 379
380 dname = dev_name(ddev); 380 dname = dev_name(ddev);
381 if (isdigit(dname[strlen(dname) - 1])) 381 if (isdigit(dname[strlen(dname) - 1]))