diff options
author | Tejun Heo <tj@kernel.org> | 2008-08-25 19:56:10 +0900 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 08:56:07 +0200 |
commit | b7db9956e57c8151b930d5e5fe5c766e6aad3ff7 (patch) | |
tree | d663a8687fff481abb1498c2ea0eac01ef81cb26 /fs | |
parent | e56105214943ce5f0901d20e972a7cfd0d1d0656 (diff) | |
download | linux-3.10-b7db9956e57c8151b930d5e5fe5c766e6aad3ff7.tar.gz linux-3.10-b7db9956e57c8151b930d5e5fe5c766e6aad3ff7.tar.bz2 linux-3.10-b7db9956e57c8151b930d5e5fe5c766e6aad3ff7.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 24d2c56d7d2..ace6d03602c 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -375,7 +375,7 @@ int add_partition(struct gendisk *disk, int partno, p->start_sect = start; p->nr_sects = len; p->partno = partno; - p->policy = disk->policy; + p->policy = get_disk_ro(disk); dname = dev_name(ddev); if (isdigit(dname[strlen(dname) - 1])) |