diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-08-30 22:51:36 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-30 22:51:36 -0700 |
| commit | b2230d13885996178628a73ae6cd98168cd9f8eb (patch) | |
| tree | 153894d7e01a72310ec234599453b6fa10da5d6b /include/linux/fs.h | |
| parent | fe178e800e8ac0f3f13f0ce4b2c170599669713b (diff) | |
[PATCH] dev_t handling cleanups (10/12)
new helper - iminor(inode); defined as minor(inode->i_rdev); lots and
lots of places in drivers had been switched to it.
Diffstat (limited to 'include/linux/fs.h')
| -rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 8672beea576c..2309b4e2e29c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -467,6 +467,11 @@ static inline void i_size_write(struct inode *inode, loff_t i_size) #endif } +static inline unsigned iminor(struct inode *inode) +{ + return minor(inode->i_rdev); +} + struct fown_struct { rwlock_t lock; /* protects pid, uid, euid fields */ int pid; /* pid or -pgrp where SIGIO should be sent */ |
