aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-02-22 19:50:45 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2008-10-21 07:49:00 -0400
commit30c40d2c01f68c7eb1a41ab3552bdaf5dbf300d4 (patch)
tree38b69a80c4c0df13ef3b905f5195f6cadf930223 /include
parent9a1c3542768b5a58e45a9216921cd10a3bae1205 (diff)
[PATCH] propagate mode through open_bdev_excl/close_bdev_excl
replace open_bdev_excl/close_bdev_excl with variants taking fmode_t. superblock gets the value used to mount it stored in sb->s_mode Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 04c8dc41f454..c6766314dc5e 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1157,6 +1157,7 @@ struct super_block {
1157 char s_id[32]; /* Informational name */ 1157 char s_id[32]; /* Informational name */
1158 1158
1159 void *s_fs_info; /* Filesystem private info */ 1159 void *s_fs_info; /* Filesystem private info */
1160 fmode_t s_mode;
1160 1161
1161 /* 1162 /*
1162 * The next field is for VFS *only*. No filesystems have any business 1163 * The next field is for VFS *only*. No filesystems have any business
@@ -1753,9 +1754,10 @@ extern void chrdev_show(struct seq_file *,off_t);
1753extern const char *__bdevname(dev_t, char *buffer); 1754extern const char *__bdevname(dev_t, char *buffer);
1754extern const char *bdevname(struct block_device *bdev, char *buffer); 1755extern const char *bdevname(struct block_device *bdev, char *buffer);
1755extern struct block_device *lookup_bdev(const char *); 1756extern struct block_device *lookup_bdev(const char *);
1756extern struct block_device *open_bdev_excl(const char *, int, void *); 1757extern struct block_device *open_bdev_exclusive(const char *, fmode_t, void *);
1757extern void close_bdev_excl(struct block_device *); 1758extern void close_bdev_exclusive(struct block_device *, fmode_t);
1758extern void blkdev_show(struct seq_file *,off_t); 1759extern void blkdev_show(struct seq_file *,off_t);
1760
1759#else 1761#else
1760#define BLKDEV_MAJOR_HASH_SIZE 0 1762#define BLKDEV_MAJOR_HASH_SIZE 0
1761#endif 1763#endif