diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-08-10 02:21:49 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-08-10 02:21:49 -0700 |
| commit | 816ab591e901697ebf566a4bc29e5c1605767f8e (patch) | |
| tree | ef03154164f5bea19939ccf9a29ebf7adfd4dda2 /include/linux/fs.h | |
| parent | fc4dfb65c5e15d466300c195ab967701bfa1dd49 (diff) | |
[PATCH] partition table flush/read cleanup
Big One. Flushing/rereading partition tables is taken from
->revalidate() for partitioned devices; now it's done in the
caller (check_disk_change()). BLKRRPART handling also moved
out of drivers - they are still allowed to override it (DAC960
and i2o are the only remaining ones), but common case is handled
in fs/block_dev.c.
Note: we are still only shifting stuff - bd_sem deadlocks in
check_disk_change() are still there. However, now we have all
relevant code outside of drivers and that will allow to fix the
thing (see next patches).
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index b0d9ffe25088..9ad9cdf3e668 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1307,31 +1307,5 @@ static inline ino_t parent_ino(struct dentry *dentry) return res; } -/* NOTE NOTE NOTE: this interface _will_ change in a couple of patches */ - -static inline int dev_lock_part(kdev_t dev) -{ - struct block_device *bdev = bdget(kdev_t_to_nr(dev)); - if (!bdev) - return -ENOMEM; - if (!down_trylock(&bdev->bd_part_sem)) { - if (!bdev->bd_part_count) - return 0; - up(&bdev->bd_part_sem); - } - bdput(bdev); - return -EBUSY; -} - -static inline void dev_unlock_part(kdev_t dev) -{ - struct block_device *bdev = bdget(kdev_t_to_nr(dev)); - if (!bdev) - BUG(); - up(&bdev->bd_part_sem); - bdput(bdev); - bdput(bdev); -} - #endif /* __KERNEL__ */ #endif /* _LINUX_FS_H */ |
